Constructor

Icon

new Icon(constants, icon)

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

Parameter

constants

Blockly.blockRendering.ConstantProvider

The rendering constants provider.

Value must not be null.

icon

Blockly.Icon

The icon to measure and store information for.

Value must not be null.

Extends
Blockly.blockRendering.Measurable

Property

constants_

protected

unknown

The renderer's constant provider.

Inherited from
Blockly.blockRendering.Measurable#constants_