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

如何禁止节点拖动,文档中没找到设置的方法。 #3095

Closed
anyone0034 opened this issue Dec 27, 2022 · 3 comments
Closed

如何禁止节点拖动,文档中没找到设置的方法。 #3095

anyone0034 opened this issue Dec 27, 2022 · 3 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@anyone0034
Copy link

功能描述

如何禁止节点拖动

期望解决方案

如何禁止节点拖动

@JoeABCDEF
Copy link

JoeABCDEF commented Dec 28, 2022

1.x文档
2.x文档

image

@tianjinhao
Copy link

@JoeABCDEF 可以使用 translating. restrict来限制节点的移动,具体可以看这个案例限制子节点的移动范围, 将其中parent.getBBox()改为自身.getBBox() 即可;

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jan 3, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 5, 2024

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 Jan 5, 2024
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