Skip to main content

blockly > blockRendering > Renderer > makePathObject

blockRendering.Renderer.makePathObject() method

Create a new instance of a renderer path object.

Signature:

makePathObject(root: SVGElement, style: BlockStyle): IPathObject;

Parameters

Parameter

Type

Description

root

SVGElement

The root SVG element.

style

BlockStyle

The style object to use for colouring.

Returns:

IPathObject

The renderer path object.