Skip to main content

Home > 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

ParameterTypeDescription
rootSVGElementThe root SVG element.
styleBlockStyleThe style object to use for colouring.

Returns:

IPathObject

The renderer path object.