rich-iannone / DiagrammeRsvg

A utility package for providing SVG export to DiagrammeR graph diagrams
Other
29 stars 1 forks source link

Connectors are not proper connectors in SVG #12

Open g1o opened 1 month ago

g1o commented 1 month ago

If there is a need to polish the drawing, for example using Inkscape, the connectors will need to be remade from scratch, and that is a lot of work. Using something like the connector example below will make a proper connector between A and B. This should be able to work for the simple view_type = "title_only" from dm.

<path
   style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.05001;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker17852)"
   d="m 119.5,-744 h 109.04185 c 6.00008,0 12.00017,-6.00008 12.00017,-12.00017 v -45.48068"
   id="path17822"
   inkscape:connector-type="orthogonal"
   inkscape:connector-curvature="16"
   inkscape:connection-start="#A"
   inkscape:connection-end="#B" />