aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rw-r--r--js/tools/BrushTool.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index 1e1df0a4..9e300554 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -91,9 +91,25 @@ exports.BrushTool = Montage.create(ShapeTool, {
91 91
92 var doSmoothing = false; 92 var doSmoothing = false;
93 if (this.options.doSmoothing){ 93 if (this.options.doSmoothing){
94 doSmoothing = this.options.doSmoothing.value; 94 doSmoothing = this.options.doSmoothing;
95 } 95 }
96 this._selectedBrushStroke.setDoSmoothing(doSmoothing); 96 this._selectedBrushStroke.setDoSmoothing(doSmoothing);
97
98 var useCalligraphic = false;
99 if (this.options.useCalligraphic){
100 useCalligraphic = this.options.useCalligraphic;
101 }
102 if (useCalligraphic) {
103 this._selectedBrushStroke.setStrokeUseCalligraphic(true);
104 var strokeAngle = 0;
105 if (this.options.strokeAngle){
106 strokeAngle= ShapesController.GetValueInPixels(this.options.strokeAngle.value, this.options.strokeAngle.units);
107 }
108 this._selectedBrushStroke.setStrokeAngle(strokeAngle);
109 } else {
110 this._selectedBrushStroke.setStrokeUseCalligraphic(false);
111 }
112
97 } 113 }
98 NJevent("enableStageMove");//stageManagerModule.stageManager.enableMouseMove(); 114 NJevent("enableStageMove");//stageManagerModule.stageManager.enableMouseMove();
99 } //value: function (event) { 115 } //value: function (event) {