Skip to main content

Home > blockly > blockRendering

blockRendering namespace

Classes

ClassDescription
BottomRowAn object containing information about what elements are in the bottom row of a block as well as spacing information for the bottom row. Elements in a bottom row can consist of corners, spacers and next connections.
ConnectionThe base class to represent a connection and the space that it takes up on the block.
ConstantProviderAn object that provides constants for rendering blocks.
DrawerAn object that draws a block based on the given rendering information.
ExternalValueInputAn object containing information about the space an external value input takes up during rendering
FieldAn object containing information about the space a field takes up during rendering
HatAn object containing information about the space a hat takes up during rendering.
IconAn object containing information about the space an icon takes up during rendering.
InlineInputAn object containing information about the space an inline input takes up during rendering.
InputConnectionThe base class to represent an input that takes up space on a block during rendering.
InputRowAn object containing information about a row that holds one or more inputs.
InRowSpacerAn object containing information about a spacer between two elements on a row.
JaggedEdgeAn object containing information about the space the jagged edge of a collapsed block takes up during rendering.
MeasurableThe 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).
NextConnectionAn object containing information about the space a next connection takes up during rendering.
OutputConnectionAn object containing information about the space an output connection takes up during rendering.
PathObjectAn object that handles creating and setting each of the SVG elements used by the renderer.
PreviousConnectionAn object containing information about the space a previous connection takes up during rendering.
RendererThe base class for a block renderer.
RenderInfoAn object containing all sizing information needed to draw this block. This measure pass does not propagate changes to the block (although fields may choose to rerender when getSize() is called). However, calling it repeatedly may be expensive.
RoundCornerAn object containing information about the space a rounded corner takes up during rendering.
RowAn object representing a single row on a rendered block and all of its subcomponents.
SpacerRowAn object containing information about a spacer between two rows.
SquareCornerAn object containing information about the space a square corner takes up during rendering.
StatementInputAn object containing information about the space a statement input takes up during rendering
TopRowAn object containing information about what elements are in the top row of a block as well as sizing information for the top row. Elements in a top row can consist of corners, hats, spacers, and previous connections. After this constructor is called, the row will contain all non-spacer elements it needs.

Functions

FunctionDescription
register(name, rendererClass)Registers a new renderer.
unregister(name)Unregisters the renderer registered with the given name.

Interfaces

InterfaceDescription
InsideCornersAn object containing sizing and path information about inside corners.
IPathObjectAn interface for a block's path object.
JaggedTeethAn object containing sizing and path information about collapsed block indicators.
NotchAn object containing sizing and path information about a notch.
OutsideCornersAn object containing sizing and path information about outside corners.
PuzzleTabAn object containing sizing and path information about a puzzle tab.
StartHatAn object containing sizing and path information about a start hat.

Variables

VariableDescription
Types

Type Aliases

Type AliasDescription
BaseShape
DynamicShapeAn object containing sizing and type information about a dynamic shape.