leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

如何获取Line的坐标点

Open roffer-d opened this issue 1 year ago • 2 comments

如何获取Line(带strokeWidth)的4个顶点坐标

roffer-d avatar Dec 25 '24 03:12 roffer-d

line.getLayoutPoints('stroke', 'world')

https://www.leaferjs.com/ui/reference/property/bounds.html#getlayoutpoints-type-iboundstype-box-relative-ilocationtype-ui-world-ipointdata

leaferjs avatar Dec 25 '24 04:12 leaferjs

line.getLayoutPoints('stroke', 'world')

https://www.leaferjs.com/ui/reference/property/bounds.html#getlayoutpoints-type-iboundstype-box-relative-ilocationtype-ui-world-ipointdata 好的,感谢

roffer-d avatar Dec 25 '24 04:12 roffer-d