mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-27 19:29:38 +02:00
* Changed the license in package json to the correct license (MIT).
* Changed the link style from the pointed one to a more triangle formed style as default style for links * Updated the readme file regarding linkStyles to explain the magic number 3a s described in issue #41
This commit is contained in:
@@ -234,7 +234,10 @@ A---|This is the text|B;
|
||||

|
||||
|
||||
### Styling links
|
||||
It is possible to style links for instance a link that is going back in the flow. This is done by the linkStyle statement as in the example below:
|
||||
It is possible to style links, for instance you might want to style a link that is going backwards in the flow. As links
|
||||
has no ids in the same way as nodes, some other way of deciding what link the style should be attached to is required.
|
||||
Instead of ids the order number of when the link was defined in the graph is used. In the example below the style
|
||||
defined in the linkStyle statement will belong to the forth link in the graph:
|
||||
|
||||
```
|
||||
linkStyle 3 stroke:#ff3,stroke-width:4px;
|
||||
|
Reference in New Issue
Block a user