mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42: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,
|
Base.each(this._components,
|
||||||
function(name, i) {
|
function(name, i) {
|
||||||
var value = components[i];
|
var value = components[i];
|
||||||
// TODO: should we call the setter?
|
// TODO: Should we call the setter?
|
||||||
// this['set' + name.capitalize()]
|
// this['set' + name.capitalize()]
|
||||||
this[name] = value !== undefined
|
this[name] = value !== undefined
|
||||||
? value
|
? value
|
||||||
// TODO: is this correct?
|
// TODO: Is this correct?
|
||||||
// Shouldn't alpha be set to -1?
|
// Shouldn't alpha be set to -1?
|
||||||
: name == 'alpha' ? 1 : null;
|
: name == 'alpha' ? 1 : null;
|
||||||
}, this);
|
}, this);
|
||||||
|
|
|
@ -87,6 +87,8 @@ var Document = this.Document = Base.extend({
|
||||||
var ctx = this.context;
|
var ctx = this.context;
|
||||||
ctx.save();
|
ctx.save();
|
||||||
|
|
||||||
|
// TODO: Remove dirty rectangle test code once it's actually
|
||||||
|
// implemented.
|
||||||
var testDirtyRects = false;
|
var testDirtyRects = false;
|
||||||
if (testDirtyRects) {
|
if (testDirtyRects) {
|
||||||
var left = this.size.width / 8,
|
var left = this.size.width / 8,
|
||||||
|
|
|
@ -50,8 +50,7 @@ var Path = this.Path = PathItem.extend({
|
||||||
return curves;
|
return curves;
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: Add back to Scriptographer:
|
// TODO: Port back to Scriptographer:
|
||||||
|
|
||||||
getFirstSegment: function() {
|
getFirstSegment: function() {
|
||||||
return this._segments[0];
|
return this._segments[0];
|
||||||
},
|
},
|
||||||
|
@ -204,7 +203,7 @@ var Path = this.Path = PathItem.extend({
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// todo: getLocation(point, precision)
|
// TODO: getLocation(point, precision)
|
||||||
getLocation: function(length) {
|
getLocation: function(length) {
|
||||||
var curves = this.getCurves(),
|
var curves = this.getCurves(),
|
||||||
currentLength = 0;
|
currentLength = 0;
|
||||||
|
|
Loading…
Reference in a new issue