@fusion.dev/helix 0.113.0 → 0.115.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/custom-elements.json +126 -0
- package/dist/element-events.generated.js +1 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +74 -0
- package/types/vue.d.ts +20 -0
package/custom-elements.json
CHANGED
|
@@ -77453,6 +77453,33 @@
|
|
|
77453
77453
|
"attribute": "tone",
|
|
77454
77454
|
"reflects": true
|
|
77455
77455
|
},
|
|
77456
|
+
{
|
|
77457
|
+
"kind": "field",
|
|
77458
|
+
"name": "caption",
|
|
77459
|
+
"type": {
|
|
77460
|
+
"text": "string | undefined"
|
|
77461
|
+
},
|
|
77462
|
+
"description": "Words drawn on the map with the area, such as `A` for a search sector.\nUnset, nothing is drawn. Keep it short: it is a caption on a map, and the\narea's `label` is what a screen reader hears.",
|
|
77463
|
+
"attribute": "caption",
|
|
77464
|
+
"inheritedFrom": {
|
|
77465
|
+
"name": "HelixHeadlessMapArea",
|
|
77466
|
+
"module": "src/map/area/map-area.ts"
|
|
77467
|
+
}
|
|
77468
|
+
},
|
|
77469
|
+
{
|
|
77470
|
+
"kind": "field",
|
|
77471
|
+
"name": "captionPlacement",
|
|
77472
|
+
"type": {
|
|
77473
|
+
"text": "'inside' | 'outside'"
|
|
77474
|
+
},
|
|
77475
|
+
"default": "'inside'",
|
|
77476
|
+
"description": "Where the caption stands. `inside`, the default, at the point of the area\nfurthest from its edges. `outside`, just above the area's northernmost\npoint, clear of the shape, for an area whose caption would cover what is\nin it.",
|
|
77477
|
+
"attribute": "caption-placement",
|
|
77478
|
+
"inheritedFrom": {
|
|
77479
|
+
"name": "HelixHeadlessMapArea",
|
|
77480
|
+
"module": "src/map/area/map-area.ts"
|
|
77481
|
+
}
|
|
77482
|
+
},
|
|
77456
77483
|
{
|
|
77457
77484
|
"kind": "field",
|
|
77458
77485
|
"name": "description",
|
|
@@ -77854,6 +77881,31 @@
|
|
|
77854
77881
|
"description": "The area's color. Uses your primary color unless set.",
|
|
77855
77882
|
"fieldName": "tone"
|
|
77856
77883
|
},
|
|
77884
|
+
{
|
|
77885
|
+
"name": "caption",
|
|
77886
|
+
"type": {
|
|
77887
|
+
"text": "string | undefined"
|
|
77888
|
+
},
|
|
77889
|
+
"description": "Words drawn on the map with the area, such as `A` for a search sector.\nUnset, nothing is drawn. Keep it short: it is a caption on a map, and the\narea's `label` is what a screen reader hears.",
|
|
77890
|
+
"fieldName": "caption",
|
|
77891
|
+
"inheritedFrom": {
|
|
77892
|
+
"name": "HelixHeadlessMapArea",
|
|
77893
|
+
"module": "src/map/area/map-area.ts"
|
|
77894
|
+
}
|
|
77895
|
+
},
|
|
77896
|
+
{
|
|
77897
|
+
"name": "caption-placement",
|
|
77898
|
+
"type": {
|
|
77899
|
+
"text": "'inside' | 'outside'"
|
|
77900
|
+
},
|
|
77901
|
+
"default": "'inside'",
|
|
77902
|
+
"description": "Where the caption stands. `inside`, the default, at the point of the area\nfurthest from its edges. `outside`, just above the area's northernmost\npoint, clear of the shape, for an area whose caption would cover what is\nin it.",
|
|
77903
|
+
"fieldName": "captionPlacement",
|
|
77904
|
+
"inheritedFrom": {
|
|
77905
|
+
"name": "HelixHeadlessMapArea",
|
|
77906
|
+
"module": "src/map/area/map-area.ts"
|
|
77907
|
+
}
|
|
77908
|
+
},
|
|
77857
77909
|
{
|
|
77858
77910
|
"name": "description",
|
|
77859
77911
|
"type": {
|
|
@@ -84168,6 +84220,56 @@
|
|
|
84168
84220
|
"module": "src/map/root/map-root.ts"
|
|
84169
84221
|
}
|
|
84170
84222
|
},
|
|
84223
|
+
{
|
|
84224
|
+
"kind": "field",
|
|
84225
|
+
"name": "ready",
|
|
84226
|
+
"type": {
|
|
84227
|
+
"text": "boolean"
|
|
84228
|
+
},
|
|
84229
|
+
"description": "Whether the map has been drawn whole, which `drawn()` says. For a page that\nconnects after `helix-map-ready` has been sent, and missed it.",
|
|
84230
|
+
"readonly": true,
|
|
84231
|
+
"inheritedFrom": {
|
|
84232
|
+
"name": "HelixHeadlessMap",
|
|
84233
|
+
"module": "src/map/root/map-root.ts"
|
|
84234
|
+
}
|
|
84235
|
+
},
|
|
84236
|
+
{
|
|
84237
|
+
"kind": "field",
|
|
84238
|
+
"name": "whole",
|
|
84239
|
+
"type": {
|
|
84240
|
+
"text": "boolean"
|
|
84241
|
+
},
|
|
84242
|
+
"privacy": "private",
|
|
84243
|
+
"default": "false",
|
|
84244
|
+
"description": "What `ready` reads, written by `drawn()`.",
|
|
84245
|
+
"inheritedFrom": {
|
|
84246
|
+
"name": "HelixHeadlessMap",
|
|
84247
|
+
"module": "src/map/root/map-root.ts"
|
|
84248
|
+
}
|
|
84249
|
+
},
|
|
84250
|
+
{
|
|
84251
|
+
"kind": "method",
|
|
84252
|
+
"name": "drawn",
|
|
84253
|
+
"return": {
|
|
84254
|
+
"type": {
|
|
84255
|
+
"text": "void"
|
|
84256
|
+
}
|
|
84257
|
+
},
|
|
84258
|
+
"parameters": [
|
|
84259
|
+
{
|
|
84260
|
+
"name": "whole",
|
|
84261
|
+
"default": "true"
|
|
84262
|
+
}
|
|
84263
|
+
],
|
|
84264
|
+
"description": "Says the map has been drawn whole, or with `false`, that it no longer is.\n\n**Called by whatever draws the map**, as `connectMap` does once its driver\nhas every tile the view needs and the ground where there is terrain, and\nwith `false` when it disconnects. A page drawing its own map calls it when\nthat map is finished. The first call after the map was not drawn sends\n`helix-map-ready` and turns on `:state(ready)`, so a page can wait on the\nevent or select on the state, and a page that connects late reads `ready`.",
|
|
84265
|
+
"type": {
|
|
84266
|
+
"text": "drawn(whole = true) => void"
|
|
84267
|
+
},
|
|
84268
|
+
"inheritedFrom": {
|
|
84269
|
+
"name": "HelixHeadlessMap",
|
|
84270
|
+
"module": "src/map/root/map-root.ts"
|
|
84271
|
+
}
|
|
84272
|
+
},
|
|
84171
84273
|
{
|
|
84172
84274
|
"kind": "method",
|
|
84173
84275
|
"name": "say",
|
|
@@ -85558,6 +85660,10 @@
|
|
|
85558
85660
|
"description": "A frame around a map, with pan and zoom buttons and the map credit.",
|
|
85559
85661
|
"slug": "preview"
|
|
85560
85662
|
},
|
|
85663
|
+
{
|
|
85664
|
+
"description": "Search sectors, each named on the map by its caption: two inside their sector and one above it, clear of what it holds.",
|
|
85665
|
+
"slug": "areas"
|
|
85666
|
+
},
|
|
85561
85667
|
{
|
|
85562
85668
|
"description": "A map behind a page's own words, filling a hero whose words decide its height, with its credit in a corner and no landmarks.",
|
|
85563
85669
|
"slug": "behind-content"
|
|
@@ -85956,6 +86062,18 @@
|
|
|
85956
86062
|
"module": "src/map/root/map-root.ts"
|
|
85957
86063
|
}
|
|
85958
86064
|
},
|
|
86065
|
+
{
|
|
86066
|
+
"type": {
|
|
86067
|
+
"text": "HelixMapReadyEvent"
|
|
86068
|
+
},
|
|
86069
|
+
"description": "The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.",
|
|
86070
|
+
"name": "helix-map-ready",
|
|
86071
|
+
"reactProp": "onhelix-map-ready",
|
|
86072
|
+
"inheritedFrom": {
|
|
86073
|
+
"name": "HelixHeadlessMap",
|
|
86074
|
+
"module": "src/map/root/map-root.ts"
|
|
86075
|
+
}
|
|
86076
|
+
},
|
|
85959
86077
|
{
|
|
85960
86078
|
"type": {
|
|
85961
86079
|
"text": "HelixMapRotateEvent"
|
|
@@ -86010,6 +86128,14 @@
|
|
|
86010
86128
|
"module": "src/map/root/map-root.ts"
|
|
86011
86129
|
}
|
|
86012
86130
|
},
|
|
86131
|
+
{
|
|
86132
|
+
"description": "The map has been drawn whole, after `helix-map-ready`.",
|
|
86133
|
+
"name": "ready",
|
|
86134
|
+
"inheritedFrom": {
|
|
86135
|
+
"name": "HelixHeadlessMap",
|
|
86136
|
+
"module": "src/map/root/map-root.ts"
|
|
86137
|
+
}
|
|
86138
|
+
},
|
|
86013
86139
|
{
|
|
86014
86140
|
"description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
|
|
86015
86141
|
"name": "settled",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix",
|
|
3
3
|
"description": "Styled component tier. Extends the headless tier with token-driven presentation.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.115.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@fusion.dev/helix-core": "0.
|
|
55
|
-
"@fusion.dev/helix-headless": "0.
|
|
56
|
-
"@fusion.dev/helix-styles": "0.
|
|
54
|
+
"@fusion.dev/helix-core": "0.115.0",
|
|
55
|
+
"@fusion.dev/helix-headless": "0.115.0",
|
|
56
|
+
"@fusion.dev/helix-styles": "0.115.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@fusion.dev/helix-cem": "0.
|
|
60
|
-
"@fusion.dev/helix-testing": "0.
|
|
59
|
+
"@fusion.dev/helix-cem": "0.115.0",
|
|
60
|
+
"@fusion.dev/helix-testing": "0.115.0",
|
|
61
61
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
62
62
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
63
63
|
"@lit-labs/ssr": "^4.1.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ import type {
|
|
|
112
112
|
HelixMapPoints,
|
|
113
113
|
HelixMapPosition,
|
|
114
114
|
HelixMapRaster,
|
|
115
|
+
HelixMapReadyEvent,
|
|
115
116
|
HelixMapRotateEvent,
|
|
116
117
|
HelixMapRoute,
|
|
117
118
|
HelixMapTerrain,
|
|
@@ -13626,6 +13627,20 @@ export type HelixMapAreaHelixMapPartChangeElementEvent =
|
|
|
13626
13627
|
export type HelixMapAreaProps = {
|
|
13627
13628
|
/** The area's color. Uses your primary color unless set. */
|
|
13628
13629
|
tone?: (HelixMapArea["tone"]) | undefined;
|
|
13630
|
+
/** Words drawn on the map with the area, such as `A` for a search sector.
|
|
13631
|
+
Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
13632
|
+
area's `label` is what a screen reader hears. */
|
|
13633
|
+
caption?: (HelixMapArea["caption"]) | undefined;
|
|
13634
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
13635
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
13636
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
13637
|
+
in it. */
|
|
13638
|
+
"caption-placement"?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
13639
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
13640
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
13641
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
13642
|
+
in it. */
|
|
13643
|
+
captionPlacement?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
13629
13644
|
/** More about the area. Read after its label in the frame's list. */
|
|
13630
13645
|
description?: (HelixMapArea["description"]) | undefined;
|
|
13631
13646
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -13648,6 +13663,20 @@ first. */
|
|
|
13648
13663
|
export type HelixMapAreaSolidJsProps = {
|
|
13649
13664
|
/** The area's color. Uses your primary color unless set. */
|
|
13650
13665
|
"prop:tone"?: (HelixMapArea["tone"]) | undefined;
|
|
13666
|
+
/** Words drawn on the map with the area, such as `A` for a search sector.
|
|
13667
|
+
Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
13668
|
+
area's `label` is what a screen reader hears. */
|
|
13669
|
+
"prop:caption"?: (HelixMapArea["caption"]) | undefined;
|
|
13670
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
13671
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
13672
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
13673
|
+
in it. */
|
|
13674
|
+
"attr:caption-placement"?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
13675
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
13676
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
13677
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
13678
|
+
in it. */
|
|
13679
|
+
"prop:captionPlacement"?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
13651
13680
|
/** More about the area. Read after its label in the frame's list. */
|
|
13652
13681
|
"prop:description"?: (HelixMapArea["description"]) | undefined;
|
|
13653
13682
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -14227,6 +14256,9 @@ export type HelixMapHelixMapPanElementEvent =
|
|
|
14227
14256
|
/** `helix-map-part-change` event type */
|
|
14228
14257
|
export type HelixMapHelixMapPartChangeElementEvent =
|
|
14229
14258
|
HelixMapElementEvent<HelixMapPartChangeEvent>;
|
|
14259
|
+
/** `helix-map-ready` event type */
|
|
14260
|
+
export type HelixMapHelixMapReadyElementEvent =
|
|
14261
|
+
HelixMapElementEvent<HelixMapReadyEvent>;
|
|
14230
14262
|
/** `helix-map-rotate` event type */
|
|
14231
14263
|
export type HelixMapHelixMapRotateElementEvent =
|
|
14232
14264
|
HelixMapElementEvent<HelixMapRotateEvent>;
|
|
@@ -14501,6 +14533,8 @@ current, and the map says it after a zoom. */
|
|
|
14501
14533
|
"onhelix-map-part-change"?: ((
|
|
14502
14534
|
e: HelixMapHelixMapPartChangeElementEvent,
|
|
14503
14535
|
) => void) | undefined;
|
|
14536
|
+
/** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
|
|
14537
|
+
"onhelix-map-ready"?: ((e: HelixMapHelixMapReadyElementEvent) => void) | undefined;
|
|
14504
14538
|
/** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
|
|
14505
14539
|
"onhelix-map-rotate"?: ((e: HelixMapHelixMapRotateElementEvent) => void) | undefined;
|
|
14506
14540
|
/** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */
|
|
@@ -14772,6 +14806,8 @@ current, and the map says it after a zoom. */
|
|
|
14772
14806
|
"on:helix-map-part-change"?: ((
|
|
14773
14807
|
e: HelixMapHelixMapPartChangeElementEvent,
|
|
14774
14808
|
) => void) | undefined;
|
|
14809
|
+
/** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
|
|
14810
|
+
"on:helix-map-ready"?: ((e: HelixMapHelixMapReadyElementEvent) => void) | undefined;
|
|
14775
14811
|
/** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
|
|
14776
14812
|
"on:helix-map-rotate"?: ((e: HelixMapHelixMapRotateElementEvent) => void) | undefined;
|
|
14777
14813
|
/** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */
|
|
@@ -37007,6 +37043,13 @@ export type CustomElements = {
|
|
|
37007
37043
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
37008
37044
|
*
|
|
37009
37045
|
* - `tone`: The area's color. Uses your primary color unless set.
|
|
37046
|
+
* - `caption`: Words drawn on the map with the area, such as `A` for a search sector.
|
|
37047
|
+
* Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
37048
|
+
* area's `label` is what a screen reader hears.
|
|
37049
|
+
* - `caption-placement`/`captionPlacement`: Where the caption stands. `inside`, the default, at the point of the area
|
|
37050
|
+
* furthest from its edges. `outside`, just above the area's northernmost
|
|
37051
|
+
* point, clear of the shape, for an area whose caption would cover what is
|
|
37052
|
+
* in it.
|
|
37010
37053
|
* - `description`: More about the area. Read after its label in the frame's list.
|
|
37011
37054
|
* - `group`: A name this layer shares with other layers, such as a route and its
|
|
37012
37055
|
* dotted legs. The layers menu shows layers in the same group as one entry,
|
|
@@ -37695,6 +37738,8 @@ export type CustomElements = {
|
|
|
37695
37738
|
* - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
|
|
37696
37739
|
* - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
|
|
37697
37740
|
* current, and the map says it after a zoom.
|
|
37741
|
+
* - `ready`: Whether the map has been drawn whole, which `drawn()` says. For a page that
|
|
37742
|
+
* connects after `helix-map-ready` has been sent, and missed it. (property only) (readonly)
|
|
37698
37743
|
* - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
|
|
37699
37744
|
*
|
|
37700
37745
|
* **Named `whenSettled` because `settled` is taken four times over**, by
|
|
@@ -37724,6 +37769,7 @@ export type CustomElements = {
|
|
|
37724
37769
|
* - `helix-map-cluster`: A cluster was pressed. Sent from the marker that shows the cluster, with the names of its places.
|
|
37725
37770
|
* - `helix-map-pan`: A pan button or arrow key was pressed. Move your map in response.
|
|
37726
37771
|
* - `helix-map-part-change`: Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it.
|
|
37772
|
+
* - `helix-map-ready`: The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.
|
|
37727
37773
|
* - `helix-map-rotate`: A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response.
|
|
37728
37774
|
* - `helix-map-tilt`: The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response.
|
|
37729
37775
|
* - `helix-map-zoom`: A zoom button or key was pressed, with a direction. Zoom your map in response.
|
|
@@ -37758,6 +37804,14 @@ export type CustomElements = {
|
|
|
37758
37804
|
* animation is one sentence, and it is the view's state where there is one:
|
|
37759
37805
|
* the zoom level, the way the map faces, its tilt. A pan has no state to
|
|
37760
37806
|
* say, so it says which way the map moved.
|
|
37807
|
+
* - `drawn(whole = true) => void`: Says the map has been drawn whole, or with `false`, that it no longer is.
|
|
37808
|
+
*
|
|
37809
|
+
* **Called by whatever draws the map**, as `connectMap` does once its driver
|
|
37810
|
+
* has every tile the view needs and the ground where there is terrain, and
|
|
37811
|
+
* with `false` when it disconnects. A page drawing its own map calls it when
|
|
37812
|
+
* that map is finished. The first call after the map was not drawn sends
|
|
37813
|
+
* `helix-map-ready` and turns on `:state(ready)`, so a page can wait on the
|
|
37814
|
+
* event or select on the state, and a page that connects late reads `ready`.
|
|
37761
37815
|
* - `rotate(by: number) => void`: Turns the map by some degrees, clockwise where positive.
|
|
37762
37816
|
* - `faceNorth() => void`: Turns the map to face north.
|
|
37763
37817
|
* - `tilt(by: number) => void`: Tilts the map by some degrees, toward the horizon where positive.
|
|
@@ -37816,6 +37870,7 @@ export type CustomElements = {
|
|
|
37816
37870
|
*
|
|
37817
37871
|
* - `fullscreen`: The map fills the screen.
|
|
37818
37872
|
* - `idle`: The user has been still long enough for the header and footer to fade.
|
|
37873
|
+
* - `ready`: The map has been drawn whole, after `helix-map-ready`.
|
|
37819
37874
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
37820
37875
|
*/
|
|
37821
37876
|
"helix-map": Partial<HelixMapProps & BaseProps<HelixMap> & BaseEvents<HelixMap>>;
|
|
@@ -58997,6 +59052,13 @@ export type CustomElementsSolidJs = {
|
|
|
58997
59052
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
58998
59053
|
*
|
|
58999
59054
|
* - `tone`: The area's color. Uses your primary color unless set.
|
|
59055
|
+
* - `caption`: Words drawn on the map with the area, such as `A` for a search sector.
|
|
59056
|
+
* Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
59057
|
+
* area's `label` is what a screen reader hears.
|
|
59058
|
+
* - `caption-placement`/`captionPlacement`: Where the caption stands. `inside`, the default, at the point of the area
|
|
59059
|
+
* furthest from its edges. `outside`, just above the area's northernmost
|
|
59060
|
+
* point, clear of the shape, for an area whose caption would cover what is
|
|
59061
|
+
* in it.
|
|
59000
59062
|
* - `description`: More about the area. Read after its label in the frame's list.
|
|
59001
59063
|
* - `group`: A name this layer shares with other layers, such as a route and its
|
|
59002
59064
|
* dotted legs. The layers menu shows layers in the same group as one entry,
|
|
@@ -59709,6 +59771,8 @@ export type CustomElementsSolidJs = {
|
|
|
59709
59771
|
* - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
|
|
59710
59772
|
* - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
|
|
59711
59773
|
* current, and the map says it after a zoom.
|
|
59774
|
+
* - `ready`: Whether the map has been drawn whole, which `drawn()` says. For a page that
|
|
59775
|
+
* connects after `helix-map-ready` has been sent, and missed it. (property only) (readonly)
|
|
59712
59776
|
* - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
|
|
59713
59777
|
*
|
|
59714
59778
|
* **Named `whenSettled` because `settled` is taken four times over**, by
|
|
@@ -59738,6 +59802,7 @@ export type CustomElementsSolidJs = {
|
|
|
59738
59802
|
* - `helix-map-cluster`: A cluster was pressed. Sent from the marker that shows the cluster, with the names of its places.
|
|
59739
59803
|
* - `helix-map-pan`: A pan button or arrow key was pressed. Move your map in response.
|
|
59740
59804
|
* - `helix-map-part-change`: Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it.
|
|
59805
|
+
* - `helix-map-ready`: The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages.
|
|
59741
59806
|
* - `helix-map-rotate`: A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response.
|
|
59742
59807
|
* - `helix-map-tilt`: The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response.
|
|
59743
59808
|
* - `helix-map-zoom`: A zoom button or key was pressed, with a direction. Zoom your map in response.
|
|
@@ -59772,6 +59837,14 @@ export type CustomElementsSolidJs = {
|
|
|
59772
59837
|
* animation is one sentence, and it is the view's state where there is one:
|
|
59773
59838
|
* the zoom level, the way the map faces, its tilt. A pan has no state to
|
|
59774
59839
|
* say, so it says which way the map moved.
|
|
59840
|
+
* - `drawn(whole = true) => void`: Says the map has been drawn whole, or with `false`, that it no longer is.
|
|
59841
|
+
*
|
|
59842
|
+
* **Called by whatever draws the map**, as `connectMap` does once its driver
|
|
59843
|
+
* has every tile the view needs and the ground where there is terrain, and
|
|
59844
|
+
* with `false` when it disconnects. A page drawing its own map calls it when
|
|
59845
|
+
* that map is finished. The first call after the map was not drawn sends
|
|
59846
|
+
* `helix-map-ready` and turns on `:state(ready)`, so a page can wait on the
|
|
59847
|
+
* event or select on the state, and a page that connects late reads `ready`.
|
|
59775
59848
|
* - `rotate(by: number) => void`: Turns the map by some degrees, clockwise where positive.
|
|
59776
59849
|
* - `faceNorth() => void`: Turns the map to face north.
|
|
59777
59850
|
* - `tilt(by: number) => void`: Tilts the map by some degrees, toward the horizon where positive.
|
|
@@ -59830,6 +59903,7 @@ export type CustomElementsSolidJs = {
|
|
|
59830
59903
|
*
|
|
59831
59904
|
* - `fullscreen`: The map fills the screen.
|
|
59832
59905
|
* - `idle`: The user has been still long enough for the header and footer to fade.
|
|
59906
|
+
* - `ready`: The map has been drawn whole, after `helix-map-ready`.
|
|
59833
59907
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
59834
59908
|
*/
|
|
59835
59909
|
"helix-map": Partial<
|
package/types/vue.d.ts
CHANGED
|
@@ -192,6 +192,7 @@ import type {
|
|
|
192
192
|
HelixMapPartChangeEvent,
|
|
193
193
|
HelixMapClusterEvent,
|
|
194
194
|
HelixMapPanEvent,
|
|
195
|
+
HelixMapReadyEvent,
|
|
195
196
|
HelixMapRotateEvent,
|
|
196
197
|
HelixMapTiltEvent,
|
|
197
198
|
HelixMapZoomEvent,
|
|
@@ -6968,6 +6969,20 @@ export type HelixMapAreaHelixMapPartChangeElementEvent =
|
|
|
6968
6969
|
export type HelixMapAreaVueProps = {
|
|
6969
6970
|
/** The area's color. Uses your primary color unless set. */
|
|
6970
6971
|
tone?: (HelixMapArea["tone"]) | undefined;
|
|
6972
|
+
/** Words drawn on the map with the area, such as `A` for a search sector.
|
|
6973
|
+
Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
6974
|
+
area's `label` is what a screen reader hears. */
|
|
6975
|
+
caption?: (HelixMapArea["caption"]) | undefined;
|
|
6976
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
6977
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
6978
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
6979
|
+
in it. */
|
|
6980
|
+
"caption-placement"?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
6981
|
+
/** Where the caption stands. `inside`, the default, at the point of the area
|
|
6982
|
+
furthest from its edges. `outside`, just above the area's northernmost
|
|
6983
|
+
point, clear of the shape, for an area whose caption would cover what is
|
|
6984
|
+
in it. */
|
|
6985
|
+
captionPlacement?: (HelixMapArea["captionPlacement"]) | undefined;
|
|
6971
6986
|
/** More about the area. Read after its label in the frame's list. */
|
|
6972
6987
|
description?: (HelixMapArea["description"]) | undefined;
|
|
6973
6988
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -7290,6 +7305,9 @@ export type HelixMapHelixMapPanElementEvent =
|
|
|
7290
7305
|
/** `helix-map-part-change` event type */
|
|
7291
7306
|
export type HelixMapHelixMapPartChangeElementEvent =
|
|
7292
7307
|
HelixMapElementEvent<HelixMapPartChangeEvent>;
|
|
7308
|
+
/** `helix-map-ready` event type */
|
|
7309
|
+
export type HelixMapHelixMapReadyElementEvent =
|
|
7310
|
+
HelixMapElementEvent<HelixMapReadyEvent>;
|
|
7293
7311
|
/** `helix-map-rotate` event type */
|
|
7294
7312
|
export type HelixMapHelixMapRotateElementEvent =
|
|
7295
7313
|
HelixMapElementEvent<HelixMapRotateEvent>;
|
|
@@ -7564,6 +7582,8 @@ export type HelixMapVueEvents = {
|
|
|
7564
7582
|
"helix-map-pan": HelixMapHelixMapPanElementEvent;
|
|
7565
7583
|
/** Clustering was turned on or off. Used by `connectMap`; pages do not need to listen for it. */
|
|
7566
7584
|
"helix-map-part-change": HelixMapHelixMapPartChangeElementEvent;
|
|
7585
|
+
/** The map has been drawn whole: its style, every tile the view needs, and the ground where it has terrain. Sent once per connection. Show a map that is finished on it, where it would otherwise draw in stages. */
|
|
7586
|
+
"helix-map-ready": HelixMapHelixMapReadyElementEvent;
|
|
7567
7587
|
/** A rotate or Face north button, or Shift with Left or Right, was pressed. Turn your map in response. */
|
|
7568
7588
|
"helix-map-rotate": HelixMapHelixMapRotateElementEvent;
|
|
7569
7589
|
/** The 3D button, or Shift with Up or Down, was pressed. Tilt your map in response. */
|