简体中文
Appearance
获取数字路径。
boolean
IPathCommandData
获取元素的数字路径(Canvas 绘图命令)。
curve 表示是否转换为曲线路径( M、L、C、Z ),pathForRender 表示是否获取最终的渲染路径(含圆角属性)。
curve
pathForRender
// #获取元素的数字路径 import { Leafer, Ellipse } from 'leafer-ui' const leafer = new Leafer({ view: window }) const ellipse = new Ellipse({ width: 100, height: 100, startAngle: -60, endAngle: 180, innerRadius: 0.5, fill: "#32cd79" }) leafer.add(ellipse) // 打印数字路径 console.log(ellipse.getPath())