diff options
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index cac99326..8da89fb9 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -593,6 +593,14 @@ exports.Stage = Montage.create(Component, { | |||
593 | } | 593 | } |
594 | }, | 594 | }, |
595 | 595 | ||
596 | clearAllCanvas: { | ||
597 | value: function() { | ||
598 | this._drawingContext.clearRect(0, 0, this._drawingCanvas.width, this._drawingCanvas.height); | ||
599 | this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); | ||
600 | this.layout.clearCanvas(); | ||
601 | } | ||
602 | }, | ||
603 | |||
596 | SelectTool: { | 604 | SelectTool: { |
597 | value: function(cursor) { | 605 | value: function(cursor) { |
598 | this._drawingCanvas.style.cursor = cursor; | 606 | this._drawingCanvas.style.cursor = cursor; |