X6 icon indicating copy to clipboard operation
X6 copied to clipboard

渲染到iframe内,无法拖拽

Open zhangquan opened this issue 5 years ago • 3 comments

 const graph = new Graph({
            container: iframe.contentDocument.body
            width: 1960,
            height: 1200,
            background: {
                color: '#fffbe6', // 设置画布背景颜色
              },
            grid: {
                size: 10,      // 网格大小 10px
                visible: true, // 渲染网格背景
              },
        });

zhangquan avatar Feb 23 '21 16:02 zhangquan

👋 @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.

x6-bot avatar Feb 23 '21 16:02 x6-bot

container 不支持设置为 iframe 内元素,因为 mousemove 和 mouseup 事件是绑定在当前 document 上面,在 iframe 内无法触发。你需要渲染在 iframe 的场景是什么?

NewByVector avatar Feb 24 '21 06:02 NewByVector

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.

x6-bot avatar Mar 06 '22 00:03 x6-bot