Skip to main content

Home > blockly > zelos > Drawer

zelos.Drawer class

An object that draws a block based on the given rendering information.

Signature:

export declare class Drawer extends BaseDrawer 

Extends: BaseDrawer

Constructors

ConstructorModifiersDescription
(constructor)(block, info)Constructs a new instance of the Drawer class

Properties

PropertyModifiersTypeDescription
info_RenderInfo

Methods

MethodModifiersDescription
draw()
drawConnectionHighlightPath(measurable)Returns a path to highlight the given connection.
drawFlatBottom_()protectedAdd steps to draw a flat bottom row.
drawFlatTop_()protectedAdd steps to draw a flat top row.
drawInlineInput_(input)
drawLeft_()
drawLeftDynamicConnection_()protectedAdd steps to draw the left side of an output with a dynamic connection.
drawOutline_()
drawRightDynamicConnection_()protectedAdd steps to draw the right side of an output with a dynamic connection.
drawRightSideRow_(row)protectedAdd steps for the right side of a row that does not have value or statement input connections.
drawStatementInput_(row)