blockly > blockRendering > Renderer > makePathObject

blockRendering.Renderer.makePathObject() 方法

创建渲染程序路径对象的新实例。

Signature:

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

参数

参数 类型 说明
root SVGElement 根 SVG 元素。
样式 BlockStyle 用于着色的样式对象。

返回

IPathObject

渲染程序路径对象。