Class: Highlighter

Constructor

Highlighter

new Highlighter(info)

Parameter

info

An object containing all information needed to render this block.

Value must not be null.

Properties

constants_

non-null Blockly.blockRendering.ConstantProvider

The renderer's constant provider.

highlightConstants_

non-null Blockly.geras.HighlightConstantProvider

Methods

drawBottomRow

package

drawBottomRow(row)

Add a highlight to the bottom row.

Parameter

row

Blockly.blockRendering.BottomRow

The row to highlight.

Value must not be null.

drawInlineInput

package

drawInlineInput(input)

Add a highlight to an inline input.

Parameter

input

Blockly.geras.InlineInput

The input to highlight.

Value must not be null.

drawJaggedEdge_

package

drawJaggedEdge_(row)

Add a highlight on a jagged edge for a collapsed block.

Parameter

row

Blockly.blockRendering.Row

The row to highlight.

Value must not be null.

drawLeft

package

drawLeft()

Draw the highlight on the left side of the block.

drawRightSideRow

package

drawRightSideRow(row)

Add a highlight on the right side of a row.

Parameter

row

Blockly.blockRendering.Row

The row to highlight.

Value must not be null.

drawStatementInput

package

drawStatementInput(row)

Add a highlight on a statement input.

Parameter

row

Blockly.blockRendering.Row

The row to highlight.

Value must not be null.

drawTopCorner

package

drawTopCorner(row)

Add a highlight to the top corner of a block.

Parameter

row

Blockly.blockRendering.TopRow

The top row of the block.

Value must not be null.

drawValueInput

package

drawValueInput(row)

Add a highlight on a value input.

Parameter

row

Blockly.blockRendering.Row

The row the input belongs to.

Value must not be null.

getPath

package

getPath() returns string

Get the steps for the highlight path.

Returns

string The steps for the highlight path.