Skip to main content

Home > blockly > zelos > Renderer

zelos.Renderer class

The zelos renderer. This renderer emulates Scratch-style and MakeCode-style rendering.

Zelos is the ancient Greek spirit of rivalry and emulation.

Signature:

export declare class Renderer extends BaseRenderer 

Extends: BaseRenderer

Constructors

ConstructorModifiersDescription
(constructor)(name)Constructs a new instance of the Renderer class

Properties

PropertyModifiersTypeDescription
constants_protectedConstantProvider

Methods

MethodModifiersDescription
getConstants()Get the current renderer's constant provider. We assume that when this is called, the renderer has already been initialized.
makeConstants_()protectedCreate a new instance of the renderer's constant provider.
makeDrawer_(block, info)protectedCreate a new instance of the renderer's drawer.
makePathObject(root, style)Create a new instance of a renderer path object.
makeRenderInfo_(block)protectedCreate a new instance of the renderer's render info object.