diff options
author | Pushkar Joshi | 2012-03-15 14:33:48 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-15 14:33:48 -0700 |
commit | e574f722864a246bad40d3f5a4e59f7ccb206ea9 (patch) | |
tree | baad38aa8440b7e929005acc058ca07bcc21bf5a /js/controllers | |
parent | 571ed9ef856780eded3ac7104ed0ce72c7c7c81c (diff) | |
download | ninja-e574f722864a246bad40d3f5a4e59f7ccb206ea9.tar.gz |
update values in the PI from values of the selected brush stroke or pen tool path
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); |