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

fix(core): 修复节点旋转后锚点无法被接线的问题 #2010

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

ZivvW
Copy link
Contributor

@ZivvW ZivvW commented Dec 13, 2024

isInNodeBbox 没处理旋转的场景,用的是旋转前的 bBox 进行判断。现将用于判断的点反向旋转后再进行判断

另外 isInNodeisInNodeBbox 只有 offset 不同,合并了两个方法

close #1871

before:
chrome-capture-2024-12-13

after:
chrome-capture-2024-12-13 (1)

isInNodeBbox 没处理旋转的场景,用的是旋转前的 bBox 进行判断。现将用于判断的点反向旋转后再进行判断

close didi#1871
@boyongjiong boyongjiong merged commit a89634e into didi:master Dec 15, 2024
@boyongjiong
Copy link
Collaborator

👍🏻

@ZivvW ZivvW deleted the fix/isInNode-rotate branch December 16, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report]: 旋转 graph 后,targetNode无法落线形成一个边
2 participants