Class: Icon

Constructor

Icon

new Icon(constants, icon)

An object containing information about the space an icon takes up during rendering

Parameter

constants

The rendering constants provider.

Value must not be null.

icon

The icon to measure and store information for.

Value must not be null.

Extends
Blockly.blockRendering.Measurable

Properties

icon

non-null Blockly.Icon

isVisible

boolean

centerline

unknown

Inherited from
Blockly.blockRendering.Measurable#centerline

constants_

protected

unknown

The renderer's constant provider.

Inherited from
Blockly.blockRendering.Measurable#constants_

height

unknown

Inherited from
Blockly.blockRendering.Measurable#height

notchOffset

unknown

Inherited from
Blockly.blockRendering.Measurable#notchOffset

type

unknown

Inherited from
Blockly.blockRendering.Measurable#type

width

unknown

Inherited from
Blockly.blockRendering.Measurable#width

xPos

unknown

Inherited from
Blockly.blockRendering.Measurable#xPos