@lightningjs/blits 2.0.0-beta.1 → 2.0.0-beta.11
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 +83 -0
- package/README.md +2 -0
- package/element-test-full.txt +0 -0
- package/index.d.ts +169 -41
- package/package.json +28 -8
- package/scripts/lint.js +17 -0
- package/scripts/prepublishOnly.js +15 -6
- package/scripts/prepush.js +25 -7
- package/src/announcer/announcer.js +54 -6
- package/src/announcer/speechSynthesis.js +156 -37
- package/src/application.js +98 -3
- package/src/component/base/methods.js +5 -2
- package/src/component/base/router.js +6 -0
- package/src/component/base/timeouts_intervals.js +56 -0
- package/src/component/setup/routes.js +5 -0
- package/src/component/setup/state.js +2 -0
- package/src/component.js +64 -24
- package/src/components/Circle.js +5 -3
- package/src/components/FPScounter.js +1591 -1577
- package/src/components/RouterView.js +141 -124
- package/src/components/Sprite.js +65 -8
- package/src/components/index.js +0 -2
- package/src/constants.js +17 -0
- package/src/engine.js +17 -0
- package/src/engines/L3/element.js +101 -7
- package/src/engines/L3/fontLoader.js +17 -0
- package/src/engines/L3/index.js +17 -0
- package/src/engines/L3/launch.js +4 -1
- package/src/engines/L3/shaderLoader.js +17 -0
- package/src/engines/index.js +17 -0
- package/src/{focus.js → focus/focus.js} +6 -18
- package/src/focus/helpers.js +31 -0
- package/src/focus/hover.js +94 -0
- package/src/helpers/fetchJson.js +4 -6
- package/src/launch.js +1 -0
- package/src/lib/codegenerator/generator.js +55 -9
- package/src/lib/lifecycle.js +34 -3
- package/src/lib/log.js +4 -4
- package/src/lib/precompiler/precompiler.js +23 -14
- package/src/lib/reactivity/effect.js +3 -2
- package/src/lib/reactivityguard/computedprops.js +113 -28
- package/src/lib/shaders/shaders.js +2 -1
- package/src/lib/symbols.js +19 -0
- package/src/lib/utils.js +17 -0
- package/src/plugin.js +17 -0
- package/src/plugins/appstate.d.ts +26 -0
- package/src/plugins/index.d.ts +28 -0
- package/src/plugins/language.d.ts +37 -0
- package/src/plugins/storage/localCookie.js +4 -6
- package/src/plugins/storage/storage.d.ts +31 -0
- package/src/plugins/theme.d.ts +43 -0
- package/src/plugins/theme.js +30 -3
- package/src/router/router.js +78 -14
- package/test-output.txt +0 -0
- package/vite/inject-dev-config.js +17 -0
- package/vite/preCompiler.js +15 -5
- package/vscode/data/template-attributes.json +335 -86
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
"x": {
|
|
3
3
|
"attrType": "regular",
|
|
4
4
|
"types": [
|
|
5
|
-
"number"
|
|
5
|
+
"number",
|
|
6
|
+
"string"
|
|
6
7
|
],
|
|
7
8
|
"defaultValue": 0,
|
|
8
9
|
"reactive": true,
|
|
9
|
-
"description": "The x position of the Element in pixels, relative to its parent - allows negative values and decimals.",
|
|
10
|
+
"description": "The x position of the Element in pixels (or percentage), relative to its parent - allows negative values and decimals.",
|
|
10
11
|
"usedIn": [
|
|
11
12
|
"Element",
|
|
12
13
|
"Text",
|
|
@@ -18,11 +19,12 @@
|
|
|
18
19
|
"y": {
|
|
19
20
|
"attrType": "regular",
|
|
20
21
|
"types": [
|
|
21
|
-
"number"
|
|
22
|
+
"number",
|
|
23
|
+
"string"
|
|
22
24
|
],
|
|
23
25
|
"defaultValue": 0,
|
|
24
26
|
"reactive": true,
|
|
25
|
-
"description": "The y position of the Element in pixels, relative to its parent - allows negative values and decimals.",
|
|
27
|
+
"description": "The y position of the Element in pixels (or percentage), relative to its parent - allows negative values and decimals.",
|
|
26
28
|
"usedIn": [
|
|
27
29
|
"Element",
|
|
28
30
|
"Text",
|
|
@@ -49,11 +51,12 @@
|
|
|
49
51
|
"w": {
|
|
50
52
|
"attrType": "regular",
|
|
51
53
|
"types": [
|
|
52
|
-
"number"
|
|
54
|
+
"number",
|
|
55
|
+
"string"
|
|
53
56
|
],
|
|
54
57
|
"defaultValue": 0,
|
|
55
58
|
"reactive": true,
|
|
56
|
-
"description": "The width of the element in pixels
|
|
59
|
+
"description": "The width of the element in pixels or percentage (e.g., \"50%\"). Allows decimals.",
|
|
57
60
|
"usedIn": [
|
|
58
61
|
"Element",
|
|
59
62
|
"Text",
|
|
@@ -63,11 +66,12 @@
|
|
|
63
66
|
"h": {
|
|
64
67
|
"attrType": "regular",
|
|
65
68
|
"types": [
|
|
66
|
-
"number"
|
|
69
|
+
"number",
|
|
70
|
+
"string"
|
|
67
71
|
],
|
|
68
72
|
"defaultValue": 0,
|
|
69
73
|
"reactive": true,
|
|
70
|
-
"description": "The height of the element in pixels
|
|
74
|
+
"description": "The height of the element in pixels or percentage (e.g., \"50%\"). Allows decimals.",
|
|
71
75
|
"usedIn": [
|
|
72
76
|
"Element",
|
|
73
77
|
"Text",
|
|
@@ -81,7 +85,7 @@
|
|
|
81
85
|
],
|
|
82
86
|
"defaultValue": 0,
|
|
83
87
|
"reactive": true,
|
|
84
|
-
"description": "The z-index of the element.",
|
|
88
|
+
"description": "The z-index of the element. Alias for z.",
|
|
85
89
|
"usedIn": [
|
|
86
90
|
"Element",
|
|
87
91
|
"Text",
|
|
@@ -92,11 +96,12 @@
|
|
|
92
96
|
"width": {
|
|
93
97
|
"attrType": "regular",
|
|
94
98
|
"types": [
|
|
95
|
-
"number"
|
|
99
|
+
"number",
|
|
100
|
+
"string"
|
|
96
101
|
],
|
|
97
102
|
"defaultValue": 0,
|
|
98
103
|
"reactive": true,
|
|
99
|
-
"description": "The width of the element in pixels. Allows negative values and decimals.",
|
|
104
|
+
"description": "The width of the element in pixels or percentage. Allows negative values and decimals. Alias for w.",
|
|
100
105
|
"usedIn": [
|
|
101
106
|
"Element",
|
|
102
107
|
"Text",
|
|
@@ -106,11 +111,12 @@
|
|
|
106
111
|
"height": {
|
|
107
112
|
"attrType": "regular",
|
|
108
113
|
"types": [
|
|
109
|
-
"number"
|
|
114
|
+
"number",
|
|
115
|
+
"string"
|
|
110
116
|
],
|
|
111
117
|
"defaultValue": 0,
|
|
112
118
|
"reactive": true,
|
|
113
|
-
"description": "The height of the element in pixels
|
|
119
|
+
"description": "The height of the element in pixels or percentage. Alias for h.",
|
|
114
120
|
"usedIn": [
|
|
115
121
|
"Element",
|
|
116
122
|
"Text",
|
|
@@ -120,11 +126,28 @@
|
|
|
120
126
|
"color": {
|
|
121
127
|
"attrType": "regular",
|
|
122
128
|
"types": [
|
|
123
|
-
"string"
|
|
129
|
+
"string",
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"top": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"bottom": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"left": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"right": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
124
147
|
],
|
|
125
148
|
"defaultValue": "transparent",
|
|
126
149
|
"reactive": true,
|
|
127
|
-
"description": "The color of the Element.
|
|
150
|
+
"description": "The color of the Element. Accepts hexadecimal, hex with alpha, hex shorthands, RGB, RGBA, HTML color names, or an object with top/bottom/left/right keys for linear gradients.",
|
|
128
151
|
"usedIn": [
|
|
129
152
|
"Element",
|
|
130
153
|
"Text",
|
|
@@ -139,7 +162,7 @@
|
|
|
139
162
|
],
|
|
140
163
|
"defaultValue": 1,
|
|
141
164
|
"reactive": true,
|
|
142
|
-
"description": "The alpha attribute controls the opacity of the element. Allows values
|
|
165
|
+
"description": "The alpha attribute controls the opacity of the element. Allows values between 0 (fully transparent) and 1 (fully visible).",
|
|
143
166
|
"usedIn": [
|
|
144
167
|
"Element",
|
|
145
168
|
"Text",
|
|
@@ -155,7 +178,7 @@
|
|
|
155
178
|
],
|
|
156
179
|
"defaultValue": 0,
|
|
157
180
|
"reactive": true,
|
|
158
|
-
"description": "
|
|
181
|
+
"description": "Rotates the Element. Accepts positive and negative values in degrees.",
|
|
159
182
|
"usedIn": [
|
|
160
183
|
"Element",
|
|
161
184
|
"Text",
|
|
@@ -166,11 +189,22 @@
|
|
|
166
189
|
"scale": {
|
|
167
190
|
"attrType": "regular",
|
|
168
191
|
"types": [
|
|
169
|
-
"number"
|
|
192
|
+
"number",
|
|
193
|
+
{
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"x": {
|
|
197
|
+
"type": "number"
|
|
198
|
+
},
|
|
199
|
+
"y": {
|
|
200
|
+
"type": "number"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
170
204
|
],
|
|
171
205
|
"defaultValue": 1,
|
|
172
206
|
"reactive": true,
|
|
173
|
-
"description": "
|
|
207
|
+
"description": "Scales the element. Accepts a single number for uniform scaling or an object {x, y} for independent axis scaling. Values below 1 scale down, above 1 scale up.",
|
|
174
208
|
"usedIn": [
|
|
175
209
|
"Element",
|
|
176
210
|
"Text",
|
|
@@ -197,7 +231,7 @@
|
|
|
197
231
|
],
|
|
198
232
|
"defaultValue": 0,
|
|
199
233
|
"reactive": true,
|
|
200
|
-
"description": "
|
|
234
|
+
"description": "Sets the mount point of the Element. Accepts a single number or an object {x, y} with values between 0 and 1. Default {x: 0, y: 0} is the top-left corner.",
|
|
201
235
|
"usedIn": [
|
|
202
236
|
"Element",
|
|
203
237
|
"Text",
|
|
@@ -221,9 +255,9 @@
|
|
|
221
255
|
}
|
|
222
256
|
}
|
|
223
257
|
],
|
|
224
|
-
"defaultValue": 0,
|
|
258
|
+
"defaultValue": 0.5,
|
|
225
259
|
"reactive": true,
|
|
226
|
-
"description": "
|
|
260
|
+
"description": "Sets the pivot point for rotation and scaling. Accepts a single number or an object {x, y} with values between 0 and 1. Default {x: 0.5, y: 0.5} is the center.",
|
|
227
261
|
"usedIn": [
|
|
228
262
|
"Element",
|
|
229
263
|
"Text",
|
|
@@ -353,7 +387,7 @@
|
|
|
353
387
|
],
|
|
354
388
|
"defaultValue": "false",
|
|
355
389
|
"reactive": true,
|
|
356
|
-
"description": "
|
|
390
|
+
"description": "Clips child content to the element's width and height boundaries.",
|
|
357
391
|
"usedIn": [
|
|
358
392
|
"Element",
|
|
359
393
|
"Text",
|
|
@@ -371,12 +405,161 @@
|
|
|
371
405
|
],
|
|
372
406
|
"defaultValue": "true",
|
|
373
407
|
"reactive": true,
|
|
374
|
-
"description": "
|
|
408
|
+
"description": "Allows content to extend beyond the element's width and height. Inverse of clipping.",
|
|
409
|
+
"usedIn": [
|
|
410
|
+
"Element",
|
|
411
|
+
"Text"
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
"src": {
|
|
415
|
+
"attrType": "regular",
|
|
416
|
+
"types": [
|
|
417
|
+
"string",
|
|
418
|
+
{
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {
|
|
421
|
+
"src": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"type": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"enum": [
|
|
427
|
+
"regular",
|
|
428
|
+
"svg",
|
|
429
|
+
"compressed"
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"defaultValue": null,
|
|
436
|
+
"reactive": true,
|
|
437
|
+
"description": "The image source URL. Can be a string path or an object {src, type} where type is 'regular', 'svg', or 'compressed' (for cases where file type can't be derived from the file name).",
|
|
375
438
|
"usedIn": [
|
|
376
|
-
"Text",
|
|
377
439
|
"Element"
|
|
378
440
|
]
|
|
379
441
|
},
|
|
442
|
+
"fit": {
|
|
443
|
+
"attrType": "regular",
|
|
444
|
+
"types": [
|
|
445
|
+
"enum",
|
|
446
|
+
{
|
|
447
|
+
"type": "object",
|
|
448
|
+
"properties": {
|
|
449
|
+
"type": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"cover",
|
|
453
|
+
"contain"
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
"position": {
|
|
457
|
+
"type": "number"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"values": [
|
|
463
|
+
"cover",
|
|
464
|
+
"contain"
|
|
465
|
+
],
|
|
466
|
+
"defaultValue": null,
|
|
467
|
+
"reactive": true,
|
|
468
|
+
"description": "Controls how an image is resized to fit the Element's dimensions. Accepts 'cover', 'contain', or an object {type, position} for fine-grained control over clip position.",
|
|
469
|
+
"usedIn": [
|
|
470
|
+
"Element"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
"rtt": {
|
|
474
|
+
"attrType": "regular",
|
|
475
|
+
"types": [
|
|
476
|
+
"enum"
|
|
477
|
+
],
|
|
478
|
+
"values": [
|
|
479
|
+
"true",
|
|
480
|
+
"false"
|
|
481
|
+
],
|
|
482
|
+
"defaultValue": "false",
|
|
483
|
+
"reactive": true,
|
|
484
|
+
"description": "Enables render-to-texture mode, rendering the element and its children to an off-screen texture.",
|
|
485
|
+
"usedIn": [
|
|
486
|
+
"Element"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"effects": {
|
|
490
|
+
"attrType": "regular",
|
|
491
|
+
"types": [
|
|
492
|
+
"array"
|
|
493
|
+
],
|
|
494
|
+
"defaultValue": null,
|
|
495
|
+
"reactive": true,
|
|
496
|
+
"description": "Applies one or more shader effects using DynamicShader. Accepts an array of objects, each with a type and optional props (e.g., [{type: 'radius', props: {radius: 20}}]).",
|
|
497
|
+
"usedIn": [
|
|
498
|
+
"Element"
|
|
499
|
+
]
|
|
500
|
+
},
|
|
501
|
+
"placement": {
|
|
502
|
+
"attrType": "regular",
|
|
503
|
+
"types": [
|
|
504
|
+
"enum",
|
|
505
|
+
{
|
|
506
|
+
"type": "object",
|
|
507
|
+
"properties": {
|
|
508
|
+
"x": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"enum": [
|
|
511
|
+
"left",
|
|
512
|
+
"center",
|
|
513
|
+
"right"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"y": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"enum": [
|
|
519
|
+
"top",
|
|
520
|
+
"middle",
|
|
521
|
+
"bottom"
|
|
522
|
+
]
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"values": [
|
|
528
|
+
"left",
|
|
529
|
+
"center",
|
|
530
|
+
"right",
|
|
531
|
+
"top",
|
|
532
|
+
"middle",
|
|
533
|
+
"bottom"
|
|
534
|
+
],
|
|
535
|
+
"defaultValue": null,
|
|
536
|
+
"reactive": true,
|
|
537
|
+
"description": "Predefined placement relative to the parent's dimensions. Accepts 'left', 'center', 'right', 'top', 'middle', 'bottom', or an object {x, y} for combined placement.",
|
|
538
|
+
"usedIn": [
|
|
539
|
+
"Element",
|
|
540
|
+
"Text",
|
|
541
|
+
"Layout",
|
|
542
|
+
"RouterView"
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
"inspector-data": {
|
|
546
|
+
"attrType": "regular",
|
|
547
|
+
"types": [
|
|
548
|
+
{
|
|
549
|
+
"type": "object"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"defaultValue": null,
|
|
553
|
+
"reactive": false,
|
|
554
|
+
"description": "Attaches custom metadata to elements for debugging and automated testing, visible in the Lightning inspector. Only processed in dev mode when inspector is enabled.",
|
|
555
|
+
"usedIn": [
|
|
556
|
+
"Element",
|
|
557
|
+
"Text",
|
|
558
|
+
"Layout",
|
|
559
|
+
"RouterView",
|
|
560
|
+
"Component"
|
|
561
|
+
]
|
|
562
|
+
},
|
|
380
563
|
"content": {
|
|
381
564
|
"attrType": "regular",
|
|
382
565
|
"types": [
|
|
@@ -396,7 +579,7 @@
|
|
|
396
579
|
],
|
|
397
580
|
"defaultValue": "sans-serif",
|
|
398
581
|
"reactive": true,
|
|
399
|
-
"description": "The font family.",
|
|
582
|
+
"description": "The font family to use for text rendering.",
|
|
400
583
|
"usedIn": [
|
|
401
584
|
"Text"
|
|
402
585
|
]
|
|
@@ -408,7 +591,7 @@
|
|
|
408
591
|
],
|
|
409
592
|
"defaultValue": 32,
|
|
410
593
|
"reactive": true,
|
|
411
|
-
"description": "The size of a
|
|
594
|
+
"description": "The font size of a Text element in pixels.",
|
|
412
595
|
"usedIn": [
|
|
413
596
|
"Text"
|
|
414
597
|
]
|
|
@@ -437,7 +620,7 @@
|
|
|
437
620
|
],
|
|
438
621
|
"defaultValue": null,
|
|
439
622
|
"reactive": true,
|
|
440
|
-
"description": "
|
|
623
|
+
"description": "The alignment of the text. Centering and right alignment require maxwidth to be set.",
|
|
441
624
|
"usedIn": [
|
|
442
625
|
"Text"
|
|
443
626
|
]
|
|
@@ -449,7 +632,7 @@
|
|
|
449
632
|
],
|
|
450
633
|
"defaultValue": null,
|
|
451
634
|
"reactive": true,
|
|
452
|
-
"description": "The maximum length of a line of text in pixels.",
|
|
635
|
+
"description": "The maximum length of a line of text in pixels. Words surpassing this length will be wrapped onto the next line.",
|
|
453
636
|
"usedIn": [
|
|
454
637
|
"Text"
|
|
455
638
|
]
|
|
@@ -473,7 +656,7 @@
|
|
|
473
656
|
],
|
|
474
657
|
"defaultValue": null,
|
|
475
658
|
"reactive": true,
|
|
476
|
-
"description": "Maximum height of a text block
|
|
659
|
+
"description": "Maximum height of a text block in pixels. Lines exceeding this height will not be displayed.",
|
|
477
660
|
"usedIn": [
|
|
478
661
|
"Text"
|
|
479
662
|
]
|
|
@@ -503,7 +686,7 @@
|
|
|
503
686
|
],
|
|
504
687
|
"defaultValue": "none",
|
|
505
688
|
"reactive": true,
|
|
506
|
-
"description": "The strategy for containing text within
|
|
689
|
+
"description": "The strategy for containing text within bounds. Usually set automatically by Blits based on other specified attributes.",
|
|
507
690
|
"usedIn": [
|
|
508
691
|
"Text"
|
|
509
692
|
]
|
|
@@ -511,11 +694,28 @@
|
|
|
511
694
|
"textoverflow": {
|
|
512
695
|
"attrType": "regular",
|
|
513
696
|
"types": [
|
|
514
|
-
"string"
|
|
697
|
+
"string",
|
|
698
|
+
"enum"
|
|
699
|
+
],
|
|
700
|
+
"values": [
|
|
701
|
+
"false"
|
|
702
|
+
],
|
|
703
|
+
"defaultValue": "...",
|
|
704
|
+
"reactive": true,
|
|
705
|
+
"description": "The suffix added when text is cropped due to bounds limits. Defaults to '...'. Set to false or empty string for no suffix.",
|
|
706
|
+
"usedIn": [
|
|
707
|
+
"Text"
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
"wordwrap": {
|
|
711
|
+
"attrType": "regular",
|
|
712
|
+
"types": [
|
|
713
|
+
"number"
|
|
515
714
|
],
|
|
516
715
|
"defaultValue": null,
|
|
517
716
|
"reactive": true,
|
|
518
|
-
"
|
|
717
|
+
"deprecated": true,
|
|
718
|
+
"description": "Deprecated - use maxwidth instead. Sets the maximum line width in pixels for text wrapping.",
|
|
519
719
|
"usedIn": [
|
|
520
720
|
"Text"
|
|
521
721
|
]
|
|
@@ -531,7 +731,7 @@
|
|
|
531
731
|
],
|
|
532
732
|
"defaultValue": "horizontal",
|
|
533
733
|
"reactive": true,
|
|
534
|
-
"description": "Controls the direction of content.",
|
|
734
|
+
"description": "Controls the direction of layout content arrangement.",
|
|
535
735
|
"usedIn": [
|
|
536
736
|
"Layout"
|
|
537
737
|
]
|
|
@@ -541,9 +741,61 @@
|
|
|
541
741
|
"types": [
|
|
542
742
|
"number"
|
|
543
743
|
],
|
|
544
|
-
"defaultValue":
|
|
744
|
+
"defaultValue": 0,
|
|
545
745
|
"reactive": true,
|
|
546
|
-
"description": "Controls how much space
|
|
746
|
+
"description": "Controls how much space in pixels is added between each child Element or Component in a Layout.",
|
|
747
|
+
"usedIn": [
|
|
748
|
+
"Layout"
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
"align-items": {
|
|
752
|
+
"attrType": "regular",
|
|
753
|
+
"types": [
|
|
754
|
+
"enum"
|
|
755
|
+
],
|
|
756
|
+
"values": [
|
|
757
|
+
"start",
|
|
758
|
+
"center",
|
|
759
|
+
"end"
|
|
760
|
+
],
|
|
761
|
+
"defaultValue": "start",
|
|
762
|
+
"reactive": true,
|
|
763
|
+
"description": "Specifies how to align children on the opposite axis of the Layout direction.",
|
|
764
|
+
"usedIn": [
|
|
765
|
+
"Layout"
|
|
766
|
+
]
|
|
767
|
+
},
|
|
768
|
+
"padding": {
|
|
769
|
+
"attrType": "regular",
|
|
770
|
+
"types": [
|
|
771
|
+
"number",
|
|
772
|
+
{
|
|
773
|
+
"type": "object",
|
|
774
|
+
"properties": {
|
|
775
|
+
"top": {
|
|
776
|
+
"type": "number"
|
|
777
|
+
},
|
|
778
|
+
"bottom": {
|
|
779
|
+
"type": "number"
|
|
780
|
+
},
|
|
781
|
+
"left": {
|
|
782
|
+
"type": "number"
|
|
783
|
+
},
|
|
784
|
+
"right": {
|
|
785
|
+
"type": "number"
|
|
786
|
+
},
|
|
787
|
+
"x": {
|
|
788
|
+
"type": "number"
|
|
789
|
+
},
|
|
790
|
+
"y": {
|
|
791
|
+
"type": "number"
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
],
|
|
796
|
+
"defaultValue": 0,
|
|
797
|
+
"reactive": true,
|
|
798
|
+
"description": "Adds spacing between the content and the edges of the Layout. Accepts a number for uniform padding or an object with top/bottom/left/right/x/y keys.",
|
|
547
799
|
"usedIn": [
|
|
548
800
|
"Layout"
|
|
549
801
|
]
|
|
@@ -554,8 +806,8 @@
|
|
|
554
806
|
"string"
|
|
555
807
|
],
|
|
556
808
|
"defaultValue": null,
|
|
557
|
-
"reactive":
|
|
558
|
-
"description": "Dynamically instantiates a Component.",
|
|
809
|
+
"reactive": false,
|
|
810
|
+
"description": "Dynamically instantiates a Component based on a state variable or prop value.",
|
|
559
811
|
"usedIn": [
|
|
560
812
|
"Component"
|
|
561
813
|
]
|
|
@@ -566,8 +818,8 @@
|
|
|
566
818
|
"string"
|
|
567
819
|
],
|
|
568
820
|
"defaultValue": null,
|
|
569
|
-
"reactive":
|
|
570
|
-
"description": "
|
|
821
|
+
"reactive": false,
|
|
822
|
+
"description": "A reference identifier for the Element or Component, accessible via this.select() in the component logic.",
|
|
571
823
|
"usedIn": [
|
|
572
824
|
"Element",
|
|
573
825
|
"Text",
|
|
@@ -577,13 +829,13 @@
|
|
|
577
829
|
]
|
|
578
830
|
},
|
|
579
831
|
"for": {
|
|
580
|
-
"attrType": "
|
|
832
|
+
"attrType": "directive",
|
|
581
833
|
"types": [
|
|
582
834
|
"string"
|
|
583
835
|
],
|
|
584
836
|
"defaultValue": null,
|
|
585
837
|
"reactive": true,
|
|
586
|
-
"description": "Directive for repeating multiple instances of an Element or
|
|
838
|
+
"description": "Directive for repeating multiple instances of an Element or Component. Uses 'item in $array' or '(item, index) in $array' syntax.",
|
|
587
839
|
"usedIn": [
|
|
588
840
|
"Element",
|
|
589
841
|
"Text",
|
|
@@ -592,14 +844,14 @@
|
|
|
592
844
|
"Component"
|
|
593
845
|
]
|
|
594
846
|
},
|
|
595
|
-
"
|
|
847
|
+
"key": {
|
|
596
848
|
"attrType": "regular",
|
|
597
849
|
"types": [
|
|
598
850
|
"string"
|
|
599
851
|
],
|
|
600
852
|
"defaultValue": null,
|
|
601
|
-
"reactive":
|
|
602
|
-
"description": "
|
|
853
|
+
"reactive": false,
|
|
854
|
+
"description": "A unique identifier for items in a for-loop, enabling efficient reuse of Element/Component instances when the array changes. Should reference a unique field (e.g., key=\"$item.id\").",
|
|
603
855
|
"usedIn": [
|
|
604
856
|
"Element",
|
|
605
857
|
"Text",
|
|
@@ -608,46 +860,16 @@
|
|
|
608
860
|
"Component"
|
|
609
861
|
]
|
|
610
862
|
},
|
|
611
|
-
"
|
|
612
|
-
"attrType": "regular",
|
|
613
|
-
"types": [
|
|
614
|
-
"enum"
|
|
615
|
-
],
|
|
616
|
-
"values": [
|
|
617
|
-
"start",
|
|
618
|
-
"center",
|
|
619
|
-
"end"
|
|
620
|
-
],
|
|
621
|
-
"defaultValue": null,
|
|
622
|
-
"reactive": true,
|
|
623
|
-
"description": "Specifies how to align children on the opposite axis.",
|
|
624
|
-
"usedIn": [
|
|
625
|
-
"Layout"
|
|
626
|
-
]
|
|
627
|
-
},
|
|
628
|
-
"padding": {
|
|
863
|
+
"range": {
|
|
629
864
|
"attrType": "regular",
|
|
630
865
|
"types": [
|
|
631
|
-
"number",
|
|
632
866
|
{
|
|
633
867
|
"type": "object",
|
|
634
868
|
"properties": {
|
|
635
|
-
"
|
|
636
|
-
"type": "number"
|
|
637
|
-
},
|
|
638
|
-
"bottom": {
|
|
639
|
-
"type": "number"
|
|
640
|
-
},
|
|
641
|
-
"left": {
|
|
642
|
-
"type": "number"
|
|
643
|
-
},
|
|
644
|
-
"right": {
|
|
869
|
+
"from": {
|
|
645
870
|
"type": "number"
|
|
646
871
|
},
|
|
647
|
-
"
|
|
648
|
-
"type": "number"
|
|
649
|
-
},
|
|
650
|
-
"y": {
|
|
872
|
+
"to": {
|
|
651
873
|
"type": "number"
|
|
652
874
|
}
|
|
653
875
|
}
|
|
@@ -655,19 +877,44 @@
|
|
|
655
877
|
],
|
|
656
878
|
"defaultValue": null,
|
|
657
879
|
"reactive": true,
|
|
658
|
-
"description": "
|
|
880
|
+
"description": "Limits a for-loop to render only a subset of items. Accepts an object {from, to} where 'from' is inclusive and 'to' is exclusive. Items outside the range are destroyed and recreated when they re-enter.",
|
|
659
881
|
"usedIn": [
|
|
660
|
-
"
|
|
882
|
+
"Element",
|
|
883
|
+
"Text",
|
|
884
|
+
"Layout",
|
|
885
|
+
"RouterView",
|
|
886
|
+
"Component"
|
|
887
|
+
]
|
|
888
|
+
},
|
|
889
|
+
"show": {
|
|
890
|
+
"attrType": "directive",
|
|
891
|
+
"types": [
|
|
892
|
+
"enum"
|
|
893
|
+
],
|
|
894
|
+
"values": [
|
|
895
|
+
"true",
|
|
896
|
+
"false"
|
|
897
|
+
],
|
|
898
|
+
"defaultValue": "true",
|
|
899
|
+
"reactive": true,
|
|
900
|
+
"description": "Conditionally shows or hides the Element/Component by setting alpha to 0 or restoring it.",
|
|
901
|
+
"usedIn": [
|
|
902
|
+
"Element",
|
|
903
|
+
"Text",
|
|
904
|
+
"Layout",
|
|
905
|
+
"RouterView",
|
|
906
|
+
"Component"
|
|
661
907
|
]
|
|
662
908
|
},
|
|
663
909
|
"@loaded": {
|
|
664
910
|
"attrType": "event",
|
|
665
911
|
"types": [
|
|
666
|
-
"string"
|
|
912
|
+
"string",
|
|
913
|
+
"function"
|
|
667
914
|
],
|
|
668
915
|
"defaultValue": null,
|
|
669
916
|
"reactive": false,
|
|
670
|
-
"description": "Fires when an image or text element loads, providing its dimensions.
|
|
917
|
+
"description": "Fires when an image or text element loads, providing its dimensions ({w, h}). Accepts a function reference (e.g., $handlerName) or an inline arrow function.",
|
|
671
918
|
"usedIn": [
|
|
672
919
|
"Element",
|
|
673
920
|
"Text"
|
|
@@ -676,11 +923,12 @@
|
|
|
676
923
|
"@error": {
|
|
677
924
|
"attrType": "event",
|
|
678
925
|
"types": [
|
|
679
|
-
"string"
|
|
926
|
+
"string",
|
|
927
|
+
"function"
|
|
680
928
|
],
|
|
681
929
|
"defaultValue": null,
|
|
682
930
|
"reactive": false,
|
|
683
|
-
"description": "
|
|
931
|
+
"description": "Fires when an image fails to load, passing an error message. Accepts a function reference (e.g., $handlerName) or an inline arrow function.",
|
|
684
932
|
"usedIn": [
|
|
685
933
|
"Element",
|
|
686
934
|
"Text"
|
|
@@ -689,11 +937,12 @@
|
|
|
689
937
|
"@updated": {
|
|
690
938
|
"attrType": "event",
|
|
691
939
|
"types": [
|
|
692
|
-
"string"
|
|
940
|
+
"string",
|
|
941
|
+
"function"
|
|
693
942
|
],
|
|
694
943
|
"defaultValue": null,
|
|
695
944
|
"reactive": false,
|
|
696
|
-
"description": "
|
|
945
|
+
"description": "Fires after each Layout children update, providing current dimensions ({w, h}). Can fire multiple times.",
|
|
697
946
|
"usedIn": [
|
|
698
947
|
"Layout"
|
|
699
948
|
]
|