-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Support link IDs #4568
Comments
Would this solve your issue? |
@sidharthv96 yes that would be even a better solution in cases of "inlining" (writing the linkStyle close to the link line). But still, I would suggest the ID approach when someone prefers to write style statements in a separate block, similar to my given example. |
The only issue I see is that the syntax becomes more complicated, but as it's optional, we could have it if there's enough interest from the community. |
I'm not sure about whitespace being super critical, but being able to pre-assign (even numeric only) IDs to a link is crucial to dynamic graph styling. Is that still up for discussion here? |
I really need this feature too, in my scenario, indexes are difficult to calculate because links are generating dynamically, in particular flow charts with subgraphs |
Proposal
It should be optionally possible to define IDs for links. This will make it it easier to reference links in
linkStyle
. Currently afaics specific links can only be referenced by index. Imagine a diagram where a lot of links are styled in the current way. You only have to remove or add a link prior to those styled links and all of those styling directives get invalid since the indexes of the targeted links have changed naturally. ID or key references in linkStyle would prevent this inconvenience.Example
Screenshots
No response
The text was updated successfully, but these errors were encountered: