Skip to content

The display and hiding of arrows at both ends cannot be controlled after edges are generated using the addEdges method #1580

Answered by guminlianren
guminlianren asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry for taking up so much of your time and I only have RMB to offer as thanks. (┬┬﹏┬┬)

I forgot that I had written the line as a template, which caused the markerStart not to appear.
I've figured out the solution to the problem. I can control the visibility of the arrow by setting the width of the marker to 0. This does work effectively. edge.markerStart.width = 0;
edge.markerEnd.width = 0;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Comment options

You must be logged in to vote
1 reply
@bcakmakoglu
Comment options

Answer selected by guminlianren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants