Blockly.blockRendering. BottomRow
Constructor
BottomRow
new BottomRow(constants)
An object containing information about what elements are in the bottom row of a block as well as spacing information for the top row. Elements in a bottom row can consist of corners, spacers and next connections.
Parameter |
|
---|---|
constants |
Blockly.blockRendering.ConstantProvider The rendering constants provider. Value must not be null. |
- Extends
- Blockly.blockRendering.Row
Properties
align
unknown
Alignment of the row.
- Inherited from
- Blockly.blockRendering.Row#align
baseline
number
The Y position of the bottom edge of the block, relative to the origin of the block rendering.
connection
Blockly.blockRendering.NextConnection
The next connection on the row, if any.
constants_
unknown
The renderer's constant provider.
- Inherited from
- Blockly.blockRendering.Row#constants_
descenderHeight
number
The 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).
elements
unknown
An array of elements contained in this row.
- Inherited from
- Blockly.blockRendering.Row#elements
hasDummyInput
unknown
Whether the row has any dummy inputs.
- Inherited from
- Blockly.blockRendering.Row#hasDummyInput
hasExternalInput
unknown
Whether the row has any external inputs.
- Inherited from
- Blockly.blockRendering.Row#hasExternalInput
hasInlineInput
unknown
Whether the row has any inline inputs.
- Inherited from
- Blockly.blockRendering.Row#hasInlineInput
hasJaggedEdge
unknown
Whether the row has a jagged edge.
- Inherited from
- Blockly.blockRendering.Row#hasJaggedEdge
hasNextConnection
boolean
Whether this row has a next connection.
hasStatement
unknown
Whether the row has any statement inputs.
- Inherited from
- Blockly.blockRendering.Row#hasStatement
height
unknown
The height of the row.
- Inherited from
- Blockly.blockRendering.Row#height
minHeight
unknown
The minimum height of the row.
- Inherited from
- Blockly.blockRendering.Row#minHeight
minWidth
unknown
The minimum width of the row, from the left edge of the block to the right. Does not include child blocks unless they are inline.
- Inherited from
- Blockly.blockRendering.Row#minWidth
type
unknown
The type of this rendering object.
- Inherited from
- Blockly.blockRendering.Row#type
width
unknown
The width of the row, from the left edge of the block to the right. Does not include child blocks unless they are inline.
- Inherited from
- Blockly.blockRendering.Row#width
widthWithConnectedBlocks
unknown
The width of the row, from the left edge of the block to the edge of the block or any connected child blocks.
- Inherited from
- Blockly.blockRendering.Row#widthWithConnectedBlocks
xPos
unknown
The X position of the row relative to the origin of the block's svg group.
- Inherited from
- Blockly.blockRendering.Row#xPos
yPos
unknown
The Y position of the row relative to the origin of the block's svg group.
- Inherited from
- Blockly.blockRendering.Row#yPos
Methods
endsWithElemSpacer
endsWithElemSpacer() returns boolean
Determines whether this row should end with an element spacer.
- Inherited from
- Blockly.blockRendering.BottomRow#endsWithElemSpacer
- Returns
-
Whether the row should end with a spacer.
getFirstSpacer
getFirstSpacer() returns Blockly.blockRendering.InRowSpacer
Convenience method to get the first spacer element on this row.
- Inherited from
- Blockly.blockRendering.Row#getFirstSpacer
- Returns
-
The first spacer element on this row.
getLastInput
getLastInput() returns Blockly.blockRendering.InputConnection
Get the last input on this row, if it has one.
- Inherited from
- Blockly.blockRendering.Row#getLastInput
- Returns
-
The last input on the row, or null.
getLastSpacer
getLastSpacer() returns Blockly.blockRendering.InRowSpacer
Convenience method to get the last spacer element on this row.
- Inherited from
- Blockly.blockRendering.Row#getLastSpacer
- Returns
-
The last spacer element on this row.
hasLeftSquareCorner
hasLeftSquareCorner(block) returns boolean
Returns whether or not the bottom row has a left square corner.
Parameter |
|
---|---|
block |
The block whose bottom row this represents. Value must not be null. |
- Returns
-
boolean
Whether or not the bottom row has a left square corner.
hasRightSquareCorner
hasRightSquareCorner(_block) returns boolean
Returns whether or not the bottom row has a right square corner.
Parameter |
|
---|---|
_block |
The block whose bottom row this represents. Value must not be null. |
- Returns
-
boolean
Whether or not the bottom row has a right square corner.
measure
measure()
Inspect all subcomponents and populate all size properties on the row.
- Inherited from
- Blockly.blockRendering.BottomRow#measure
startsWithElemSpacer
startsWithElemSpacer() returns boolean
Determines whether this row should start with an element spacer.
- Inherited from
- Blockly.blockRendering.BottomRow#startsWithElemSpacer
- Returns
-
Whether the row should start with a spacer.