su9nil14 / canviz

Automatically exported from code.google.com/p/canviz
0 stars 0 forks source link

Include black and white colors in canviz.js #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using named colors in graphs that will be drawn by Canviz is not recommended 
because then you 
must include the color lookup table gvcolors.js which is an extra thing that 
needs to be sent to the 
browser. Better to not use named colors. But Graphviz itself uses the color 
names "black" and 
"white" all over the graph even though you didn't tell it to. So that you can 
actually use Canviz 
without loading gvcolors.js, we should define a tiny 2-entry gvcolors array in 
canviz.js itself, just 
for black and white.

Original issue reported on code.google.com by ryandesi...@gmail.com on 8 Oct 2008 at 10:11

GoogleCodeExporter commented 8 years ago
Fixed in r119. Also added "lightgrey" since that's the default fill color for 
filled nodes. Note that gvcolors.js is 
now called x11colors.js.

Original comment by ryandesi...@gmail.com on 14 Oct 2008 at 7:13