OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OFFICE-3824) Which coordinate system is used in draw:enhanced-geometry, when svg:viewBox is missing


    [ https://issues.oasis-open.org/browse/OFFICE-3824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=76540#comment-76540 ] 

Patrick Durusau commented on OFFICE-3824:
-----------------------------------------

Using an attribute dependency listing from Francis Cave, I suggest the following as a starting point for discussion:

Amending the svg:viewBox entry as follows:

The svg:viewBox attribute specifies a rectangle in a local coordinate system of a shape. The syntax for using this attribute is the same as the [SVG] syntax. The value of the attribute are four numbers separated by white spaces, which define the left, top, width, and height of the rectangle. Such local coordinate system is used by the draw:points 19.206 and svg:d 19.530 attributes, as well as by the attributes of <draw:enhanced-geometry> 10.6.2 element and its child elements which specify coordinates.

The rectangle specified be the svg:viewBox attribute is mapped to the rectangle in the outer coordinate system, specified by the position and size attributes of the shape.

To:

The svg:viewBox attribute specifies a rectangle in a local coordinate system of a shape. The syntax for using this attribute is the same as the [SVG] syntax. The value of the attribute are four numbers separated by white spaces, which define the left, top, width, and height of the rectangle.

The rectangle specified be the svg:viewBox attribute is mapped to the rectangle in the outer coordinate system, specified by the position and size attributes of the shape.

The svg:viewBox attribute and its value shall be present in the following cases:

- draw:formula (on <draw:equation>), if the value contains any of the following identifiers: 'bottom', 'height', 'left', 'right', 'top', 'width', 'xstretch', 'ystretch'. The final two in this list are as a result of the dependency upon draw:path-stretchpoint-x and draw:path-stretchpoint-y.

- draw:handle-position (on <draw:handle>), if the value contains any of the following handle position constants: 'bottom', 'height', 'left', 'right', 'top', 'width', 'xstretch', 'ystretch'.

- draw:path-stretchpoint-x (on <draw:enhanced-geometry>).

- draw:path-stretchpoint-y (on <draw:enhanced-geometry>).

- draw:points (on <draw:area-polygon>, <draw:contour-polygon>, <draw:polygon> and <draw:polyline>).

> Which coordinate system is used in draw:enhanced-geometry, when svg:viewBox is missing
> --------------------------------------------------------------------------------------
>
>                 Key: OFFICE-3824
>                 URL: https://issues.oasis-open.org/browse/OFFICE-3824
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Bug
>          Components: Graphics, Part 1 (Schema)
>    Affects Versions: ODF 1.2
>            Reporter: Regina Henschel
>            Priority: Major
>             Fix For: ODF 1.4
>
>
> In schema v1.2  in <define name="draw-enhanced-geometry-attlist"> the attribute <attribute name="svg:viewBox"> is optional. But the element draw:enhanced-geometry has a lot of attributes and child elements, which use coordinates or length without unit. To determine their values with unit, the values of svg:viewBox are mapped to the position and size of the shape.
> In case the attribute svg:viewBox is missing, current implementations act different. This was discussed in thread https://www.oasis-open.org/apps/org/workgroup/office/email/archives/201303/msg00036.html. The thread has an example document attached.
> There are several solutions imaginable:
> (1) Define a default viewBox, for example svg.viewBox="0 0 21600 21600". This solution is used in AOO.
> (2) Define, that the viewBox is calculated from maximal and minimal values actually used. Calligra seems to do something of this kind
> (3) Add, that the attribute svg:viewBox may not be missing, if there exists any position or length value without unit in the attributes and child elements.
> (4) Add, that for interoperability the attribute svg:viewBox should not be missing, and missing attribute svg:viewBox gives implementation dependent results.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]