aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/stage/stage.reel/stage.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 00b72490..dd23fbae 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -796,6 +796,8 @@ exports.Stage = Montage.create(Component, {
796 drawLine: { 796 drawLine: {
797 value:function(x0, y0, x1, y1, strokeSize, strokeColor) { 797 value:function(x0, y0, x1, y1, strokeSize, strokeColor) {
798 this.clearDrawingCanvas(); 798 this.clearDrawingCanvas();
799 var origStrokeStyle = this._drawingContext.strokeStyle;
800 var origLineWidth = this._drawingContext.lineWidth;
799 this._drawingContext.strokeStyle = strokeColor; 801 this._drawingContext.strokeStyle = strokeColor;
800 this._drawingContext.lineWidth = strokeSize; 802 this._drawingContext.lineWidth = strokeSize;
801 803
@@ -826,6 +828,9 @@ exports.Stage = Montage.create(Component, {
826 var w = Math.round(Math.abs(x1-x0)); 828 var w = Math.round(Math.abs(x1-x0));
827 this._drawingContext.fillText("H: " + h, txtX + 38, txtY - 4); 829 this._drawingContext.fillText("H: " + h, txtX + 38, txtY - 4);
828 this._drawingContext.fillText("W: " + w, txtX - 5, txtY + 12); 830 this._drawingContext.fillText("W: " + w, txtX - 5, txtY + 12);
831
832 this._drawingContext.strokeStyle = origStrokeStyle;
833 this._drawingContext.lineWidth = origLineWidth;
829 } 834 }
830 }, 835 },
831 836