Skip to main content

Home > blockly > geras > Renderer

geras.Renderer class

The geras renderer. This renderer was designed to be backwards compatible with pre-2019 Blockly. Newer projects that are not constrained by backwards compatibility should use thrasos, which is a more modern take on this renderer.

Geras is the ancient Greek spirit of old age.

Signature:

export declare class Renderer extends BaseRenderer 

Extends: BaseRenderer

Constructors

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

Methods

MethodModifiersDescription
getHighlightConstants()Get the renderer's highlight constant provider. We assume that when this is called, the renderer has already been initialized.
init(theme, opt_rendererOverrides)Initialize the renderer. Geras has a highlight provider in addition to the normal constant provider.
makeConstants_()
makeDrawer_(block, info)protectedCreate a new instance of the renderer's drawer.
makeHighlightConstants_()protectedCreate a new instance of the renderer's highlight constant provider.
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.
refreshDom(svg, theme, injectionDiv)