Skip to main content

Home > blockly > blockRendering > BottomRow

blockRendering.BottomRow class

An 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.

Signature:

export declare class BottomRow extends Row 

Extends: Row

Constructors

ConstructorModifiersDescription
(constructor)(constants)Constructs a new instance of the BottomRow class

Properties

PropertyModifiersTypeDescription
baselinenumberThe Y position of the bottom edge of the block, relative to the origin of the block rendering.
connectionNextConnection | nullThe next connection on the row, if any.
descenderHeightnumberThe amount that the bottom of the block extends below the horizontal edge, e.g. because of a next connection. Must be non-negative (see #2820).
hasNextConnectionbooleanWhether this row has a next connection.

Methods

MethodModifiersDescription
endsWithElemSpacer()
hasLeftSquareCorner(block)Returns whether or not the bottom row has a left square corner.
hasRightSquareCorner(_block)Returns whether or not the bottom row has a right square corner.
measure()
startsWithElemSpacer()