d3-graphviz icon indicating copy to clipboard operation
d3-graphviz copied to clipboard

An edge being drawn looks awkward for non-normal edges

Open magjac opened this issue 1 year ago • 0 comments

The implementation assumes an edge with dir=forward, arrowhead=normal (explicit or implicit as for directed graphs) and arrowtail=none. If this is not the case, the edge shown during drawing with drawEdge and updateDrawnEdge might look awkward.

Once inserted with insertDrawnEdge the edge will have the specified attributes and look as specified.

Example

DOT source

digraph {
    a
    b
}

JavaScript attributes

attributes = {
  dir: 'both',
  arrowhead: 'dot',
  arrowtail: 'diamond',
}

Graph during drawing the edge

Untitled Graph 12

magjac avatar Feb 17 '24 13:02 magjac