diff options
Diffstat (limited to 'node_modules/montage/ui/composer')
-rw-r--r-- | node_modules/montage/ui/composer/composer.js | 9 | ||||
-rw-r--r-- | node_modules/montage/ui/composer/translate-composer.js | 99 |
2 files changed, 46 insertions, 62 deletions
diff --git a/node_modules/montage/ui/composer/composer.js b/node_modules/montage/ui/composer/composer.js index 7c30b259..ccbf8dbb 100644 --- a/node_modules/montage/ui/composer/composer.js +++ b/node_modules/montage/ui/composer/composer.js | |||
@@ -30,7 +30,8 @@ exports.Composer = Montage.create(Montage, /** @lends module:montage/ui/composer | |||
30 | }, | 30 | }, |
31 | set: function(component) { | 31 | set: function(component) { |
32 | this._component = component; | 32 | this._component = component; |
33 | } | 33 | }, |
34 | serializable: true | ||
34 | }, | 35 | }, |
35 | 36 | ||
36 | _element: { | 37 | _element: { |
@@ -48,7 +49,8 @@ exports.Composer = Montage.create(Montage, /** @lends module:montage/ui/composer | |||
48 | }, | 49 | }, |
49 | set: function(element) { | 50 | set: function(element) { |
50 | this._element = element; | 51 | this._element = element; |
51 | } | 52 | }, |
53 | serializable: true | ||
52 | }, | 54 | }, |
53 | 55 | ||
54 | 56 | ||
@@ -61,7 +63,8 @@ exports.Composer = Montage.create(Montage, /** @lends module:montage/ui/composer | |||
61 | * @default false | 63 | * @default false |
62 | */ | 64 | */ |
63 | lazyLoad: { | 65 | lazyLoad: { |
64 | value: false | 66 | value: false, |
67 | serializable: true | ||
65 | }, | 68 | }, |
66 | 69 | ||
67 | _needsFrame: { | 70 | _needsFrame: { |
diff --git a/node_modules/montage/ui/composer/translate-composer.js b/node_modules/montage/ui/composer/translate-composer.js index 13e01207..78459b9d 100644 --- a/node_modules/montage/ui/composer/translate-composer.js +++ b/node_modules/montage/ui/composer/translate-composer.js | |||
@@ -40,12 +40,10 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
40 | }, | 40 | }, |
41 | 41 | ||
42 | _externalUpdate: { | 42 | _externalUpdate: { |
43 | enumerable: false, | ||
44 | value: true | 43 | value: true |
45 | }, | 44 | }, |
46 | 45 | ||
47 | isAnimating: { | 46 | isAnimating: { |
48 | enumerable: false, | ||
49 | value: false | 47 | value: false |
50 | }, | 48 | }, |
51 | 49 | ||
@@ -59,7 +57,6 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
59 | }, | 57 | }, |
60 | 58 | ||
61 | _pointerSpeedMultiplier: { | 59 | _pointerSpeedMultiplier: { |
62 | enumerable: false, | ||
63 | value: 1 | 60 | value: 1 |
64 | }, | 61 | }, |
65 | 62 | ||
@@ -74,7 +71,8 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
74 | }, | 71 | }, |
75 | set: function(value) { | 72 | set: function(value) { |
76 | this._pointerSpeedMultiplier = value; | 73 | this._pointerSpeedMultiplier = value; |
77 | } | 74 | }, |
75 | serializable: true | ||
78 | }, | 76 | }, |
79 | 77 | ||
80 | pointerStartEventPosition: { | 78 | pointerStartEventPosition: { |
@@ -110,11 +108,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
110 | this.translateX = this._translateX; | 108 | this.translateX = this._translateX; |
111 | this.translateY = this._translateY; | 109 | this.translateY = this._translateY; |
112 | } | 110 | } |
113 | } | 111 | }, |
112 | serializable: true | ||
114 | }, | 113 | }, |
115 | 114 | ||
116 | _translateX: { | 115 | _translateX: { |
117 | enumerable: false, | ||
118 | value: 0 | 116 | value: 0 |
119 | }, | 117 | }, |
120 | /** | 118 | /** |
@@ -145,11 +143,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
145 | } | 143 | } |
146 | this._translateX = tmp; | 144 | this._translateX = tmp; |
147 | } | 145 | } |
148 | } | 146 | }, |
147 | serializable: true | ||
149 | }, | 148 | }, |
150 | 149 | ||
151 | _translateY: { | 150 | _translateY: { |
152 | enumerable: false, | ||
153 | value: 0 | 151 | value: 0 |
154 | }, | 152 | }, |
155 | /** | 153 | /** |
@@ -180,11 +178,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
180 | } | 178 | } |
181 | this._translateY = tmp; | 179 | this._translateY = tmp; |
182 | } | 180 | } |
183 | } | 181 | }, |
182 | serializable: true | ||
184 | }, | 183 | }, |
185 | 184 | ||
186 | _minTranslateX: { | 185 | _minTranslateX: { |
187 | enumerable: false, | ||
188 | value: null | 186 | value: null |
189 | }, | 187 | }, |
190 | /** | 188 | /** |
@@ -208,10 +206,10 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
208 | } | 206 | } |
209 | this._minTranslateX = value; | 207 | this._minTranslateX = value; |
210 | } | 208 | } |
211 | } | 209 | }, |
210 | serializable: true | ||
212 | }, | 211 | }, |
213 | _maxTranslateX: { | 212 | _maxTranslateX: { |
214 | enumerable: false, | ||
215 | value: null | 213 | value: null |
216 | }, | 214 | }, |
217 | /** | 215 | /** |
@@ -235,11 +233,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
235 | } | 233 | } |
236 | this._maxTranslateX = value; | 234 | this._maxTranslateX = value; |
237 | } | 235 | } |
238 | } | 236 | }, |
237 | serializable: true | ||
239 | }, | 238 | }, |
240 | 239 | ||
241 | _minTranslateY: { | 240 | _minTranslateY: { |
242 | enumerable: false, | ||
243 | value: null | 241 | value: null |
244 | }, | 242 | }, |
245 | /** | 243 | /** |
@@ -263,10 +261,10 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
263 | } | 261 | } |
264 | this._minTranslateY = value; | 262 | this._minTranslateY = value; |
265 | } | 263 | } |
266 | } | 264 | }, |
265 | serializable: true | ||
267 | }, | 266 | }, |
268 | _maxTranslateY: { | 267 | _maxTranslateY: { |
269 | enumerable: false, | ||
270 | value: null | 268 | value: null |
271 | }, | 269 | }, |
272 | /** | 270 | /** |
@@ -290,11 +288,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
290 | } | 288 | } |
291 | this._maxTranslateY = value; | 289 | this._maxTranslateY = value; |
292 | } | 290 | } |
293 | } | 291 | }, |
292 | serializable: true | ||
294 | }, | 293 | }, |
295 | 294 | ||
296 | _axis: { | 295 | _axis: { |
297 | enumerable: false, | ||
298 | value: "both" | 296 | value: "both" |
299 | }, | 297 | }, |
300 | /** | 298 | /** |
@@ -320,7 +318,8 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
320 | this._axis = "both"; | 318 | this._axis = "both"; |
321 | break; | 319 | break; |
322 | } | 320 | } |
323 | } | 321 | }, |
322 | serializable: true | ||
324 | }, | 323 | }, |
325 | 324 | ||
326 | /** | 325 | /** |
@@ -342,11 +341,11 @@ var TranslateComposer = exports.TranslateComposer = Montage.create(Composer,/** | |||
342 | set: function(value) { | 341 | set: function(value) { |
343 | this.invertXAxis = value; | 342 | this.invertXAxis = value; |
344 | this.invertYAxis = value; | 343 | this.invertYAxis = value; |
345 | } | 344 | }, |
345 | serializable: true | ||
346 | }, | 346 | }, |
347 | _invertXAxis: { | 347 | _invertXAxis: { |
348 | value: false, |