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

如何限制节点在画布可视区域内拖动 #3537

Closed
JoeWrights opened this issue Apr 24, 2023 · 3 comments
Closed

如何限制节点在画布可视区域内拖动 #3537

JoeWrights opened this issue Apr 24, 2023 · 3 comments

Comments

@JoeWrights
Copy link

问题描述

我看官网的例子都是节点可以拖到画布可视区域外,想看到节点就只能拖动画布,是否可以直接限制节点在当前画布区域内拖动呢

重现链接

暂无

重现步骤

暂无

预期行为

希望能限制节点在当前画布区域内拖动

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • X6 版本: [1.28.2 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Apr 24, 2023

👋 @JoeWrights

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.

@NewByVector
Copy link
Contributor

可以使用 restrict 配置。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 6, 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 Jul 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants