mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix comments.
This commit is contained in:
parent
fc4e88c039
commit
c75d48cf98
2 changed files with 1 additions and 5 deletions
|
@ -3318,9 +3318,6 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: Implement View into the drawing.
|
|
||||||
// TODO: Optimize temporary canvas drawing to ignore parts that are
|
|
||||||
// outside of the visible view.
|
|
||||||
draw: function(ctx, param) {
|
draw: function(ctx, param) {
|
||||||
if (!this._visible || this._opacity === 0)
|
if (!this._visible || this._opacity === 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -80,7 +80,6 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
||||||
/**
|
/**
|
||||||
* Draws the view.
|
* Draws the view.
|
||||||
*
|
*
|
||||||
* @name View#draw
|
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
draw: function(checkRedraw) {
|
draw: function(checkRedraw) {
|
||||||
|
@ -305,7 +304,7 @@ CanvasView.inject(new function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// DOCS: View#exportImage(path, callback);
|
// DOCS: CanvasView#exportImage(path, callback);
|
||||||
exportImage: function(path, callback) {
|
exportImage: function(path, callback) {
|
||||||
this.draw();
|
this.draw();
|
||||||
var out = fs.createWriteStream(path),
|
var out = fs.createWriteStream(path),
|
||||||
|
|
Loading…
Reference in a new issue