nikeee / edotor.net

Your favourite Graphviz editor
https://edotor.net
MIT License
176 stars 21 forks source link

Some BGCOLOR's don't work in Edotor #48

Open ghost opened 2 years ago

ghost commented 2 years ago

Stumbled upon this while reviewing a pull request from another repo:

It appears not all BGCOLOR values work in Edotor, the following always show as black as shown in this example

Another web editor shows these colours without a problem.

nikeee commented 2 years ago

Now fixed in core library: https://github.com/nikeee/dot-language-support/commit/c724aac41053a05dc824b78215c545c4b24fcab0

Porting this over to edotor.

nikeee commented 2 years ago

This is just for the auto completion, though. It seems that they were added in a newer version of GraphViz.

We're using a divverent rendering library than the site you linked (they use D3, edotor uses viz.js, which is the actual Graphviz).

It it likely that we need a new build of viz.js for this to work: https://github.com/mdaines/viz.js

Working on it.