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