Document the private getPendPadding() function.

This commit is contained in:
Jürg Lehni 2011-11-24 10:21:12 +01:00
parent 29aaf38320
commit 3f5e68aa76

View file

@ -1861,6 +1861,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
max[0] - min[0], max[1] - min[1]);
}
/**
* Returns the horizontal and vertical padding that a transformed round
* stroke adds to the bounding box, by calculating the dimensions of a
* rotated ellipse.
*/
function getPenPadding(radius, matrix) {
if (!matrix)
return [radius, radius];