@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
|
@@ -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",
|
|
@@ -242,7 +276,7 @@
|
|
|
242
276
|
],
|
|
243
277
|
"defaultValue": "false",
|
|
244
278
|
"reactive": true,
|
|
245
|
-
"description": "
|
|
279
|
+
"description": "Clips child content to the element's width and height boundaries.",
|
|
246
280
|
"usedIn": [
|
|
247
281
|
"Element",
|
|
248
282
|
"Text",
|
|
@@ -260,12 +294,161 @@
|
|
|
260
294
|
],
|
|
261
295
|
"defaultValue": "true",
|
|
262
296
|
"reactive": true,
|
|
263
|
-
"description": "
|
|
297
|
+
"description": "Allows content to extend beyond the element's width and height. Inverse of clipping.",
|
|
298
|
+
"usedIn": [
|
|
299
|
+
"Element",
|
|
300
|
+
"Text"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"src": {
|
|
304
|
+
"attrType": "regular",
|
|
305
|
+
"types": [
|
|
306
|
+
"string",
|
|
307
|
+
{
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"src": {
|
|
311
|
+
"type": "string"
|
|
312
|
+
},
|
|
313
|
+
"type": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"enum": [
|
|
316
|
+
"regular",
|
|
317
|
+
"svg",
|
|
318
|
+
"compressed"
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"defaultValue": null,
|
|
325
|
+
"reactive": true,
|
|
326
|
+
"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).",
|
|
327
|
+
"usedIn": [
|
|
328
|
+
"Element"
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"fit": {
|
|
332
|
+
"attrType": "regular",
|
|
333
|
+
"types": [
|
|
334
|
+
"enum",
|
|
335
|
+
{
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"type": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"enum": [
|
|
341
|
+
"cover",
|
|
342
|
+
"contain"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"position": {
|
|
346
|
+
"type": "number"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"values": [
|
|
352
|
+
"cover",
|
|
353
|
+
"contain"
|
|
354
|
+
],
|
|
355
|
+
"defaultValue": null,
|
|
356
|
+
"reactive": true,
|
|
357
|
+
"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.",
|
|
358
|
+
"usedIn": [
|
|
359
|
+
"Element"
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"rtt": {
|
|
363
|
+
"attrType": "regular",
|
|
364
|
+
"types": [
|
|
365
|
+
"enum"
|
|
366
|
+
],
|
|
367
|
+
"values": [
|
|
368
|
+
"true",
|
|
369
|
+
"false"
|
|
370
|
+
],
|
|
371
|
+
"defaultValue": "false",
|
|
372
|
+
"reactive": true,
|
|
373
|
+
"description": "Enables render-to-texture mode, rendering the element and its children to an off-screen texture.",
|
|
374
|
+
"usedIn": [
|
|
375
|
+
"Element"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"effects": {
|
|
379
|
+
"attrType": "regular",
|
|
380
|
+
"types": [
|
|
381
|
+
"array"
|
|
382
|
+
],
|
|
383
|
+
"defaultValue": null,
|
|
384
|
+
"reactive": true,
|
|
385
|
+
"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}}]).",
|
|
264
386
|
"usedIn": [
|
|
265
|
-
"Text",
|
|
266
387
|
"Element"
|
|
267
388
|
]
|
|
268
389
|
},
|
|
390
|
+
"placement": {
|
|
391
|
+
"attrType": "regular",
|
|
392
|
+
"types": [
|
|
393
|
+
"enum",
|
|
394
|
+
{
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"x": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"enum": [
|
|
400
|
+
"left",
|
|
401
|
+
"center",
|
|
402
|
+
"right"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
"y": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"enum": [
|
|
408
|
+
"top",
|
|
409
|
+
"middle",
|
|
410
|
+
"bottom"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"values": [
|
|
417
|
+
"left",
|
|
418
|
+
"center",
|
|
419
|
+
"right",
|
|
420
|
+
"top",
|
|
421
|
+
"middle",
|
|
422
|
+
"bottom"
|
|
423
|
+
],
|
|
424
|
+
"defaultValue": null,
|
|
425
|
+
"reactive": true,
|
|
426
|
+
"description": "Predefined placement relative to the parent's dimensions. Accepts 'left', 'center', 'right', 'top', 'middle', 'bottom', or an object {x, y} for combined placement.",
|
|
427
|
+
"usedIn": [
|
|
428
|
+
"Element",
|
|
429
|
+
"Text",
|
|
430
|
+
"Layout",
|
|
431
|
+
"RouterView"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"inspector-data": {
|
|
435
|
+
"attrType": "regular",
|
|
436
|
+
"types": [
|
|
437
|
+
{
|
|
438
|
+
"type": "object"
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"defaultValue": null,
|
|
442
|
+
"reactive": false,
|
|
443
|
+
"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.",
|
|
444
|
+
"usedIn": [
|
|
445
|
+
"Element",
|
|
446
|
+
"Text",
|
|
447
|
+
"Layout",
|
|
448
|
+
"RouterView",
|
|
449
|
+
"Component"
|
|
450
|
+
]
|
|
451
|
+
},
|
|
269
452
|
"content": {
|
|
270
453
|
"attrType": "regular",
|
|
271
454
|
"types": [
|
|
@@ -285,7 +468,7 @@
|
|
|
285
468
|
],
|
|
286
469
|
"defaultValue": "sans-serif",
|
|
287
470
|
"reactive": true,
|
|
288
|
-
"description": "The font family.",
|
|
471
|
+
"description": "The font family to use for text rendering.",
|
|
289
472
|
"usedIn": [
|
|
290
473
|
"Text"
|
|
291
474
|
]
|
|
@@ -297,7 +480,7 @@
|
|
|
297
480
|
],
|
|
298
481
|
"defaultValue": 32,
|
|
299
482
|
"reactive": true,
|
|
300
|
-
"description": "The size of a
|
|
483
|
+
"description": "The font size of a Text element in pixels.",
|
|
301
484
|
"usedIn": [
|
|
302
485
|
"Text"
|
|
303
486
|
]
|
|
@@ -326,7 +509,7 @@
|
|
|
326
509
|
],
|
|
327
510
|
"defaultValue": null,
|
|
328
511
|
"reactive": true,
|
|
329
|
-
"description": "
|
|
512
|
+
"description": "The alignment of the text. Centering and right alignment require maxwidth to be set.",
|
|
330
513
|
"usedIn": [
|
|
331
514
|
"Text"
|
|
332
515
|
]
|
|
@@ -338,7 +521,7 @@
|
|
|
338
521
|
],
|
|
339
522
|
"defaultValue": null,
|
|
340
523
|
"reactive": true,
|
|
341
|
-
"description": "The maximum length of a line of text in pixels.",
|
|
524
|
+
"description": "The maximum length of a line of text in pixels. Words surpassing this length will be wrapped onto the next line.",
|
|
342
525
|
"usedIn": [
|
|
343
526
|
"Text"
|
|
344
527
|
]
|
|
@@ -362,7 +545,7 @@
|
|
|
362
545
|
],
|
|
363
546
|
"defaultValue": null,
|
|
364
547
|
"reactive": true,
|
|
365
|
-
"description": "Maximum height of a text block
|
|
548
|
+
"description": "Maximum height of a text block in pixels. Lines exceeding this height will not be displayed.",
|
|
366
549
|
"usedIn": [
|
|
367
550
|
"Text"
|
|
368
551
|
]
|
|
@@ -391,7 +574,7 @@
|
|
|
391
574
|
],
|
|
392
575
|
"defaultValue": "none",
|
|
393
576
|
"reactive": true,
|
|
394
|
-
"description": "The strategy for containing text within
|
|
577
|
+
"description": "The strategy for containing text within bounds. Usually set automatically by Blits based on other specified attributes.",
|
|
395
578
|
"usedIn": [
|
|
396
579
|
"Text"
|
|
397
580
|
]
|
|
@@ -399,11 +582,28 @@
|
|
|
399
582
|
"textoverflow": {
|
|
400
583
|
"attrType": "regular",
|
|
401
584
|
"types": [
|
|
402
|
-
"string"
|
|
585
|
+
"string",
|
|
586
|
+
"enum"
|
|
587
|
+
],
|
|
588
|
+
"values": [
|
|
589
|
+
"false"
|
|
590
|
+
],
|
|
591
|
+
"defaultValue": "...",
|
|
592
|
+
"reactive": true,
|
|
593
|
+
"description": "The suffix added when text is cropped due to bounds limits. Defaults to '...'. Set to false or empty string for no suffix.",
|
|
594
|
+
"usedIn": [
|
|
595
|
+
"Text"
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"wordwrap": {
|
|
599
|
+
"attrType": "regular",
|
|
600
|
+
"types": [
|
|
601
|
+
"number"
|
|
403
602
|
],
|
|
404
603
|
"defaultValue": null,
|
|
405
604
|
"reactive": true,
|
|
406
|
-
"
|
|
605
|
+
"deprecated": true,
|
|
606
|
+
"description": "Deprecated - use maxwidth instead. Sets the maximum line width in pixels for text wrapping.",
|
|
407
607
|
"usedIn": [
|
|
408
608
|
"Text"
|
|
409
609
|
]
|
|
@@ -419,7 +619,7 @@
|
|
|
419
619
|
],
|
|
420
620
|
"defaultValue": "horizontal",
|
|
421
621
|
"reactive": true,
|
|
422
|
-
"description": "Controls the direction of content.",
|
|
622
|
+
"description": "Controls the direction of layout content arrangement.",
|
|
423
623
|
"usedIn": [
|
|
424
624
|
"Layout"
|
|
425
625
|
]
|
|
@@ -429,9 +629,61 @@
|
|
|
429
629
|
"types": [
|
|
430
630
|
"number"
|
|
431
631
|
],
|
|
432
|
-
"defaultValue":
|
|
632
|
+
"defaultValue": 0,
|
|
633
|
+
"reactive": true,
|
|
634
|
+
"description": "Controls how much space in pixels is added between each child Element or Component in a Layout.",
|
|
635
|
+
"usedIn": [
|
|
636
|
+
"Layout"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"align-items": {
|
|
640
|
+
"attrType": "regular",
|
|
641
|
+
"types": [
|
|
642
|
+
"enum"
|
|
643
|
+
],
|
|
644
|
+
"values": [
|
|
645
|
+
"start",
|
|
646
|
+
"center",
|
|
647
|
+
"end"
|
|
648
|
+
],
|
|
649
|
+
"defaultValue": "start",
|
|
433
650
|
"reactive": true,
|
|
434
|
-
"description": "
|
|
651
|
+
"description": "Specifies how to align children on the opposite axis of the Layout direction.",
|
|
652
|
+
"usedIn": [
|
|
653
|
+
"Layout"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"padding": {
|
|
657
|
+
"attrType": "regular",
|
|
658
|
+
"types": [
|
|
659
|
+
"number",
|
|
660
|
+
{
|
|
661
|
+
"type": "object",
|
|
662
|
+
"properties": {
|
|
663
|
+
"top": {
|
|
664
|
+
"type": "number"
|
|
665
|
+
},
|
|
666
|
+
"bottom": {
|
|
667
|
+
"type": "number"
|
|
668
|
+
},
|
|
669
|
+
"left": {
|
|
670
|
+
"type": "number"
|
|
671
|
+
},
|
|
672
|
+
"right": {
|
|
673
|
+
"type": "number"
|
|
674
|
+
},
|
|
675
|
+
"x": {
|
|
676
|
+
"type": "number"
|
|
677
|
+
},
|
|
678
|
+
"y": {
|
|
679
|
+
"type": "number"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
"defaultValue": 0,
|
|
685
|
+
"reactive": true,
|
|
686
|
+
"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.",
|
|
435
687
|
"usedIn": [
|
|
436
688
|
"Layout"
|
|
437
689
|
]
|
|
@@ -442,8 +694,8 @@
|
|
|
442
694
|
"string"
|
|
443
695
|
],
|
|
444
696
|
"defaultValue": null,
|
|
445
|
-
"reactive":
|
|
446
|
-
"description": "Dynamically instantiates a Component.",
|
|
697
|
+
"reactive": false,
|
|
698
|
+
"description": "Dynamically instantiates a Component based on a state variable or prop value.",
|
|
447
699
|
"usedIn": [
|
|
448
700
|
"Component"
|
|
449
701
|
]
|
|
@@ -454,8 +706,8 @@
|
|
|
454
706
|
"string"
|
|
455
707
|
],
|
|
456
708
|
"defaultValue": null,
|
|
457
|
-
"reactive":
|
|
458
|
-
"description": "
|
|
709
|
+
"reactive": false,
|
|
710
|
+
"description": "A reference identifier for the Element or Component, accessible via this.select() in the component logic.",
|
|
459
711
|
"usedIn": [
|
|
460
712
|
"Element",
|
|
461
713
|
"Text",
|
|
@@ -465,13 +717,13 @@
|
|
|
465
717
|
]
|
|
466
718
|
},
|
|
467
719
|
"for": {
|
|
468
|
-
"attrType": "
|
|
720
|
+
"attrType": "directive",
|
|
469
721
|
"types": [
|
|
470
722
|
"string"
|
|
471
723
|
],
|
|
472
724
|
"defaultValue": null,
|
|
473
725
|
"reactive": true,
|
|
474
|
-
"description": "Directive for repeating multiple instances of an Element or
|
|
726
|
+
"description": "Directive for repeating multiple instances of an Element or Component. Uses 'item in $array' or '(item, index) in $array' syntax.",
|
|
475
727
|
"usedIn": [
|
|
476
728
|
"Element",
|
|
477
729
|
"Text",
|
|
@@ -480,14 +732,14 @@
|
|
|
480
732
|
"Component"
|
|
481
733
|
]
|
|
482
734
|
},
|
|
483
|
-
"
|
|
735
|
+
"key": {
|
|
484
736
|
"attrType": "regular",
|
|
485
737
|
"types": [
|
|
486
738
|
"string"
|
|
487
739
|
],
|
|
488
740
|
"defaultValue": null,
|
|
489
|
-
"reactive":
|
|
490
|
-
"description": "
|
|
741
|
+
"reactive": false,
|
|
742
|
+
"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\").",
|
|
491
743
|
"usedIn": [
|
|
492
744
|
"Element",
|
|
493
745
|
"Text",
|
|
@@ -496,46 +748,16 @@
|
|
|
496
748
|
"Component"
|
|
497
749
|
]
|
|
498
750
|
},
|
|
499
|
-
"
|
|
751
|
+
"range": {
|
|
500
752
|
"attrType": "regular",
|
|
501
753
|
"types": [
|
|
502
|
-
"enum"
|
|
503
|
-
],
|
|
504
|
-
"values": [
|
|
505
|
-
"start",
|
|
506
|
-
"center",
|
|
507
|
-
"end"
|
|
508
|
-
],
|
|
509
|
-
"defaultValue": null,
|
|
510
|
-
"reactive": true,
|
|
511
|
-
"description": "Specifies how to align children on the opposite axis.",
|
|
512
|
-
"usedIn": [
|
|
513
|
-
"Layout"
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
"padding": {
|
|
517
|
-
"attrType": "regular",
|
|
518
|
-
"types": [
|
|
519
|
-
"number",
|
|
520
754
|
{
|
|
521
755
|
"type": "object",
|
|
522
756
|
"properties": {
|
|
523
|
-
"
|
|
524
|
-
"type": "number"
|
|
525
|
-
},
|
|
526
|
-
"bottom": {
|
|
757
|
+
"from": {
|
|
527
758
|
"type": "number"
|
|
528
759
|
},
|
|
529
|
-
"
|
|
530
|
-
"type": "number"
|
|
531
|
-
},
|
|
532
|
-
"right": {
|
|
533
|
-
"type": "number"
|
|
534
|
-
},
|
|
535
|
-
"x": {
|
|
536
|
-
"type": "number"
|
|
537
|
-
},
|
|
538
|
-
"y": {
|
|
760
|
+
"to": {
|
|
539
761
|
"type": "number"
|
|
540
762
|
}
|
|
541
763
|
}
|
|
@@ -543,19 +765,44 @@
|
|
|
543
765
|
],
|
|
544
766
|
"defaultValue": null,
|
|
545
767
|
"reactive": true,
|
|
546
|
-
"description": "
|
|
768
|
+
"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.",
|
|
547
769
|
"usedIn": [
|
|
548
|
-
"
|
|
770
|
+
"Element",
|
|
771
|
+
"Text",
|
|
772
|
+
"Layout",
|
|
773
|
+
"RouterView",
|
|
774
|
+
"Component"
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
"show": {
|
|
778
|
+
"attrType": "directive",
|
|
779
|
+
"types": [
|
|
780
|
+
"enum"
|
|
781
|
+
],
|
|
782
|
+
"values": [
|
|
783
|
+
"true",
|
|
784
|
+
"false"
|
|
785
|
+
],
|
|
786
|
+
"defaultValue": "true",
|
|
787
|
+
"reactive": true,
|
|
788
|
+
"description": "Conditionally shows or hides the Element/Component by setting alpha to 0 or restoring it.",
|
|
789
|
+
"usedIn": [
|
|
790
|
+
"Element",
|
|
791
|
+
"Text",
|
|
792
|
+
"Layout",
|
|
793
|
+
"RouterView",
|
|
794
|
+
"Component"
|
|
549
795
|
]
|
|
550
796
|
},
|
|
551
797
|
"@loaded": {
|
|
552
798
|
"attrType": "event",
|
|
553
799
|
"types": [
|
|
554
|
-
"string"
|
|
800
|
+
"string",
|
|
801
|
+
"function"
|
|
555
802
|
],
|
|
556
803
|
"defaultValue": null,
|
|
557
804
|
"reactive": false,
|
|
558
|
-
"description": "Fires when an image or text element loads, providing its dimensions.
|
|
805
|
+
"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.",
|
|
559
806
|
"usedIn": [
|
|
560
807
|
"Element",
|
|
561
808
|
"Text"
|
|
@@ -564,11 +811,12 @@
|
|
|
564
811
|
"@error": {
|
|
565
812
|
"attrType": "event",
|
|
566
813
|
"types": [
|
|
567
|
-
"string"
|
|
814
|
+
"string",
|
|
815
|
+
"function"
|
|
568
816
|
],
|
|
569
817
|
"defaultValue": null,
|
|
570
818
|
"reactive": false,
|
|
571
|
-
"description": "
|
|
819
|
+
"description": "Fires when an image fails to load, passing an error message. Accepts a function reference (e.g., $handlerName) or an inline arrow function.",
|
|
572
820
|
"usedIn": [
|
|
573
821
|
"Element",
|
|
574
822
|
"Text"
|
|
@@ -577,11 +825,12 @@
|
|
|
577
825
|
"@updated": {
|
|
578
826
|
"attrType": "event",
|
|
579
827
|
"types": [
|
|
580
|
-
"string"
|
|
828
|
+
"string",
|
|
829
|
+
"function"
|
|
581
830
|
],
|
|
582
831
|
"defaultValue": null,
|
|
583
832
|
"reactive": false,
|
|
584
|
-
"description": "
|
|
833
|
+
"description": "Fires after each Layout children update, providing current dimensions ({w, h}). Can fire multiple times.",
|
|
585
834
|
"usedIn": [
|
|
586
835
|
"Layout"
|
|
587
836
|
]
|