Namespace: blockRendering

Classes

Interface

Namespaces

Enumeration

Types

constant   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

Property

Types

constant   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

Methods

init

package   static

init(name, theme, opt_rendererOverrides) 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.

theme

Blockly.Theme

The workspace theme object.

Value must not be null.

opt_rendererOverrides

Optional

Object

Rendering constant overrides.

Returns

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

isDebuggerEnabled

package   static

isDebuggerEnabled() returns boolean

Returns whether the debugger is turned on.

Deprecated
Returns

boolean Whether the debugger is turned on.

startDebugger

package   static

startDebugger()

Turn on the blocks debugger.

Deprecated

stopDebugger

package   static

stopDebugger()

Turn off the blocks debugger.

Deprecated

unregister

static

unregister(name)

Unregisters the renderer registered with the given name.

Parameter

name

string

The name of the renderer.