blockly > blockRendering > PathObject > (构造函数)

blockRendering.PathObject.(constructor)

构造 PathObject 类的新实例

Signature:

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

参数

参数 类型 说明
root SVGElement 根 SVG 元素。
样式 BlockStyle 用于着色的样式对象。
constants ConstantProvider 渲染程序的常量。