Stay organized with collections Save and categorize content based on your preferences.

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 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Measurable class.

Properties

Property Modifiers Type Description
centerline number
constants_

protected

readonly

ConstantProvider The renderer's constant provider.
height number
notchOffset number
type number
width number
xPos number