Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mjyg opened this issue Jun 28, 2022 · 8 comments
Closed

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

mjyg opened this issue Jun 28, 2022 · 8 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@mjyg
Copy link

mjyg commented Jun 28, 2022

功能描述

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

期望解决方案

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

@web-xp
Copy link

web-xp commented Jun 28, 2022

我昨天实现了

@web-xp
Copy link

web-xp commented Jun 28, 2022

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

@15643701048a
Copy link

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

@web-xp
Copy link

web-xp commented Jun 29, 2022

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

@15643701048a
Copy link

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

@web-xp
Copy link

web-xp commented Jun 29, 2022

image
这样可以粘贴多个节点

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jul 9, 2022
@NewByVector
Copy link
Contributor

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

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 22, 2023

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 x6-bot bot locked as resolved and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

4 participants