diff options
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/LineTool.js | 7 | ||||
-rwxr-xr-x | js/tools/OvalTool.js | 13 | ||||
-rwxr-xr-x | js/tools/RectTool.js | 13 |
3 files changed, 0 insertions, 33 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index a61f8f79..dd5a7c72 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -234,13 +234,6 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
234 | canvas.elementModel.selection = "Line"; | 234 | canvas.elementModel.selection = "Line"; |
235 | canvas.elementModel.pi = "LinePi"; | 235 | canvas.elementModel.pi = "LinePi"; |
236 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 236 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
237 | canvas.elementModel.shapeModel.stroke = strokeColor; | ||
238 | if(strokeColor) | ||
239 | { | ||
240 | canvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
241 | } | ||
242 | |||
243 | canvas.elementModel.shapeModel.strokeMaterial = strokeMaterial; | ||
244 | 237 | ||
245 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; | 238 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; |
246 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; | 239 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; |
diff --git a/js/tools/OvalTool.js b/js/tools/OvalTool.js index a10e0bb5..0ad74aa4 100755 --- a/js/tools/OvalTool.js +++ b/js/tools/OvalTool.js | |||
@@ -78,22 +78,9 @@ exports.OvalTool = Montage.create(ShapeTool, { | |||
78 | canvas.elementModel.selection = "Oval"; | 78 | canvas.elementModel.selection = "Oval"; |
79 | canvas.elementModel.pi = "OvalPi"; | 79 | canvas.elementModel.pi = "OvalPi"; |
80 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 80 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
81 | canvas.elementModel.shapeModel.stroke = strokeColor; | ||
82 | canvas.elementModel.shapeModel.fill = fillColor; | ||
83 | if(strokeColor) | ||
84 | { | ||
85 | canvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
86 | } | ||
87 | if(fillColor) | ||
88 | { | ||
89 | canvas.elementModel.shapeModel.background = this.application.ninja.colorController.colorToolbar.fill; | ||
90 | } | ||
91 | 81 | ||
92 | canvas.elementModel.shapeModel.innerRadius = this.options.innerRadius.value + " " + this.options.innerRadius.units; | 82 | canvas.elementModel.shapeModel.innerRadius = this.options.innerRadius.value + " " + this.options.innerRadius.units; |
93 | 83 | ||
94 | canvas.elementModel.shapeModel.strokeMaterial = strokeMaterial; | ||
95 | canvas.elementModel.shapeModel.fillMaterial = fillMaterial; | ||
96 | |||
97 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; | 84 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; |
98 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; | 85 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; |
99 | 86 | ||
diff --git a/js/tools/RectTool.js b/js/tools/RectTool.js index 957afea9..c56e4424 100755 --- a/js/tools/RectTool.js +++ b/js/tools/RectTool.js | |||
@@ -98,25 +98,12 @@ exports.RectTool = Montage.create(ShapeTool, { | |||
98 | canvas.elementModel.selection = "Rectangle"; | 98 | canvas.elementModel.selection = "Rectangle"; |
99 | canvas.elementModel.pi = "RectanglePi"; | 99 | canvas.elementModel.pi = "RectanglePi"; |
100 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 100 | canvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
101 | canvas.elementModel.shapeModel.stroke = strokeColor; | ||
102 | canvas.elementModel.shapeModel.fill = fillColor; | ||
103 | if(strokeColor) | ||
104 | { | ||
105 | canvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
106 | } | ||
107 | if(fillColor) | ||
108 | { | ||
109 | canvas.elementModel.shapeModel.background = this.application.ninja.colorController.colorToolbar.fill; | ||
110 | } | ||
111 | 101 | ||
112 | canvas.elementModel.shapeModel.tlRadius = this.options.TLRadiusControl.value + " " + this.options.TLRadiusControl.units; | 102 | canvas.elementModel.shapeModel.tlRadius = this.options.TLRadiusControl.value + " " + this.options.TLRadiusControl.units; |
113 | canvas.elementModel.shapeModel.trRadius = this.options.TRRadiusControl.value + " " + this.options.TRRadiusControl.units; | 103 | canvas.elementModel.shapeModel.trRadius = this.options.TRRadiusControl.value + " " + this.options.TRRadiusControl.units; |
114 | canvas.elementModel.shapeModel.blRadius = this.options.BLRadiusControl.value + " " + this.options.BLRadiusControl.units; | 104 | canvas.elementModel.shapeModel.blRadius = this.options.BLRadiusControl.value + " " + this.options.BLRadiusControl.units; |
115 | canvas.elementModel.shapeModel.brRadius = this.options.BRRadiusControl.value + " " + this.options.BRRadiusControl.units; | 105 | canvas.elementModel.shapeModel.brRadius = this.options.BRRadiusControl.value + " " + this.options.BRRadiusControl.units; |
116 | 106 | ||
117 | canvas.elementModel.shapeModel.strokeMaterial = strokeMaterial; | ||
118 | canvas.elementModel.shapeModel.fillMaterial = fillMaterial; | ||
119 | |||
120 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; | 107 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; |
121 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; | 108 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; |
122 | 109 | ||