adrai / flowchart.js

Draws simple SVG flow chart diagrams from textual representation of the diagram
http://flowchart.js.org/
MIT License
8.54k stars 1.21k forks source link

Q: How to change the color for all lines in one go? #220

Closed vic-t closed 3 years ago

vic-t commented 3 years ago

First of all, thanks for making this tool.

I wish to use flowchart.js on a site using a dark template. This means that black connector lines are hardly visible. I understand I can change the color for strokes between containers on a per connection basis as demonstrated in the third demo on the official website. But is there a way to just set a color for all connector lines at once?

adrai commented 3 years ago

just set the appropriate color in the options: 'line-color': 'white'

example: https://github.com/adrai/flowchart.js/blob/master/example/index.html#L40