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