LvHuaiSheng / leafer-x-ruler

leafer-ui的标尺线插件
http://leafer-x-ruler.sourcenet.cc/
MIT License
11 stars 5 forks source link

画布缩放尺子没有变化 #2

Closed wumingluren closed 6 months ago

wumingluren commented 6 months ago

演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue

LvHuaiSheng commented 6 months ago

演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue

查查看一下RenderEvent.AFTER事件触发是否正常,标尺接收的参数需要传入最顶层的app 并不是App.app,传入其它的是无效的

wumingluren commented 6 months ago

演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue

查查看一下RenderEvent.AFTER事件触发是否正常,标尺接收的参数需要传入最顶层的app 并不是App.app,传入其它的是无效的

ruler.enabled = false 后面找到问题了,是有一行禁用。