Class: HighlightConstantProvider

Constructor

HighlightConstantProvider

new HighlightConstantProvider(constants)

Parameter

constants

The rendering constants provider.

Value must not be null.

Properties

constantProvider

non-null Blockly.blockRendering.ConstantProvider

The renderer's constant provider.

INSIDE_CORNER

non-null Object

An object containing sizing and path information about inside corner highlights.

JAGGED_TEETH

non-null Object

An object containing sizing and path information about highlights for collapsed block indicators.

NOTCH

non-null Object

An object containing sizing and path information about notch highlights.

OFFSET

package

number

The offset between the block's main path and highlight path.

OUTSIDE_CORNER

non-null Object

An object containing sizing and path information about outside corner highlights.

PUZZLE_TAB

non-null Object

An object containing sizing and path information about puzzle tab highlights.

START_HAT

non-null Object

An object containing sizing and path information about start hat highlights.

START_POINT

string

The start point, which is offset in both X and Y, as an SVG path chunk.

Methods

init

package

init()

Initialize shape objects based on the constants set in the constructor.

makeInsideCorner

package

makeInsideCorner() returns Object

Returns

non-null Object An object containing sizing and path information about inside corner highlights.

makeJaggedTeeth

package

makeJaggedTeeth() returns Object

Returns

non-null Object An object containing sizing and path information about collapsed block edge highlights.

makeNotch

package

makeNotch() returns Object

Returns

non-null Object An object containing sizing and path information about notch highlights.

makeOutsideCorner

package

makeOutsideCorner() returns Object

Returns

non-null Object An object containing sizing and path information about outside corner highlights.

makePuzzleTab

package

makePuzzleTab() returns Object

Returns

non-null Object An object containing sizing and path information about puzzle tab highlights.

makeStartHat

package

makeStartHat() returns Object

Returns

non-null Object An object containing sizing and path information about start highlights.