@lightningjs/blits 1.48.0 → 2.0.0-beta.2
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/element-test-full.txt +0 -0
- package/index.d.ts +19 -48
- package/package.json +4 -3
- package/src/component/base/methods.js +16 -76
- package/src/component/base/utils.js +18 -4
- package/src/component/setup/props.js +37 -28
- package/src/component/setup/state.js +4 -4
- package/src/component.js +26 -17
- package/src/components/Circle.js +49 -7
- package/src/components/FPScounter.js +226 -88
- package/src/components/RouterView.js +57 -6
- package/src/components/Sprite.js +54 -8
- package/src/engines/L3/element.js +109 -86
- package/src/engines/L3/fontLoader.js +26 -31
- package/src/engines/L3/shaderLoader.js +56 -6
- package/src/focus.js +9 -9
- package/src/launch.js +1 -2
- package/src/lib/codegenerator/generator.js +116 -15
- package/src/lib/colors/colors.js +0 -1
- package/src/lib/lifecycle.js +4 -4
- package/src/lib/shaders/shaders.js +164 -0
- package/src/lib/symbols.js +8 -0
- package/src/lib/templateparser/parser.js +6 -2
- package/src/lib/utils.js +36 -0
- package/src/router/router.js +9 -9
- package/test-output.txt +0 -0
- package/vite/blitsTips.js +57 -0
- package/vite/msdfGenerator.js +52 -6
- package/vscode/data/template-attributes.json +112 -0
package/src/components/Circle.js
CHANGED
|
@@ -23,6 +23,47 @@ export default () =>
|
|
|
23
23
|
code: {
|
|
24
24
|
render: function anonymous(parent, component, context, components, effect, getRaw, Log) {
|
|
25
25
|
const elms = []
|
|
26
|
+
const validAttributes = [
|
|
27
|
+
'parent',
|
|
28
|
+
'rotation',
|
|
29
|
+
'w',
|
|
30
|
+
'width',
|
|
31
|
+
'h',
|
|
32
|
+
'height',
|
|
33
|
+
'x',
|
|
34
|
+
'y',
|
|
35
|
+
'z',
|
|
36
|
+
'zIndex',
|
|
37
|
+
'color',
|
|
38
|
+
'src',
|
|
39
|
+
'texture',
|
|
40
|
+
'fit',
|
|
41
|
+
'rtt',
|
|
42
|
+
'mount',
|
|
43
|
+
'pivot',
|
|
44
|
+
'scale',
|
|
45
|
+
'show',
|
|
46
|
+
'alpha',
|
|
47
|
+
'rounded',
|
|
48
|
+
'border',
|
|
49
|
+
'shadow',
|
|
50
|
+
'shader',
|
|
51
|
+
'clipping',
|
|
52
|
+
'overflow',
|
|
53
|
+
'font',
|
|
54
|
+
'size',
|
|
55
|
+
'maxwidth',
|
|
56
|
+
'maxheight',
|
|
57
|
+
'maxlines',
|
|
58
|
+
'textoverflow',
|
|
59
|
+
'letterspacing',
|
|
60
|
+
'lineheight',
|
|
61
|
+
'contain',
|
|
62
|
+
'align',
|
|
63
|
+
'content',
|
|
64
|
+
'placement',
|
|
65
|
+
'inspector-data',
|
|
66
|
+
]
|
|
26
67
|
const elementConfigs = []
|
|
27
68
|
const forloops = []
|
|
28
69
|
const props = []
|
|
@@ -47,7 +88,7 @@ export default () =>
|
|
|
47
88
|
elementConfigs[0]['color'] = component.color
|
|
48
89
|
elementConfigs[0]['w'] = component.size
|
|
49
90
|
elementConfigs[0]['h'] = component.size
|
|
50
|
-
elementConfigs[0]['
|
|
91
|
+
elementConfigs[0]['rounded'] = component.radius
|
|
51
92
|
elms[0].populate(elementConfigs[0])
|
|
52
93
|
|
|
53
94
|
if (inSlot === true) {
|
|
@@ -70,25 +111,26 @@ export default () =>
|
|
|
70
111
|
props.length = 0
|
|
71
112
|
skips.length = 0
|
|
72
113
|
},
|
|
114
|
+
skips,
|
|
73
115
|
}
|
|
74
116
|
},
|
|
75
117
|
effects: [
|
|
76
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
118
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
77
119
|
elms[0].set('color', component.color)
|
|
78
120
|
},
|
|
79
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
121
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
80
122
|
elms[0].set('w', component.size)
|
|
81
123
|
},
|
|
82
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
124
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
83
125
|
elms[0].set('h', component.size)
|
|
84
126
|
},
|
|
85
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
86
|
-
elms[0].set('
|
|
127
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
128
|
+
elms[0].set('rounded', component.radius)
|
|
87
129
|
},
|
|
88
130
|
],
|
|
89
131
|
context: {},
|
|
90
132
|
},
|
|
91
|
-
props:
|
|
133
|
+
props: { size: 40, color: 'white' },
|
|
92
134
|
computed: {
|
|
93
135
|
radius() {
|
|
94
136
|
return this.size / 2
|
|
@@ -25,6 +25,47 @@ export default () =>
|
|
|
25
25
|
code: {
|
|
26
26
|
render: function anonymous(parent, component, context, components, effect, getRaw, Log) {
|
|
27
27
|
const elms = []
|
|
28
|
+
const validAttributes = [
|
|
29
|
+
'parent',
|
|
30
|
+
'rotation',
|
|
31
|
+
'w',
|
|
32
|
+
'width',
|
|
33
|
+
'h',
|
|
34
|
+
'height',
|
|
35
|
+
'x',
|
|
36
|
+
'y',
|
|
37
|
+
'z',
|
|
38
|
+
'zIndex',
|
|
39
|
+
'color',
|
|
40
|
+
'src',
|
|
41
|
+
'texture',
|
|
42
|
+
'fit',
|
|
43
|
+
'rtt',
|
|
44
|
+
'mount',
|
|
45
|
+
'pivot',
|
|
46
|
+
'scale',
|
|
47
|
+
'show',
|
|
48
|
+
'alpha',
|
|
49
|
+
'rounded',
|
|
50
|
+
'border',
|
|
51
|
+
'shadow',
|
|
52
|
+
'shader',
|
|
53
|
+
'clipping',
|
|
54
|
+
'overflow',
|
|
55
|
+
'font',
|
|
56
|
+
'size',
|
|
57
|
+
'maxwidth',
|
|
58
|
+
'maxheight',
|
|
59
|
+
'maxlines',
|
|
60
|
+
'textoverflow',
|
|
61
|
+
'letterspacing',
|
|
62
|
+
'lineheight',
|
|
63
|
+
'contain',
|
|
64
|
+
'align',
|
|
65
|
+
'content',
|
|
66
|
+
'placement',
|
|
67
|
+
'inspector-data',
|
|
68
|
+
]
|
|
28
69
|
const elementConfigs = []
|
|
29
70
|
const forloops = []
|
|
30
71
|
const props = []
|
|
@@ -99,10 +140,16 @@ export default () =>
|
|
|
99
140
|
elementConfigs[3]['frame'] = 'fps'
|
|
100
141
|
|
|
101
142
|
skips[3] = []
|
|
102
|
-
if (typeof cmps[3] !== 'undefined') {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
143
|
+
if (typeof cmps[3] !== 'undefined' && cmps[3][Symbol.for('config')].props !== undefined) {
|
|
144
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
145
|
+
let props = cmps[3][Symbol.for('config')].props
|
|
146
|
+
if (Array.isArray(props) === false)
|
|
147
|
+
props = Object.keys(cmps[3][Symbol.for('config')].props)
|
|
148
|
+
for (let k = 0; k < props.length; k++) {
|
|
149
|
+
const key = props[k]
|
|
150
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
151
|
+
delete elementConfigs[3][key]
|
|
152
|
+
skips[3].push(key)
|
|
106
153
|
}
|
|
107
154
|
}
|
|
108
155
|
|
|
@@ -184,10 +231,16 @@ export default () =>
|
|
|
184
231
|
elementConfigs[6]['frame'] = component.fps[0]
|
|
185
232
|
|
|
186
233
|
skips[6] = []
|
|
187
|
-
if (typeof cmps[6] !== 'undefined') {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
234
|
+
if (typeof cmps[6] !== 'undefined' && cmps[6][Symbol.for('config')].props !== undefined) {
|
|
235
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
236
|
+
let props = cmps[6][Symbol.for('config')].props
|
|
237
|
+
if (Array.isArray(props) === false)
|
|
238
|
+
props = Object.keys(cmps[6][Symbol.for('config')].props)
|
|
239
|
+
for (let k = 0; k < props.length; k++) {
|
|
240
|
+
const key = props[k]
|
|
241
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
242
|
+
delete elementConfigs[6][key]
|
|
243
|
+
skips[6].push(key)
|
|
191
244
|
}
|
|
192
245
|
}
|
|
193
246
|
|
|
@@ -259,10 +312,16 @@ export default () =>
|
|
|
259
312
|
elementConfigs[8]['frame'] = component.fps[1]
|
|
260
313
|
|
|
261
314
|
skips[8] = []
|
|
262
|
-
if (typeof cmps[8] !== 'undefined') {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
315
|
+
if (typeof cmps[8] !== 'undefined' && cmps[8][Symbol.for('config')].props !== undefined) {
|
|
316
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
317
|
+
let props = cmps[8][Symbol.for('config')].props
|
|
318
|
+
if (Array.isArray(props) === false)
|
|
319
|
+
props = Object.keys(cmps[8][Symbol.for('config')].props)
|
|
320
|
+
for (let k = 0; k < props.length; k++) {
|
|
321
|
+
const key = props[k]
|
|
322
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
323
|
+
delete elementConfigs[8][key]
|
|
324
|
+
skips[8].push(key)
|
|
266
325
|
}
|
|
267
326
|
}
|
|
268
327
|
|
|
@@ -334,10 +393,16 @@ export default () =>
|
|
|
334
393
|
elementConfigs[10]['frame'] = component.fps[2]
|
|
335
394
|
|
|
336
395
|
skips[10] = []
|
|
337
|
-
if (typeof cmps[10] !== 'undefined') {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
396
|
+
if (typeof cmps[10] !== 'undefined' && cmps[10][Symbol.for('config')].props !== undefined) {
|
|
397
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
398
|
+
let props = cmps[10][Symbol.for('config')].props
|
|
399
|
+
if (Array.isArray(props) === false)
|
|
400
|
+
props = Object.keys(cmps[10][Symbol.for('config')].props)
|
|
401
|
+
for (let k = 0; k < props.length; k++) {
|
|
402
|
+
const key = props[k]
|
|
403
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
404
|
+
delete elementConfigs[10][key]
|
|
405
|
+
skips[10].push(key)
|
|
341
406
|
}
|
|
342
407
|
}
|
|
343
408
|
|
|
@@ -424,10 +489,16 @@ export default () =>
|
|
|
424
489
|
elementConfigs[13]['frame'] = 'avg'
|
|
425
490
|
|
|
426
491
|
skips[13] = []
|
|
427
|
-
if (typeof cmps[13] !== 'undefined') {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
492
|
+
if (typeof cmps[13] !== 'undefined' && cmps[13][Symbol.for('config')].props !== undefined) {
|
|
493
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
494
|
+
let props = cmps[13][Symbol.for('config')].props
|
|
495
|
+
if (Array.isArray(props) === false)
|
|
496
|
+
props = Object.keys(cmps[13][Symbol.for('config')].props)
|
|
497
|
+
for (let k = 0; k < props.length; k++) {
|
|
498
|
+
const key = props[k]
|
|
499
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
500
|
+
delete elementConfigs[13][key]
|
|
501
|
+
skips[13].push(key)
|
|
431
502
|
}
|
|
432
503
|
}
|
|
433
504
|
|
|
@@ -510,10 +581,16 @@ export default () =>
|
|
|
510
581
|
elementConfigs[16]['frame'] = component.avgFps[0]
|
|
511
582
|
|
|
512
583
|
skips[16] = []
|
|
513
|
-
if (typeof cmps[16] !== 'undefined') {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
584
|
+
if (typeof cmps[16] !== 'undefined' && cmps[16][Symbol.for('config')].props !== undefined) {
|
|
585
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
586
|
+
let props = cmps[16][Symbol.for('config')].props
|
|
587
|
+
if (Array.isArray(props) === false)
|
|
588
|
+
props = Object.keys(cmps[16][Symbol.for('config')].props)
|
|
589
|
+
for (let k = 0; k < props.length; k++) {
|
|
590
|
+
const key = props[k]
|
|
591
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
592
|
+
delete elementConfigs[16][key]
|
|
593
|
+
skips[16].push(key)
|
|
517
594
|
}
|
|
518
595
|
}
|
|
519
596
|
|
|
@@ -585,10 +662,16 @@ export default () =>
|
|
|
585
662
|
elementConfigs[18]['frame'] = component.avgFps[1]
|
|
586
663
|
|
|
587
664
|
skips[18] = []
|
|
588
|
-
if (typeof cmps[18] !== 'undefined') {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
665
|
+
if (typeof cmps[18] !== 'undefined' && cmps[18][Symbol.for('config')].props !== undefined) {
|
|
666
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
667
|
+
let props = cmps[18][Symbol.for('config')].props
|
|
668
|
+
if (Array.isArray(props) === false)
|
|
669
|
+
props = Object.keys(cmps[18][Symbol.for('config')].props)
|
|
670
|
+
for (let k = 0; k < props.length; k++) {
|
|
671
|
+
const key = props[k]
|
|
672
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
673
|
+
delete elementConfigs[18][key]
|
|
674
|
+
skips[18].push(key)
|
|
592
675
|
}
|
|
593
676
|
}
|
|
594
677
|
|
|
@@ -660,10 +743,16 @@ export default () =>
|
|
|
660
743
|
elementConfigs[20]['frame'] = component.avgFps[2]
|
|
661
744
|
|
|
662
745
|
skips[20] = []
|
|
663
|
-
if (typeof cmps[20] !== 'undefined') {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
746
|
+
if (typeof cmps[20] !== 'undefined' && cmps[20][Symbol.for('config')].props !== undefined) {
|
|
747
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
748
|
+
let props = cmps[20][Symbol.for('config')].props
|
|
749
|
+
if (Array.isArray(props) === false)
|
|
750
|
+
props = Object.keys(cmps[20][Symbol.for('config')].props)
|
|
751
|
+
for (let k = 0; k < props.length; k++) {
|
|
752
|
+
const key = props[k]
|
|
753
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
754
|
+
delete elementConfigs[20][key]
|
|
755
|
+
skips[20].push(key)
|
|
667
756
|
}
|
|
668
757
|
}
|
|
669
758
|
|
|
@@ -751,10 +840,16 @@ export default () =>
|
|
|
751
840
|
elementConfigs[23]['frame'] = 'min'
|
|
752
841
|
|
|
753
842
|
skips[23] = []
|
|
754
|
-
if (typeof cmps[23] !== 'undefined') {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
843
|
+
if (typeof cmps[23] !== 'undefined' && cmps[23][Symbol.for('config')].props !== undefined) {
|
|
844
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
845
|
+
let props = cmps[23][Symbol.for('config')].props
|
|
846
|
+
if (Array.isArray(props) === false)
|
|
847
|
+
props = Object.keys(cmps[23][Symbol.for('config')].props)
|
|
848
|
+
for (let k = 0; k < props.length; k++) {
|
|
849
|
+
const key = props[k]
|
|
850
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
851
|
+
delete elementConfigs[23][key]
|
|
852
|
+
skips[23].push(key)
|
|
758
853
|
}
|
|
759
854
|
}
|
|
760
855
|
|
|
@@ -837,10 +932,16 @@ export default () =>
|
|
|
837
932
|
elementConfigs[26]['frame'] = component.minFps[0]
|
|
838
933
|
|
|
839
934
|
skips[26] = []
|
|
840
|
-
if (typeof cmps[26] !== 'undefined') {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
935
|
+
if (typeof cmps[26] !== 'undefined' && cmps[26][Symbol.for('config')].props !== undefined) {
|
|
936
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
937
|
+
let props = cmps[26][Symbol.for('config')].props
|
|
938
|
+
if (Array.isArray(props) === false)
|
|
939
|
+
props = Object.keys(cmps[26][Symbol.for('config')].props)
|
|
940
|
+
for (let k = 0; k < props.length; k++) {
|
|
941
|
+
const key = props[k]
|
|
942
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
943
|
+
delete elementConfigs[26][key]
|
|
944
|
+
skips[26].push(key)
|
|
844
945
|
}
|
|
845
946
|
}
|
|
846
947
|
|
|
@@ -912,10 +1013,16 @@ export default () =>
|
|
|
912
1013
|
elementConfigs[28]['frame'] = component.minFps[1]
|
|
913
1014
|
|
|
914
1015
|
skips[28] = []
|
|
915
|
-
if (typeof cmps[28] !== 'undefined') {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1016
|
+
if (typeof cmps[28] !== 'undefined' && cmps[28][Symbol.for('config')].props !== undefined) {
|
|
1017
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1018
|
+
let props = cmps[28][Symbol.for('config')].props
|
|
1019
|
+
if (Array.isArray(props) === false)
|
|
1020
|
+
props = Object.keys(cmps[28][Symbol.for('config')].props)
|
|
1021
|
+
for (let k = 0; k < props.length; k++) {
|
|
1022
|
+
const key = props[k]
|
|
1023
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1024
|
+
delete elementConfigs[28][key]
|
|
1025
|
+
skips[28].push(key)
|
|
919
1026
|
}
|
|
920
1027
|
}
|
|
921
1028
|
|
|
@@ -987,10 +1094,16 @@ export default () =>
|
|
|
987
1094
|
elementConfigs[30]['frame'] = component.minFps[2]
|
|
988
1095
|
|
|
989
1096
|
skips[30] = []
|
|
990
|
-
if (typeof cmps[30] !== 'undefined') {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1097
|
+
if (typeof cmps[30] !== 'undefined' && cmps[30][Symbol.for('config')].props !== undefined) {
|
|
1098
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1099
|
+
let props = cmps[30][Symbol.for('config')].props
|
|
1100
|
+
if (Array.isArray(props) === false)
|
|
1101
|
+
props = Object.keys(cmps[30][Symbol.for('config')].props)
|
|
1102
|
+
for (let k = 0; k < props.length; k++) {
|
|
1103
|
+
const key = props[k]
|
|
1104
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1105
|
+
delete elementConfigs[30][key]
|
|
1106
|
+
skips[30].push(key)
|
|
994
1107
|
}
|
|
995
1108
|
}
|
|
996
1109
|
|
|
@@ -1077,10 +1190,16 @@ export default () =>
|
|
|
1077
1190
|
elementConfigs[33]['frame'] = 'max'
|
|
1078
1191
|
|
|
1079
1192
|
skips[33] = []
|
|
1080
|
-
if (typeof cmps[33] !== 'undefined') {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1193
|
+
if (typeof cmps[33] !== 'undefined' && cmps[33][Symbol.for('config')].props !== undefined) {
|
|
1194
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1195
|
+
let props = cmps[33][Symbol.for('config')].props
|
|
1196
|
+
if (Array.isArray(props) === false)
|
|
1197
|
+
props = Object.keys(cmps[33][Symbol.for('config')].props)
|
|
1198
|
+
for (let k = 0; k < props.length; k++) {
|
|
1199
|
+
const key = props[k]
|
|
1200
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1201
|
+
delete elementConfigs[33][key]
|
|
1202
|
+
skips[33].push(key)
|
|
1084
1203
|
}
|
|
1085
1204
|
}
|
|
1086
1205
|
|
|
@@ -1162,10 +1281,16 @@ export default () =>
|
|
|
1162
1281
|
elementConfigs[36]['frame'] = component.maxFps[0]
|
|
1163
1282
|
|
|
1164
1283
|
skips[36] = []
|
|
1165
|
-
if (typeof cmps[36] !== 'undefined') {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1284
|
+
if (typeof cmps[36] !== 'undefined' && cmps[36][Symbol.for('config')].props !== undefined) {
|
|
1285
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1286
|
+
let props = cmps[36][Symbol.for('config')].props
|
|
1287
|
+
if (Array.isArray(props) === false)
|
|
1288
|
+
props = Object.keys(cmps[36][Symbol.for('config')].props)
|
|
1289
|
+
for (let k = 0; k < props.length; k++) {
|
|
1290
|
+
const key = props[k]
|
|
1291
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1292
|
+
delete elementConfigs[36][key]
|
|
1293
|
+
skips[36].push(key)
|
|
1169
1294
|
}
|
|
1170
1295
|
}
|
|
1171
1296
|
|
|
@@ -1237,10 +1362,16 @@ export default () =>
|
|
|
1237
1362
|
elementConfigs[38]['frame'] = component.maxFps[1]
|
|
1238
1363
|
|
|
1239
1364
|
skips[38] = []
|
|
1240
|
-
if (typeof cmps[38] !== 'undefined') {
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1365
|
+
if (typeof cmps[38] !== 'undefined' && cmps[38][Symbol.for('config')].props !== undefined) {
|
|
1366
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1367
|
+
let props = cmps[38][Symbol.for('config')].props
|
|
1368
|
+
if (Array.isArray(props) === false)
|
|
1369
|
+
props = Object.keys(cmps[38][Symbol.for('config')].props)
|
|
1370
|
+
for (let k = 0; k < props.length; k++) {
|
|
1371
|
+
const key = props[k]
|
|
1372
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1373
|
+
delete elementConfigs[38][key]
|
|
1374
|
+
skips[38].push(key)
|
|
1244
1375
|
}
|
|
1245
1376
|
}
|
|
1246
1377
|
|
|
@@ -1312,10 +1443,16 @@ export default () =>
|
|
|
1312
1443
|
elementConfigs[40]['frame'] = component.maxFps[2]
|
|
1313
1444
|
|
|
1314
1445
|
skips[40] = []
|
|
1315
|
-
if (typeof cmps[40] !== 'undefined') {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1446
|
+
if (typeof cmps[40] !== 'undefined' && cmps[40][Symbol.for('config')].props !== undefined) {
|
|
1447
|
+
// attributes that are a prop should be removed from element config (even if it's a know element prop)
|
|
1448
|
+
let props = cmps[40][Symbol.for('config')].props
|
|
1449
|
+
if (Array.isArray(props) === false)
|
|
1450
|
+
props = Object.keys(cmps[40][Symbol.for('config')].props)
|
|
1451
|
+
for (let k = 0; k < props.length; k++) {
|
|
1452
|
+
const key = props[k]
|
|
1453
|
+
if (validAttributes.indexOf(key) !== -1) continue
|
|
1454
|
+
delete elementConfigs[40][key]
|
|
1455
|
+
skips[40].push(key)
|
|
1319
1456
|
}
|
|
1320
1457
|
}
|
|
1321
1458
|
|
|
@@ -1465,10 +1602,11 @@ export default () =>
|
|
|
1465
1602
|
props.length = 0
|
|
1466
1603
|
skips.length = 0
|
|
1467
1604
|
},
|
|
1605
|
+
skips,
|
|
1468
1606
|
}
|
|
1469
1607
|
},
|
|
1470
1608
|
effects: [
|
|
1471
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1609
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1472
1610
|
if (
|
|
1473
1611
|
typeof skips === 'undefined' ||
|
|
1474
1612
|
typeof skips[6] === 'undefined' ||
|
|
@@ -1476,10 +1614,10 @@ export default () =>
|
|
|
1476
1614
|
)
|
|
1477
1615
|
elms[6].set('frame', component.fps[0])
|
|
1478
1616
|
},
|
|
1479
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1617
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1480
1618
|
elms[7][Symbol.for('props')]['frame'] = component.fps[0]
|
|
1481
1619
|
},
|
|
1482
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1620
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1483
1621
|
if (
|
|
1484
1622
|
typeof skips === 'undefined' ||
|
|
1485
1623
|
typeof skips[8] === 'undefined' ||
|
|
@@ -1487,10 +1625,10 @@ export default () =>
|
|
|
1487
1625
|
)
|
|
1488
1626
|
elms[8].set('frame', component.fps[1])
|
|
1489
1627
|
},
|
|
1490
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1628
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1491
1629
|
elms[9][Symbol.for('props')]['frame'] = component.fps[1]
|
|
1492
1630
|
},
|
|
1493
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1631
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1494
1632
|
if (
|
|
1495
1633
|
typeof skips === 'undefined' ||
|
|
1496
1634
|
typeof skips[10] === 'undefined' ||
|
|
@@ -1498,10 +1636,10 @@ export default () =>
|
|
|
1498
1636
|
)
|
|
1499
1637
|
elms[10].set('frame', component.fps[2])
|
|
1500
1638
|
},
|
|
1501
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1639
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1502
1640
|
elms[11][Symbol.for('props')]['frame'] = component.fps[2]
|
|
1503
1641
|
},
|
|
1504
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1642
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1505
1643
|
if (
|
|
1506
1644
|
typeof skips === 'undefined' ||
|
|
1507
1645
|
typeof skips[16] === 'undefined' ||
|
|
@@ -1509,10 +1647,10 @@ export default () =>
|
|
|
1509
1647
|
)
|
|
1510
1648
|
elms[16].set('frame', component.avgFps[0])
|
|
1511
1649
|
},
|
|
1512
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1650
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1513
1651
|
elms[17][Symbol.for('props')]['frame'] = component.avgFps[0]
|
|
1514
1652
|
},
|
|
1515
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1653
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1516
1654
|
if (
|
|
1517
1655
|
typeof skips === 'undefined' ||
|
|
1518
1656
|
typeof skips[18] === 'undefined' ||
|
|
@@ -1520,10 +1658,10 @@ export default () =>
|
|
|
1520
1658
|
)
|
|
1521
1659
|
elms[18].set('frame', component.avgFps[1])
|
|
1522
1660
|
},
|
|
1523
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1661
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1524
1662
|
elms[19][Symbol.for('props')]['frame'] = component.avgFps[1]
|
|
1525
1663
|
},
|
|
1526
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1664
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1527
1665
|
if (
|
|
1528
1666
|
typeof skips === 'undefined' ||
|
|
1529
1667
|
typeof skips[20] === 'undefined' ||
|
|
@@ -1531,10 +1669,10 @@ export default () =>
|
|
|
1531
1669
|
)
|
|
1532
1670
|
elms[20].set('frame', component.avgFps[2])
|
|
1533
1671
|
},
|
|
1534
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1672
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1535
1673
|
elms[21][Symbol.for('props')]['frame'] = component.avgFps[2]
|
|
1536
1674
|
},
|
|
1537
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1675
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1538
1676
|
if (
|
|
1539
1677
|
typeof skips === 'undefined' ||
|
|
1540
1678
|
typeof skips[26] === 'undefined' ||
|
|
@@ -1542,10 +1680,10 @@ export default () =>
|
|
|
1542
1680
|
)
|
|
1543
1681
|
elms[26].set('frame', component.minFps[0])
|
|
1544
1682
|
},
|
|
1545
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1683
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1546
1684
|
elms[27][Symbol.for('props')]['frame'] = component.minFps[0]
|
|
1547
1685
|
},
|
|
1548
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1686
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1549
1687
|
if (
|
|
1550
1688
|
typeof skips === 'undefined' ||
|
|
1551
1689
|
typeof skips[28] === 'undefined' ||
|
|
@@ -1553,10 +1691,10 @@ export default () =>
|
|
|
1553
1691
|
)
|
|
1554
1692
|
elms[28].set('frame', component.minFps[1])
|
|
1555
1693
|
},
|
|
1556
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1694
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1557
1695
|
elms[29][Symbol.for('props')]['frame'] = component.minFps[1]
|
|
1558
1696
|
},
|
|
1559
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1697
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1560
1698
|
if (
|
|
1561
1699
|
typeof skips === 'undefined' ||
|
|
1562
1700
|
typeof skips[30] === 'undefined' ||
|
|
@@ -1564,10 +1702,10 @@ export default () =>
|
|
|
1564
1702
|
)
|
|
1565
1703
|
elms[30].set('frame', component.minFps[2])
|
|
1566
1704
|
},
|
|
1567
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1705
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1568
1706
|
elms[31][Symbol.for('props')]['frame'] = component.minFps[2]
|
|
1569
1707
|
},
|
|
1570
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1708
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1571
1709
|
if (
|
|
1572
1710
|
typeof skips === 'undefined' ||
|
|
1573
1711
|
typeof skips[36] === 'undefined' ||
|
|
@@ -1575,10 +1713,10 @@ export default () =>
|
|
|
1575
1713
|
)
|
|
1576
1714
|
elms[36].set('frame', component.maxFps[0])
|
|
1577
1715
|
},
|
|
1578
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1716
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1579
1717
|
elms[37][Symbol.for('props')]['frame'] = component.maxFps[0]
|
|
1580
1718
|
},
|
|
1581
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1719
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1582
1720
|
if (
|
|
1583
1721
|
typeof skips === 'undefined' ||
|
|
1584
1722
|
typeof skips[38] === 'undefined' ||
|
|
@@ -1586,10 +1724,10 @@ export default () =>
|
|
|
1586
1724
|
)
|
|
1587
1725
|
elms[38].set('frame', component.maxFps[1])
|
|
1588
1726
|
},
|
|
1589
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1727
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1590
1728
|
elms[39][Symbol.for('props')]['frame'] = component.maxFps[1]
|
|
1591
1729
|
},
|
|
1592
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1730
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1593
1731
|
if (
|
|
1594
1732
|
typeof skips === 'undefined' ||
|
|
1595
1733
|
typeof skips[40] === 'undefined' ||
|
|
@@ -1597,7 +1735,7 @@ export default () =>
|
|
|
1597
1735
|
)
|
|
1598
1736
|
elms[40].set('frame', component.maxFps[2])
|
|
1599
1737
|
},
|
|
1600
|
-
function anonymous(component, elms, context, components, rootComponent, effect) {
|
|
1738
|
+
function anonymous(component, elms, context, components, rootComponent, skips, effect) {
|
|
1601
1739
|
elms[41][Symbol.for('props')]['frame'] = component.maxFps[2]
|
|
1602
1740
|
},
|
|
1603
1741
|
],
|