diff options
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index b273350a..b5e63514 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -144,6 +144,43 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
144 | case "background": | 144 | case "background": |
145 | case "useWebGl": | 145 | case "useWebGl": |
146 | return this.getShapeProperty(el, p); | 146 | return this.getShapeProperty(el, p); |
147 | case "strokeHardness": | ||
148 | if (el.elementModel && el.elementModel.shapeModel){ | ||
149 | return el.elementModel.shapeModel.GLGeomObj.getStrokeHardness();; | ||
150 | } else { | ||
151 | return null; | ||
152 | } | ||
153 | break; | ||
154 | case "doSmoothing": | ||
155 | if (el.elementModel && el.elementModel.shapeModel){ | ||
156 | return el.elementModel.shapeModel.GLGeomObj.getDoSmoothing();; | ||
157 | } else { | ||
158 | return null; | ||
159 | } | ||
160 | break; | ||
161 | case "strokeSmoothing": | ||
162 | if (el.elementModel && el.elementModel.shapeModel){ | ||
163 | return el.elementModel.shapeModel.GLGeomObj.getSmoothingAmount();; | ||
164 | } else { | ||
165 | return null; | ||
166 | } | ||
167 | break; | ||
168 | case "isCalligraphic": | ||
169 | if (el.elementModel && el.elementModel.shapeModel){ | ||
170 | return el.elementModel.shapeModel.GLGeomObj.getStrokeUseCalligraphic();; | ||
171 | } else { | ||
172 | return null; | ||
173 | } | ||
174 | break; | ||
175 | case "strokeAngle": | ||
176 | if (el.elementModel && el.elementModel.shapeModel){ | ||
177 | return el.elementModel.shapeModel.GLGeomObj.getStrokeAngle();; | ||
178 | } else { | ||
179 | return null; | ||
180 | } | ||
181 | break; | ||
182 | |||
183 | |||
147 | case "strokeMaterial": | 184 | case "strokeMaterial": |
148 | case "fillMaterial": | 185 | case "fillMaterial": |
149 | var m = this.getShapeProperty(el, p); | 186 | var m = this.getShapeProperty(el, p); |