leafer-ui
leafer-ui copied to clipboard
如何获取Line的坐标点
如何获取Line(带strokeWidth)的4个顶点坐标
line.getLayoutPoints('stroke', 'world')
https://www.leaferjs.com/ui/reference/property/bounds.html#getlayoutpoints-type-iboundstype-box-relative-ilocationtype-ui-world-ipointdata
line.getLayoutPoints('stroke', 'world')
https://www.leaferjs.com/ui/reference/property/bounds.html#getlayoutpoints-type-iboundstype-box-relative-ilocationtype-ui-world-ipointdata 好的,感谢