Add new interface method getStrokeBBox.
authorDirk Schulze <dschulze@adobe.com>
Sat, 16 Jun 2012 21:34:12 -0700
changeset 190 fd8bd08a7f41
parent 189 fd7d61ef25ce
child 191 a9f958ae5c06
Add new interface method getStrokeBBox.
master/svg.idl
--- a/master/svg.idl	Tue Jun 05 10:01:02 2012 -0700
+++ b/master/svg.idl	Sat Jun 16 21:34:12 2012 -0700
@@ -1520,6 +1520,22 @@
     SVGRect getBBox();
 
     /**
+     * Returns the tight stroke bounding box in current user space (i.e., after
+     * application of the <a>'transform'</a> attribute, if any) 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
+     * 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. 
+     *
+     * @return An <a>SVGRect</a> object that defines the stroke bounding box.
+     */
+    SVGRect getStrokeBBox();
+
+    /**
      * Returns the transformation matrix from current user units (i.e., after
      * application of the <a>'transform'</a> attribute, if any) to the viewport
      * coordinate system for the <a>nearestViewportElement</a>.