5
Vote

GraphvizEdge.ToDot() wrong graphviz properties

description

Mappings for FontGraphvizColor and StrokeGraphvizColor are wrong, so it is impossible to change edge stroke and font color.
 
Replacement:
fontGraphvizColor → fontcolor
GraphvizColor → color
 
Seems like URL property is also invalid (http://www.graphviz.org/doc/info/attrs.html).

comments

CSP wrote Jul 8, 2015 at 6:32 PM

Also,
bgGraphvizColor → fillcolor

wrote Jul 8, 2015 at 6:32 PM

CSP wrote Jul 8, 2015 at 7:21 PM

And then there's:
public struct GraphvizColor : IEquatable<GraphvizColor>
  {
    private readonly byte a;
    private readonly byte r;
    private readonly byte g;
    private readonly byte b;

    public byte A
    {
      get
      {
        return this.a;
      }
    }

    public byte R
    {
      get
      {
        return this.a;
      }
    }

    public byte G
    {
      get
      {
        return this.a;
      }
    }

    public byte B
    {
      get
      {
        return this.a;
      }
    }
...

wrote Jul 17, 2015 at 5:59 PM