X6 icon indicating copy to clipboard operation
X6 copied to clipboard

希望能支持粘贴节点时新生成的节点在鼠标的位置生成

Open mjyg opened this issue 2 years ago • 6 comments

功能描述

希望能支持粘贴节点时新生成的节点在鼠标的位置生成

期望解决方案

鼠标右键粘贴节点时,生成的节点在鼠标的位置生成

mjyg avatar Jun 28 '22 05:06 mjyg

我昨天实现了

web-xp avatar Jun 28 '22 07:06 web-xp

image image 右击保存x,y 粘贴把x,y给position

web-xp avatar Jun 28 '22 07:06 web-xp

那么如果复制了多个节点与连线,怎么粘贴呢

15643701048a avatar Jun 29 '22 08:06 15643701048a

获取点击的x,y ,然后getSelectedCells获取选中的元素然后遍历改变每个位置

web-xp avatar Jun 29 '22 08:06 web-xp

那样不就都复制到同一处地方,重叠了吗,如果取消选中,也没法再复制了

15643701048a avatar Jun 29 '22 08:06 15643701048a

image 这样可以粘贴多个节点

web-xp avatar Jun 29 '22 09:06 web-xp

请问上面的回答有解决你的问题吗,为了高效沟通,我们暂时关闭这个 issue,如果有必要,请重新开一个新的 issue。

NewByVector avatar Aug 21 '22 13:08 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[bot] avatar Aug 22 '23 00:08 x6-bot[bot]