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

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

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

Properties

Property Modifiers Type Description
info_ RenderInfo

Methods

Method Modifiers Description
draw()
drawFlatBottom_() protected Add steps to draw a flat bottom row.
drawFlatTop_() protected Add steps to draw a flat top row.
drawInlineInput_(input)
drawLeft_()
drawLeftDynamicConnection_() protected Add steps to draw the left side of an output with a dynamic connection.
drawOutline_()
drawRightDynamicConnection_() protected Add steps to draw the right side of an output with a dynamic connection.
drawRightSideRow_(row) protected Add steps for the right side of a row that does not have value or statement input connections.
drawStatementInput_(row)