mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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);
|
return calculateBounds(this, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The bounding rectangle of the item including stroke width.
|
||||||
|
*/
|
||||||
getStrokeBounds: function() {
|
getStrokeBounds: function() {
|
||||||
return calculateBounds(this, true);
|
return calculateBounds(this, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The bounding rectangle of the item including handles.
|
||||||
|
*/
|
||||||
|
getControlBounds: function() {
|
||||||
|
// TODO: Implement!
|
||||||
|
},
|
||||||
|
|
||||||
smooth: function() {
|
smooth: function() {
|
||||||
var segments = this._segments;
|
var segments = this._segments;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue