Constructor

Renderer

new Renderer()

The zelos renderer.

Extends
Blockly.blockRendering.Renderer

Methods

getConstants

package

getConstants() returns Blockly.blockRendering.ConstantProvider

Get the current renderer's constant provider. We assume that when this is called, the renderer has already been initialized.

Inherited from
Blockly.blockRendering.Renderer#getConstants
Returns

The constant provider.

init

package

init()

Initialize the renderer.

Inherited from
Blockly.blockRendering.Renderer#init

makeConstants_

protected

makeConstants_() returns Blockly.zelos.ConstantProvider

Create a new instance of the renderer's constant provider.

Inherited from
Blockly.zelos.Renderer#makeConstants_
Returns

The constant provider.

makeCursorDrawer

package

makeCursorDrawer(workspace, opt_marker) returns Blockly.CursorSvg

Create a new instance of the renderer's cursor drawer.

Parameter

workspace

The workspace the cursor belongs to.

Value must not be null.

opt_marker

Optional

True if the cursor is a marker. A marker is used to save a location and is an immovable cursor. False or undefined if the cursor is not a marker.

Inherited from
Blockly.blockRendering.Renderer#makeCursorDrawer
Returns

The cursor drawer.

makeDebugger_

protected

makeDebugger_() returns Blockly.blockRendering.Debug

Create a new instance of the renderer's debugger.

Inherited from
Blockly.blockRendering.Renderer#makeDebugger_
Returns

The renderer debugger.

makeDrawer_

protected

makeDrawer_(block, info) returns Blockly.zelos.Drawer

Create a new instance of the renderer's drawer.

Parameter

block

The block to render.

Value must not be null.

info

An object containing all information needed to render this block.

Value must not be null.

Inherited from
Blockly.zelos.Renderer#makeDrawer_
Returns

The drawer.

makeHighlightConstants_

protected

makeHighlightConstants_() returns Blockly.geras.HighlightConstantProvider

Create a new instance of the renderer's highlight constant provider.

Inherited from
Blockly.blockRendering.Renderer#makeHighlightConstants_
Returns

The highlight constant provider.

makePathObject

package

makePathObject(root) returns Blockly.blockRendering.IPathObject

Create a new instance of a renderer path object.

Parameter

root

The root SVG element.

Value must not be null.

Inherited from
Blockly.blockRendering.Renderer#makePathObject
Returns

The renderer path object.

makeRenderInfo_

protected

makeRenderInfo_(block) returns Blockly.zelos.RenderInfo

Create a new instance of the renderer's render info object.

Parameter

block

The block to measure.

Value must not be null.

Inherited from
Blockly.zelos.Renderer#makeRenderInfo_
Returns

The render info object.

render

package

render(block)

Render the block.

Parameter

block

The block to render.

Value must not be null.

Inherited from
Blockly.blockRendering.Renderer#render