- From: SVG Working Group repository <cam@mcc.id.au>
- Date: Thu, 20 Sep 2012 01:12:48 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/b150b364d4a5 branches: changeset: 389:b150b364d4a5 user: Dirk Schulze <dschulze@adobe.com> date: Thu Sep 20 11:11:52 2012 +0300 description: Change getStrokeBBox to bounding box and take markers into account as well diffstat: master/changes.html | 2 ++ master/types.html | 20 +++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diffs (81 lines): diff --git a/master/changes.html b/master/changes.html --- a/master/changes.html +++ b/master/changes.html @@ -57,16 +57,18 @@ have been made.</p> <li>Added <a>SVGGraphicsElement</a> and <a>SVGDefinitionElement</a> interfaces.</li> <li>Added an <a>SVGGeometryElement</a> interface with isPointInFill and isPointInStroke methods.</li> <li>Removed the SVGExternalResourcesRequired interface.</li> <li>Added constructors to <a>SVGNumber</a>, <a>SVGLength</a>, <a>SVGAngle</a> and <a>SVGRect</a>.</li> + + <li>Added <a href="types.html#__svg__SVGLocatableElement__getStrokeBBox">getStrokeBBox</a> to get the tight stroke bounding box.</li> </ul> <h3 id="structure">Document Structure chapter</h3> <ul> <li>Deprecated the <code>suspendRedraw</code>, <code>unsuspendRedraw</code> and <code>unsuspendRedrawAll</code> methods in the SVGSVGElement interface.</li> <li>Removed the <span class="attr-name">'externalResourcesRequired'</span> attribute.</li> diff --git a/master/types.html b/master/types.html --- a/master/types.html +++ b/master/types.html @@ -4249,17 +4249,17 @@ is the <a>outermost svg element</a>. <dt id="__svg__SVGLocatableElement__getBBox" class="operation first-child"><a class="idlinterface" href="types.html#InterfaceSVGRect">SVGRect</a> <b>getBBox</b>() </dt> <dd class="operation"> <div> Returns the tight bounding box in current user space (i.e., after application of the <a>'transform'</a> property) on the geometry of all contained graphics elements, exclusive of stroking, clipping, masking and -filter effects). Note that getBBox must return the actual bounding box +filter effects. Note that getBBox must return the actual bounding box at the time the method was called, even in case the element has not yet been rendered. </div> <dl class="operation"> <dt class="returns-header">Returns</dt> <dd> @@ -4269,28 +4269,26 @@ yet been rendered. </dd> </dl> </dd> <dt id="__svg__SVGLocatableElement__getStrokeBBox" class="operation"><a class="idlinterface" href="types.html#InterfaceSVGRect">SVGRect</a> <b>getStrokeBBox</b>() </dt> <dd class="operation"> <div> -Returns the tight stroke bounding box in current user space (i.e., after -application of the <a>'transform'</a> property) on the -geometry of all contained graphics elements, exclusive of clipping, masking, markers and -filter effects but inclusive of stroking). The stroke bounding box takes the +Returns the union of the tight bounding box (see <a>getBBox</a>), the stroke +bounding box and the stroke bounding box of applied markers in current user space +(i.e., after application of the <a>'transform'</a> property) on the +geometry of all contained graphics elements, exclusive of clipping, masking and +filter effects. The stroke bounding box takes the stroke style properties <a>'stroke-width'</a>, <a>'stroke-linecap'</a>, <a>'stroke-linejoin'</a>, <a>'stroke-miterlimit'</a>, <a>'stroke-dasharray'</a> and <a>'stroke-dashoffset'</a> -into account. If no stroke is applied to the graphics elements, the bounding box in -current user space gets returned (see <a>getBBox</a>). Note that getStrokeBBox must -return the actual stroke bounding box at the time the method was called, -even in case the element has not yet been rendered. - - +into account. Note that getStrokeBBox must +return the actual union of the bounding box at the time the method was called, +even in case the element has not yet been rendered. </div> <dl class="operation"> <dt class="returns-header">Returns</dt> <dd> <div> An <a>SVGRect</a> object that defines the stroke bounding box. </div> </dd>
Received on Thursday, 20 September 2012 08:13:58 UTC