blockly > blockRendering > PathObject > (constructor)

blockRendering.PathObject.(constructor)

Constructs a new instance of the PathObject class

Signature:

constructor(root: SVGElement, style: BlockStyle, constants: ConstantProvider);

Parameters

Parameter Type Description
root SVGElement The root SVG element.
style BlockStyle The style object to use for colouring.
constants ConstantProvider The renderer's constants.