Skip to content
导航

路径 | Path ​

绘制路径,可以画出任何的图形。

关键属性 ​

path: IPathCommandData | IPathString ​

路径数据, 支持 SVG 字符串路径数据。

windingRule?: WindingRule ​

路径缠绕规则。

ts
const path = new Path({
  stroke: 'rgb(50,205,121)',
  path: 'M 0 0 L 100 100 L 0 100 Z',
  windingRule: 'evenodd',
})

继承 ​

UI ​

API ​

Path ​

Released under the MIT License.