https://issues.apache.org/ooo/show_bug.cgi?id=118784
Bug #: 118784
Issue Type: DEFECT
Summary: svg problems with viewport, viewBox and
preserveAspectRatio
Classification: Application
Product: Drawing
Version: current
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P5
Component: open-import
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created attachment 77133
--> https://issues.apache.org/ooo/attachment.cgi?id=77133
Draw document with linked svg graphic
The attachment contains a svg graphic and a Draw document produced by
LibreOffice 3.5, which links this graphic.
Open the Draw document with AOO. It stretches the graphic, but should not.
The Draw document defines a size of 'svg:width="15.006cm" svg:height="4.994cm"'
on the draw:frame element which contains the link to the graphic. The
svg-graphic itself defines 'width="150mm" height="50mm"'. So the initial
viewport should be negotiated to rounded 'width=15cm height=5cm'.
Then the attributes 'viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"' in
the graphic should generate a transformation matrix with the same factor for x
and y and should keep ratio of the child elements.
The red rectangle is defined with 'width="100" height="100"' and should be
rendered as square.
Handling of coordinate systems is described in
http://www.w3.org/TR/SVGTiny12/coords.html
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.