mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Update various comments about TODOs.
This commit is contained in:
parent
84d321bd56
commit
ac5dca4fc0
3 changed files with 6 additions and 5 deletions
|
@ -106,11 +106,11 @@ var Color = this.Color = Base.extend(new function() {
|
|||
Base.each(this._components,
|
||||
function(name, i) {
|
||||
var value = components[i];
|
||||
// TODO: should we call the setter?
|
||||
// TODO: Should we call the setter?
|
||||
// this['set' + name.capitalize()]
|
||||
this[name] = value !== undefined
|
||||
? value
|
||||
// TODO: is this correct?
|
||||
// TODO: Is this correct?
|
||||
// Shouldn't alpha be set to -1?
|
||||
: name == 'alpha' ? 1 : null;
|
||||
}, this);
|
||||
|
|
|
@ -87,6 +87,8 @@ var Document = this.Document = Base.extend({
|
|||
var ctx = this.context;
|
||||
ctx.save();
|
||||
|
||||
// TODO: Remove dirty rectangle test code once it's actually
|
||||
// implemented.
|
||||
var testDirtyRects = false;
|
||||
if (testDirtyRects) {
|
||||
var left = this.size.width / 8,
|
||||
|
|
|
@ -50,8 +50,7 @@ var Path = this.Path = PathItem.extend({
|
|||
return curves;
|
||||
},
|
||||
|
||||
// TODO: Add back to Scriptographer:
|
||||
|
||||
// TODO: Port back to Scriptographer:
|
||||
getFirstSegment: function() {
|
||||
return this._segments[0];
|
||||
},
|
||||
|
@ -204,7 +203,7 @@ var Path = this.Path = PathItem.extend({
|
|||
return false;
|
||||
},
|
||||
|
||||
// todo: getLocation(point, precision)
|
||||
// TODO: getLocation(point, precision)
|
||||
getLocation: function(length) {
|
||||
var curves = this.getCurves(),
|
||||
currentLength = 0;
|
||||
|
|
Loading…
Reference in a new issue