leafer-ui
leafer-ui copied to clipboard
Box里面的元素比自己大时,且 Box 有旋转,会导致拾取元素不正常
https://github.com/user-attachments/assets/cdd83a7c-ad40-42d6-aec6-e610427c01fd
leafer 最新版 代码:
import { App, Rect, Box } from 'leafer-ui'
const leafer = new App({ view: window, editor: { middlePoint: {} } })
const rect = new Rect({ fill: '#32cd79', width: 200, height: 200,
})
// 运行后, 手动旋转 box, 再拾取box , 不正常,鼠标并没有停在 box 上 也能拾取 const box = new Box({ width: 100, height: 100, fill:'red', overflow:'hide', children: [rect] , editable: true, hitFill:'pixel'
})
leafer.tree.add(box)
收到,谢谢反馈~