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] Commented: (OFFICE-3758) The addition for draw:circle in 19.571.10 not clear


    [ http://tools.oasis-open.org/issues/browse/OFFICE-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31419#action_31419 ] 

Patrick Durusau commented on OFFICE-3758:
-----------------------------------------

Thorsten,

I read the last sentence as saying two things:

1) If the svg:width and svg:height attributes specify different values for a <draw:circle>
element, the radius of the circle is derived from the smaller of the two values, [how to choose the radius of a circle where there are conflicting values]

2) and the circle is centered within the bounding box. [gratuitous statement on placement?] 

From the SVG 1.1 standard, section 7.11 Object bounding box units:

"The bounding box is the tightest fitting rectangle aligned with the axes of the applicable element's user coordinate system that entirely encloses the applicable element and its descendants. The bounding box is computed exclusive of any values for clipping, masking, filter effects, opacity and stroke-width. For curved shapes, the bounding box encloses all portions of the shape, not just end points." (page 167 of the pdf version) 

Wouldn't the "tightest fitting rectangle" around a circle mean the circle was centered in the rectangle? (So our comment in ODF 1.2 is unnecessary.)

As far as your issue, I think the circle is "centered" in that "tightest fitting rectangle," whether the entire circle is present or not. Or at least that is how I would read it. 




> The addition for draw:circle in 19.571.10 not clear
> ---------------------------------------------------
>
>                 Key: OFFICE-3758
>                 URL: http://tools.oasis-open.org/issues/browse/OFFICE-3758
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Improvement
>          Components: Graphics
>    Affects Versions: ODF 1.2
>            Reporter: Thorsten Zachmann
>
> 19.571.10 states the following:
> 19.571.10 <draw:caption>, <draw:custom-shape>, <draw:circle>,
> <draw:control>, <draw:ellipse>, <draw:frame>, <draw:rect>,
> <draw:page-thumbnail>, <draw:path>, <draw:polygon>,
> <draw:polyline>, <draw:regular-polygon>
> See §5.1.2 of [SVG]. For drawing shapes that have a non rectangular shape, the length refers to
> the drawing shape's bounding box.
> If the svg:width and svg:height attributes specify different values for a <draw:circle>
> element, the radius of the circle is derived from the smaller of the two values, and the circle is
> centered within the bounding box.
> When working on a bug report in Calligra I found out that if there is a draw:circle with a type section LO/AOO uses svg:width, svg:height, svg:x and svg:y as there would be a full circle. This is done in LO/AOO also for a draw:ellipse. However in svg:x and svg:y there is no such notice. It even states "See §5.1.2 of [SVG]. For drawing shapes that have a non rectangular shape, the coordinate
> refers to the drawing shape's bounding box.". In my understanding the bounding box is the rect that encloses the visible part on the screen. So if only a quarter of a circle is shown only the rect around the quarter is the bounding box.
> I would like to clarify what is the intended meaning of the values so that the bug can be fixed correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




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