pgdad / canviz

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

Named colors should be matched case-insensitively #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Graphviz documentation says color names are case-insensitive, but Canviz is 
currently treating 
them case-sensitively.

Solution: All the color names in gvcolors.js are specified in lowercase, so 
convert the graph's color 
names to lowercase before looking them up in the gvcolors array.

Original issue reported on code.google.com by ryandesi...@gmail.com on 6 Oct 2008 at 4:20

Attachments:

GoogleCodeExporter commented 9 years ago
Here is the relevant documentation:

http://www.graphviz.org/doc/info/attrs.html#k:color

"String-valued color specifications are case-insensitive [...]"

Original comment by ryandesi...@gmail.com on 6 Oct 2008 at 4:23

GoogleCodeExporter commented 9 years ago
Fixed in r101.

Original comment by ryandesi...@gmail.com on 6 Oct 2008 at 4:25