渲染到iframe内,无法拖拽
const graph = new Graph({
container: iframe.contentDocument.body
width: 1960,
height: 1200,
background: {
color: '#fffbe6', // 设置画布背景颜色
},
grid: {
size: 10, // 网格大小 10px
visible: true, // 渲染网格背景
},
});
👋 @zhangquan
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
container 不支持设置为 iframe 内元素,因为 mousemove 和 mouseup 事件是绑定在当前 document 上面,在 iframe 内无法触发。你需要渲染在 iframe 的场景是什么?
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.