@lightningjs/blits 1.18.1 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,164 +21,181 @@ import fps_sprite from '../../public/assets/fps_sprite.base64.js'
21
21
 
22
22
  export default () =>
23
23
  Component('FPScounter', {
24
- /* eslint-disable no-unused-vars */
25
- code: { render: function anonymous(parent,component,context,components,effect,getRaw
26
- ) {
27
- const elms = []
28
- let componentType
29
- const rootComponent = component
30
- let propData
31
- let slotComponent
32
- let inSlot = false
33
- let slotChildCounter = 0
34
- const elementConfig0 = {}
35
-
36
- elms[0] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
37
-
38
- elms[0].populate(elementConfig0)
39
-
40
- if(inSlot === true) {
41
- slotChildCounter -= 1
42
- }
43
-
44
- parent = elms[0]
45
- const elementConfig1 = {}
46
-
47
- elms[1] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
48
-
49
- elementConfig1['y'] = 15
50
- elementConfig1['x'] = 20
51
- elms[1].populate(elementConfig1)
52
-
53
- if(inSlot === true) {
54
- slotChildCounter -= 1
55
- }
56
-
57
- parent = elms[1]
58
- const elementConfig2 = {}
59
-
60
- elms[2] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
61
-
62
- elms[2].populate(elementConfig2)
63
-
64
- if(inSlot === true) {
65
- slotChildCounter -= 1
66
- }
67
-
68
-
69
- const cmp3 =
70
- (context.components && context.components['Sprite']) || components['Sprite']
71
-
72
- parent = elms[2]
73
- const elementConfig3 = {}
74
-
75
- elms[3] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
76
-
77
- elementConfig3['image'] = component.image
78
- elementConfig3['w'] = 43
79
- elementConfig3['h'] = 25
80
- elementConfig3['map'] = component.sprite
81
- elementConfig3['frame'] = "fps"
82
-
83
- const skip3 = []
84
- if(typeof cmp3 !== 'undefined') {
85
- for(let key in cmp3.config.props) {
86
- delete elementConfig3[cmp3.config.props[key]]
87
- skip3.push(cmp3.config.props[key])
88
- }
89
- }
90
-
91
- elms[3].populate(elementConfig3)
92
-
93
- if(inSlot === true) {
94
- slotChildCounter -= 1
95
- }
96
-
97
- parent = elms[3]
98
- const props4 = {}
99
- props4['image'] = component.image
100
- props4['w'] = 43
101
- props4['h'] = 25
102
- props4['map'] = component.sprite
103
- props4['frame'] = "fps"
104
-
105
- componentType = props4['is'] || 'Sprite'
106
-
107
- let component4
108
- if(typeof componentType === 'string') {
109
- component4 = context.components && context.components[componentType] || components[componentType]
110
- if(!component4) {
111
- throw new Error('Component "Sprite" not found')
112
- }
113
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
114
- component4 = componentType
115
- }
116
-
117
- elms[4] = component4.call(null, {props: props4}, elms[3], component)
118
-
119
- if (elms[4][Symbol.for('slots')][0]) {
120
- parent = elms[4][Symbol.for('slots')][0]
121
- slotComponent = elms[4]
122
- inSlot = true
123
- } else {
124
- parent = elms[4][Symbol.for('children')][0]
125
- }
126
-
127
-
128
- if (inSlot === true && slotChildCounter === 0) {
129
- inSlot = false
130
- }
131
-
132
- parent = elms[2]
133
- const elementConfig5 = {}
134
-
135
- elms[5] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
136
-
137
- elementConfig5['x'] = 58
138
- elementConfig5['y'] = 2
139
- elms[5].populate(elementConfig5)
140
-
141
- if(inSlot === true) {
142
- slotChildCounter -= 1
143
- }
144
-
145
-
146
- const cmp6 =
147
- (context.components && context.components['Sprite']) || components['Sprite']
148
-
149
- parent = elms[5]
150
- const elementConfig6 = {}
151
-
152
- elms[6] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
153
-
154
- elementConfig6['image'] = component.image
155
- elementConfig6['x'] = 0
156
- elementConfig6['h'] = 20
157
- elementConfig6['w'] = 20
158
- elementConfig6['map'] = component.sprite
159
- elementConfig6['frame'] = component.fps[0]
160
-
161
- const skip6 = []
162
- if(typeof cmp6 !== 'undefined') {
163
- for(let key in cmp6.config.props) {
164
- delete elementConfig6[cmp6.config.props[key]]
165
- skip6.push(cmp6.config.props[key])
166
- }
167
- }
168
-
169
- elms[6].populate(elementConfig6)
170
-
171
- if(inSlot === true) {
172
- slotChildCounter -= 1
173
- }
174
-
175
- parent = elms[6]
176
- const props7 = {}
177
- props7['image'] = component.image
178
- props7['x'] = 0
179
- props7['h'] = 20
180
- props7['w'] = 20
181
- props7['map'] = component.sprite
24
+ /* eslint-disable no-unused-vars */
25
+ code: {
26
+ render: function anonymous(parent, component, context, components, effect, getRaw) {
27
+ const elms = []
28
+ let componentType
29
+ const rootComponent = component
30
+ let propData
31
+ let slotComponent
32
+ let inSlot = false
33
+ let slotChildCounter = 0
34
+ const elementConfig0 = {}
35
+
36
+ elms[0] = this.element(
37
+ { parent: parent || 'root' },
38
+ inSlot === true ? slotComponent : component
39
+ )
40
+
41
+ elms[0].populate(elementConfig0)
42
+
43
+ if (inSlot === true) {
44
+ slotChildCounter -= 1
45
+ }
46
+
47
+ parent = elms[0]
48
+ const elementConfig1 = {}
49
+
50
+ elms[1] = this.element(
51
+ { parent: parent || 'root' },
52
+ inSlot === true ? slotComponent : component
53
+ )
54
+
55
+ elementConfig1['y'] = 15
56
+ elementConfig1['x'] = 20
57
+ elms[1].populate(elementConfig1)
58
+
59
+ if (inSlot === true) {
60
+ slotChildCounter -= 1
61
+ }
62
+
63
+ parent = elms[1]
64
+ const elementConfig2 = {}
65
+
66
+ elms[2] = this.element(
67
+ { parent: parent || 'root' },
68
+ inSlot === true ? slotComponent : component
69
+ )
70
+
71
+ elms[2].populate(elementConfig2)
72
+
73
+ if (inSlot === true) {
74
+ slotChildCounter -= 1
75
+ }
76
+
77
+ const cmp3 = (context.components && context.components['Sprite']) || components['Sprite']
78
+
79
+ parent = elms[2]
80
+ const elementConfig3 = {}
81
+
82
+ elms[3] = this.element(
83
+ { parent: parent || 'root' },
84
+ inSlot === true ? slotComponent : component
85
+ )
86
+
87
+ elementConfig3['image'] = component.image
88
+ elementConfig3['w'] = 43
89
+ elementConfig3['h'] = 25
90
+ elementConfig3['map'] = component.sprite
91
+ elementConfig3['frame'] = 'fps'
92
+
93
+ const skip3 = []
94
+ if (typeof cmp3 !== 'undefined') {
95
+ for (let key in cmp3.config.props) {
96
+ delete elementConfig3[cmp3.config.props[key]]
97
+ skip3.push(cmp3.config.props[key])
98
+ }
99
+ }
100
+
101
+ elms[3].populate(elementConfig3)
102
+
103
+ if (inSlot === true) {
104
+ slotChildCounter -= 1
105
+ }
106
+
107
+ parent = elms[3]
108
+ const props4 = {}
109
+ props4['image'] = component.image
110
+ props4['w'] = 43
111
+ props4['h'] = 25
112
+ props4['map'] = component.sprite
113
+ props4['frame'] = 'fps'
114
+
115
+ componentType = props4['is'] || 'Sprite'
116
+
117
+ let component4
118
+ if (typeof componentType === 'string') {
119
+ component4 =
120
+ (context.components && context.components[componentType]) || components[componentType]
121
+ if (!component4) {
122
+ throw new Error('Component "Sprite" not found')
123
+ }
124
+ } else if (
125
+ typeof componentType === 'function' &&
126
+ componentType[Symbol.for('isComponent')] === true
127
+ ) {
128
+ component4 = componentType
129
+ }
130
+
131
+ elms[4] = component4.call(null, { props: props4 }, elms[3], component)
132
+
133
+ if (elms[4][Symbol.for('slots')][0]) {
134
+ parent = elms[4][Symbol.for('slots')][0]
135
+ slotComponent = elms[4]
136
+ inSlot = true
137
+ } else {
138
+ parent = elms[4][Symbol.for('children')][0]
139
+ }
140
+
141
+ if (inSlot === true && slotChildCounter === 0) {
142
+ inSlot = false
143
+ }
144
+
145
+ parent = elms[2]
146
+ const elementConfig5 = {}
147
+
148
+ elms[5] = this.element(
149
+ { parent: parent || 'root' },
150
+ inSlot === true ? slotComponent : component
151
+ )
152
+
153
+ elementConfig5['x'] = 58
154
+ elementConfig5['y'] = 2
155
+ elms[5].populate(elementConfig5)
156
+
157
+ if (inSlot === true) {
158
+ slotChildCounter -= 1
159
+ }
160
+
161
+ const cmp6 = (context.components && context.components['Sprite']) || components['Sprite']
162
+
163
+ parent = elms[5]
164
+ const elementConfig6 = {}
165
+
166
+ elms[6] = this.element(
167
+ { parent: parent || 'root' },
168
+ inSlot === true ? slotComponent : component
169
+ )
170
+
171
+ elementConfig6['image'] = component.image
172
+ elementConfig6['x'] = 0
173
+ elementConfig6['h'] = 20
174
+ elementConfig6['w'] = 20
175
+ elementConfig6['map'] = component.sprite
176
+ elementConfig6['frame'] = component.fps[0]
177
+
178
+ const skip6 = []
179
+ if (typeof cmp6 !== 'undefined') {
180
+ for (let key in cmp6.config.props) {
181
+ delete elementConfig6[cmp6.config.props[key]]
182
+ skip6.push(cmp6.config.props[key])
183
+ }
184
+ }
185
+
186
+ elms[6].populate(elementConfig6)
187
+
188
+ if (inSlot === true) {
189
+ slotChildCounter -= 1
190
+ }
191
+
192
+ parent = elms[6]
193
+ const props7 = {}
194
+ props7['image'] = component.image
195
+ props7['x'] = 0
196
+ props7['h'] = 20
197
+ props7['w'] = 20
198
+ props7['map'] = component.sprite
182
199
 
183
200
  propData = component.fps[0]
184
201
  if (Array.isArray(propData) === true) {
@@ -186,70 +203,74 @@ props7['map'] = component.sprite
186
203
  }
187
204
  props7['frame'] = propData
188
205
 
189
- componentType = props7['is'] || 'Sprite'
206
+ componentType = props7['is'] || 'Sprite'
207
+
208
+ let component7
209
+ if (typeof componentType === 'string') {
210
+ component7 =
211
+ (context.components && context.components[componentType]) || components[componentType]
212
+ if (!component7) {
213
+ throw new Error('Component "Sprite" not found')
214
+ }
215
+ } else if (
216
+ typeof componentType === 'function' &&
217
+ componentType[Symbol.for('isComponent')] === true
218
+ ) {
219
+ component7 = componentType
220
+ }
190
221
 
191
- let component7
192
- if(typeof componentType === 'string') {
193
- component7 = context.components && context.components[componentType] || components[componentType]
194
- if(!component7) {
195
- throw new Error('Component "Sprite" not found')
196
- }
197
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
198
- component7 = componentType
199
- }
200
-
201
- elms[7] = component7.call(null, {props: props7}, elms[6], component)
202
-
203
- if (elms[7][Symbol.for('slots')][0]) {
204
- parent = elms[7][Symbol.for('slots')][0]
205
- slotComponent = elms[7]
206
- inSlot = true
207
- } else {
208
- parent = elms[7][Symbol.for('children')][0]
209
- }
210
-
211
-
212
- if (inSlot === true && slotChildCounter === 0) {
213
- inSlot = false
214
- }
215
-
216
-
217
- const cmp8 =
218
- (context.components && context.components['Sprite']) || components['Sprite']
219
-
220
- parent = elms[5]
221
- const elementConfig8 = {}
222
-
223
- elms[8] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
224
-
225
- elementConfig8['image'] = component.image
226
- elementConfig8['x'] = 18
227
- elementConfig8['h'] = 20
228
- elementConfig8['w'] = 20
229
- elementConfig8['map'] = component.sprite
230
- elementConfig8['frame'] = component.fps[1]
231
-
232
- const skip8 = []
233
- if(typeof cmp8 !== 'undefined') {
234
- for(let key in cmp8.config.props) {
235
- delete elementConfig8[cmp8.config.props[key]]
236
- skip8.push(cmp8.config.props[key])
237
- }
238
- }
239
-
240
- elms[8].populate(elementConfig8)
241
-
242
- if(inSlot === true) {
243
- slotChildCounter -= 1
244
- }
245
-
246
- parent = elms[8]
247
- const props9 = {}
248
- props9['image'] = component.image
249
- props9['x'] = 18
250
- props9['h'] = 20
251
- props9['w'] = 20
252
- props9['map'] = component.sprite
222
+ elms[7] = component7.call(null, { props: props7 }, elms[6], component)
223
+
224
+ if (elms[7][Symbol.for('slots')][0]) {
225
+ parent = elms[7][Symbol.for('slots')][0]
226
+ slotComponent = elms[7]
227
+ inSlot = true
228
+ } else {
229
+ parent = elms[7][Symbol.for('children')][0]
230
+ }
231
+
232
+ if (inSlot === true && slotChildCounter === 0) {
233
+ inSlot = false
234
+ }
235
+
236
+ const cmp8 = (context.components && context.components['Sprite']) || components['Sprite']
237
+
238
+ parent = elms[5]
239
+ const elementConfig8 = {}
240
+
241
+ elms[8] = this.element(
242
+ { parent: parent || 'root' },
243
+ inSlot === true ? slotComponent : component
244
+ )
245
+
246
+ elementConfig8['image'] = component.image
247
+ elementConfig8['x'] = 18
248
+ elementConfig8['h'] = 20
249
+ elementConfig8['w'] = 20
250
+ elementConfig8['map'] = component.sprite
251
+ elementConfig8['frame'] = component.fps[1]
252
+
253
+ const skip8 = []
254
+ if (typeof cmp8 !== 'undefined') {
255
+ for (let key in cmp8.config.props) {
256
+ delete elementConfig8[cmp8.config.props[key]]
257
+ skip8.push(cmp8.config.props[key])
258
+ }
259
+ }
260
+
261
+ elms[8].populate(elementConfig8)
262
+
263
+ if (inSlot === true) {
264
+ slotChildCounter -= 1
265
+ }
266
+
267
+ parent = elms[8]
268
+ const props9 = {}
269
+ props9['image'] = component.image
270
+ props9['x'] = 18
271
+ props9['h'] = 20
272
+ props9['w'] = 20
273
+ props9['map'] = component.sprite
253
274
 
254
275
  propData = component.fps[1]
255
276
  if (Array.isArray(propData) === true) {
@@ -257,70 +278,74 @@ props9['map'] = component.sprite
257
278
  }
258
279
  props9['frame'] = propData
259
280
 
260
- componentType = props9['is'] || 'Sprite'
281
+ componentType = props9['is'] || 'Sprite'
282
+
283
+ let component9
284
+ if (typeof componentType === 'string') {
285
+ component9 =
286
+ (context.components && context.components[componentType]) || components[componentType]
287
+ if (!component9) {
288
+ throw new Error('Component "Sprite" not found')
289
+ }
290
+ } else if (
291
+ typeof componentType === 'function' &&
292
+ componentType[Symbol.for('isComponent')] === true
293
+ ) {
294
+ component9 = componentType
295
+ }
261
296
 
262
- let component9
263
- if(typeof componentType === 'string') {
264
- component9 = context.components && context.components[componentType] || components[componentType]
265
- if(!component9) {
266
- throw new Error('Component "Sprite" not found')
267
- }
268
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
269
- component9 = componentType
270
- }
271
-
272
- elms[9] = component9.call(null, {props: props9}, elms[8], component)
273
-
274
- if (elms[9][Symbol.for('slots')][0]) {
275
- parent = elms[9][Symbol.for('slots')][0]
276
- slotComponent = elms[9]
277
- inSlot = true
278
- } else {
279
- parent = elms[9][Symbol.for('children')][0]
280
- }
281
-
282
-
283
- if (inSlot === true && slotChildCounter === 0) {
284
- inSlot = false
285
- }
286
-
287
-
288
- const cmp10 =
289
- (context.components && context.components['Sprite']) || components['Sprite']
290
-
291
- parent = elms[5]
292
- const elementConfig10 = {}
293
-
294
- elms[10] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
295
-
296
- elementConfig10['image'] = component.image
297
- elementConfig10['x'] = 36
298
- elementConfig10['h'] = 20
299
- elementConfig10['w'] = 20
300
- elementConfig10['map'] = component.sprite
301
- elementConfig10['frame'] = component.fps[2]
302
-
303
- const skip10 = []
304
- if(typeof cmp10 !== 'undefined') {
305
- for(let key in cmp10.config.props) {
306
- delete elementConfig10[cmp10.config.props[key]]
307
- skip10.push(cmp10.config.props[key])
308
- }
309
- }
310
-
311
- elms[10].populate(elementConfig10)
312
-
313
- if(inSlot === true) {
314
- slotChildCounter -= 1
315
- }
316
-
317
- parent = elms[10]
318
- const props11 = {}
319
- props11['image'] = component.image
320
- props11['x'] = 36
321
- props11['h'] = 20
322
- props11['w'] = 20
323
- props11['map'] = component.sprite
297
+ elms[9] = component9.call(null, { props: props9 }, elms[8], component)
298
+
299
+ if (elms[9][Symbol.for('slots')][0]) {
300
+ parent = elms[9][Symbol.for('slots')][0]
301
+ slotComponent = elms[9]
302
+ inSlot = true
303
+ } else {
304
+ parent = elms[9][Symbol.for('children')][0]
305
+ }
306
+
307
+ if (inSlot === true && slotChildCounter === 0) {
308
+ inSlot = false
309
+ }
310
+
311
+ const cmp10 = (context.components && context.components['Sprite']) || components['Sprite']
312
+
313
+ parent = elms[5]
314
+ const elementConfig10 = {}
315
+
316
+ elms[10] = this.element(
317
+ { parent: parent || 'root' },
318
+ inSlot === true ? slotComponent : component
319
+ )
320
+
321
+ elementConfig10['image'] = component.image
322
+ elementConfig10['x'] = 36
323
+ elementConfig10['h'] = 20
324
+ elementConfig10['w'] = 20
325
+ elementConfig10['map'] = component.sprite
326
+ elementConfig10['frame'] = component.fps[2]
327
+
328
+ const skip10 = []
329
+ if (typeof cmp10 !== 'undefined') {
330
+ for (let key in cmp10.config.props) {
331
+ delete elementConfig10[cmp10.config.props[key]]
332
+ skip10.push(cmp10.config.props[key])
333
+ }
334
+ }
335
+
336
+ elms[10].populate(elementConfig10)
337
+
338
+ if (inSlot === true) {
339
+ slotChildCounter -= 1
340
+ }
341
+
342
+ parent = elms[10]
343
+ const props11 = {}
344
+ props11['image'] = component.image
345
+ props11['x'] = 36
346
+ props11['h'] = 20
347
+ props11['w'] = 20
348
+ props11['map'] = component.sprite
324
349
 
325
350
  propData = component.fps[2]
326
351
  if (Array.isArray(propData) === true) {
@@ -328,161 +353,175 @@ props11['map'] = component.sprite
328
353
  }
329
354
  props11['frame'] = propData
330
355
 
331
- componentType = props11['is'] || 'Sprite'
356
+ componentType = props11['is'] || 'Sprite'
357
+
358
+ let component11
359
+ if (typeof componentType === 'string') {
360
+ component11 =
361
+ (context.components && context.components[componentType]) || components[componentType]
362
+ if (!component11) {
363
+ throw new Error('Component "Sprite" not found')
364
+ }
365
+ } else if (
366
+ typeof componentType === 'function' &&
367
+ componentType[Symbol.for('isComponent')] === true
368
+ ) {
369
+ component11 = componentType
370
+ }
332
371
 
333
- let component11
334
- if(typeof componentType === 'string') {
335
- component11 = context.components && context.components[componentType] || components[componentType]
336
- if(!component11) {
337
- throw new Error('Component "Sprite" not found')
338
- }
339
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
340
- component11 = componentType
341
- }
342
-
343
- elms[11] = component11.call(null, {props: props11}, elms[10], component)
344
-
345
- if (elms[11][Symbol.for('slots')][0]) {
346
- parent = elms[11][Symbol.for('slots')][0]
347
- slotComponent = elms[11]
348
- inSlot = true
349
- } else {
350
- parent = elms[11][Symbol.for('children')][0]
351
- }
352
-
353
-
354
- if (inSlot === true && slotChildCounter === 0) {
355
- inSlot = false
356
- }
357
-
358
- parent = elms[1]
359
- const elementConfig12 = {}
360
-
361
- elms[12] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
362
-
363
- elementConfig12['x'] = 150
364
- elms[12].populate(elementConfig12)
365
-
366
- if(inSlot === true) {
367
- slotChildCounter -= 1
368
- }
369
-
370
-
371
- const cmp13 =
372
- (context.components && context.components['Sprite']) || components['Sprite']
373
-
374
- parent = elms[12]
375
- const elementConfig13 = {}
376
-
377
- elms[13] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
378
-
379
- elementConfig13['image'] = component.image
380
- elementConfig13['y'] = 2
381
- elementConfig13['w'] = 48
382
- elementConfig13['h'] = 25
383
- elementConfig13['map'] = component.sprite
384
- elementConfig13['frame'] = "avg"
385
-
386
- const skip13 = []
387
- if(typeof cmp13 !== 'undefined') {
388
- for(let key in cmp13.config.props) {
389
- delete elementConfig13[cmp13.config.props[key]]
390
- skip13.push(cmp13.config.props[key])
391
- }
392
- }
393
-
394
- elms[13].populate(elementConfig13)
395
-
396
- if(inSlot === true) {
397
- slotChildCounter -= 1
398
- }
399
-
400
- parent = elms[13]
401
- const props14 = {}
402
- props14['image'] = component.image
403
- props14['y'] = 2
404
- props14['w'] = 48
405
- props14['h'] = 25
406
- props14['map'] = component.sprite
407
- props14['frame'] = "avg"
408
-
409
- componentType = props14['is'] || 'Sprite'
410
-
411
- let component14
412
- if(typeof componentType === 'string') {
413
- component14 = context.components && context.components[componentType] || components[componentType]
414
- if(!component14) {
415
- throw new Error('Component "Sprite" not found')
416
- }
417
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
418
- component14 = componentType
419
- }
420
-
421
- elms[14] = component14.call(null, {props: props14}, elms[13], component)
422
-
423
- if (elms[14][Symbol.for('slots')][0]) {
424
- parent = elms[14][Symbol.for('slots')][0]
425
- slotComponent = elms[14]
426
- inSlot = true
427
- } else {
428
- parent = elms[14][Symbol.for('children')][0]
429
- }
430
-
431
-
432
- if (inSlot === true && slotChildCounter === 0) {
433
- inSlot = false
434
- }
435
-
436
- parent = elms[12]
437
- const elementConfig15 = {}
438
-
439
- elms[15] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
440
-
441
- elementConfig15['x'] = 63
442
- elementConfig15['y'] = 2
443
- elms[15].populate(elementConfig15)
444
-
445
- if(inSlot === true) {
446
- slotChildCounter -= 1
447
- }
448
-
449
-
450
- const cmp16 =
451
- (context.components && context.components['Sprite']) || components['Sprite']
452
-
453
- parent = elms[15]
454
- const elementConfig16 = {}
455
-
456
- elms[16] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
457
-
458
- elementConfig16['image'] = component.image
459
- elementConfig16['x'] = 0
460
- elementConfig16['h'] = 20
461
- elementConfig16['w'] = 20
462
- elementConfig16['map'] = component.sprite
463
- elementConfig16['frame'] = component.avgFps[0]
464
-
465
- const skip16 = []
466
- if(typeof cmp16 !== 'undefined') {
467
- for(let key in cmp16.config.props) {
468
- delete elementConfig16[cmp16.config.props[key]]
469
- skip16.push(cmp16.config.props[key])
470
- }
471
- }
472
-
473
- elms[16].populate(elementConfig16)
474
-
475
- if(inSlot === true) {
476
- slotChildCounter -= 1
477
- }
478
-
479
- parent = elms[16]
480
- const props17 = {}
481
- props17['image'] = component.image
482
- props17['x'] = 0
483
- props17['h'] = 20
484
- props17['w'] = 20
485
- props17['map'] = component.sprite
372
+ elms[11] = component11.call(null, { props: props11 }, elms[10], component)
373
+
374
+ if (elms[11][Symbol.for('slots')][0]) {
375
+ parent = elms[11][Symbol.for('slots')][0]
376
+ slotComponent = elms[11]
377
+ inSlot = true
378
+ } else {
379
+ parent = elms[11][Symbol.for('children')][0]
380
+ }
381
+
382
+ if (inSlot === true && slotChildCounter === 0) {
383
+ inSlot = false
384
+ }
385
+
386
+ parent = elms[1]
387
+ const elementConfig12 = {}
388
+
389
+ elms[12] = this.element(
390
+ { parent: parent || 'root' },
391
+ inSlot === true ? slotComponent : component
392
+ )
393
+
394
+ elementConfig12['x'] = 150
395
+ elms[12].populate(elementConfig12)
396
+
397
+ if (inSlot === true) {
398
+ slotChildCounter -= 1
399
+ }
400
+
401
+ const cmp13 = (context.components && context.components['Sprite']) || components['Sprite']
402
+
403
+ parent = elms[12]
404
+ const elementConfig13 = {}
405
+
406
+ elms[13] = this.element(
407
+ { parent: parent || 'root' },
408
+ inSlot === true ? slotComponent : component
409
+ )
410
+
411
+ elementConfig13['image'] = component.image
412
+ elementConfig13['y'] = 2
413
+ elementConfig13['w'] = 48
414
+ elementConfig13['h'] = 25
415
+ elementConfig13['map'] = component.sprite
416
+ elementConfig13['frame'] = 'avg'
417
+
418
+ const skip13 = []
419
+ if (typeof cmp13 !== 'undefined') {
420
+ for (let key in cmp13.config.props) {
421
+ delete elementConfig13[cmp13.config.props[key]]
422
+ skip13.push(cmp13.config.props[key])
423
+ }
424
+ }
425
+
426
+ elms[13].populate(elementConfig13)
427
+
428
+ if (inSlot === true) {
429
+ slotChildCounter -= 1
430
+ }
431
+
432
+ parent = elms[13]
433
+ const props14 = {}
434
+ props14['image'] = component.image
435
+ props14['y'] = 2
436
+ props14['w'] = 48
437
+ props14['h'] = 25
438
+ props14['map'] = component.sprite
439
+ props14['frame'] = 'avg'
440
+
441
+ componentType = props14['is'] || 'Sprite'
442
+
443
+ let component14
444
+ if (typeof componentType === 'string') {
445
+ component14 =
446
+ (context.components && context.components[componentType]) || components[componentType]
447
+ if (!component14) {
448
+ throw new Error('Component "Sprite" not found')
449
+ }
450
+ } else if (
451
+ typeof componentType === 'function' &&
452
+ componentType[Symbol.for('isComponent')] === true
453
+ ) {
454
+ component14 = componentType
455
+ }
456
+
457
+ elms[14] = component14.call(null, { props: props14 }, elms[13], component)
458
+
459
+ if (elms[14][Symbol.for('slots')][0]) {
460
+ parent = elms[14][Symbol.for('slots')][0]
461
+ slotComponent = elms[14]
462
+ inSlot = true
463
+ } else {
464
+ parent = elms[14][Symbol.for('children')][0]
465
+ }
466
+
467
+ if (inSlot === true && slotChildCounter === 0) {
468
+ inSlot = false
469
+ }
470
+
471
+ parent = elms[12]
472
+ const elementConfig15 = {}
473
+
474
+ elms[15] = this.element(
475
+ { parent: parent || 'root' },
476
+ inSlot === true ? slotComponent : component
477
+ )
478
+
479
+ elementConfig15['x'] = 63
480
+ elementConfig15['y'] = 2
481
+ elms[15].populate(elementConfig15)
482
+
483
+ if (inSlot === true) {
484
+ slotChildCounter -= 1
485
+ }
486
+
487
+ const cmp16 = (context.components && context.components['Sprite']) || components['Sprite']
488
+
489
+ parent = elms[15]
490
+ const elementConfig16 = {}
491
+
492
+ elms[16] = this.element(
493
+ { parent: parent || 'root' },
494
+ inSlot === true ? slotComponent : component
495
+ )
496
+
497
+ elementConfig16['image'] = component.image
498
+ elementConfig16['x'] = 0
499
+ elementConfig16['h'] = 20
500
+ elementConfig16['w'] = 20
501
+ elementConfig16['map'] = component.sprite
502
+ elementConfig16['frame'] = component.avgFps[0]
503
+
504
+ const skip16 = []
505
+ if (typeof cmp16 !== 'undefined') {
506
+ for (let key in cmp16.config.props) {
507
+ delete elementConfig16[cmp16.config.props[key]]
508
+ skip16.push(cmp16.config.props[key])
509
+ }
510
+ }
511
+
512
+ elms[16].populate(elementConfig16)
513
+
514
+ if (inSlot === true) {
515
+ slotChildCounter -= 1
516
+ }
517
+
518
+ parent = elms[16]
519
+ const props17 = {}
520
+ props17['image'] = component.image
521
+ props17['x'] = 0
522
+ props17['h'] = 20
523
+ props17['w'] = 20
524
+ props17['map'] = component.sprite
486
525
 
487
526
  propData = component.avgFps[0]
488
527
  if (Array.isArray(propData) === true) {
@@ -490,70 +529,74 @@ props17['map'] = component.sprite
490
529
  }
491
530
  props17['frame'] = propData
492
531
 
493
- componentType = props17['is'] || 'Sprite'
532
+ componentType = props17['is'] || 'Sprite'
533
+
534
+ let component17
535
+ if (typeof componentType === 'string') {
536
+ component17 =
537
+ (context.components && context.components[componentType]) || components[componentType]
538
+ if (!component17) {
539
+ throw new Error('Component "Sprite" not found')
540
+ }
541
+ } else if (
542
+ typeof componentType === 'function' &&
543
+ componentType[Symbol.for('isComponent')] === true
544
+ ) {
545
+ component17 = componentType
546
+ }
494
547
 
495
- let component17
496
- if(typeof componentType === 'string') {
497
- component17 = context.components && context.components[componentType] || components[componentType]
498
- if(!component17) {
499
- throw new Error('Component "Sprite" not found')
500
- }
501
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
502
- component17 = componentType
503
- }
504
-
505
- elms[17] = component17.call(null, {props: props17}, elms[16], component)
506
-
507
- if (elms[17][Symbol.for('slots')][0]) {
508
- parent = elms[17][Symbol.for('slots')][0]
509
- slotComponent = elms[17]
510
- inSlot = true
511
- } else {
512
- parent = elms[17][Symbol.for('children')][0]
513
- }
514
-
515
-
516
- if (inSlot === true && slotChildCounter === 0) {
517
- inSlot = false
518
- }
519
-
520
-
521
- const cmp18 =
522
- (context.components && context.components['Sprite']) || components['Sprite']
523
-
524
- parent = elms[15]
525
- const elementConfig18 = {}
526
-
527
- elms[18] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
528
-
529
- elementConfig18['image'] = component.image
530
- elementConfig18['x'] = 18
531
- elementConfig18['h'] = 20
532
- elementConfig18['w'] = 20
533
- elementConfig18['map'] = component.sprite
534
- elementConfig18['frame'] = component.avgFps[1]
535
-
536
- const skip18 = []
537
- if(typeof cmp18 !== 'undefined') {
538
- for(let key in cmp18.config.props) {
539
- delete elementConfig18[cmp18.config.props[key]]
540
- skip18.push(cmp18.config.props[key])
541
- }
542
- }
543
-
544
- elms[18].populate(elementConfig18)
545
-
546
- if(inSlot === true) {
547
- slotChildCounter -= 1
548
- }
549
-
550
- parent = elms[18]
551
- const props19 = {}
552
- props19['image'] = component.image
553
- props19['x'] = 18
554
- props19['h'] = 20
555
- props19['w'] = 20
556
- props19['map'] = component.sprite
548
+ elms[17] = component17.call(null, { props: props17 }, elms[16], component)
549
+
550
+ if (elms[17][Symbol.for('slots')][0]) {
551
+ parent = elms[17][Symbol.for('slots')][0]
552
+ slotComponent = elms[17]
553
+ inSlot = true
554
+ } else {
555
+ parent = elms[17][Symbol.for('children')][0]
556
+ }
557
+
558
+ if (inSlot === true && slotChildCounter === 0) {
559
+ inSlot = false
560
+ }
561
+
562
+ const cmp18 = (context.components && context.components['Sprite']) || components['Sprite']
563
+
564
+ parent = elms[15]
565
+ const elementConfig18 = {}
566
+
567
+ elms[18] = this.element(
568
+ { parent: parent || 'root' },
569
+ inSlot === true ? slotComponent : component
570
+ )
571
+
572
+ elementConfig18['image'] = component.image
573
+ elementConfig18['x'] = 18
574
+ elementConfig18['h'] = 20
575
+ elementConfig18['w'] = 20
576
+ elementConfig18['map'] = component.sprite
577
+ elementConfig18['frame'] = component.avgFps[1]
578
+
579
+ const skip18 = []
580
+ if (typeof cmp18 !== 'undefined') {
581
+ for (let key in cmp18.config.props) {
582
+ delete elementConfig18[cmp18.config.props[key]]
583
+ skip18.push(cmp18.config.props[key])
584
+ }
585
+ }
586
+
587
+ elms[18].populate(elementConfig18)
588
+
589
+ if (inSlot === true) {
590
+ slotChildCounter -= 1
591
+ }
592
+
593
+ parent = elms[18]
594
+ const props19 = {}
595
+ props19['image'] = component.image
596
+ props19['x'] = 18
597
+ props19['h'] = 20
598
+ props19['w'] = 20
599
+ props19['map'] = component.sprite
557
600
 
558
601
  propData = component.avgFps[1]
559
602
  if (Array.isArray(propData) === true) {
@@ -561,70 +604,74 @@ props19['map'] = component.sprite
561
604
  }
562
605
  props19['frame'] = propData
563
606
 
564
- componentType = props19['is'] || 'Sprite'
607
+ componentType = props19['is'] || 'Sprite'
608
+
609
+ let component19
610
+ if (typeof componentType === 'string') {
611
+ component19 =
612
+ (context.components && context.components[componentType]) || components[componentType]
613
+ if (!component19) {
614
+ throw new Error('Component "Sprite" not found')
615
+ }
616
+ } else if (
617
+ typeof componentType === 'function' &&
618
+ componentType[Symbol.for('isComponent')] === true
619
+ ) {
620
+ component19 = componentType
621
+ }
565
622
 
566
- let component19
567
- if(typeof componentType === 'string') {
568
- component19 = context.components && context.components[componentType] || components[componentType]
569
- if(!component19) {
570
- throw new Error('Component "Sprite" not found')
571
- }
572
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
573
- component19 = componentType
574
- }
575
-
576
- elms[19] = component19.call(null, {props: props19}, elms[18], component)
577
-
578
- if (elms[19][Symbol.for('slots')][0]) {
579
- parent = elms[19][Symbol.for('slots')][0]
580
- slotComponent = elms[19]
581
- inSlot = true
582
- } else {
583
- parent = elms[19][Symbol.for('children')][0]
584
- }
585
-
586
-
587
- if (inSlot === true && slotChildCounter === 0) {
588
- inSlot = false
589
- }
590
-
591
-
592
- const cmp20 =
593
- (context.components && context.components['Sprite']) || components['Sprite']
594
-
595
- parent = elms[15]
596
- const elementConfig20 = {}
597
-
598
- elms[20] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
599
-
600
- elementConfig20['image'] = component.image
601
- elementConfig20['x'] = 36
602
- elementConfig20['h'] = 20
603
- elementConfig20['w'] = 20
604
- elementConfig20['map'] = component.sprite
605
- elementConfig20['frame'] = component.avgFps[2]
606
-
607
- const skip20 = []
608
- if(typeof cmp20 !== 'undefined') {
609
- for(let key in cmp20.config.props) {
610
- delete elementConfig20[cmp20.config.props[key]]
611
- skip20.push(cmp20.config.props[key])
612
- }
613
- }
614
-
615
- elms[20].populate(elementConfig20)
616
-
617
- if(inSlot === true) {
618
- slotChildCounter -= 1
619
- }
620
-
621
- parent = elms[20]
622
- const props21 = {}
623
- props21['image'] = component.image
624
- props21['x'] = 36
625
- props21['h'] = 20
626
- props21['w'] = 20
627
- props21['map'] = component.sprite
623
+ elms[19] = component19.call(null, { props: props19 }, elms[18], component)
624
+
625
+ if (elms[19][Symbol.for('slots')][0]) {
626
+ parent = elms[19][Symbol.for('slots')][0]
627
+ slotComponent = elms[19]
628
+ inSlot = true
629
+ } else {
630
+ parent = elms[19][Symbol.for('children')][0]
631
+ }
632
+
633
+ if (inSlot === true && slotChildCounter === 0) {
634
+ inSlot = false
635
+ }
636
+
637
+ const cmp20 = (context.components && context.components['Sprite']) || components['Sprite']
638
+
639
+ parent = elms[15]
640
+ const elementConfig20 = {}
641
+
642
+ elms[20] = this.element(
643
+ { parent: parent || 'root' },
644
+ inSlot === true ? slotComponent : component
645
+ )
646
+
647
+ elementConfig20['image'] = component.image
648
+ elementConfig20['x'] = 36
649
+ elementConfig20['h'] = 20
650
+ elementConfig20['w'] = 20
651
+ elementConfig20['map'] = component.sprite
652
+ elementConfig20['frame'] = component.avgFps[2]
653
+
654
+ const skip20 = []
655
+ if (typeof cmp20 !== 'undefined') {
656
+ for (let key in cmp20.config.props) {
657
+ delete elementConfig20[cmp20.config.props[key]]
658
+ skip20.push(cmp20.config.props[key])
659
+ }
660
+ }
661
+
662
+ elms[20].populate(elementConfig20)
663
+
664
+ if (inSlot === true) {
665
+ slotChildCounter -= 1
666
+ }
667
+
668
+ parent = elms[20]
669
+ const props21 = {}
670
+ props21['image'] = component.image
671
+ props21['x'] = 36
672
+ props21['h'] = 20
673
+ props21['w'] = 20
674
+ props21['map'] = component.sprite
628
675
 
629
676
  propData = component.avgFps[2]
630
677
  if (Array.isArray(propData) === true) {
@@ -632,162 +679,176 @@ props21['map'] = component.sprite
632
679
  }
633
680
  props21['frame'] = propData
634
681
 
635
- componentType = props21['is'] || 'Sprite'
682
+ componentType = props21['is'] || 'Sprite'
683
+
684
+ let component21
685
+ if (typeof componentType === 'string') {
686
+ component21 =
687
+ (context.components && context.components[componentType]) || components[componentType]
688
+ if (!component21) {
689
+ throw new Error('Component "Sprite" not found')
690
+ }
691
+ } else if (
692
+ typeof componentType === 'function' &&
693
+ componentType[Symbol.for('isComponent')] === true
694
+ ) {
695
+ component21 = componentType
696
+ }
636
697
 
637
- let component21
638
- if(typeof componentType === 'string') {
639
- component21 = context.components && context.components[componentType] || components[componentType]
640
- if(!component21) {
641
- throw new Error('Component "Sprite" not found')
642
- }
643
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
644
- component21 = componentType
645
- }
646
-
647
- elms[21] = component21.call(null, {props: props21}, elms[20], component)
648
-
649
- if (elms[21][Symbol.for('slots')][0]) {
650
- parent = elms[21][Symbol.for('slots')][0]
651
- slotComponent = elms[21]
652
- inSlot = true
653
- } else {
654
- parent = elms[21][Symbol.for('children')][0]
655
- }
656
-
657
-
658
- if (inSlot === true && slotChildCounter === 0) {
659
- inSlot = false
660
- }
661
-
662
- parent = elms[1]
663
- const elementConfig22 = {}
664
-
665
- elms[22] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
666
-
667
- elementConfig22['x'] = 0
668
- elementConfig22['y'] = 40
669
- elms[22].populate(elementConfig22)
670
-
671
- if(inSlot === true) {
672
- slotChildCounter -= 1
673
- }
674
-
675
-
676
- const cmp23 =
677
- (context.components && context.components['Sprite']) || components['Sprite']
678
-
679
- parent = elms[22]
680
- const elementConfig23 = {}
681
-
682
- elms[23] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
683
-
684
- elementConfig23['image'] = component.image
685
- elementConfig23['x'] = -2
686
- elementConfig23['w'] = 47
687
- elementConfig23['h'] = 25
688
- elementConfig23['map'] = component.sprite
689
- elementConfig23['frame'] = "min"
690
-
691
- const skip23 = []
692
- if(typeof cmp23 !== 'undefined') {
693
- for(let key in cmp23.config.props) {
694
- delete elementConfig23[cmp23.config.props[key]]
695
- skip23.push(cmp23.config.props[key])
696
- }
697
- }
698
-
699
- elms[23].populate(elementConfig23)
700
-
701
- if(inSlot === true) {
702
- slotChildCounter -= 1
703
- }
704
-
705
- parent = elms[23]
706
- const props24 = {}
707
- props24['image'] = component.image
708
- props24['x'] = -2
709
- props24['w'] = 47
710
- props24['h'] = 25
711
- props24['map'] = component.sprite
712
- props24['frame'] = "min"
713
-
714
- componentType = props24['is'] || 'Sprite'
715
-
716
- let component24
717
- if(typeof componentType === 'string') {
718
- component24 = context.components && context.components[componentType] || components[componentType]
719
- if(!component24) {
720
- throw new Error('Component "Sprite" not found')
721
- }
722
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
723
- component24 = componentType
724
- }
725
-
726
- elms[24] = component24.call(null, {props: props24}, elms[23], component)
727
-
728
- if (elms[24][Symbol.for('slots')][0]) {
729
- parent = elms[24][Symbol.for('slots')][0]
730
- slotComponent = elms[24]
731
- inSlot = true
732
- } else {
733
- parent = elms[24][Symbol.for('children')][0]
734
- }
735
-
736
-
737
- if (inSlot === true && slotChildCounter === 0) {
738
- inSlot = false
739
- }
740
-
741
- parent = elms[22]
742
- const elementConfig25 = {}
743
-
744
- elms[25] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
745
-
746
- elementConfig25['x'] = 58
747
- elementConfig25['y'] = 2
748
- elms[25].populate(elementConfig25)
749
-
750
- if(inSlot === true) {
751
- slotChildCounter -= 1
752
- }
753
-
754
-
755
- const cmp26 =
756
- (context.components && context.components['Sprite']) || components['Sprite']
757
-
758
- parent = elms[25]
759
- const elementConfig26 = {}
760
-
761
- elms[26] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
762
-
763
- elementConfig26['image'] = component.image
764
- elementConfig26['x'] = 0
765
- elementConfig26['h'] = 20
766
- elementConfig26['w'] = 20
767
- elementConfig26['map'] = component.sprite
768
- elementConfig26['frame'] = component.minFps[0]
769
-
770
- const skip26 = []
771
- if(typeof cmp26 !== 'undefined') {
772
- for(let key in cmp26.config.props) {
773
- delete elementConfig26[cmp26.config.props[key]]
774
- skip26.push(cmp26.config.props[key])
775
- }
776
- }
777
-
778
- elms[26].populate(elementConfig26)
779
-
780
- if(inSlot === true) {
781
- slotChildCounter -= 1
782
- }
783
-
784
- parent = elms[26]
785
- const props27 = {}
786
- props27['image'] = component.image
787
- props27['x'] = 0
788
- props27['h'] = 20
789
- props27['w'] = 20
790
- props27['map'] = component.sprite
698
+ elms[21] = component21.call(null, { props: props21 }, elms[20], component)
699
+
700
+ if (elms[21][Symbol.for('slots')][0]) {
701
+ parent = elms[21][Symbol.for('slots')][0]
702
+ slotComponent = elms[21]
703
+ inSlot = true
704
+ } else {
705
+ parent = elms[21][Symbol.for('children')][0]
706
+ }
707
+
708
+ if (inSlot === true && slotChildCounter === 0) {
709
+ inSlot = false
710
+ }
711
+
712
+ parent = elms[1]
713
+ const elementConfig22 = {}
714
+
715
+ elms[22] = this.element(
716
+ { parent: parent || 'root' },
717
+ inSlot === true ? slotComponent : component
718
+ )
719
+
720
+ elementConfig22['x'] = 0
721
+ elementConfig22['y'] = 40
722
+ elms[22].populate(elementConfig22)
723
+
724
+ if (inSlot === true) {
725
+ slotChildCounter -= 1
726
+ }
727
+
728
+ const cmp23 = (context.components && context.components['Sprite']) || components['Sprite']
729
+
730
+ parent = elms[22]
731
+ const elementConfig23 = {}
732
+
733
+ elms[23] = this.element(
734
+ { parent: parent || 'root' },
735
+ inSlot === true ? slotComponent : component
736
+ )
737
+
738
+ elementConfig23['image'] = component.image
739
+ elementConfig23['x'] = -2
740
+ elementConfig23['w'] = 47
741
+ elementConfig23['h'] = 25
742
+ elementConfig23['map'] = component.sprite
743
+ elementConfig23['frame'] = 'min'
744
+
745
+ const skip23 = []
746
+ if (typeof cmp23 !== 'undefined') {
747
+ for (let key in cmp23.config.props) {
748
+ delete elementConfig23[cmp23.config.props[key]]
749
+ skip23.push(cmp23.config.props[key])
750
+ }
751
+ }
752
+
753
+ elms[23].populate(elementConfig23)
754
+
755
+ if (inSlot === true) {
756
+ slotChildCounter -= 1
757
+ }
758
+
759
+ parent = elms[23]
760
+ const props24 = {}
761
+ props24['image'] = component.image
762
+ props24['x'] = -2
763
+ props24['w'] = 47
764
+ props24['h'] = 25
765
+ props24['map'] = component.sprite
766
+ props24['frame'] = 'min'
767
+
768
+ componentType = props24['is'] || 'Sprite'
769
+
770
+ let component24
771
+ if (typeof componentType === 'string') {
772
+ component24 =
773
+ (context.components && context.components[componentType]) || components[componentType]
774
+ if (!component24) {
775
+ throw new Error('Component "Sprite" not found')
776
+ }
777
+ } else if (
778
+ typeof componentType === 'function' &&
779
+ componentType[Symbol.for('isComponent')] === true
780
+ ) {
781
+ component24 = componentType
782
+ }
783
+
784
+ elms[24] = component24.call(null, { props: props24 }, elms[23], component)
785
+
786
+ if (elms[24][Symbol.for('slots')][0]) {
787
+ parent = elms[24][Symbol.for('slots')][0]
788
+ slotComponent = elms[24]
789
+ inSlot = true
790
+ } else {
791
+ parent = elms[24][Symbol.for('children')][0]
792
+ }
793
+
794
+ if (inSlot === true && slotChildCounter === 0) {
795
+ inSlot = false
796
+ }
797
+
798
+ parent = elms[22]
799
+ const elementConfig25 = {}
800
+
801
+ elms[25] = this.element(
802
+ { parent: parent || 'root' },
803
+ inSlot === true ? slotComponent : component
804
+ )
805
+
806
+ elementConfig25['x'] = 58
807
+ elementConfig25['y'] = 2
808
+ elms[25].populate(elementConfig25)
809
+
810
+ if (inSlot === true) {
811
+ slotChildCounter -= 1
812
+ }
813
+
814
+ const cmp26 = (context.components && context.components['Sprite']) || components['Sprite']
815
+
816
+ parent = elms[25]
817
+ const elementConfig26 = {}
818
+
819
+ elms[26] = this.element(
820
+ { parent: parent || 'root' },
821
+ inSlot === true ? slotComponent : component
822
+ )
823
+
824
+ elementConfig26['image'] = component.image
825
+ elementConfig26['x'] = 0
826
+ elementConfig26['h'] = 20
827
+ elementConfig26['w'] = 20
828
+ elementConfig26['map'] = component.sprite
829
+ elementConfig26['frame'] = component.minFps[0]
830
+
831
+ const skip26 = []
832
+ if (typeof cmp26 !== 'undefined') {
833
+ for (let key in cmp26.config.props) {
834
+ delete elementConfig26[cmp26.config.props[key]]
835
+ skip26.push(cmp26.config.props[key])
836
+ }
837
+ }
838
+
839
+ elms[26].populate(elementConfig26)
840
+
841
+ if (inSlot === true) {
842
+ slotChildCounter -= 1
843
+ }
844
+
845
+ parent = elms[26]
846
+ const props27 = {}
847
+ props27['image'] = component.image
848
+ props27['x'] = 0
849
+ props27['h'] = 20
850
+ props27['w'] = 20
851
+ props27['map'] = component.sprite
791
852
 
792
853
  propData = component.minFps[0]
793
854
  if (Array.isArray(propData) === true) {
@@ -795,70 +856,74 @@ props27['map'] = component.sprite
795
856
  }
796
857
  props27['frame'] = propData
797
858
 
798
- componentType = props27['is'] || 'Sprite'
859
+ componentType = props27['is'] || 'Sprite'
860
+
861
+ let component27
862
+ if (typeof componentType === 'string') {
863
+ component27 =
864
+ (context.components && context.components[componentType]) || components[componentType]
865
+ if (!component27) {
866
+ throw new Error('Component "Sprite" not found')
867
+ }
868
+ } else if (
869
+ typeof componentType === 'function' &&
870
+ componentType[Symbol.for('isComponent')] === true
871
+ ) {
872
+ component27 = componentType
873
+ }
799
874
 
800
- let component27
801
- if(typeof componentType === 'string') {
802
- component27 = context.components && context.components[componentType] || components[componentType]
803
- if(!component27) {
804
- throw new Error('Component "Sprite" not found')
805
- }
806
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
807
- component27 = componentType
808
- }
809
-
810
- elms[27] = component27.call(null, {props: props27}, elms[26], component)
811
-
812
- if (elms[27][Symbol.for('slots')][0]) {
813
- parent = elms[27][Symbol.for('slots')][0]
814
- slotComponent = elms[27]
815
- inSlot = true
816
- } else {
817
- parent = elms[27][Symbol.for('children')][0]
818
- }
819
-
820
-
821
- if (inSlot === true && slotChildCounter === 0) {
822
- inSlot = false
823
- }
824
-
825
-
826
- const cmp28 =
827
- (context.components && context.components['Sprite']) || components['Sprite']
828
-
829
- parent = elms[25]
830
- const elementConfig28 = {}
831
-
832
- elms[28] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
833
-
834
- elementConfig28['image'] = component.image
835
- elementConfig28['x'] = 18
836
- elementConfig28['h'] = 20
837
- elementConfig28['w'] = 20
838
- elementConfig28['map'] = component.sprite
839
- elementConfig28['frame'] = component.minFps[1]
840
-
841
- const skip28 = []
842
- if(typeof cmp28 !== 'undefined') {
843
- for(let key in cmp28.config.props) {
844
- delete elementConfig28[cmp28.config.props[key]]
845
- skip28.push(cmp28.config.props[key])
846
- }
847
- }
848
-
849
- elms[28].populate(elementConfig28)
850
-
851
- if(inSlot === true) {
852
- slotChildCounter -= 1
853
- }
854
-
855
- parent = elms[28]
856
- const props29 = {}
857
- props29['image'] = component.image
858
- props29['x'] = 18
859
- props29['h'] = 20
860
- props29['w'] = 20
861
- props29['map'] = component.sprite
875
+ elms[27] = component27.call(null, { props: props27 }, elms[26], component)
876
+
877
+ if (elms[27][Symbol.for('slots')][0]) {
878
+ parent = elms[27][Symbol.for('slots')][0]
879
+ slotComponent = elms[27]
880
+ inSlot = true
881
+ } else {
882
+ parent = elms[27][Symbol.for('children')][0]
883
+ }
884
+
885
+ if (inSlot === true && slotChildCounter === 0) {
886
+ inSlot = false
887
+ }
888
+
889
+ const cmp28 = (context.components && context.components['Sprite']) || components['Sprite']
890
+
891
+ parent = elms[25]
892
+ const elementConfig28 = {}
893
+
894
+ elms[28] = this.element(
895
+ { parent: parent || 'root' },
896
+ inSlot === true ? slotComponent : component
897
+ )
898
+
899
+ elementConfig28['image'] = component.image
900
+ elementConfig28['x'] = 18
901
+ elementConfig28['h'] = 20
902
+ elementConfig28['w'] = 20
903
+ elementConfig28['map'] = component.sprite
904
+ elementConfig28['frame'] = component.minFps[1]
905
+
906
+ const skip28 = []
907
+ if (typeof cmp28 !== 'undefined') {
908
+ for (let key in cmp28.config.props) {
909
+ delete elementConfig28[cmp28.config.props[key]]
910
+ skip28.push(cmp28.config.props[key])
911
+ }
912
+ }
913
+
914
+ elms[28].populate(elementConfig28)
915
+
916
+ if (inSlot === true) {
917
+ slotChildCounter -= 1
918
+ }
919
+
920
+ parent = elms[28]
921
+ const props29 = {}
922
+ props29['image'] = component.image
923
+ props29['x'] = 18
924
+ props29['h'] = 20
925
+ props29['w'] = 20
926
+ props29['map'] = component.sprite
862
927
 
863
928
  propData = component.minFps[1]
864
929
  if (Array.isArray(propData) === true) {
@@ -866,70 +931,74 @@ props29['map'] = component.sprite
866
931
  }
867
932
  props29['frame'] = propData
868
933
 
869
- componentType = props29['is'] || 'Sprite'
934
+ componentType = props29['is'] || 'Sprite'
935
+
936
+ let component29
937
+ if (typeof componentType === 'string') {
938
+ component29 =
939
+ (context.components && context.components[componentType]) || components[componentType]
940
+ if (!component29) {
941
+ throw new Error('Component "Sprite" not found')
942
+ }
943
+ } else if (
944
+ typeof componentType === 'function' &&
945
+ componentType[Symbol.for('isComponent')] === true
946
+ ) {
947
+ component29 = componentType
948
+ }
870
949
 
871
- let component29
872
- if(typeof componentType === 'string') {
873
- component29 = context.components && context.components[componentType] || components[componentType]
874
- if(!component29) {
875
- throw new Error('Component "Sprite" not found')
876
- }
877
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
878
- component29 = componentType
879
- }
880
-
881
- elms[29] = component29.call(null, {props: props29}, elms[28], component)
882
-
883
- if (elms[29][Symbol.for('slots')][0]) {
884
- parent = elms[29][Symbol.for('slots')][0]
885
- slotComponent = elms[29]
886
- inSlot = true
887
- } else {
888
- parent = elms[29][Symbol.for('children')][0]
889
- }
890
-
891
-
892
- if (inSlot === true && slotChildCounter === 0) {
893
- inSlot = false
894
- }
895
-
896
-
897
- const cmp30 =
898
- (context.components && context.components['Sprite']) || components['Sprite']
899
-
900
- parent = elms[25]
901
- const elementConfig30 = {}
902
-
903
- elms[30] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
904
-
905
- elementConfig30['image'] = component.image
906
- elementConfig30['x'] = 36
907
- elementConfig30['h'] = 20
908
- elementConfig30['w'] = 20
909
- elementConfig30['map'] = component.sprite
910
- elementConfig30['frame'] = component.minFps[2]
911
-
912
- const skip30 = []
913
- if(typeof cmp30 !== 'undefined') {
914
- for(let key in cmp30.config.props) {
915
- delete elementConfig30[cmp30.config.props[key]]
916
- skip30.push(cmp30.config.props[key])
917
- }
918
- }
919
-
920
- elms[30].populate(elementConfig30)
921
-
922
- if(inSlot === true) {
923
- slotChildCounter -= 1
924
- }
925
-
926
- parent = elms[30]
927
- const props31 = {}
928
- props31['image'] = component.image
929
- props31['x'] = 36
930
- props31['h'] = 20
931
- props31['w'] = 20
932
- props31['map'] = component.sprite
950
+ elms[29] = component29.call(null, { props: props29 }, elms[28], component)
951
+
952
+ if (elms[29][Symbol.for('slots')][0]) {
953
+ parent = elms[29][Symbol.for('slots')][0]
954
+ slotComponent = elms[29]
955
+ inSlot = true
956
+ } else {
957
+ parent = elms[29][Symbol.for('children')][0]
958
+ }
959
+
960
+ if (inSlot === true && slotChildCounter === 0) {
961
+ inSlot = false
962
+ }
963
+
964
+ const cmp30 = (context.components && context.components['Sprite']) || components['Sprite']
965
+
966
+ parent = elms[25]
967
+ const elementConfig30 = {}
968
+
969
+ elms[30] = this.element(
970
+ { parent: parent || 'root' },
971
+ inSlot === true ? slotComponent : component
972
+ )
973
+
974
+ elementConfig30['image'] = component.image
975
+ elementConfig30['x'] = 36
976
+ elementConfig30['h'] = 20
977
+ elementConfig30['w'] = 20
978
+ elementConfig30['map'] = component.sprite
979
+ elementConfig30['frame'] = component.minFps[2]
980
+
981
+ const skip30 = []
982
+ if (typeof cmp30 !== 'undefined') {
983
+ for (let key in cmp30.config.props) {
984
+ delete elementConfig30[cmp30.config.props[key]]
985
+ skip30.push(cmp30.config.props[key])
986
+ }
987
+ }
988
+
989
+ elms[30].populate(elementConfig30)
990
+
991
+ if (inSlot === true) {
992
+ slotChildCounter -= 1
993
+ }
994
+
995
+ parent = elms[30]
996
+ const props31 = {}
997
+ props31['image'] = component.image
998
+ props31['x'] = 36
999
+ props31['h'] = 20
1000
+ props31['w'] = 20
1001
+ props31['map'] = component.sprite
933
1002
 
934
1003
  propData = component.minFps[2]
935
1004
  if (Array.isArray(propData) === true) {
@@ -937,160 +1006,174 @@ props31['map'] = component.sprite
937
1006
  }
938
1007
  props31['frame'] = propData
939
1008
 
940
- componentType = props31['is'] || 'Sprite'
1009
+ componentType = props31['is'] || 'Sprite'
1010
+
1011
+ let component31
1012
+ if (typeof componentType === 'string') {
1013
+ component31 =
1014
+ (context.components && context.components[componentType]) || components[componentType]
1015
+ if (!component31) {
1016
+ throw new Error('Component "Sprite" not found')
1017
+ }
1018
+ } else if (
1019
+ typeof componentType === 'function' &&
1020
+ componentType[Symbol.for('isComponent')] === true
1021
+ ) {
1022
+ component31 = componentType
1023
+ }
941
1024
 
942
- let component31
943
- if(typeof componentType === 'string') {
944
- component31 = context.components && context.components[componentType] || components[componentType]
945
- if(!component31) {
946
- throw new Error('Component "Sprite" not found')
947
- }
948
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
949
- component31 = componentType
950
- }
951
-
952
- elms[31] = component31.call(null, {props: props31}, elms[30], component)
953
-
954
- if (elms[31][Symbol.for('slots')][0]) {
955
- parent = elms[31][Symbol.for('slots')][0]
956
- slotComponent = elms[31]
957
- inSlot = true
958
- } else {
959
- parent = elms[31][Symbol.for('children')][0]
960
- }
961
-
962
-
963
- if (inSlot === true && slotChildCounter === 0) {
964
- inSlot = false
965
- }
966
-
967
- parent = elms[1]
968
- const elementConfig32 = {}
969
-
970
- elms[32] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
971
-
972
- elementConfig32['x'] = 150
973
- elementConfig32['y'] = 40
974
- elms[32].populate(elementConfig32)
975
-
976
- if(inSlot === true) {
977
- slotChildCounter -= 1
978
- }
979
-
980
-
981
- const cmp33 =
982
- (context.components && context.components['Sprite']) || components['Sprite']
983
-
984
- parent = elms[32]
985
- const elementConfig33 = {}
986
-
987
- elms[33] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
988
-
989
- elementConfig33['image'] = component.image
990
- elementConfig33['w'] = 53
991
- elementConfig33['h'] = 25
992
- elementConfig33['map'] = component.sprite
993
- elementConfig33['frame'] = "max"
994
-
995
- const skip33 = []
996
- if(typeof cmp33 !== 'undefined') {
997
- for(let key in cmp33.config.props) {
998
- delete elementConfig33[cmp33.config.props[key]]
999
- skip33.push(cmp33.config.props[key])
1000
- }
1001
- }
1002
-
1003
- elms[33].populate(elementConfig33)
1004
-
1005
- if(inSlot === true) {
1006
- slotChildCounter -= 1
1007
- }
1008
-
1009
- parent = elms[33]
1010
- const props34 = {}
1011
- props34['image'] = component.image
1012
- props34['w'] = 53
1013
- props34['h'] = 25
1014
- props34['map'] = component.sprite
1015
- props34['frame'] = "max"
1016
-
1017
- componentType = props34['is'] || 'Sprite'
1018
-
1019
- let component34
1020
- if(typeof componentType === 'string') {
1021
- component34 = context.components && context.components[componentType] || components[componentType]
1022
- if(!component34) {
1023
- throw new Error('Component "Sprite" not found')
1024
- }
1025
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
1026
- component34 = componentType
1027
- }
1028
-
1029
- elms[34] = component34.call(null, {props: props34}, elms[33], component)
1030
-
1031
- if (elms[34][Symbol.for('slots')][0]) {
1032
- parent = elms[34][Symbol.for('slots')][0]
1033
- slotComponent = elms[34]
1034
- inSlot = true
1035
- } else {
1036
- parent = elms[34][Symbol.for('children')][0]
1037
- }
1038
-
1039
-
1040
- if (inSlot === true && slotChildCounter === 0) {
1041
- inSlot = false
1042
- }
1043
-
1044
- parent = elms[32]
1045
- const elementConfig35 = {}
1046
-
1047
- elms[35] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
1048
-
1049
- elementConfig35['x'] = 63
1050
- elementConfig35['y'] = 2
1051
- elms[35].populate(elementConfig35)
1052
-
1053
- if(inSlot === true) {
1054
- slotChildCounter -= 1
1055
- }
1056
-
1057
-
1058
- const cmp36 =
1059
- (context.components && context.components['Sprite']) || components['Sprite']
1060
-
1061
- parent = elms[35]
1062
- const elementConfig36 = {}
1063
-
1064
- elms[36] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
1065
-
1066
- elementConfig36['image'] = component.image
1067
- elementConfig36['x'] = 0
1068
- elementConfig36['h'] = 20
1069
- elementConfig36['w'] = 20
1070
- elementConfig36['map'] = component.sprite
1071
- elementConfig36['frame'] = component.maxFps[0]
1072
-
1073
- const skip36 = []
1074
- if(typeof cmp36 !== 'undefined') {
1075
- for(let key in cmp36.config.props) {
1076
- delete elementConfig36[cmp36.config.props[key]]
1077
- skip36.push(cmp36.config.props[key])
1078
- }
1079
- }
1080
-
1081
- elms[36].populate(elementConfig36)
1082
-
1083
- if(inSlot === true) {
1084
- slotChildCounter -= 1
1085
- }
1086
-
1087
- parent = elms[36]
1088
- const props37 = {}
1089
- props37['image'] = component.image
1090
- props37['x'] = 0
1091
- props37['h'] = 20
1092
- props37['w'] = 20
1093
- props37['map'] = component.sprite
1025
+ elms[31] = component31.call(null, { props: props31 }, elms[30], component)
1026
+
1027
+ if (elms[31][Symbol.for('slots')][0]) {
1028
+ parent = elms[31][Symbol.for('slots')][0]
1029
+ slotComponent = elms[31]
1030
+ inSlot = true
1031
+ } else {
1032
+ parent = elms[31][Symbol.for('children')][0]
1033
+ }
1034
+
1035
+ if (inSlot === true && slotChildCounter === 0) {
1036
+ inSlot = false
1037
+ }
1038
+
1039
+ parent = elms[1]
1040
+ const elementConfig32 = {}
1041
+
1042
+ elms[32] = this.element(
1043
+ { parent: parent || 'root' },
1044
+ inSlot === true ? slotComponent : component
1045
+ )
1046
+
1047
+ elementConfig32['x'] = 150
1048
+ elementConfig32['y'] = 40
1049
+ elms[32].populate(elementConfig32)
1050
+
1051
+ if (inSlot === true) {
1052
+ slotChildCounter -= 1
1053
+ }
1054
+
1055
+ const cmp33 = (context.components && context.components['Sprite']) || components['Sprite']
1056
+
1057
+ parent = elms[32]
1058
+ const elementConfig33 = {}
1059
+
1060
+ elms[33] = this.element(
1061
+ { parent: parent || 'root' },
1062
+ inSlot === true ? slotComponent : component
1063
+ )
1064
+
1065
+ elementConfig33['image'] = component.image
1066
+ elementConfig33['w'] = 53
1067
+ elementConfig33['h'] = 25
1068
+ elementConfig33['map'] = component.sprite
1069
+ elementConfig33['frame'] = 'max'
1070
+
1071
+ const skip33 = []
1072
+ if (typeof cmp33 !== 'undefined') {
1073
+ for (let key in cmp33.config.props) {
1074
+ delete elementConfig33[cmp33.config.props[key]]
1075
+ skip33.push(cmp33.config.props[key])
1076
+ }
1077
+ }
1078
+
1079
+ elms[33].populate(elementConfig33)
1080
+
1081
+ if (inSlot === true) {
1082
+ slotChildCounter -= 1
1083
+ }
1084
+
1085
+ parent = elms[33]
1086
+ const props34 = {}
1087
+ props34['image'] = component.image
1088
+ props34['w'] = 53
1089
+ props34['h'] = 25
1090
+ props34['map'] = component.sprite
1091
+ props34['frame'] = 'max'
1092
+
1093
+ componentType = props34['is'] || 'Sprite'
1094
+
1095
+ let component34
1096
+ if (typeof componentType === 'string') {
1097
+ component34 =
1098
+ (context.components && context.components[componentType]) || components[componentType]
1099
+ if (!component34) {
1100
+ throw new Error('Component "Sprite" not found')
1101
+ }
1102
+ } else if (
1103
+ typeof componentType === 'function' &&
1104
+ componentType[Symbol.for('isComponent')] === true
1105
+ ) {
1106
+ component34 = componentType
1107
+ }
1108
+
1109
+ elms[34] = component34.call(null, { props: props34 }, elms[33], component)
1110
+
1111
+ if (elms[34][Symbol.for('slots')][0]) {
1112
+ parent = elms[34][Symbol.for('slots')][0]
1113
+ slotComponent = elms[34]
1114
+ inSlot = true
1115
+ } else {
1116
+ parent = elms[34][Symbol.for('children')][0]
1117
+ }
1118
+
1119
+ if (inSlot === true && slotChildCounter === 0) {
1120
+ inSlot = false
1121
+ }
1122
+
1123
+ parent = elms[32]
1124
+ const elementConfig35 = {}
1125
+
1126
+ elms[35] = this.element(
1127
+ { parent: parent || 'root' },
1128
+ inSlot === true ? slotComponent : component
1129
+ )
1130
+
1131
+ elementConfig35['x'] = 63
1132
+ elementConfig35['y'] = 2
1133
+ elms[35].populate(elementConfig35)
1134
+
1135
+ if (inSlot === true) {
1136
+ slotChildCounter -= 1
1137
+ }
1138
+
1139
+ const cmp36 = (context.components && context.components['Sprite']) || components['Sprite']
1140
+
1141
+ parent = elms[35]
1142
+ const elementConfig36 = {}
1143
+
1144
+ elms[36] = this.element(
1145
+ { parent: parent || 'root' },
1146
+ inSlot === true ? slotComponent : component
1147
+ )
1148
+
1149
+ elementConfig36['image'] = component.image
1150
+ elementConfig36['x'] = 0
1151
+ elementConfig36['h'] = 20
1152
+ elementConfig36['w'] = 20
1153
+ elementConfig36['map'] = component.sprite
1154
+ elementConfig36['frame'] = component.maxFps[0]
1155
+
1156
+ const skip36 = []
1157
+ if (typeof cmp36 !== 'undefined') {
1158
+ for (let key in cmp36.config.props) {
1159
+ delete elementConfig36[cmp36.config.props[key]]
1160
+ skip36.push(cmp36.config.props[key])
1161
+ }
1162
+ }
1163
+
1164
+ elms[36].populate(elementConfig36)
1165
+
1166
+ if (inSlot === true) {
1167
+ slotChildCounter -= 1
1168
+ }
1169
+
1170
+ parent = elms[36]
1171
+ const props37 = {}
1172
+ props37['image'] = component.image
1173
+ props37['x'] = 0
1174
+ props37['h'] = 20
1175
+ props37['w'] = 20
1176
+ props37['map'] = component.sprite
1094
1177
 
1095
1178
  propData = component.maxFps[0]
1096
1179
  if (Array.isArray(propData) === true) {
@@ -1098,70 +1181,74 @@ props37['map'] = component.sprite
1098
1181
  }
1099
1182
  props37['frame'] = propData
1100
1183
 
1101
- componentType = props37['is'] || 'Sprite'
1184
+ componentType = props37['is'] || 'Sprite'
1185
+
1186
+ let component37
1187
+ if (typeof componentType === 'string') {
1188
+ component37 =
1189
+ (context.components && context.components[componentType]) || components[componentType]
1190
+ if (!component37) {
1191
+ throw new Error('Component "Sprite" not found')
1192
+ }
1193
+ } else if (
1194
+ typeof componentType === 'function' &&
1195
+ componentType[Symbol.for('isComponent')] === true
1196
+ ) {
1197
+ component37 = componentType
1198
+ }
1102
1199
 
1103
- let component37
1104
- if(typeof componentType === 'string') {
1105
- component37 = context.components && context.components[componentType] || components[componentType]
1106
- if(!component37) {
1107
- throw new Error('Component "Sprite" not found')
1108
- }
1109
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
1110
- component37 = componentType
1111
- }
1112
-
1113
- elms[37] = component37.call(null, {props: props37}, elms[36], component)
1114
-
1115
- if (elms[37][Symbol.for('slots')][0]) {
1116
- parent = elms[37][Symbol.for('slots')][0]
1117
- slotComponent = elms[37]
1118
- inSlot = true
1119
- } else {
1120
- parent = elms[37][Symbol.for('children')][0]
1121
- }
1122
-
1123
-
1124
- if (inSlot === true && slotChildCounter === 0) {
1125
- inSlot = false
1126
- }
1127
-
1128
-
1129
- const cmp38 =
1130
- (context.components && context.components['Sprite']) || components['Sprite']
1131
-
1132
- parent = elms[35]
1133
- const elementConfig38 = {}
1134
-
1135
- elms[38] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
1136
-
1137
- elementConfig38['image'] = component.image
1138
- elementConfig38['x'] = 18
1139
- elementConfig38['h'] = 20
1140
- elementConfig38['w'] = 20
1141
- elementConfig38['map'] = component.sprite
1142
- elementConfig38['frame'] = component.maxFps[1]
1143
-
1144
- const skip38 = []
1145
- if(typeof cmp38 !== 'undefined') {
1146
- for(let key in cmp38.config.props) {
1147
- delete elementConfig38[cmp38.config.props[key]]
1148
- skip38.push(cmp38.config.props[key])
1149
- }
1150
- }
1151
-
1152
- elms[38].populate(elementConfig38)
1153
-
1154
- if(inSlot === true) {
1155
- slotChildCounter -= 1
1156
- }
1157
-
1158
- parent = elms[38]
1159
- const props39 = {}
1160
- props39['image'] = component.image
1161
- props39['x'] = 18
1162
- props39['h'] = 20
1163
- props39['w'] = 20
1164
- props39['map'] = component.sprite
1200
+ elms[37] = component37.call(null, { props: props37 }, elms[36], component)
1201
+
1202
+ if (elms[37][Symbol.for('slots')][0]) {
1203
+ parent = elms[37][Symbol.for('slots')][0]
1204
+ slotComponent = elms[37]
1205
+ inSlot = true
1206
+ } else {
1207
+ parent = elms[37][Symbol.for('children')][0]
1208
+ }
1209
+
1210
+ if (inSlot === true && slotChildCounter === 0) {
1211
+ inSlot = false
1212
+ }
1213
+
1214
+ const cmp38 = (context.components && context.components['Sprite']) || components['Sprite']
1215
+
1216
+ parent = elms[35]
1217
+ const elementConfig38 = {}
1218
+
1219
+ elms[38] = this.element(
1220
+ { parent: parent || 'root' },
1221
+ inSlot === true ? slotComponent : component
1222
+ )
1223
+
1224
+ elementConfig38['image'] = component.image
1225
+ elementConfig38['x'] = 18
1226
+ elementConfig38['h'] = 20
1227
+ elementConfig38['w'] = 20
1228
+ elementConfig38['map'] = component.sprite
1229
+ elementConfig38['frame'] = component.maxFps[1]
1230
+
1231
+ const skip38 = []
1232
+ if (typeof cmp38 !== 'undefined') {
1233
+ for (let key in cmp38.config.props) {
1234
+ delete elementConfig38[cmp38.config.props[key]]
1235
+ skip38.push(cmp38.config.props[key])
1236
+ }
1237
+ }
1238
+
1239
+ elms[38].populate(elementConfig38)
1240
+
1241
+ if (inSlot === true) {
1242
+ slotChildCounter -= 1
1243
+ }
1244
+
1245
+ parent = elms[38]
1246
+ const props39 = {}
1247
+ props39['image'] = component.image
1248
+ props39['x'] = 18
1249
+ props39['h'] = 20
1250
+ props39['w'] = 20
1251
+ props39['map'] = component.sprite
1165
1252
 
1166
1253
  propData = component.maxFps[1]
1167
1254
  if (Array.isArray(propData) === true) {
@@ -1169,70 +1256,74 @@ props39['map'] = component.sprite
1169
1256
  }
1170
1257
  props39['frame'] = propData
1171
1258
 
1172
- componentType = props39['is'] || 'Sprite'
1259
+ componentType = props39['is'] || 'Sprite'
1260
+
1261
+ let component39
1262
+ if (typeof componentType === 'string') {
1263
+ component39 =
1264
+ (context.components && context.components[componentType]) || components[componentType]
1265
+ if (!component39) {
1266
+ throw new Error('Component "Sprite" not found')
1267
+ }
1268
+ } else if (
1269
+ typeof componentType === 'function' &&
1270
+ componentType[Symbol.for('isComponent')] === true
1271
+ ) {
1272
+ component39 = componentType
1273
+ }
1173
1274
 
1174
- let component39
1175
- if(typeof componentType === 'string') {
1176
- component39 = context.components && context.components[componentType] || components[componentType]
1177
- if(!component39) {
1178
- throw new Error('Component "Sprite" not found')
1179
- }
1180
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
1181
- component39 = componentType
1182
- }
1183
-
1184
- elms[39] = component39.call(null, {props: props39}, elms[38], component)
1185
-
1186
- if (elms[39][Symbol.for('slots')][0]) {
1187
- parent = elms[39][Symbol.for('slots')][0]
1188
- slotComponent = elms[39]
1189
- inSlot = true
1190
- } else {
1191
- parent = elms[39][Symbol.for('children')][0]
1192
- }
1193
-
1194
-
1195
- if (inSlot === true && slotChildCounter === 0) {
1196
- inSlot = false
1197
- }
1198
-
1199
-
1200
- const cmp40 =
1201
- (context.components && context.components['Sprite']) || components['Sprite']
1202
-
1203
- parent = elms[35]
1204
- const elementConfig40 = {}
1205
-
1206
- elms[40] = this.element({parent: parent || 'root'}, inSlot === true ? slotComponent : component)
1207
-
1208
- elementConfig40['image'] = component.image
1209
- elementConfig40['x'] = 36
1210
- elementConfig40['h'] = 20
1211
- elementConfig40['w'] = 20
1212
- elementConfig40['map'] = component.sprite
1213
- elementConfig40['frame'] = component.maxFps[2]
1214
-
1215
- const skip40 = []
1216
- if(typeof cmp40 !== 'undefined') {
1217
- for(let key in cmp40.config.props) {
1218
- delete elementConfig40[cmp40.config.props[key]]
1219
- skip40.push(cmp40.config.props[key])
1220
- }
1221
- }
1222
-
1223
- elms[40].populate(elementConfig40)
1224
-
1225
- if(inSlot === true) {
1226
- slotChildCounter -= 1
1227
- }
1228
-
1229
- parent = elms[40]
1230
- const props41 = {}
1231
- props41['image'] = component.image
1232
- props41['x'] = 36
1233
- props41['h'] = 20
1234
- props41['w'] = 20
1235
- props41['map'] = component.sprite
1275
+ elms[39] = component39.call(null, { props: props39 }, elms[38], component)
1276
+
1277
+ if (elms[39][Symbol.for('slots')][0]) {
1278
+ parent = elms[39][Symbol.for('slots')][0]
1279
+ slotComponent = elms[39]
1280
+ inSlot = true
1281
+ } else {
1282
+ parent = elms[39][Symbol.for('children')][0]
1283
+ }
1284
+
1285
+ if (inSlot === true && slotChildCounter === 0) {
1286
+ inSlot = false
1287
+ }
1288
+
1289
+ const cmp40 = (context.components && context.components['Sprite']) || components['Sprite']
1290
+
1291
+ parent = elms[35]
1292
+ const elementConfig40 = {}
1293
+
1294
+ elms[40] = this.element(
1295
+ { parent: parent || 'root' },
1296
+ inSlot === true ? slotComponent : component
1297
+ )
1298
+
1299
+ elementConfig40['image'] = component.image
1300
+ elementConfig40['x'] = 36
1301
+ elementConfig40['h'] = 20
1302
+ elementConfig40['w'] = 20
1303
+ elementConfig40['map'] = component.sprite
1304
+ elementConfig40['frame'] = component.maxFps[2]
1305
+
1306
+ const skip40 = []
1307
+ if (typeof cmp40 !== 'undefined') {
1308
+ for (let key in cmp40.config.props) {
1309
+ delete elementConfig40[cmp40.config.props[key]]
1310
+ skip40.push(cmp40.config.props[key])
1311
+ }
1312
+ }
1313
+
1314
+ elms[40].populate(elementConfig40)
1315
+
1316
+ if (inSlot === true) {
1317
+ slotChildCounter -= 1
1318
+ }
1319
+
1320
+ parent = elms[40]
1321
+ const props41 = {}
1322
+ props41['image'] = component.image
1323
+ props41['x'] = 36
1324
+ props41['h'] = 20
1325
+ props41['w'] = 20
1326
+ props41['map'] = component.sprite
1236
1327
 
1237
1328
  propData = component.maxFps[2]
1238
1329
  if (Array.isArray(propData) === true) {
@@ -1240,167 +1331,126 @@ props41['map'] = component.sprite
1240
1331
  }
1241
1332
  props41['frame'] = propData
1242
1333
 
1243
- componentType = props41['is'] || 'Sprite'
1334
+ componentType = props41['is'] || 'Sprite'
1335
+
1336
+ let component41
1337
+ if (typeof componentType === 'string') {
1338
+ component41 =
1339
+ (context.components && context.components[componentType]) || components[componentType]
1340
+ if (!component41) {
1341
+ throw new Error('Component "Sprite" not found')
1342
+ }
1343
+ } else if (
1344
+ typeof componentType === 'function' &&
1345
+ componentType[Symbol.for('isComponent')] === true
1346
+ ) {
1347
+ component41 = componentType
1348
+ }
1349
+
1350
+ elms[41] = component41.call(null, { props: props41 }, elms[40], component)
1244
1351
 
1245
- let component41
1246
- if(typeof componentType === 'string') {
1247
- component41 = context.components && context.components[componentType] || components[componentType]
1248
- if(!component41) {
1249
- throw new Error('Component "Sprite" not found')
1250
- }
1251
- } else if(typeof componentType === 'function' && componentType[Symbol.for('isComponent')] === true) {
1252
- component41 = componentType
1253
- }
1254
-
1255
- elms[41] = component41.call(null, {props: props41}, elms[40], component)
1256
-
1257
- if (elms[41][Symbol.for('slots')][0]) {
1258
- parent = elms[41][Symbol.for('slots')][0]
1259
- slotComponent = elms[41]
1260
- inSlot = true
1261
- } else {
1262
- parent = elms[41][Symbol.for('children')][0]
1263
- }
1264
-
1265
-
1266
- if (inSlot === true && slotChildCounter === 0) {
1267
- inSlot = false
1268
- }
1269
-
1270
- return elms
1271
- }, effects: [function anonymous(component,elms,context,components,rootComponent,effect
1272
- ) {
1273
-
1274
- if(typeof skip6 === 'undefined' ||
1275
- skip6.indexOf('frame') === -1)
1276
- elms[6].set('frame', component.fps[0])
1277
-
1278
- },function anonymous(component,elms,context,components,rootComponent,effect
1279
- ) {
1280
-
1281
- elms[7][Symbol.for('props')]['frame'] = component.fps[0]
1282
- },function anonymous(component,elms,context,components,rootComponent,effect
1283
- ) {
1284
-
1285
- if(typeof skip8 === 'undefined' ||
1286
- skip8.indexOf('frame') === -1)
1287
- elms[8].set('frame', component.fps[1])
1288
-
1289
- },function anonymous(component,elms,context,components,rootComponent,effect
1290
- ) {
1291
-
1292
- elms[9][Symbol.for('props')]['frame'] = component.fps[1]
1293
- },function anonymous(component,elms,context,components,rootComponent,effect
1294
- ) {
1295
-
1296
- if(typeof skip10 === 'undefined' ||
1297
- skip10.indexOf('frame') === -1)
1298
- elms[10].set('frame', component.fps[2])
1299
-
1300
- },function anonymous(component,elms,context,components,rootComponent,effect
1301
- ) {
1302
-
1303
- elms[11][Symbol.for('props')]['frame'] = component.fps[2]
1304
- },function anonymous(component,elms,context,components,rootComponent,effect
1305
- ) {
1306
-
1307
- if(typeof skip16 === 'undefined' ||
1308
- skip16.indexOf('frame') === -1)
1309
- elms[16].set('frame', component.avgFps[0])
1310
-
1311
- },function anonymous(component,elms,context,components,rootComponent,effect
1312
- ) {
1313
-
1314
- elms[17][Symbol.for('props')]['frame'] = component.avgFps[0]
1315
- },function anonymous(component,elms,context,components,rootComponent,effect
1316
- ) {
1317
-
1318
- if(typeof skip18 === 'undefined' ||
1319
- skip18.indexOf('frame') === -1)
1320
- elms[18].set('frame', component.avgFps[1])
1321
-
1322
- },function anonymous(component,elms,context,components,rootComponent,effect
1323
- ) {
1324
-
1325
- elms[19][Symbol.for('props')]['frame'] = component.avgFps[1]
1326
- },function anonymous(component,elms,context,components,rootComponent,effect
1327
- ) {
1328
-
1329
- if(typeof skip20 === 'undefined' ||
1330
- skip20.indexOf('frame') === -1)
1331
- elms[20].set('frame', component.avgFps[2])
1332
-
1333
- },function anonymous(component,elms,context,components,rootComponent,effect
1334
- ) {
1335
-
1336
- elms[21][Symbol.for('props')]['frame'] = component.avgFps[2]
1337
- },function anonymous(component,elms,context,components,rootComponent,effect
1338
- ) {
1339
-
1340
- if(typeof skip26 === 'undefined' ||
1341
- skip26.indexOf('frame') === -1)
1342
- elms[26].set('frame', component.minFps[0])
1343
-
1344
- },function anonymous(component,elms,context,components,rootComponent,effect
1345
- ) {
1346
-
1347
- elms[27][Symbol.for('props')]['frame'] = component.minFps[0]
1348
- },function anonymous(component,elms,context,components,rootComponent,effect
1349
- ) {
1350
-
1351
- if(typeof skip28 === 'undefined' ||
1352
- skip28.indexOf('frame') === -1)
1353
- elms[28].set('frame', component.minFps[1])
1354
-
1355
- },function anonymous(component,elms,context,components,rootComponent,effect
1356
- ) {
1357
-
1358
- elms[29][Symbol.for('props')]['frame'] = component.minFps[1]
1359
- },function anonymous(component,elms,context,components,rootComponent,effect
1360
- ) {
1361
-
1362
- if(typeof skip30 === 'undefined' ||
1363
- skip30.indexOf('frame') === -1)
1364
- elms[30].set('frame', component.minFps[2])
1365
-
1366
- },function anonymous(component,elms,context,components,rootComponent,effect
1367
- ) {
1368
-
1369
- elms[31][Symbol.for('props')]['frame'] = component.minFps[2]
1370
- },function anonymous(component,elms,context,components,rootComponent,effect
1371
- ) {
1372
-
1373
- if(typeof skip36 === 'undefined' ||
1374
- skip36.indexOf('frame') === -1)
1375
- elms[36].set('frame', component.maxFps[0])
1376
-
1377
- },function anonymous(component,elms,context,components,rootComponent,effect
1378
- ) {
1379
-
1380
- elms[37][Symbol.for('props')]['frame'] = component.maxFps[0]
1381
- },function anonymous(component,elms,context,components,rootComponent,effect
1382
- ) {
1383
-
1384
- if(typeof skip38 === 'undefined' ||
1385
- skip38.indexOf('frame') === -1)
1386
- elms[38].set('frame', component.maxFps[1])
1387
-
1388
- },function anonymous(component,elms,context,components,rootComponent,effect
1389
- ) {
1390
-
1391
- elms[39][Symbol.for('props')]['frame'] = component.maxFps[1]
1392
- },function anonymous(component,elms,context,components,rootComponent,effect
1393
- ) {
1394
-
1395
- if(typeof skip40 === 'undefined' ||
1396
- skip40.indexOf('frame') === -1)
1397
- elms[40].set('frame', component.maxFps[2])
1398
-
1399
- },function anonymous(component,elms,context,components,rootComponent,effect
1400
- ) {
1401
-
1402
- elms[41][Symbol.for('props')]['frame'] = component.maxFps[2]
1403
- }], context: {}},
1352
+ if (elms[41][Symbol.for('slots')][0]) {
1353
+ parent = elms[41][Symbol.for('slots')][0]
1354
+ slotComponent = elms[41]
1355
+ inSlot = true
1356
+ } else {
1357
+ parent = elms[41][Symbol.for('children')][0]
1358
+ }
1359
+
1360
+ if (inSlot === true && slotChildCounter === 0) {
1361
+ inSlot = false
1362
+ }
1363
+
1364
+ return elms
1365
+ },
1366
+ effects: [
1367
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1368
+ if (typeof skip6 === 'undefined' || skip6.indexOf('frame') === -1)
1369
+ elms[6].set('frame', component.fps[0])
1370
+ },
1371
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1372
+ elms[7][Symbol.for('props')]['frame'] = component.fps[0]
1373
+ },
1374
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1375
+ if (typeof skip8 === 'undefined' || skip8.indexOf('frame') === -1)
1376
+ elms[8].set('frame', component.fps[1])
1377
+ },
1378
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1379
+ elms[9][Symbol.for('props')]['frame'] = component.fps[1]
1380
+ },
1381
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1382
+ if (typeof skip10 === 'undefined' || skip10.indexOf('frame') === -1)
1383
+ elms[10].set('frame', component.fps[2])
1384
+ },
1385
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1386
+ elms[11][Symbol.for('props')]['frame'] = component.fps[2]
1387
+ },
1388
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1389
+ if (typeof skip16 === 'undefined' || skip16.indexOf('frame') === -1)
1390
+ elms[16].set('frame', component.avgFps[0])
1391
+ },
1392
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1393
+ elms[17][Symbol.for('props')]['frame'] = component.avgFps[0]
1394
+ },
1395
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1396
+ if (typeof skip18 === 'undefined' || skip18.indexOf('frame') === -1)
1397
+ elms[18].set('frame', component.avgFps[1])
1398
+ },
1399
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1400
+ elms[19][Symbol.for('props')]['frame'] = component.avgFps[1]
1401
+ },
1402
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1403
+ if (typeof skip20 === 'undefined' || skip20.indexOf('frame') === -1)
1404
+ elms[20].set('frame', component.avgFps[2])
1405
+ },
1406
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1407
+ elms[21][Symbol.for('props')]['frame'] = component.avgFps[2]
1408
+ },
1409
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1410
+ if (typeof skip26 === 'undefined' || skip26.indexOf('frame') === -1)
1411
+ elms[26].set('frame', component.minFps[0])
1412
+ },
1413
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1414
+ elms[27][Symbol.for('props')]['frame'] = component.minFps[0]
1415
+ },
1416
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1417
+ if (typeof skip28 === 'undefined' || skip28.indexOf('frame') === -1)
1418
+ elms[28].set('frame', component.minFps[1])
1419
+ },
1420
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1421
+ elms[29][Symbol.for('props')]['frame'] = component.minFps[1]
1422
+ },
1423
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1424
+ if (typeof skip30 === 'undefined' || skip30.indexOf('frame') === -1)
1425
+ elms[30].set('frame', component.minFps[2])
1426
+ },
1427
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1428
+ elms[31][Symbol.for('props')]['frame'] = component.minFps[2]
1429
+ },
1430
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1431
+ if (typeof skip36 === 'undefined' || skip36.indexOf('frame') === -1)
1432
+ elms[36].set('frame', component.maxFps[0])
1433
+ },
1434
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1435
+ elms[37][Symbol.for('props')]['frame'] = component.maxFps[0]
1436
+ },
1437
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1438
+ if (typeof skip38 === 'undefined' || skip38.indexOf('frame') === -1)
1439
+ elms[38].set('frame', component.maxFps[1])
1440
+ },
1441
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1442
+ elms[39][Symbol.for('props')]['frame'] = component.maxFps[1]
1443
+ },
1444
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1445
+ if (typeof skip40 === 'undefined' || skip40.indexOf('frame') === -1)
1446
+ elms[40].set('frame', component.maxFps[2])
1447
+ },
1448
+ function anonymous(component, elms, context, components, rootComponent, effect) {
1449
+ elms[41][Symbol.for('props')]['frame'] = component.maxFps[2]
1450
+ },
1451
+ ],
1452
+ context: {},
1453
+ },
1404
1454
  state() {
1405
1455
  return {
1406
1456
  image: fps_sprite,