mermaid
mermaid copied to clipboard
Use linkStyle with stateDiagram
Is your feature request related to a problem? Please describe.
linkStyle
does not work with state diagrams. It would be helpful to be able to change the style of links in a state diagram in order to denote a path through that state diagram.
Describe the solution you'd like Enable ability to change link colors in state diagrams.
Describe alternatives you've considered
Use a flowchart as a state diagram. linkStyle
works in flow charts.
Additional context https://mermaid-js.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoic3RhdGVEaWFncmFtXG5cdFsqXSAtLT4gU3RpbGxcblx0U3RpbGwgLS0-IFsqXVxuXG5cdFN0aWxsIC0tPiBNb3Zpbmdcblx0TW92aW5nIC0tPiBTdGlsbFxuXHRNb3ZpbmcgLS0-IENyYXNoXG5cdENyYXNoIC0tPiBbKl07XG5cdFx0XHRcdFx0XG4gIGxpbmtTdHlsZSAxIHN0cm9rZTpyZWQ7XG4gICIsIm1lcm1haWQiOnsidGhlbWUiOiJkZWZhdWx0In0sInVwZGF0ZUVkaXRvciI6ZmFsc2V9
Wow, this has been open a long time. I was going to ask if any styling of stateDocument-v2 exists. The docs seem to hint that this is the case, but I see no examples and get parse errors if I try to add styles using the format of the class diagrams.