@vielzeug/codex 26.11.20 → 26.11.22
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/data/catalog.json +48 -48
- package/data/llms-full.txt +54 -47
- package/data/llms.txt +1 -1
- package/data/manifest.json +1 -1
- package/data/packages/bard.json +1 -1
- package/data/packages/dnd.json +2 -2
- package/data/packages/gesture.json +2 -2
- package/data/refine.json +78 -2
- package/package.json +2 -2
- package/skills/vielzeug/SKILL.md +18 -16
package/data/catalog.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"rune"
|
|
39
39
|
],
|
|
40
40
|
"slug": "archive",
|
|
41
|
-
"version": "26.11.
|
|
41
|
+
"version": "26.11.21"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"availableDocPages": [
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"coins"
|
|
112
112
|
],
|
|
113
113
|
"slug": "arsenal",
|
|
114
|
-
"version": "26.11.
|
|
114
|
+
"version": "26.11.21"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"availableDocPages": [
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"refine"
|
|
167
167
|
],
|
|
168
168
|
"slug": "assay",
|
|
169
|
-
"version": "26.11.
|
|
169
|
+
"version": "26.11.21"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"availableDocPages": [
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"necromancer"
|
|
199
199
|
],
|
|
200
200
|
"slug": "bard",
|
|
201
|
-
"version": "26.11.
|
|
201
|
+
"version": "26.11.21"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"availableDocPages": [
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"vault"
|
|
238
238
|
],
|
|
239
239
|
"slug": "beacon",
|
|
240
|
-
"version": "26.11.
|
|
240
|
+
"version": "26.11.21"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"availableDocPages": [
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"ward"
|
|
280
280
|
],
|
|
281
281
|
"slug": "clockwork",
|
|
282
|
-
"version": "26.11.
|
|
282
|
+
"version": "26.11.21"
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
"availableDocPages": [
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"refine"
|
|
312
312
|
],
|
|
313
313
|
"slug": "codex",
|
|
314
|
-
"version": "26.11.
|
|
314
|
+
"version": "26.11.21"
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"availableDocPages": [
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
"spell"
|
|
382
382
|
],
|
|
383
383
|
"slug": "coins",
|
|
384
|
-
"version": "26.11.
|
|
384
|
+
"version": "26.11.21"
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
387
|
"availableDocPages": [
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"rune"
|
|
423
423
|
],
|
|
424
424
|
"slug": "conduit",
|
|
425
|
-
"version": "26.11.
|
|
425
|
+
"version": "26.11.21"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
"availableDocPages": [
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
"postmaster"
|
|
465
465
|
],
|
|
466
466
|
"slug": "courier",
|
|
467
|
-
"version": "26.11.
|
|
467
|
+
"version": "26.11.21"
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
"availableDocPages": [
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
"refine"
|
|
511
511
|
],
|
|
512
512
|
"slug": "dnd",
|
|
513
|
-
"version": "26.11.
|
|
513
|
+
"version": "26.11.21"
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
"availableDocPages": [
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
"herald"
|
|
553
553
|
],
|
|
554
554
|
"slug": "familiar",
|
|
555
|
-
"version": "26.11.
|
|
555
|
+
"version": "26.11.21"
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
"availableDocPages": [
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
"courier"
|
|
620
620
|
],
|
|
621
621
|
"slug": "flux",
|
|
622
|
-
"version": "26.11.
|
|
622
|
+
"version": "26.11.21"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
"availableDocPages": [
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
"ore"
|
|
660
660
|
],
|
|
661
661
|
"slug": "focus",
|
|
662
|
-
"version": "26.11.
|
|
662
|
+
"version": "26.11.21"
|
|
663
663
|
},
|
|
664
664
|
{
|
|
665
665
|
"availableDocPages": [
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
"assay"
|
|
702
702
|
],
|
|
703
703
|
"slug": "forge",
|
|
704
|
-
"version": "26.11.
|
|
704
|
+
"version": "26.11.21"
|
|
705
705
|
},
|
|
706
706
|
{
|
|
707
707
|
"availableDocPages": [
|
|
@@ -739,7 +739,7 @@
|
|
|
739
739
|
"keymap"
|
|
740
740
|
],
|
|
741
741
|
"slug": "gesture",
|
|
742
|
-
"version": "26.11.
|
|
742
|
+
"version": "26.11.21"
|
|
743
743
|
},
|
|
744
744
|
{
|
|
745
745
|
"availableDocPages": [
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
"familiar"
|
|
784
784
|
],
|
|
785
785
|
"slug": "herald",
|
|
786
|
-
"version": "26.11.
|
|
786
|
+
"version": "26.11.21"
|
|
787
787
|
},
|
|
788
788
|
{
|
|
789
789
|
"availableDocPages": [
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
"tempo"
|
|
827
827
|
],
|
|
828
828
|
"slug": "illusionist",
|
|
829
|
-
"version": "26.11.
|
|
829
|
+
"version": "26.11.21"
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"availableDocPages": [
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
"ore"
|
|
872
872
|
],
|
|
873
873
|
"slug": "keymap",
|
|
874
|
-
"version": "26.11.
|
|
874
|
+
"version": "26.11.21"
|
|
875
875
|
},
|
|
876
876
|
{
|
|
877
877
|
"availableDocPages": [
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
"vault"
|
|
919
919
|
],
|
|
920
920
|
"slug": "ledger",
|
|
921
|
-
"version": "26.11.
|
|
921
|
+
"version": "26.11.21"
|
|
922
922
|
},
|
|
923
923
|
{
|
|
924
924
|
"availableDocPages": [
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
"courier"
|
|
964
964
|
],
|
|
965
965
|
"slug": "lingua",
|
|
966
|
-
"version": "26.11.
|
|
966
|
+
"version": "26.11.21"
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
"availableDocPages": [
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
"herald"
|
|
1002
1002
|
],
|
|
1003
1003
|
"slug": "mesh",
|
|
1004
|
-
"version": "26.11.
|
|
1004
|
+
"version": "26.11.21"
|
|
1005
1005
|
},
|
|
1006
1006
|
{
|
|
1007
1007
|
"availableDocPages": [
|
|
@@ -1038,7 +1038,7 @@
|
|
|
1038
1038
|
"ore"
|
|
1039
1039
|
],
|
|
1040
1040
|
"slug": "necromancer",
|
|
1041
|
-
"version": "26.11.
|
|
1041
|
+
"version": "26.11.21"
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
1044
|
"availableDocPages": [
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
"prism"
|
|
1079
1079
|
],
|
|
1080
1080
|
"slug": "orbit",
|
|
1081
|
-
"version": "26.11.
|
|
1081
|
+
"version": "26.11.21"
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
1084
1084
|
"availableDocPages": [
|
|
@@ -1146,7 +1146,7 @@
|
|
|
1146
1146
|
"orbit"
|
|
1147
1147
|
],
|
|
1148
1148
|
"slug": "ore",
|
|
1149
|
-
"version": "26.11.
|
|
1149
|
+
"version": "26.11.21"
|
|
1150
1150
|
},
|
|
1151
1151
|
{
|
|
1152
1152
|
"availableDocPages": [
|
|
@@ -1190,7 +1190,7 @@
|
|
|
1190
1190
|
"vault"
|
|
1191
1191
|
],
|
|
1192
1192
|
"slug": "patchwork",
|
|
1193
|
-
"version": "26.11.
|
|
1193
|
+
"version": "26.11.21"
|
|
1194
1194
|
},
|
|
1195
1195
|
{
|
|
1196
1196
|
"availableDocPages": [
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
"ripple"
|
|
1235
1235
|
],
|
|
1236
1236
|
"slug": "postmaster",
|
|
1237
|
-
"version": "26.11.
|
|
1237
|
+
"version": "26.11.21"
|
|
1238
1238
|
},
|
|
1239
1239
|
{
|
|
1240
1240
|
"availableDocPages": [
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
"orbit"
|
|
1279
1279
|
],
|
|
1280
1280
|
"slug": "prism",
|
|
1281
|
-
"version": "26.11.
|
|
1281
|
+
"version": "26.11.21"
|
|
1282
1282
|
},
|
|
1283
1283
|
{
|
|
1284
1284
|
"availableDocPages": [
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
"clockwork"
|
|
1343
1343
|
],
|
|
1344
1344
|
"slug": "pulse",
|
|
1345
|
-
"version": "26.11.
|
|
1345
|
+
"version": "26.11.21"
|
|
1346
1346
|
},
|
|
1347
1347
|
{
|
|
1348
1348
|
"availableDocPages": [
|
|
@@ -1475,7 +1475,7 @@
|
|
|
1475
1475
|
"keymap"
|
|
1476
1476
|
],
|
|
1477
1477
|
"slug": "refine",
|
|
1478
|
-
"version": "26.11.
|
|
1478
|
+
"version": "26.11.21"
|
|
1479
1479
|
},
|
|
1480
1480
|
{
|
|
1481
1481
|
"availableDocPages": [
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
"ledger"
|
|
1521
1521
|
],
|
|
1522
1522
|
"slug": "ripple",
|
|
1523
|
-
"version": "26.11.
|
|
1523
|
+
"version": "26.11.21"
|
|
1524
1524
|
},
|
|
1525
1525
|
{
|
|
1526
1526
|
"availableDocPages": [
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
"familiar"
|
|
1575
1575
|
],
|
|
1576
1576
|
"slug": "rune",
|
|
1577
|
-
"version": "26.11.
|
|
1577
|
+
"version": "26.11.21"
|
|
1578
1578
|
},
|
|
1579
1579
|
{
|
|
1580
1580
|
"availableDocPages": [
|
|
@@ -1615,7 +1615,7 @@
|
|
|
1615
1615
|
"refine"
|
|
1616
1616
|
],
|
|
1617
1617
|
"slug": "sandbox",
|
|
1618
|
-
"version": "26.11.
|
|
1618
|
+
"version": "26.11.21"
|
|
1619
1619
|
},
|
|
1620
1620
|
{
|
|
1621
1621
|
"availableDocPages": [
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"ripple"
|
|
1666
1666
|
],
|
|
1667
1667
|
"slug": "scout",
|
|
1668
|
-
"version": "26.11.
|
|
1668
|
+
"version": "26.11.21"
|
|
1669
1669
|
},
|
|
1670
1670
|
{
|
|
1671
1671
|
"availableDocPages": [
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
"archive"
|
|
1708
1708
|
],
|
|
1709
1709
|
"slug": "scribe",
|
|
1710
|
-
"version": "26.11.
|
|
1710
|
+
"version": "26.11.21"
|
|
1711
1711
|
},
|
|
1712
1712
|
{
|
|
1713
1713
|
"availableDocPages": [
|
|
@@ -1760,7 +1760,7 @@
|
|
|
1760
1760
|
"refine"
|
|
1761
1761
|
],
|
|
1762
1762
|
"slug": "scroll",
|
|
1763
|
-
"version": "26.11.
|
|
1763
|
+
"version": "26.11.21"
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
1766
|
"availableDocPages": [
|
|
@@ -1807,7 +1807,7 @@
|
|
|
1807
1807
|
"gesture"
|
|
1808
1808
|
],
|
|
1809
1809
|
"slug": "sentinel",
|
|
1810
|
-
"version": "26.11.
|
|
1810
|
+
"version": "26.11.21"
|
|
1811
1811
|
},
|
|
1812
1812
|
{
|
|
1813
1813
|
"availableDocPages": [
|
|
@@ -1847,7 +1847,7 @@
|
|
|
1847
1847
|
"refine"
|
|
1848
1848
|
],
|
|
1849
1849
|
"slug": "sigil",
|
|
1850
|
-
"version": "26.11.
|
|
1850
|
+
"version": "26.11.21"
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
1853
1853
|
"availableDocPages": [
|
|
@@ -1892,7 +1892,7 @@
|
|
|
1892
1892
|
"wayfinder"
|
|
1893
1893
|
],
|
|
1894
1894
|
"slug": "sourcerer",
|
|
1895
|
-
"version": "26.11.
|
|
1895
|
+
"version": "26.11.21"
|
|
1896
1896
|
},
|
|
1897
1897
|
{
|
|
1898
1898
|
"availableDocPages": [
|
|
@@ -1952,7 +1952,7 @@
|
|
|
1952
1952
|
"vault"
|
|
1953
1953
|
],
|
|
1954
1954
|
"slug": "spell",
|
|
1955
|
-
"version": "26.11.
|
|
1955
|
+
"version": "26.11.21"
|
|
1956
1956
|
},
|
|
1957
1957
|
{
|
|
1958
1958
|
"availableDocPages": [
|
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
"archive"
|
|
1996
1996
|
],
|
|
1997
1997
|
"slug": "tabula",
|
|
1998
|
-
"version": "26.11.
|
|
1998
|
+
"version": "26.11.21"
|
|
1999
1999
|
},
|
|
2000
2000
|
{
|
|
2001
2001
|
"availableDocPages": [
|
|
@@ -2036,7 +2036,7 @@
|
|
|
2036
2036
|
"ripple"
|
|
2037
2037
|
],
|
|
2038
2038
|
"slug": "tandem",
|
|
2039
|
-
"version": "26.11.
|
|
2039
|
+
"version": "26.11.21"
|
|
2040
2040
|
},
|
|
2041
2041
|
{
|
|
2042
2042
|
"availableDocPages": [
|
|
@@ -2086,7 +2086,7 @@
|
|
|
2086
2086
|
"herald"
|
|
2087
2087
|
],
|
|
2088
2088
|
"slug": "tavern",
|
|
2089
|
-
"version": "26.11.
|
|
2089
|
+
"version": "26.11.21"
|
|
2090
2090
|
},
|
|
2091
2091
|
{
|
|
2092
2092
|
"availableDocPages": [
|
|
@@ -2147,7 +2147,7 @@
|
|
|
2147
2147
|
"vault"
|
|
2148
2148
|
],
|
|
2149
2149
|
"slug": "tempo",
|
|
2150
|
-
"version": "26.11.
|
|
2150
|
+
"version": "26.11.21"
|
|
2151
2151
|
},
|
|
2152
2152
|
{
|
|
2153
2153
|
"availableDocPages": [
|
|
@@ -2197,7 +2197,7 @@
|
|
|
2197
2197
|
"ripple"
|
|
2198
2198
|
],
|
|
2199
2199
|
"slug": "vault",
|
|
2200
|
-
"version": "26.11.
|
|
2200
|
+
"version": "26.11.21"
|
|
2201
2201
|
},
|
|
2202
2202
|
{
|
|
2203
2203
|
"availableDocPages": [
|
|
@@ -2243,7 +2243,7 @@
|
|
|
2243
2243
|
"refine"
|
|
2244
2244
|
],
|
|
2245
2245
|
"slug": "ward",
|
|
2246
|
-
"version": "26.11.
|
|
2246
|
+
"version": "26.11.21"
|
|
2247
2247
|
},
|
|
2248
2248
|
{
|
|
2249
2249
|
"availableDocPages": [
|
|
@@ -2300,8 +2300,8 @@
|
|
|
2300
2300
|
"herald"
|
|
2301
2301
|
],
|
|
2302
2302
|
"slug": "wayfinder",
|
|
2303
|
-
"version": "26.11.
|
|
2303
|
+
"version": "26.11.21"
|
|
2304
2304
|
}
|
|
2305
2305
|
],
|
|
2306
|
-
"version": "26.11.
|
|
2306
|
+
"version": "26.11.21"
|
|
2307
2307
|
}
|
package/data/llms-full.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vielzeug: Full Documentation
|
|
2
2
|
|
|
3
|
-
> Complete documentation for 47 packages. Version: 26.11.
|
|
3
|
+
> Complete documentation for 47 packages. Version: 26.11.21
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -2963,30 +2963,30 @@ Returned by `play()` and `synth()`.
|
|
|
2963
2963
|
|
|
2964
2964
|
### PlayOptions
|
|
2965
2965
|
|
|
2966
|
-
| Option | Type | Default | Notes
|
|
2967
|
-
| ----------------------- | ---------------------- | ------------- |
|
|
2968
|
-
| `bus` | `string` | `'sfx'` | Destination bus
|
|
2969
|
-
| `volume` | `number` | `1` | Linear 0..1
|
|
2970
|
-
| `pan` | `number` | `0` | -1..1; voices always route via a panner
|
|
2971
|
-
| `loop` | `boolean` | `false` | Loops the buffer or sprite region
|
|
2972
|
-
| `loopStart` / `loopEnd` | `number` | — | Absolute buffer seconds
|
|
2973
|
-
| `offset` | `number` | `0` | Start offset in seconds
|
|
2974
|
-
| `detune` | `number \| [min, max]` | — | Cents; ranges sampled per voice
|
|
2975
|
-
| `rate` | `number \| [min, max]` | — | Playback rate; shifts pitch on buffers
|
|
2976
|
-
| `maxVoices` | `number` | — | Per-key cap; oldest copy is stolen
|
|
2977
|
-
| `fadeIn` | `number` | — | Seconds from 0 to `volume`
|
|
2978
|
-
| `random` | `() => number` | `Math.random` | Deterministic sampling in tests
|
|
2966
|
+
| Option | Type | Default | Notes |
|
|
2967
|
+
| ----------------------- | ---------------------- | ------------- | --------------------------------------- |
|
|
2968
|
+
| `bus` | `string` | `'sfx'` | Destination bus |
|
|
2969
|
+
| `volume` | `number` | `1` | Linear 0..1 |
|
|
2970
|
+
| `pan` | `number` | `0` | -1..1; voices always route via a panner |
|
|
2971
|
+
| `loop` | `boolean` | `false` | Loops the buffer or sprite region |
|
|
2972
|
+
| `loopStart` / `loopEnd` | `number` | — | Absolute buffer seconds |
|
|
2973
|
+
| `offset` | `number` | `0` | Start offset in seconds |
|
|
2974
|
+
| `detune` | `number \| [min, max]` | — | Cents; ranges sampled per voice |
|
|
2975
|
+
| `rate` | `number \| [min, max]` | — | Playback rate; shifts pitch on buffers |
|
|
2976
|
+
| `maxVoices` | `number` | — | Per-key cap; oldest copy is stolen |
|
|
2977
|
+
| `fadeIn` | `number` | — | Seconds from 0 to `volume` |
|
|
2978
|
+
| `random` | `() => number` | `Math.random` | Deterministic sampling in tests |
|
|
2979
2979
|
|
|
2980
2980
|
### SynthOptions
|
|
2981
2981
|
|
|
2982
|
-
| Option
|
|
2983
|
-
|
|
|
2984
|
-
| `type`
|
|
2985
|
-
| `freq`
|
|
2986
|
-
| `duration`
|
|
2987
|
-
| `envelope`
|
|
2988
|
-
| `filter`
|
|
2989
|
-
| `bus` / `volume` / `pan` / `detune`
|
|
2982
|
+
| Option | Type | Default | Notes |
|
|
2983
|
+
| ----------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------ | --------------------------------------------------------------- |
|
|
2984
|
+
| `type` | `'sine' \| 'square' \| 'sawtooth' \| 'triangle' \| 'noise'` | `'sine'` | `'noise'` uses a cached white-noise buffer |
|
|
2985
|
+
| `freq` | `number \| [from, to]` | `440` | Tuple sweeps exponentially; maps to filter cutoff for `'noise'` |
|
|
2986
|
+
| `duration` | `number` | `0.3` | Total seconds including release; must be positive |
|
|
2987
|
+
| `envelope` | `SynthEnvelope` | `{ attack: 0.005, decay: 0.05, sustain: 0.6, release: 0.1 }` | ADSR; `sustain` is a level |
|
|
2988
|
+
| `filter` | `SynthFilter` | — | Biquad stage before the envelope |
|
|
2989
|
+
| `bus` / `volume` / `pan` / `detune` | as in `PlayOptions` | | |
|
|
2990
2990
|
|
|
2991
2991
|
---
|
|
2992
2992
|
|
|
@@ -3021,16 +3021,16 @@ While the `source` bus has active voices, `target` ramps to `gain`; when they en
|
|
|
3021
3021
|
|
|
3022
3022
|
### MusicDeck
|
|
3023
3023
|
|
|
3024
|
-
| Member | Signature
|
|
3025
|
-
| --------------------------------------------- |
|
|
3026
|
-
| `current` | `string \| null`
|
|
3027
|
-
| `playing` | `boolean`
|
|
3028
|
-
| `transition(key, options?)` | `(string, TransitionOptions?) => void`
|
|
3029
|
-
| `queue(keys, options?)` | `(readonly string[], QueueOptions?) => void`
|
|
3030
|
-
| `next()` / `previous()` | `() => void`
|
|
3031
|
-
| `pause()` / `play()` | `() => void`
|
|
3032
|
-
| `stop(options?)` | `(FadeOptions?) => void`
|
|
3033
|
-
| `dispose()` / `disposed` / `[Symbol.dispose]` |
|
|
3024
|
+
| Member | Signature | Notes |
|
|
3025
|
+
| --------------------------------------------- | -------------------------------------------- | ---------------------------------------------------- |
|
|
3026
|
+
| `current` | `string \| null` | Active track key |
|
|
3027
|
+
| `playing` | `boolean` | `false` while paused or stopped |
|
|
3028
|
+
| `transition(key, options?)` | `(string, TransitionOptions?) => void` | Crossfades; transitioning to the live key is a no-op |
|
|
3029
|
+
| `queue(keys, options?)` | `(readonly string[], QueueOptions?) => void` | Replaces the queue and starts its first track |
|
|
3030
|
+
| `next()` / `previous()` | `() => void` | No-op without a queue |
|
|
3031
|
+
| `pause()` / `play()` | `() => void` | `play()` resumes from the paused offset |
|
|
3032
|
+
| `stop(options?)` | `(FadeOptions?) => void` | Stops and clears queue and slot |
|
|
3033
|
+
| `dispose()` / `disposed` / `[Symbol.dispose]` | | Releases a Media Session claim |
|
|
3034
3034
|
|
|
3035
3035
|
`TransitionOptions`: `fade`, `loop`, `loopStart`, `loopEnd`, `offset`.
|
|
3036
3036
|
`QueueOptions`: `shuffle`, `crossfade`, `repeat`, `random`.
|
|
@@ -7220,7 +7220,7 @@ type SortableTouchOptions = Readonly HTMLElement | null);
|
|
|
7220
7220
|
|
|
7221
7221
|
`preview` returns a template that Dnd clones before mounting it as a transient touch preview, so returning an element from the sortable item does not reparent or remove caller-owned DOM. Return `false` to disable the preview.
|
|
7222
7222
|
|
|
7223
|
-
Touch sorting delegates
|
|
7223
|
+
Touch sorting delegates activation, movement, identity, and cancellation to Gesture's `createDragGesture()` with pointer capture disabled for document hit-testing. Dnd retains preview rendering, hit-testing, synthetic drag events, and sortable transactions. A second touch cancels sorting and restores the pre-drag order without firing `onReorder` or `onMove`. Without a configured handle, touch starts on editing controls, buttons, links, ARIA controls, and `[data-no-drag]` subtrees are excluded. Explicit handles remain eligible, including button handles.
|
|
7224
7224
|
|
|
7225
7225
|
## `createDropZone()`
|
|
7226
7226
|
|
|
@@ -7702,6 +7702,8 @@ createSortable({
|
|
|
7702
7702
|
});
|
|
7703
7703
|
```
|
|
7704
7704
|
|
|
7705
|
+
Touch sorting ignores controls inside an item unless they belong to the configured handle. Put `data-no-drag` on a custom interaction subtree to exclude it when sorting whole items. A second finger cancels the drag and restores the original order; it never commits a reorder.
|
|
7706
|
+
|
|
7705
7707
|
### Keyboard reordering
|
|
7706
7708
|
|
|
7707
7709
|
Focus an item and use arrow keys to move it. `Home` and `End` move to the boundary positions.
|
|
@@ -10962,7 +10964,7 @@ const hold = createLongPress(list, {
|
|
|
10962
10964
|
});
|
|
10963
10965
|
```
|
|
10964
10966
|
|
|
10965
|
-
Movement beyond `slopPx
|
|
10967
|
+
Movement beyond `slopPx`, a second touch, window blur, or a hidden document cancels a pending hold. The dynamic `disabled` predicate is checked again before the timer fires. The pointer-generated click following a fired hold is swallowed through a capture-phase listener on `target`; keyboard clicks (`detail: 0`) remain available. Bind `target` to a stable ancestor of the pressed controls so the swallow precedes their click handlers.
|
|
10966
10968
|
|
|
10967
10969
|
## Types
|
|
10968
10970
|
|
|
@@ -10983,6 +10985,7 @@ type DragGestureOptions = Readonly boolean | undefined);
|
|
|
10983
10985
|
onMove?: (detail: DragGestureDetail) => void;
|
|
10984
10986
|
onStart?: (detail: DragGestureDetail) => void;
|
|
10985
10987
|
pointerCapture?: boolean;
|
|
10988
|
+
shouldActivate?: (detail: DragGestureDetail) => boolean;
|
|
10986
10989
|
shouldStart?: (event: PointerEvent) => boolean;
|
|
10987
10990
|
signal?: AbortSignal;
|
|
10988
10991
|
}>;
|
|
@@ -11007,6 +11010,7 @@ type PanGestureOptions = Readonly PanAxis);
|
|
|
11007
11010
|
onMove?: (detail: PanGestureDetail) => void;
|
|
11008
11011
|
onStart?: (detail: PanGestureDetail) => void;
|
|
11009
11012
|
pointerCapture?: boolean;
|
|
11013
|
+
shouldActivate?: (detail: PanGestureDetail) => boolean;
|
|
11010
11014
|
shouldStart?: (event: PointerEvent) => boolean;
|
|
11011
11015
|
signal?: AbortSignal;
|
|
11012
11016
|
}>;
|
|
@@ -11014,6 +11018,8 @@ type PanGestureOptions = Readonly PanAxis);
|
|
|
11014
11018
|
|
|
11015
11019
|
Pan details project `start`, `current`, and `distance` onto `axis`. The default axis is `'x'`.
|
|
11016
11020
|
|
|
11021
|
+
Velocity is signed CSS pixels per second over the trailing 90 ms. Samples include pointerdown, movement (including activation), and release. A window with fewer than two distinct sample times reports zero velocity; a pause longer than the window removes earlier movement.
|
|
11022
|
+
|
|
11017
11023
|
### Long-press types
|
|
11018
11024
|
|
|
11019
11025
|
```ts
|
|
@@ -11046,21 +11052,22 @@ type PanGesture = DragGesture;
|
|
|
11046
11052
|
|
|
11047
11053
|
### Shared option behavior
|
|
11048
11054
|
|
|
11049
|
-
| Option | Default | Contract
|
|
11050
|
-
| -------------------- | ------- |
|
|
11051
|
-
| `activationDistance` | `6` | Non-negative finite CSS pixels; drag uses Euclidean distance, pan waits for dominant-axis intent
|
|
11052
|
-
| `axis` | `'x'` | Pan only; fixed value or getter sampled when each interaction starts
|
|
11053
|
-
| `disabled` | `false` | Fixed value or getter; blocks starts and cancels active recognition on the next matching pointer event
|
|
11054
|
-
| `pointerCapture` | `true` | Best-effort capture after activation; document tracking continues when capture is disabled or fails
|
|
11055
|
-
| `shouldStart` | N/A | Admission predicate evaluated for the primary pointer before tracking starts
|
|
11056
|
-
| `
|
|
11057
|
-
| `
|
|
11058
|
-
| `
|
|
11059
|
-
| `
|
|
11055
|
+
| Option | Default | Contract |
|
|
11056
|
+
| -------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
11057
|
+
| `activationDistance` | `6` | Non-negative finite CSS pixels; drag uses Euclidean distance, pan waits for dominant-axis intent |
|
|
11058
|
+
| `axis` | `'x'` | Pan only; fixed value or getter sampled when each interaction starts |
|
|
11059
|
+
| `disabled` | `false` | Fixed value or getter; blocks starts and cancels active recognition on the next matching pointer event |
|
|
11060
|
+
| `pointerCapture` | `true` | Best-effort capture after activation; document tracking continues when capture is disabled or fails |
|
|
11061
|
+
| `shouldStart` | N/A | Admission predicate evaluated for the primary pointer before tracking starts |
|
|
11062
|
+
| `shouldActivate` | N/A | Drag/pan predicate evaluated once after distance/axis recognition and before capture or callbacks; false rejects the session |
|
|
11063
|
+
| `signal` | N/A | Disposes the handle when the external owner aborts |
|
|
11064
|
+
| `onStart` | N/A | Runs once on the activating movement |
|
|
11065
|
+
| `onMove` | N/A | Runs on the activating movement and each later matching movement |
|
|
11066
|
+
| `onEnd` | N/A | Runs once for active release or cancellation; pending interactions end without callbacks |
|
|
11060
11067
|
|
|
11061
11068
|
Options and callback details are readonly. Fixed callbacks and capture policy are snapshotted at construction. Function-valued `axis` and `disabled` options remain dynamic.
|
|
11062
11069
|
|
|
11063
|
-
Gesture tracks accepted movement with capture-phase listeners on the target's current owner document. Window blur, hidden-document transition, `pointercancel`,
|
|
11070
|
+
Gesture tracks accepted movement with capture-phase listeners on the target's current owner document. Window blur, hidden-document transition, `pointercancel`, pointer capture loss on the gesture target, and a second touch anywhere in that document cancel recognition. A `lostpointercapture` event bubbling from a descendant does not cancel the target's gesture. Exact diagonal ties remain pending until one axis dominates; cross-axis dominance rejects the pending pan. Gesture does not arbitrate ownership between recognizers on the same axis.
|
|
11064
11071
|
|
|
11065
11072
|
## Errors
|
|
11066
11073
|
|
|
@@ -11155,7 +11162,7 @@ Gesture reports movement and terminal state but does not decide what constitutes
|
|
|
11155
11162
|
const pan = createPanGesture(panel, {
|
|
11156
11163
|
axis: 'x',
|
|
11157
11164
|
onEnd: ({ distance, reason }) => {
|
|
11158
|
-
if (reason === 'release' && distance
|
|
11165
|
+
if (reason === 'release' && distance distance > 0 && scroller.scrollTop
|
|
11159
11166
|
!event.composedPath().some((node) => node instanceof Element && node.matches('button, a, input, select, textarea')),
|
|
11160
11167
|
onMove,
|
|
11161
11168
|
onEnd,
|
package/data/llms.txt
CHANGED
package/data/manifest.json
CHANGED