[Output Generation] Custom SVG node shapes do not show up in SVG output
Ported Issue from Mantis Original ID: 2135 Reported By: erg
SEVERITY: FEATURE Submitted: 2011-09-02 02:42:51
DESCRIPTION
I'm trying to use a custom shape defined in an .svg file for the nodes in my graph. My output format is SVG, and the input SVGs have a viewBox so, at the very least, it should be possible to put the content of the in the input file into a tag, and that tag inside the for the node. Currently, the tags for the nodes only have tags inside them.
STEPS TO REPRODUCE
Input file:
digraph G { rankdir=LR; gate_axb [id="gate_axb",shape=none,label="",image="and.svg"]; gate_a [id="gate_a",shape=none,label="",image="and.svg"]; gate_b [id="gate_b",shape=none,label="",image="and.svg"]; gate_a -> gate_axb; gate_b -> gate_axb; };
ADDITIONAL INFORMATION
I also tried shape=custom and shapefile= instead of image=, and I still couldn't get the custom shape to show up. I also tried not setting shape to anything. I tried both -Tsvg:svg:core and -Tsvg:cairo:cairo. I have attached the and.svg fle referenced in the input.
I get an error if I put the wrong file name in a node's image attribute, so I think the backend reads the shape SVG. If my SVG is missing something, please consider adding a check and printing a warning to stderr. Otherwise, either implement the / solution, or copy the contents inside the node's tag.