Skip to main content

Home > blockly > blockRendering > PathObject > (constructor)

blockRendering.PathObject.(constructor)

Constructs a new instance of the PathObject class

Signature:

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

Parameters

ParameterTypeDescription
rootSVGElementThe root SVG element.
styleBlockStyleThe style object to use for colouring.
constantsConstantProviderThe renderer's constants.