aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/line-properties.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/tools-properties/line-properties.reel')
-rw-r--r--js/components/tools-properties/line-properties.reel/line-properties.css6
-rw-r--r--js/components/tools-properties/line-properties.reel/line-properties.html30
-rw-r--r--js/components/tools-properties/line-properties.reel/line-properties.js50
3 files changed, 86 insertions, 0 deletions
diff --git a/js/components/tools-properties/line-properties.reel/line-properties.css b/js/components/tools-properties/line-properties.reel/line-properties.css
new file mode 100644
index 00000000..7f1b0f7f
--- /dev/null
+++ b/js/components/tools-properties/line-properties.reel/line-properties.css
@@ -0,0 +1,6 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No 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
diff --git a/js/components/tools-properties/line-properties.reel/line-properties.html b/js/components/tools-properties/line-properties.reel/line-properties.html
new file mode 100644
index 00000000..1ec14cca
--- /dev/null
+++ b/js/components/tools-properties/line-properties.reel/line-properties.html
@@ -0,0 +1,30 @@
1<!DOCTYPE HTML>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6 </copyright> -->
7<html>
8 <head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link rel="stylesheet" type="text/css" href="line-properties.css">
11
12 <script type="text/montage-serialization">
13 {
14 "owner": {
15 "module": "js/components/tools-properties/line-properties.reel",
16 "name": "LineProperties",
17 "properties": {
18 "element": {"#": "lineProperties"}
19 }
20 }
21 }
22 </script>
23
24 </head>
25
26 <body>
27 <div id="lineProperties"></div>
28 </body>
29
30</html> \ No newline at end of file
diff --git a/js/components/tools-properties/line-properties.reel/line-properties.js b/js/components/tools-properties/line-properties.reel/line-properties.js
new file mode 100644
index 00000000..694e4326
--- /dev/null
+++ b/js/components/tools-properties/line-properties.reel/line-properties.js
@@ -0,0 +1,50 @@
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 ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
9
10exports.LineProperties = Montage.create(ToolProperties, {
11
12 base: { value: null },
13
14 _subPrepare: {
15 value: function() {
16 //this.divElement.addEventListener("click", this, false);
17 }
18 },
19
20 handleClick: {
21 value: function(event) {
22 // this.selectedElement = event._event.target.id;
23 }
24 },
25
26 // Public API
27 use3D: {
28 get: function() { return this.base._use3D; }
29 },
30
31 strokeSize: {
32 get: function() { return this.base._strokeSize; }
33 },
34
35 strokeStyle : {
36 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].text; }
37 },
38
39 strokeStyleIndex : {
40 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].value; }
41 },
42
43 strokeMaterial: {
44 get: function() { return this.base._strokeMaterial.options[this.base._strokeMaterial.value].value; }
45 },
46
47 fillMaterial: {
48 get: function() { return this.base._fillMaterial.options[this.base._fillMaterial.value].value; }
49 }
50}); \ No newline at end of file