Closed wumingluren closed 6 months ago
演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue
查查看一下RenderEvent.AFTER事件触发是否正常,标尺接收的参数需要传入最顶层的app 并不是App.app,传入其它的是无效的
演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue
查查看一下RenderEvent.AFTER事件触发是否正常,标尺接收的参数需要传入最顶层的app 并不是App.app,传入其它的是无效的
ruler.enabled = false 后面找到问题了,是有一行禁用。
演示站是好的,但是我抄的演示这块的代码缩放画布尺子不动。 不知道这个代码跟演示站是否一致呢? https://github.com/LvHuaiSheng/leafer-x-ruler/blob/master/playground/src/App.vue