Open matkoniecz opened 9 years ago
@aebruno - is it expected that specifying color by passing colour name ('lime') works or is it working by an accident?
@matkoniecz For the HTML output, the color is set via css using the background-color property on the nodes div. So whatever css supports as a background-color will work. When I initially wrote the library I was most interested in HTML output, but if we build more support for other output formats we may want to standardize the api to support colors across all output formats. Perhaps we only allow hex colors as they're likely going to be supported in both SVG and PNG.
There are at least three ways to set colour - and I am not sure which one is working as expected and which ones are working only by accident (I would like to fix #8 and I am not sure what should be supported).