mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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) {
|
||||
if (!this._visible || this._opacity === 0)
|
||||
return;
|
||||
|
|
|
@ -80,7 +80,6 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
/**
|
||||
* Draws the view.
|
||||
*
|
||||
* @name View#draw
|
||||
* @function
|
||||
*/
|
||||
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) {
|
||||
this.draw();
|
||||
var out = fs.createWriteStream(path),
|
||||
|
|
Loading…
Reference in a new issue