Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001596graphvizDotpublic2009-04-28 13:042011-04-28 04:03
ReporterEgon Kastelijn 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-Linux-Fedora 10OS Version
Summary0001596: Generate easier output for SVG 'rounded,filled' boxes
Description



Graphviz Dot can generate SVG files for 'rounded,filled' boxes that are defined like this:



digraph process
{
   graph [rankdir=TB]



   ff [shape="box" style="filled,rounded"];
}



When Dot is used to generate the SVG file, (dot ff.dot -Tsvg -o ff.svg) then the filling of the rounded corners of the box are drawn like this:
<path style="fill:lightgrey;stroke:lightgrey;" d="M12,-36C6,-36 1.83557e-14,-30 1.53951e-14,-24"/>



And the stroke is drawn like this:
<path style="fill:none;stroke:black;" d="M12,-36C6,-36 1.83557e-14,-30 1.53951e-14,-24"/>



This is a rather complex way to generate rounded corners.
There is an easier way to generate SVG rounded corners.
(the way Inkscape generates them)
<CD>
<rect
       style="fill:#ffff00"
       id="rect2383"
       width="368.57144"
       height="257.14285"
       x="120"
       y="186.6479"
       ry="12.595651" />
</CD>



This way you only need to specify the roundness of the corners using 'ry'.



Why do I think this should be changed?
The current way of generating SVG rounded corners does not allow for easy post-processing of the generated SVG.
For example, this script does not work nicely on SVG:



http://www.hokstad.com/making-graphviz-output-pretty-with-xsl.html [^]



kind regards,



   Egon Kastelijn
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1637
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.16.1-0.6.fc10
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker