Closed 826327700 closed 4 months ago
const textLayer = new Text({ fill: 'rgb(50,205,121)', text: text, editable: true, fontSize: 40, align: 'center', visible:false, }) this.leafer.tree.add(textLayer) textLayer.on(EditorEvent.SELECT,(e)=>{ console.log("SELECT",e) }) textLayer.on(EditorScaleEvent.SCALE,(e)=>{ console.log("RESIZE",e) }) textLayer.on(EditorMoveEvent.MOVE,(e)=>{ console.log("MOVE",e) }) textLayer.on(PointerEvent.ENTER,(e)=>{ console.log("ENTER",e)//这里可以触发 上面的都不触发 })
我希望监听到编辑器的缩放 移动等事件 用于结合自身的业务逻辑,但是不知道哪里没写对 没有触发。
另外问一下,文字元素,在编辑器缩放时,如何做到文字大小也跟着缩放?
已支持文字元素,在编辑器缩放时,如何做到文字大小也跟着缩放, 等待新版本发布~
我希望监听到编辑器的缩放 移动等事件 用于结合自身的业务逻辑,但是不知道哪里没写对 没有触发。
另外问一下,文字元素,在编辑器缩放时,如何做到文字大小也跟着缩放?