getPath
获取数字路径。
关键方法
getPath ( curve?: boolean, pathForRender?: boolean): IPathCommandData
获取元素的数字路径(Canvas 绘图命令)。
curve 表示是否转换为曲线路径( M、L、C、Z ),pathForRender 表示是否获取最终的渲染路径(含圆角属性)。
asPath ( curve?: boolean, pathForRender?: boolean): IPathCommandData
强制转换元素为路径,等于执行 rect.path = rect.getPath(),具体原理可以了解一下 path 路径优先模式。