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

当我在移动节点时 如何判断节点的全部内容是否在可视区域内 #4186

Closed
yjz321 opened this issue Jan 25, 2024 · 1 comment

Comments

@yjz321
Copy link

yjz321 commented Jan 25, 2024

当我在移动节点时 当节点的一部分移动到可视化区域外时,根据什么位置去判断当前节点是否移动到可视化区域外侧 (上下左右方向),并且我也可以在拖动画布的前提下不受影响

准备根据 position 和translate 去获取位置 后面发现当我移动整个画布后 位置就被打乱了 无法根据之前的方式去判断是否在可视区域内
有大佬解读一下或提供下思路吗

@yjz321 yjz321 changed the title 当我在移动节点时 当节点的一部分移动到可视化区域外时,根据什么位置去判断当前节点是否移动到可视化区域外侧 (上下左右方向),并且我也可以在拖动画布的前提下不受影响 当我在移动节点时 如何判断节点是否在可视区域内 Jan 25, 2024
@yjz321 yjz321 changed the title 当我在移动节点时 如何判断节点是否在可视区域内 当我在移动节点时 如何判断节点的全部内容是否在可视区域内 Jan 25, 2024
@yjz321 yjz321 closed this as completed Jan 31, 2024
@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 31, 2025

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 31, 2025
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

1 participant