aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/fill-properties.reel/fill-properties.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/tools-properties/fill-properties.reel/fill-properties.js')
-rw-r--r--js/components/tools-properties/fill-properties.reel/fill-properties.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/js/components/tools-properties/fill-properties.reel/fill-properties.js b/js/components/tools-properties/fill-properties.reel/fill-properties.js
new file mode 100644
index 00000000..3b77d72e
--- /dev/null
+++ b/js/components/tools-properties/fill-properties.reel/fill-properties.js
@@ -0,0 +1,38 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage,
8 ShapesController = require("js/controllers/elements/shapes-controller").ShapesController,
9 ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
10
11exports.FillProperties = Montage.create(ToolProperties, {
12
13 _use3D: { value: false },
14
15 _subPrepare: {
16 value: function() {
17 ShapesController.DisplayMaterials(this._fillMaterial);
18
19 this.handleChange(null);
20 this._useWebGL.addEventListener("change", this, false);
21 }
22 },
23
24 handleChange: {
25 value: function(event) {
26 if(this._useWebGL.checked)
27 {
28 this._use3D = true;
29 this._materialsContainer.style["display"] = "";
30 }
31 else
32 {
33 this._use3D = false;
34 this._materialsContainer.style["display"] = "none";
35 }
36 }
37 }
38}); \ No newline at end of file