Blockly.blockRendering. SpacerRow
An object containing information about a spacer between two rows.
Constructor
SpacerRow
new SpacerRow(constants, height, width)
Parameter |
|
---|---|
constants |
The rendering constants provider. Value must not be null. |
height |
The height of the spacer. |
width |
The width of the spacer. |
- Extends
- Blockly.blockRendering.Row
Properties
elements
non-null Array of non-null Blockly.blockRendering.InRowSpacer
followsStatement
boolean
height
number
precedesStatement
boolean
width
number
widthWithConnectedBlocks
number
align
unknown
Alignment of the row.
- Inherited from
- Blockly.blockRendering.Row#align
constants_
unknown
The renderer's constant provider.
- Inherited from
- Blockly.blockRendering.Row#constants_
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
hasStatement
unknown
Whether the row has any statement inputs.
- Inherited from
- Blockly.blockRendering.Row#hasStatement
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
notchOffset
unknown
- Inherited from
- Blockly.blockRendering.Row#notchOffset
statementEdge
unknown
Where the left edge of all of the statement inputs on the block should be. This makes sure that statement inputs which are proceded by fields of varius widths are all aligned.
- Inherited from
- Blockly.blockRendering.Row#statementEdge
type
unknown
The type of this rendering object.
- Inherited from
- Blockly.blockRendering.Row#type
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.Row#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.
measure
measure()
Inspect all subcomponents and populate all size properties on the row.
- Inherited from
- Blockly.blockRendering.SpacerRow#measure
startsWithElemSpacer
startsWithElemSpacer() returns boolean
Determines whether this row should start with an element spacer.
- Inherited from
- Blockly.blockRendering.Row#startsWithElemSpacer
- Returns
-
Whether the row should start with a spacer.