Constructor

Highlighter

new Highlighter(info)

An object that adds highlights to a block based on the given rendering information.

Highlighting is interesting because the highlights do not fully enclose the block. Instead, they are positioned based on a light source in the top left. This means that rendering highlights requires exact information about the position of each part of the block. The resulting paths are not continuous or closed paths. The highlights for tabs and notches are loosely based on tab and notch shapes, but are not exactly the same.

Parameter

info

Blockly.geras.RenderInfo

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

Method

getPath

package

getPath() returns string

Get the steps for the highlight path.

Returns

string The steps for the highlight path.