Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-3932

svg:x, svg:y, svg:width and svg:height for <dr3d:scene>

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Add these sentences to section 10.5.2 <drd3:scene> :

      The attributes svg:x, svg:y, svg:width and svg:height are only evaluated for the outermost <dr3d:scene> element.
      The attributes svg:x, svg:y, svg:width and svg:height specify together a rectangular viewport into which the projection of the scene is drawn. The projection is scaled non-uniformly such that the bounding box of the projected elements matches the viewport rectangle.
      The attributes svg:x and svg:y refer to the coordinate system of the parent element. They specify the top-left point of the viewport rectangle.

      Note: To display a uniformly scaled projection, the producer has to generate suitable values for svg:width and svg:height.

      Exchange the current text with these

      19.539.3
      The svg:height attribute specifies the height of the viewport, see 10.5.2.

      19.571.5
      The svg:width attribute specifies the width of the viewport, see 10.5.2.

      19.573.4
      The svg:x attribute specifies the horizontal position of the left edge of the viewport, see 10.5.2

      19.577.4
      The svg:y attribute specifies the vertical position of the top edge of the viewport, see 10.5.2

      Show
      Add these sentences to section 10.5.2 <drd3:scene> : The attributes svg:x, svg:y, svg:width and svg:height are only evaluated for the outermost <dr3d:scene> element. The attributes svg:x, svg:y, svg:width and svg:height specify together a rectangular viewport into which the projection of the scene is drawn. The projection is scaled non-uniformly such that the bounding box of the projected elements matches the viewport rectangle. The attributes svg:x and svg:y refer to the coordinate system of the parent element. They specify the top-left point of the viewport rectangle. Note: To display a uniformly scaled projection, the producer has to generate suitable values for svg:width and svg:height. Exchange the current text with these 19.539.3 The svg:height attribute specifies the height of the viewport, see 10.5.2. 19.571.5 The svg:width attribute specifies the width of the viewport, see 10.5.2. 19.573.4 The svg:x attribute specifies the horizontal position of the left edge of the viewport, see 10.5.2 19.577.4 The svg:y attribute specifies the vertical position of the top edge of the viewport, see 10.5.2

      Description

      The sections 10.5.2 <dr3d:scene> and svg:height 19.539.3, svg:width 19.571.5, svg:x 19.573.4 and svg:y 19.577.4 are affected.

      Currently:
      10.5.2<dr3d:scene>
      The <dr3d:scene> element is the only element that can contain three-dimensional shapes. Like the <draw:g> element it groups shapes, but it also defines the projection, lighting, and other rendering details for the shapes inside the scene.

      The sections 19.539.3, 19.571.5, 19.573.4 and 19.577.4 refer to 19.539.8, 19.571.10, 19.573.5 and 19.577.5 respectively, which are about two-dimensional shapes. And these four refer to ยง 5.1.2 of [SVG]. http://www.w3.org/TR/2003/REC-SVG11-20030114/

      Problems:
      (1) The svg:x, svg:y, svg:width and svg:height attributes are only meaningful for the outermost <dr3d:scene> element, because for use inside a scene the third coordinate is missing.
      (2) An explanation is missing, how these two-dimensional attributes map to the three-dimensional scene.
      (3) The reference to SVG is unsuitable, because SVG does not know 3D elements at all.
      (4) The additional texts in the sections about the two-dimensional shapes use the terms "rectangular shape" and "bounding-box", which are not applicable for a three-dimensional object.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              regina.henschel Regina Henschel
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: