mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Add some TODOs to check.
This commit is contained in:
parent
0e89466a11
commit
a251a24347
1 changed files with 3 additions and 1 deletions
|
@ -129,13 +129,15 @@ var Curve = this.Curve = Base.extend({
|
|||
},
|
||||
|
||||
getNext: function() {
|
||||
// TODO: No need to call getCurves() here?
|
||||
var curves = this._path && this._path._curves;
|
||||
// TODO: Add cyclic looping when closed back to Scriptographer
|
||||
// TODO: Port cyclic looping when closed back to Scriptographer
|
||||
return curves && (curves[this._index1 + 1]
|
||||
|| this._path.closed && curves[0]) || null;
|
||||
},
|
||||
|
||||
getPrevious: function() {
|
||||
// TODO: No need to call getCurves() here?
|
||||
var curves = this._path && this._path._curves;
|
||||
return curves && (curves[this._index1 - 1]
|
||||
|| this._path.closed && curves[curves.length - 1]) || null;
|
||||
|
|
Loading…
Reference in a new issue