aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/element-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-xjs/controllers/elements/element-controller.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 01e132d7..fd4d3c12 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -225,6 +225,30 @@ exports.ElementController = Montage.create(Component, {
225 } 225 }
226 }, 226 },
227 227
228 getFill: {
229 value: function(el, fill) {
230 var fillInfo = {},
231 color;
232 if(fill.colorInfo) {
233 fillInfo.colorInfo = {};
234 color = this.getColor(el, true);
235 if(color && color.color) {
236 fillInfo.colorInfo.mode = color.mode;
237 fillInfo.colorInfo.color = color.color;
238 } else {
239 fillInfo.colorInfo.mode = "nocolor";
240 fillInfo.colorInfo.color = null;
241 }
242 }
243 return fillInfo;
244 }
245 },
246
247 setFill: {
248 value: function(el, fill, eventType, source) {
249 this.setColor(el, fill.colorInfo, true);
250 }
251 },
228 //-------------------------------------------------------------------------------------------------------- 252 //--------------------------------------------------------------------------------------------------------
229 // Routines to get/set 3D properties 253 // Routines to get/set 3D properties
230 get3DProperty: { 254 get3DProperty: {