mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add comments to Path#strokeBounds and scafolding for #controlBounds too.
This commit is contained in:
parent
91ec37de9c
commit
964dc462e9
1 changed files with 10 additions and 0 deletions
|
@ -509,10 +509,20 @@ Path = PathItem.extend({
|
|||
return calculateBounds(this, false);
|
||||
},
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the item including stroke width.
|
||||
*/
|
||||
getStrokeBounds: function() {
|
||||
return calculateBounds(this, true);
|
||||
},
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the item including handles.
|
||||
*/
|
||||
getControlBounds: function() {
|
||||
// TODO: Implement!
|
||||
},
|
||||
|
||||
smooth: function() {
|
||||
var segments = this._segments;
|
||||
|
||||
|
|
Loading…
Reference in a new issue