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

blockly > zelos > ConstantProvider

zelos.ConstantProvider class

An object that provides constants for rendering blocks in Zelos mode.

Signature:

export declare class ConstantProvider extends BaseConstantProvider 

Extends: BaseConstantProvider

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 ConstantProvider class.

Properties

Property Modifiers Type Description
CURSOR_COLOUR string
FIELD_COLOUR_FULL_BLOCK boolean
FIELD_DROPDOWN_COLOURED_DIV boolean
FIELD_DROPDOWN_NO_BORDER_RECT_SHADOW boolean
FIELD_DROPDOWN_SVG_ARROW boolean
FIELD_TEXT_FONTFAMILY string
FIELD_TEXT_FONTWEIGHT string
FIELD_TEXTINPUT_BOX_SHADOW boolean
FULL_BLOCK_FIELDS boolean
GRID_UNIT number
HEXAGONAL Shape | null The object containing information about the hexagon used for a boolean reporter block. Null before init is called.
JAGGED_TEETH_HEIGHT number
JAGGED_TEETH_WIDTH number
MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH number
REPLACEMENT_GLOW_COLOUR string The replacement glow colour.
REPLACEMENT_GLOW_SIZE number The size of the selected glow.
ROUNDED Shape | null The object containing information about the hexagon used for a number or string reporter block. Null before init is called.
SELECTED_GLOW_COLOUR string The selected glow colour.
SELECTED_GLOW_SIZE number The size of the selected glow.
SHAPES { HEXAGONAL: number; ROUND: number; SQUARE: number; PUZZLE: number; NOTCH: number; }
SQUARED Shape | null The object containing information about the hexagon used for a rectangular reporter block. Null before init is called.
START_HAT_HEIGHT number
START_HAT_WIDTH number
STATEMENT_INPUT_SPACER_MIN_WIDTH number

Methods

Method Modifiers Description
createDom(svg, tagName, selector)
dispose()
generateSecondaryColour_(colour)
generateTertiaryColour_(colour)
getCSS_(selector)
init()
makeInsideCorners()
makeNotch()
makeStartHat()
setDynamicProperties_(theme)
setFontConstants_(theme)
shapeFor(connection)