路径 | Path

绘制路径。

关键属性

path:IPathCommandData | IPathString

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

windingRule?: WindingRule

路径缠绕规则。

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

继承属性

图层属性 Layer

布局属性 Layout

填充样式 Fill

描边样式 Stroke

圆角样式 Corner

特效样式 Effect

继承

UI > Leaf