Expand description
draw:transform: where a shape sits when a corner and a size cannot say it.
Most shapes are placed by svg:x, svg:y, svg:width and svg:height, and
that is a rectangle with its edges along the page’s. A shape that is turned,
or leaned over, cannot be described that way, so ODF gives it a list of
operations instead — rotate (-3.14159) translate (28cm 15.75cm) — and
writes no svg:x at all.
A reader that wants the corner and cannot find it drops the shape. Across the
presentation templates LibreOffice ships that is 137 shapes in ten
documents, most of them the decoration that gives a template its identity, so
the list has to be read.
§The two things the specification does not spell out
The operations apply to a point left to right, which is the opposite of
the way SVG composes the same syntax, and the angle is in radians rather
than degrees. Both were settled against the templates: Bottom Bar White
decorates the bottom edge of its slide with a bar 0.7cm wide and 28cm tall
under rotate (-1.5707963) translate (28cm 15.05cm), and only one reading of
the two puts it along the bottom.
A rotation is counter-clockwise as a person sees it, and the page’s y runs downwards, so the matrix is the transpose of the one a mathematics text writes.
Structs§
- Transform
- An affine placement: where a shape’s own coordinates land on the page.