leaferjs / leafer-ui

一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.
https://www.leaferjs.com
MIT License
2.59k stars 92 forks source link

编辑器旋转错位 #84

Closed HeeChung closed 10 months ago

HeeChung commented 10 months ago

image Frame设置了scaleY: -1,我往右边旋转,编辑器往左边旋转,和图像错位了

HeeChung commented 10 months ago

怎么让元素不超出Frame区域

leaferjs commented 10 months ago

image Frame设置了scaleY: -1,我往右边旋转,编辑器往左边旋转,和图像错位了

收到,谢谢反馈~,下个版本会修复下

leaferjs commented 10 months ago

怎么让元素不超出Frame区域

这个需要自己做判断, 检测超出范围可以调整编辑器的位置: https://leaferjs.com/ui/guide/plugin/editor/Editor.html#move-x-number-y-0-void

leaferjs commented 10 months ago

问题已修复,等待新版本发布~

HeeChung commented 10 months ago

好的,谢谢