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(elements): fix edge arrow cannot display #5810

Merged
merged 3 commits into from
Jun 4, 2024
Merged

fix(elements): fix edge arrow cannot display #5810

merged 3 commits into from
Jun 4, 2024

Conversation

Aarebecca
Copy link
Contributor

  • 修复边上箭头在启用动画的情况下无法显示的问题

  • Fixed an issue where side arrows could not be displayed when animation was enabled

@Aarebecca
Copy link
Contributor Author

截图变更是由于之前的逻辑中将边上属性全部传给箭头,其中 increasedLineWidthForHitTesting 属性会导致额外创建交互判定区域
image

const key = this.upsert('key', Path, this.getKeyStyle(attributes), container);
this.drawArrow(attributes, 'start');
this.drawArrow(attributes, 'end');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

主要修复点在这里,目的是在 onframe 过程中,不仅更新 keyShape,还将其箭头一并更新

@Aarebecca Aarebecca merged commit eca59ed into v5 Jun 4, 2024
5 checks passed
@Aarebecca Aarebecca deleted the fix/arrow branch June 4, 2024 03:36
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.

2 participants