路径 | 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',
})
绘制路径。
路径数据, 支持 SVG 字符串路径数据。
路径缠绕规则。
const path = new Path({
stroke: 'rgb(50,205,121)',
path: 'M 0 0 L 100 100 L 0 100 Z',
windingRule: 'evenodd',
})