diff options
Diffstat (limited to 'js/panels/Resizer.js')
-rwxr-xr-x | js/panels/Resizer.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/js/panels/Resizer.js b/js/panels/Resizer.js index 5d608199..ebef1933 100755 --- a/js/panels/Resizer.js +++ b/js/panels/Resizer.js | |||
@@ -71,7 +71,7 @@ exports.Resizer = Montage.create(Component, { | |||
71 | _isInversed: { | 71 | _isInversed: { |
72 | value: false | 72 | value: false |
73 | }, | 73 | }, |
74 | 74 | ||
75 | isInversed: { | 75 | isInversed: { |
76 | get: function() { | 76 | get: function() { |
77 | return this._isInversed; | 77 | return this._isInversed; |
@@ -81,11 +81,11 @@ exports.Resizer = Montage.create(Component, { | |||
81 | }, | 81 | }, |
82 | serializable: true | 82 | serializable: true |
83 | }, | 83 | }, |
84 | 84 | ||
85 | _isVertical: { | 85 | _isVertical: { |
86 | value: null | 86 | value: null |
87 | }, | 87 | }, |
88 | 88 | ||
89 | isVertical: { | 89 | isVertical: { |
90 | get: function() { | 90 | get: function() { |
91 | return this._isVertical; | 91 | return this._isVertical; |
@@ -112,7 +112,7 @@ exports.Resizer = Montage.create(Component, { | |||
112 | _panel : { | 112 | _panel : { |
113 | value: null | 113 | value: null |
114 | }, | 114 | }, |
115 | 115 | ||
116 | panel : { | 116 | panel : { |
117 | get: function() { | 117 | get: function() { |
118 | return this._panel; | 118 | return this._panel; |
@@ -127,10 +127,10 @@ exports.Resizer = Montage.create(Component, { | |||
127 | height: { | 127 | height: { |
128 | value: null | 128 | value: null |
129 | }, | 129 | }, |
130 | 130 | ||
131 | handleClick: { | 131 | handleClick: { |
132 | value: function() { | 132 | value: function() { |
133 | 133 | ||
134 | } | 134 | } |
135 | }, | 135 | }, |
136 | 136 | ||
@@ -147,14 +147,14 @@ exports.Resizer = Montage.create(Component, { | |||
147 | this._startPosition = e.x; | 147 | this._startPosition = e.x; |
148 | this._initDimension = this.panel.offsetWidth; | 148 | this._initDimension = this.panel.offsetWidth; |
149 | } | 149 | } |
150 | 150 | ||
151 | this.panel.classList.add("disableTransition"); | 151 | this.panel.classList.add("disableTransition"); |
152 | window.addEventListener("mousemove", this, false); | 152 | window.addEventListener("mousemove", this, false); |
153 | window.addEventListener("mouseup", this, false); | 153 | window.addEventListener("mouseup", this, false); |
154 | NJevent("panelResizedStart", this) | 154 | NJevent("panelResizedStart", this) |
155 | } | 155 | } |
156 | }, | 156 | }, |
157 | 157 | ||
158 | handleDblclick: { | 158 | handleDblclick: { |
159 | value : function() { | 159 | value : function() { |
160 | this.panel.addEventListener("webkitTransitionEnd", this, false); | 160 | this.panel.addEventListener("webkitTransitionEnd", this, false); |
@@ -179,7 +179,7 @@ exports.Resizer = Montage.create(Component, { | |||
179 | 179 | ||
180 | } | 180 | } |
181 | }, | 181 | }, |
182 | 182 | ||
183 | prepareForDraw: { | 183 | prepareForDraw: { |
184 | value: function() { | 184 | value: function() { |
185 | if(this.willSave) { | 185 | if(this.willSave) { |
@@ -202,13 +202,13 @@ exports.Resizer = Montage.create(Component, { | |||
202 | this.element.addEventListener("dblclick", this, false); | 202 | this.element.addEventListener("dblclick", this, false); |
203 | } | 203 | } |
204 | }, | 204 | }, |
205 | 205 | ||
206 | draw: { | 206 | draw: { |
207 | value: function() { | 207 | value: function() { |
208 | 208 | ||
209 | } | 209 | } |
210 | }, | 210 | }, |
211 | 211 | ||
212 | handleMouseup: { | 212 | handleMouseup: { |
213 | value: function(e) { | 213 | value: function(e) { |
214 | e.preventDefault(); | 214 | e.preventDefault(); |
@@ -231,7 +231,7 @@ exports.Resizer = Montage.create(Component, { | |||
231 | NJevent("panelResizedEnd", this) | 231 | NJevent("panelResizedEnd", this) |
232 | } | 232 | } |
233 | }, | 233 | }, |
234 | 234 | ||
235 | handleMousemove: { | 235 | handleMousemove: { |
236 | value: function(e) { | 236 | value: function(e) { |
237 | if(this.isVertical) { | 237 | if(this.isVertical) { |
@@ -246,11 +246,11 @@ exports.Resizer = Montage.create(Component, { | |||
246 | } | 246 | } |
247 | this.panel.style.width = this.value + "px"; | 247 | this.panel.style.width = this.value + "px"; |
248 | } | 248 | } |
249 | 249 | ||
250 | if(this.redrawStage) { | 250 | if(this.redrawStage) { |
251 | this.application.ninja.stage.resizeCanvases = true; | 251 | this.application.ninja.stage.resizeCanvases = true; |
252 | } | 252 | } |
253 | 253 | ||
254 | NJevent("panelResizing", this); | 254 | NJevent("panelResizing", this); |
255 | } | 255 | } |
256 | } | 256 | } |