> <aspectratio type="free"/> Any aspect ratio is OK (the default)
> <aspectratio type="fixed"/> Fix the aspect ratio for this shape.
> <aspectratio type="range" min="n" max="m"/> Give a range of values."
It seems like if I add a text box, then the aspect ratio is always set by
the text box -- I cannot manually stretch it.
I copied from Circuit/hresistor_de.shape:
<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
<name>Membrane Node</name>
<description>A single membrane node</description>
<icon>mem.xpm</icon>
<connections>
<point x="0" y="0"/>
<point x="6" y="0"/>
</connections>
<aspectratio type="free" />
<svg:svg width="3.0" height="0.5">
<svg:line x1="0" y1="0" x2="1.5" y2="0" />
<svg:rect x="1.5" y="-0.5" width="3" height="1" style="fill: default" />
<svg:line x1="4.5" y1="0" x2="6" y2="0" />
</svg:svg>
</shape>
This allows the free aspect ratio, but no text box.
If I add:
<textbox x1="1.5" y1="-0.5" x2="4.5" y2="0.5" />
Then the aspect ratio is set by the size of the text string.
John
(I'm using Dia 0.88.1 from RPM)