-
Notifications
You must be signed in to change notification settings - Fork 265
Description
extend doc or feature request
I'm wondering if it's possible to style edges?
I found one helpful tip in #128
Currently I'm using afterRenderEdge for this purpose.
So far I can conditionally handle edge styles by adding new class
Like this:
edgeContainer.querySelector('.edge').classList.add('default');
Unfortunately It seems like we have to handle edge's arrow separately.
I'd been looking through source code and found workaround which i'm using inside afterRenderEdge.
E.g:
wrapperRef.querySelector('defs>marker>.arrow').classList.add('defaultConnection');
where wrapperRef is html element <div class='view-wrapper><svg class='graph'>...
But this hack let us only change some styles for all arrowhead-markers among graph.
- How can I style edges and arrow by some condition?
- Are you going to implement edge styling by some props in near future?
Would you be so kind to share some approaches to achieve my final goal - have different styles/colors for edges including arrowhead markers.
Thank for you attention.