The display and hiding of arrows at both ends cannot be controlled after edges are generated using the addEdges method #1580
-
The three questions you asked, did I answer this question clearly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
is not a valid way to change an edges marker, because markers are not part of addEdges({
markerEnd: {
type: 'arrow',
}
}) is also not a valid edge so this won't work either. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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;