aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/tools-properties')
-rwxr-xr-xjs/components/tools-properties/pen-properties.reel/pen-properties.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/js/components/tools-properties/pen-properties.reel/pen-properties.js b/js/components/tools-properties/pen-properties.reel/pen-properties.js
index 2bb4d3e9..5ae03adc 100755
--- a/js/components/tools-properties/pen-properties.reel/pen-properties.js
+++ b/js/components/tools-properties/pen-properties.reel/pen-properties.js
@@ -9,6 +9,17 @@ var ToolProperties = require("js/components/tools-properties/tool-properties").T
9 9
10var PenProperties = exports.PenProperties = Montage.create(ToolProperties, { 10var PenProperties = exports.PenProperties = Montage.create(ToolProperties, {
11 addedColorChips: { value: false }, 11 addedColorChips: { value: false },
12 _penToolRadio: { value: null, enumerable: false },
13 _penPlusRadio: { value: null, enumerable: false },
14 _penMinusRadio: { value: null, enumerable: false },
15
16 _subPrepare: {
17 value: function() {
18 this._penToolRadio.addEventListener("click", this, false);
19 this._penPlusRadio.addEventListener("click", this, false);
20 this._penMinusRadio.addEventListener("click", this, false);
21 }
22 },
12 23
13 _fillColorCtrl: { 24 _fillColorCtrl: {
14 value: null, 25 value: null,
@@ -65,6 +76,22 @@ var PenProperties = exports.PenProperties = Montage.create(ToolProperties, {
65 } 76 }
66 }, 77 },
67 78
79 _selectedSubtool: {
80 value: "pen", enumerable: false
81 },
82
83 selectedSubtool: {
84 get: function() { return this._selectedSubtool;},
85 set: function(value) { this._selectedSubtool = value; }
86 },
87
88 handleClick: {
89 value: function(event) {
90 this._selectedSubtool = event._event.target.value;
91 NJevent("penSubToolChange");
92 }
93 },
94
68 draw: { 95 draw: {
69 enumerable: false, 96 enumerable: false,
70 value: function () { 97 value: function () {