Classes

Interface

Enumeration

Types

package   static

number

Types of rendering elements.

Value

NONE

FIELD

HAT

ICON

SPACER

BETWEEN_ROW_SPACER

IN_ROW_SPACER

EXTERNAL_VALUE_INPUT

INPUT

INLINE_INPUT

STATEMENT_INPUT

CONNECTION

PREVIOUS_CONNECTION

NEXT_CONNECTION

OUTPUT_CONNECTION

CORNER

LEFT_SQUARE_CORNER

LEFT_ROUND_CORNER

RIGHT_SQUARE_CORNER

RIGHT_ROUND_CORNER

JAGGED_EDGE

ROW

TOP_ROW

BOTTOM_ROW

INPUT_ROW

Properties

Types

package   static

number

Types of rendering elements.

Value

NONE

FIELD

HAT

ICON

SPACER

BETWEEN_ROW_SPACER

IN_ROW_SPACER

EXTERNAL_VALUE_INPUT

INPUT

INLINE_INPUT

STATEMENT_INPUT

CONNECTION

PREVIOUS_CONNECTION

NEXT_CONNECTION

OUTPUT_CONNECTION

CORNER

LEFT_SQUARE_CORNER

LEFT_ROUND_CORNER

RIGHT_SQUARE_CORNER

RIGHT_ROUND_CORNER

JAGGED_EDGE

ROW

TOP_ROW

BOTTOM_ROW

INPUT_ROW

useDebugger

package   static

boolean

Whether or not the debugger is turned on.

Methods

init

package   static

init(name) returns Blockly.blockRendering.Renderer

Initialize anything needed for rendering (constants, etc).

Parameter

name

string

Name of the renderer to initialize.

Value must not be null.

Returns

non-null Blockly.blockRendering.Renderer The new instance of a renderer. Already initialized.

register

static

register(name, rendererClass)

Registers a new renderer.

Parameter

name

string

The name of the renderer.

rendererClass

function()

The new renderer class to register.

Value must not be null.

Throws

Error if a renderer with the same name has already been registered.

startDebugger

package   static

startDebugger()

Turn on the blocks debugger.

stopDebugger

package   static

stopDebugger()

Turn off the blocks debugger.

unregister

static

unregister(name)

Unregisters the renderer registered with the given name.

Parameter

name

string

The name of the renderer.