On 2015-01-23 15:08 (+0100), Ulrich-windl wrote:
> I feel the dimentsions in the cloned <use> objects are wrong
Please reread the SVG 1.1 spec about the meaning of x, y, width and height of a <use> element [1]: those refer to position and size of "the rectangular region into which the referenced element is placed.", not the position and size of the <use> element itself.
«The ‘use’ element has optional attributes ‘x’, ‘y’, ‘width’ and ‘height’ which are used to map the graphical contents of the referenced element onto a rectangular region within the current coordinate system.»
<http://www.w3.org/TR/SVG11/struct.html#UseElement>
Note that the spec differs between <use> elements referencing a <symbol>, an <svg> element or otherwise.
AFAIU current stable Inkscape 0.48.x adds the width and height attributes as soon as the clone is transformed (e.g. translated), referencing the dimensions of the <svg> viewport the referenced object is in (i.e. the page size as set in the document properties, aka the width and height of the top-level <svg> element).
Upcoming 0.91 will use '100%' for the added width and height attributes of the <use> element if transformed (i.e. referencing the full width/height of the viewport of the referenced element).
On 2015-01-23 15:08 (+0100), Ulrich-windl wrote:
> I feel the dimentsions in the cloned <use> objects are wrong
Please reread the SVG 1.1 spec about the meaning of x, y, width and height of a <use> element [1]: those refer to position and size of "the rectangular region into which the referenced element is placed.", not the position and size of the <use> element itself.
«The ‘use’ element has optional attributes ‘x’, ‘y’, ‘width’ and ‘height’ which are used to map the graphical contents of the referenced element onto a rectangular region within the current coordinate system.» www.w3. org/TR/ SVG11/struct. html#UseElement>
<http://
Note that the spec differs between <use> elements referencing a <symbol>, an <svg> element or otherwise.
AFAIU current stable Inkscape 0.48.x adds the width and height attributes as soon as the clone is transformed (e.g. translated), referencing the dimensions of the <svg> viewport the referenced object is in (i.e. the page size as set in the document properties, aka the width and height of the top-level <svg> element).
Upcoming 0.91 will use '100%' for the added width and height attributes of the <use> element if transformed (i.e. referencing the full width/height of the viewport of the referenced element).
[1] http:// www.w3. org/TR/ SVG11/struct. html#UseElement XAttribute