mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Improve documentation.
This commit is contained in:
parent
c63e2c8f79
commit
4de5f30f72
2 changed files with 5 additions and 3 deletions
|
@ -2128,7 +2128,7 @@ statics: {
|
|||
},
|
||||
|
||||
/**
|
||||
* Returns the rough bounding rectangle of the item that is shure to include
|
||||
* Returns the rough bounding rectangle of the item that is sure to include
|
||||
* all of the drawing, including stroke width.
|
||||
*/
|
||||
getRoughBounds: function(segments, closed, style, matrix) {
|
||||
|
|
|
@ -90,8 +90,10 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{
|
|||
_changed: function(point) {
|
||||
if (!this._path)
|
||||
return;
|
||||
// Delegate changes to affected curves if they exist
|
||||
var curve = this._path._curves && this.getCurve(), other;
|
||||
// Delegate changes to affected curves if they exist. Check _curves
|
||||
// first to make sure we're not creating it by calling this.getCurve().
|
||||
var curve = this._path._curves && this.getCurve(),
|
||||
other;
|
||||
if (curve) {
|
||||
curve._changed();
|
||||
// Get the other affected curve, which is the previous one for
|
||||
|
|
Loading…
Reference in a new issue