mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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.
|
* all of the drawing, including stroke width.
|
||||||
*/
|
*/
|
||||||
getRoughBounds: function(segments, closed, style, matrix) {
|
getRoughBounds: function(segments, closed, style, matrix) {
|
||||||
|
|
|
@ -90,8 +90,10 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{
|
||||||
_changed: function(point) {
|
_changed: function(point) {
|
||||||
if (!this._path)
|
if (!this._path)
|
||||||
return;
|
return;
|
||||||
// Delegate changes to affected curves if they exist
|
// Delegate changes to affected curves if they exist. Check _curves
|
||||||
var curve = this._path._curves && this.getCurve(), other;
|
// first to make sure we're not creating it by calling this.getCurve().
|
||||||
|
var curve = this._path._curves && this.getCurve(),
|
||||||
|
other;
|
||||||
if (curve) {
|
if (curve) {
|
||||||
curve._changed();
|
curve._changed();
|
||||||
// Get the other affected curve, which is the previous one for
|
// Get the other affected curve, which is the previous one for
|
||||||
|
|
Loading…
Reference in a new issue