mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Document the private getPendPadding() function.
This commit is contained in:
parent
29aaf38320
commit
3f5e68aa76
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue