Change getStrokeBBox to bounding box and take markers into account as well
authorDirk Schulze <dschulze@adobe.com>
Thu, 20 Sep 2012 11:11:52 +0300
changeset 389 b150b364d4a5
parent 388 253c8f8777d7
child 390 d9df70d79141
Change getStrokeBBox to bounding box and take markers into account as well
master/changes.html
master/types.html
--- a/master/changes.html	Sun Sep 16 07:19:08 2012 +1000
+++ b/master/changes.html	Thu Sep 20 11:11:52 2012 +0300
@@ -62,6 +62,8 @@
   <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>
--- a/master/types.html	Sun Sep 16 07:19:08 2012 +1000
+++ b/master/types.html	Thu Sep 20 11:11:52 2012 +0300
@@ -4254,7 +4254,7 @@
 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. 
 
@@ -4274,18 +4274,16 @@
 </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>