Skip to main content

Home > blockly > blockRendering > Measurable

blockRendering.Measurable class

The base class to represent a part of a block that takes up space during rendering. The constructor for each non-spacer Measurable records the size of the block element (e.g. field, statement input).

Signature:

export declare class Measurable 

Constructors

ConstructorModifiersDescription
(constructor)(constants)Constructs a new instance of the Measurable class

Properties

PropertyModifiersTypeDescription
centerlinenumber
constants_protected readonlyConstantProviderThe renderer's constant provider.
heightnumber
notchOffsetnumber
typenumber
widthnumber
xPosnumber