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

feat: add arrow for lineX, lineY #4905

Merged
merged 2 commits into from
Apr 23, 2023
Merged

feat: add arrow for lineX, lineY #4905

merged 2 commits into from
Apr 23, 2023

Conversation

hustcc
Copy link
Member

@hustcc hustcc commented Apr 23, 2023

fixed #4845

  • add arrow for lineX, lineY.
  • render link use vector.
  • add screenshot

image

Copy link
Member

@pearmini pearmini left a comment

Choose a reason for hiding this comment

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

这里的箭头支持画在线段的另一端或者两端吗?

image

@hustcc
Copy link
Member Author

hustcc commented Apr 23, 2023

这里的箭头支持画在线段的另一端或者两端吗?

image

这个按照数据驱动来?箭头指向是数据的方向。G 中支持 markerStart 和 markerEnd,但是 G2 只是用了 markerEnd。

@pearmini
Copy link
Member

@hustcc 那如果希望上图中的竖着的箭头画在另一边的话该如何声明?

@hustcc
Copy link
Member Author

hustcc commented Apr 23, 2023

@hustcc 那如果希望上图中的竖着的箭头画在另一边的话该如何声明?

不支持。同样的需求,如果 arrow 想画在线的中间怎么办?这种需要收敛一下。

@hustcc hustcc merged commit b5d6595 into v5 Apr 23, 2023
@hustcc hustcc deleted the feat-add-arrow-for-lineXY branch April 23, 2023 06:27
hustcc added a commit that referenced this pull request May 16, 2023
* feat: add arrow for lineX, lineY

* chore: update demo, show arrow
hustcc added a commit that referenced this pull request May 16, 2023
* feat: add arrow for lineX, lineY

* chore: update demo, show arrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lineX 和 lineY 支持 Arrow
2 participants