@fusion.dev/helix 0.114.0 → 0.116.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 +375 -1
- package/dist/map/root/map-root.css.js +37 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +156 -0
- package/types/vue.d.ts +49 -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": {
|
|
@@ -83774,6 +83826,20 @@
|
|
|
83774
83826
|
"module": "src/mixins/mixin-viewport/mixin-viewport.ts"
|
|
83775
83827
|
}
|
|
83776
83828
|
},
|
|
83829
|
+
{
|
|
83830
|
+
"kind": "field",
|
|
83831
|
+
"name": "activateHintLabel",
|
|
83832
|
+
"type": {
|
|
83833
|
+
"text": "string"
|
|
83834
|
+
},
|
|
83835
|
+
"default": "'Press the map to use it'",
|
|
83836
|
+
"description": "The hint shown when a map waiting to be pressed is scrolled or swiped\nover, with `gestures=\"activate\"`.",
|
|
83837
|
+
"attribute": "activate-hint-label",
|
|
83838
|
+
"inheritedFrom": {
|
|
83839
|
+
"name": "HelixHeadlessMap",
|
|
83840
|
+
"module": "src/map/root/map-root.ts"
|
|
83841
|
+
}
|
|
83842
|
+
},
|
|
83777
83843
|
{
|
|
83778
83844
|
"kind": "field",
|
|
83779
83845
|
"name": "bearing",
|
|
@@ -83830,6 +83896,19 @@
|
|
|
83830
83896
|
"module": "src/map/root/map-root.ts"
|
|
83831
83897
|
}
|
|
83832
83898
|
},
|
|
83899
|
+
{
|
|
83900
|
+
"kind": "field",
|
|
83901
|
+
"name": "gestures",
|
|
83902
|
+
"type": {
|
|
83903
|
+
"text": "'activate' | 'always' | 'cooperative' | undefined"
|
|
83904
|
+
},
|
|
83905
|
+
"description": "Which gestures the map takes from the page.\n\n- `always`, which unset is: the wheel zooms the map and one finger pans\n it, for a map that is the page, such as a full-screen view.\n- `cooperative`: the wheel and one finger scroll the page, and the map\n takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so\n when a gesture passes to the page. Best for a map embedded in a page.\n- `activate`: the map takes nothing until it is pressed, and gives it\n back on Escape, when the pointer leaves it, or on a press elsewhere.\n\nThe keyboard and the frame's buttons work in every mode. The renderer is\ntold through the connector, so MapLibre and Leaflet behave alike.",
|
|
83906
|
+
"attribute": "gestures",
|
|
83907
|
+
"inheritedFrom": {
|
|
83908
|
+
"name": "HelixHeadlessMap",
|
|
83909
|
+
"module": "src/map/root/map-root.ts"
|
|
83910
|
+
}
|
|
83911
|
+
},
|
|
83833
83912
|
{
|
|
83834
83913
|
"kind": "field",
|
|
83835
83914
|
"name": "hybridLabel",
|
|
@@ -84082,6 +84161,48 @@
|
|
|
84082
84161
|
"module": "src/map/root/map-root.ts"
|
|
84083
84162
|
}
|
|
84084
84163
|
},
|
|
84164
|
+
{
|
|
84165
|
+
"kind": "field",
|
|
84166
|
+
"name": "twoFingerHintLabel",
|
|
84167
|
+
"type": {
|
|
84168
|
+
"text": "string"
|
|
84169
|
+
},
|
|
84170
|
+
"default": "'Use two fingers to move the map'",
|
|
84171
|
+
"description": "The hint shown when one finger swipes over a map with `gestures=\"cooperative\"`.",
|
|
84172
|
+
"attribute": "two-finger-hint-label",
|
|
84173
|
+
"inheritedFrom": {
|
|
84174
|
+
"name": "HelixHeadlessMap",
|
|
84175
|
+
"module": "src/map/root/map-root.ts"
|
|
84176
|
+
}
|
|
84177
|
+
},
|
|
84178
|
+
{
|
|
84179
|
+
"kind": "field",
|
|
84180
|
+
"name": "usingLabel",
|
|
84181
|
+
"type": {
|
|
84182
|
+
"text": "string"
|
|
84183
|
+
},
|
|
84184
|
+
"default": "'Using the map. Press Escape to scroll the page again.'",
|
|
84185
|
+
"description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
|
|
84186
|
+
"attribute": "using-label",
|
|
84187
|
+
"inheritedFrom": {
|
|
84188
|
+
"name": "HelixHeadlessMap",
|
|
84189
|
+
"module": "src/map/root/map-root.ts"
|
|
84190
|
+
}
|
|
84191
|
+
},
|
|
84192
|
+
{
|
|
84193
|
+
"kind": "field",
|
|
84194
|
+
"name": "wheelHintLabel",
|
|
84195
|
+
"type": {
|
|
84196
|
+
"text": "string"
|
|
84197
|
+
},
|
|
84198
|
+
"default": "'Use {key} and scroll to zoom the map'",
|
|
84199
|
+
"description": "The hint shown when the wheel scrolls past a map with\n`gestures=\"cooperative\"`, with `{key}`, which is ⌘ on a Mac and Ctrl\nelsewhere, as the renderer reads it.",
|
|
84200
|
+
"attribute": "wheel-hint-label",
|
|
84201
|
+
"inheritedFrom": {
|
|
84202
|
+
"name": "HelixHeadlessMap",
|
|
84203
|
+
"module": "src/map/root/map-root.ts"
|
|
84204
|
+
}
|
|
84205
|
+
},
|
|
84085
84206
|
{
|
|
84086
84207
|
"kind": "field",
|
|
84087
84208
|
"name": "zoomedLabel",
|
|
@@ -84565,6 +84686,167 @@
|
|
|
84565
84686
|
"module": "src/map/root/map-root.ts"
|
|
84566
84687
|
}
|
|
84567
84688
|
},
|
|
84689
|
+
{
|
|
84690
|
+
"kind": "field",
|
|
84691
|
+
"name": "hint",
|
|
84692
|
+
"type": {
|
|
84693
|
+
"text": "string"
|
|
84694
|
+
},
|
|
84695
|
+
"privacy": "private",
|
|
84696
|
+
"default": "''",
|
|
84697
|
+
"description": "The hint on the map while one shows, put there by a gesture the map let pass.",
|
|
84698
|
+
"inheritedFrom": {
|
|
84699
|
+
"name": "HelixHeadlessMap",
|
|
84700
|
+
"module": "src/map/root/map-root.ts"
|
|
84701
|
+
}
|
|
84702
|
+
},
|
|
84703
|
+
{
|
|
84704
|
+
"kind": "field",
|
|
84705
|
+
"name": "hinting",
|
|
84706
|
+
"type": {
|
|
84707
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
84708
|
+
},
|
|
84709
|
+
"privacy": "private",
|
|
84710
|
+
"description": "When the hint goes.",
|
|
84711
|
+
"inheritedFrom": {
|
|
84712
|
+
"name": "HelixHeadlessMap",
|
|
84713
|
+
"module": "src/map/root/map-root.ts"
|
|
84714
|
+
}
|
|
84715
|
+
},
|
|
84716
|
+
{
|
|
84717
|
+
"kind": "field",
|
|
84718
|
+
"name": "hintAt",
|
|
84719
|
+
"type": {
|
|
84720
|
+
"text": "{ x: number; y: number } | undefined"
|
|
84721
|
+
},
|
|
84722
|
+
"privacy": "private",
|
|
84723
|
+
"description": "Where the gesture was, in the map's box, which the hint is shown at:\nwhere the reader is looking, and on the map wherever a page laid its own\ncontent over the rest of it.",
|
|
84724
|
+
"inheritedFrom": {
|
|
84725
|
+
"name": "HelixHeadlessMap",
|
|
84726
|
+
"module": "src/map/root/map-root.ts"
|
|
84727
|
+
}
|
|
84728
|
+
},
|
|
84729
|
+
{
|
|
84730
|
+
"kind": "field",
|
|
84731
|
+
"name": "taken",
|
|
84732
|
+
"type": {
|
|
84733
|
+
"text": "boolean"
|
|
84734
|
+
},
|
|
84735
|
+
"privacy": "private",
|
|
84736
|
+
"default": "false",
|
|
84737
|
+
"description": "Whether a map with `gestures=\"activate\"` has been pressed, and has the gestures.",
|
|
84738
|
+
"inheritedFrom": {
|
|
84739
|
+
"name": "HelixHeadlessMap",
|
|
84740
|
+
"module": "src/map/root/map-root.ts"
|
|
84741
|
+
}
|
|
84742
|
+
},
|
|
84743
|
+
{
|
|
84744
|
+
"kind": "method",
|
|
84745
|
+
"name": "showHint",
|
|
84746
|
+
"privacy": "private",
|
|
84747
|
+
"return": {
|
|
84748
|
+
"type": {
|
|
84749
|
+
"text": "void"
|
|
84750
|
+
}
|
|
84751
|
+
},
|
|
84752
|
+
"parameters": [
|
|
84753
|
+
{
|
|
84754
|
+
"name": "words",
|
|
84755
|
+
"type": {
|
|
84756
|
+
"text": "string"
|
|
84757
|
+
}
|
|
84758
|
+
},
|
|
84759
|
+
{
|
|
84760
|
+
"name": "at",
|
|
84761
|
+
"optional": true,
|
|
84762
|
+
"type": {
|
|
84763
|
+
"text": "{ clientX: number; clientY: number }"
|
|
84764
|
+
}
|
|
84765
|
+
}
|
|
84766
|
+
],
|
|
84767
|
+
"description": "Shows a hint over the map for a moment, where the gesture was.",
|
|
84768
|
+
"inheritedFrom": {
|
|
84769
|
+
"name": "HelixHeadlessMap",
|
|
84770
|
+
"module": "src/map/root/map-root.ts"
|
|
84771
|
+
}
|
|
84772
|
+
},
|
|
84773
|
+
{
|
|
84774
|
+
"kind": "field",
|
|
84775
|
+
"name": "handleWheel",
|
|
84776
|
+
"privacy": "private",
|
|
84777
|
+
"readonly": true,
|
|
84778
|
+
"description": "A wheel the map let pass to the page, which is said: a reader scrolling\nthe page past a map that did not zoom is told why, and how to zoom it.\n**Ctrl or ⌘ with the wheel is the map's**, and is what a trackpad's pinch\narrives as.",
|
|
84779
|
+
"inheritedFrom": {
|
|
84780
|
+
"name": "HelixHeadlessMap",
|
|
84781
|
+
"module": "src/map/root/map-root.ts"
|
|
84782
|
+
}
|
|
84783
|
+
},
|
|
84784
|
+
{
|
|
84785
|
+
"kind": "field",
|
|
84786
|
+
"name": "handleTouchMove",
|
|
84787
|
+
"privacy": "private",
|
|
84788
|
+
"readonly": true,
|
|
84789
|
+
"description": "One finger moving over the map, which scrolls the page, and is said.",
|
|
84790
|
+
"inheritedFrom": {
|
|
84791
|
+
"name": "HelixHeadlessMap",
|
|
84792
|
+
"module": "src/map/root/map-root.ts"
|
|
84793
|
+
}
|
|
84794
|
+
},
|
|
84795
|
+
{
|
|
84796
|
+
"kind": "field",
|
|
84797
|
+
"name": "handleTake",
|
|
84798
|
+
"privacy": "private",
|
|
84799
|
+
"readonly": true,
|
|
84800
|
+
"description": "A press on the map itself, which hands a waiting map the gestures.",
|
|
84801
|
+
"inheritedFrom": {
|
|
84802
|
+
"name": "HelixHeadlessMap",
|
|
84803
|
+
"module": "src/map/root/map-root.ts"
|
|
84804
|
+
}
|
|
84805
|
+
},
|
|
84806
|
+
{
|
|
84807
|
+
"kind": "field",
|
|
84808
|
+
"name": "handleGiveBackKey",
|
|
84809
|
+
"privacy": "private",
|
|
84810
|
+
"readonly": true,
|
|
84811
|
+
"description": "Escape, which gives the page its scroll back.",
|
|
84812
|
+
"inheritedFrom": {
|
|
84813
|
+
"name": "HelixHeadlessMap",
|
|
84814
|
+
"module": "src/map/root/map-root.ts"
|
|
84815
|
+
}
|
|
84816
|
+
},
|
|
84817
|
+
{
|
|
84818
|
+
"kind": "field",
|
|
84819
|
+
"name": "handleGiveBackOutside",
|
|
84820
|
+
"privacy": "private",
|
|
84821
|
+
"readonly": true,
|
|
84822
|
+
"description": "A press anywhere else on the page, which gives it its scroll back.",
|
|
84823
|
+
"inheritedFrom": {
|
|
84824
|
+
"name": "HelixHeadlessMap",
|
|
84825
|
+
"module": "src/map/root/map-root.ts"
|
|
84826
|
+
}
|
|
84827
|
+
},
|
|
84828
|
+
{
|
|
84829
|
+
"kind": "field",
|
|
84830
|
+
"name": "handleGiveBackBlur",
|
|
84831
|
+
"privacy": "private",
|
|
84832
|
+
"readonly": true,
|
|
84833
|
+
"description": "The window losing focus, as a reader switching away does.",
|
|
84834
|
+
"inheritedFrom": {
|
|
84835
|
+
"name": "HelixHeadlessMap",
|
|
84836
|
+
"module": "src/map/root/map-root.ts"
|
|
84837
|
+
}
|
|
84838
|
+
},
|
|
84839
|
+
{
|
|
84840
|
+
"kind": "field",
|
|
84841
|
+
"name": "handleLeave",
|
|
84842
|
+
"privacy": "private",
|
|
84843
|
+
"readonly": true,
|
|
84844
|
+
"description": "The pointer leaving the frame. **Heard on the frame and not the map's\ncanvas**, which a pointer resting on a marker has left, since markers\nstand outside it. **A mouse or a pen and never a finger**, whose\n`pointerleave` is the finger lifting: a tap took the map and gave it back\nin one.",
|
|
84845
|
+
"inheritedFrom": {
|
|
84846
|
+
"name": "HelixHeadlessMap",
|
|
84847
|
+
"module": "src/map/root/map-root.ts"
|
|
84848
|
+
}
|
|
84849
|
+
},
|
|
84568
84850
|
{
|
|
84569
84851
|
"kind": "field",
|
|
84570
84852
|
"name": "handleSlotChange",
|
|
@@ -85274,6 +85556,19 @@
|
|
|
85274
85556
|
"module": "src/mixins/mixin-viewport/mixin-viewport.ts"
|
|
85275
85557
|
}
|
|
85276
85558
|
},
|
|
85559
|
+
{
|
|
85560
|
+
"name": "activate-hint-label",
|
|
85561
|
+
"type": {
|
|
85562
|
+
"text": "string"
|
|
85563
|
+
},
|
|
85564
|
+
"default": "'Press the map to use it'",
|
|
85565
|
+
"description": "The hint shown when a map waiting to be pressed is scrolled or swiped\nover, with `gestures=\"activate\"`.",
|
|
85566
|
+
"fieldName": "activateHintLabel",
|
|
85567
|
+
"inheritedFrom": {
|
|
85568
|
+
"name": "HelixHeadlessMap",
|
|
85569
|
+
"module": "src/map/root/map-root.ts"
|
|
85570
|
+
}
|
|
85571
|
+
},
|
|
85277
85572
|
{
|
|
85278
85573
|
"name": "bearing",
|
|
85279
85574
|
"type": {
|
|
@@ -85326,6 +85621,18 @@
|
|
|
85326
85621
|
"module": "src/map/root/map-root.ts"
|
|
85327
85622
|
}
|
|
85328
85623
|
},
|
|
85624
|
+
{
|
|
85625
|
+
"name": "gestures",
|
|
85626
|
+
"type": {
|
|
85627
|
+
"text": "'activate' | 'always' | 'cooperative' | undefined"
|
|
85628
|
+
},
|
|
85629
|
+
"description": "Which gestures the map takes from the page.\n\n- `always`, which unset is: the wheel zooms the map and one finger pans\n it, for a map that is the page, such as a full-screen view.\n- `cooperative`: the wheel and one finger scroll the page, and the map\n takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so\n when a gesture passes to the page. Best for a map embedded in a page.\n- `activate`: the map takes nothing until it is pressed, and gives it\n back on Escape, when the pointer leaves it, or on a press elsewhere.\n\nThe keyboard and the frame's buttons work in every mode. The renderer is\ntold through the connector, so MapLibre and Leaflet behave alike.",
|
|
85630
|
+
"fieldName": "gestures",
|
|
85631
|
+
"inheritedFrom": {
|
|
85632
|
+
"name": "HelixHeadlessMap",
|
|
85633
|
+
"module": "src/map/root/map-root.ts"
|
|
85634
|
+
}
|
|
85635
|
+
},
|
|
85329
85636
|
{
|
|
85330
85637
|
"name": "hybrid-label",
|
|
85331
85638
|
"type": {
|
|
@@ -85559,6 +85866,45 @@
|
|
|
85559
85866
|
"module": "src/map/root/map-root.ts"
|
|
85560
85867
|
}
|
|
85561
85868
|
},
|
|
85869
|
+
{
|
|
85870
|
+
"name": "two-finger-hint-label",
|
|
85871
|
+
"type": {
|
|
85872
|
+
"text": "string"
|
|
85873
|
+
},
|
|
85874
|
+
"default": "'Use two fingers to move the map'",
|
|
85875
|
+
"description": "The hint shown when one finger swipes over a map with `gestures=\"cooperative\"`.",
|
|
85876
|
+
"fieldName": "twoFingerHintLabel",
|
|
85877
|
+
"inheritedFrom": {
|
|
85878
|
+
"name": "HelixHeadlessMap",
|
|
85879
|
+
"module": "src/map/root/map-root.ts"
|
|
85880
|
+
}
|
|
85881
|
+
},
|
|
85882
|
+
{
|
|
85883
|
+
"name": "using-label",
|
|
85884
|
+
"type": {
|
|
85885
|
+
"text": "string"
|
|
85886
|
+
},
|
|
85887
|
+
"default": "'Using the map. Press Escape to scroll the page again.'",
|
|
85888
|
+
"description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
|
|
85889
|
+
"fieldName": "usingLabel",
|
|
85890
|
+
"inheritedFrom": {
|
|
85891
|
+
"name": "HelixHeadlessMap",
|
|
85892
|
+
"module": "src/map/root/map-root.ts"
|
|
85893
|
+
}
|
|
85894
|
+
},
|
|
85895
|
+
{
|
|
85896
|
+
"name": "wheel-hint-label",
|
|
85897
|
+
"type": {
|
|
85898
|
+
"text": "string"
|
|
85899
|
+
},
|
|
85900
|
+
"default": "'Use {key} and scroll to zoom the map'",
|
|
85901
|
+
"description": "The hint shown when the wheel scrolls past a map with\n`gestures=\"cooperative\"`, with `{key}`, which is ⌘ on a Mac and Ctrl\nelsewhere, as the renderer reads it.",
|
|
85902
|
+
"fieldName": "wheelHintLabel",
|
|
85903
|
+
"inheritedFrom": {
|
|
85904
|
+
"name": "HelixHeadlessMap",
|
|
85905
|
+
"module": "src/map/root/map-root.ts"
|
|
85906
|
+
}
|
|
85907
|
+
},
|
|
85562
85908
|
{
|
|
85563
85909
|
"name": "zoomed-label",
|
|
85564
85910
|
"type": {
|
|
@@ -85609,7 +85955,11 @@
|
|
|
85609
85955
|
"slug": "preview"
|
|
85610
85956
|
},
|
|
85611
85957
|
{
|
|
85612
|
-
"description": "
|
|
85958
|
+
"description": "Search sectors, each named on the map by its caption: two inside their sector and one above it, clear of what it holds.",
|
|
85959
|
+
"slug": "areas"
|
|
85960
|
+
},
|
|
85961
|
+
{
|
|
85962
|
+
"description": "A map behind a page's own words, filling a hero whose words decide its height, with its credit in a corner, no landmarks, and the page's scroll left to the page.",
|
|
85613
85963
|
"slug": "behind-content"
|
|
85614
85964
|
},
|
|
85615
85965
|
{
|
|
@@ -85748,6 +86098,22 @@
|
|
|
85748
86098
|
"module": "src/map/root/map-root.ts"
|
|
85749
86099
|
}
|
|
85750
86100
|
},
|
|
86101
|
+
{
|
|
86102
|
+
"description": "Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.",
|
|
86103
|
+
"name": "gesture-hint",
|
|
86104
|
+
"inheritedFrom": {
|
|
86105
|
+
"name": "HelixHeadlessMap",
|
|
86106
|
+
"module": "src/map/root/map-root.ts"
|
|
86107
|
+
}
|
|
86108
|
+
},
|
|
86109
|
+
{
|
|
86110
|
+
"description": "The line shown while a map with `gestures=\"activate\"` has the gestures.",
|
|
86111
|
+
"name": "gesture-status",
|
|
86112
|
+
"inheritedFrom": {
|
|
86113
|
+
"name": "HelixHeadlessMap",
|
|
86114
|
+
"module": "src/map/root/map-root.ts"
|
|
86115
|
+
}
|
|
86116
|
+
},
|
|
85751
86117
|
{
|
|
85752
86118
|
"description": "The strip above the map.",
|
|
85753
86119
|
"name": "header",
|
|
@@ -86080,6 +86446,14 @@
|
|
|
86080
86446
|
"module": "src/map/root/map-root.ts"
|
|
86081
86447
|
}
|
|
86082
86448
|
},
|
|
86449
|
+
{
|
|
86450
|
+
"description": "A map with `gestures=\"activate\"` has been pressed and has the gestures.",
|
|
86451
|
+
"name": "using",
|
|
86452
|
+
"inheritedFrom": {
|
|
86453
|
+
"name": "HelixHeadlessMap",
|
|
86454
|
+
"module": "src/map/root/map-root.ts"
|
|
86455
|
+
}
|
|
86456
|
+
},
|
|
86083
86457
|
{
|
|
86084
86458
|
"description": "Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.",
|
|
86085
86459
|
"name": "settled",
|
|
@@ -31,6 +31,43 @@ overflow: hidden;
|
|
|
31
31
|
position: relative;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
[part="gesture-hint"],
|
|
35
|
+
[part="gesture-status"] {
|
|
36
|
+
background-color: var(--helix-color-surface-inverse);
|
|
37
|
+
border-radius: var(--helix-radii-sm);
|
|
38
|
+
color: var(--helix-color-foreground-inverse);
|
|
39
|
+
|
|
40
|
+
left: 50%;
|
|
41
|
+
max-inline-size: calc(100% - var(--helix-space-lg) * 2);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
position: absolute;
|
|
44
|
+
text-align: center;
|
|
45
|
+
z-index: calc(var(--helix-layer-raised) + 2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[part="gesture-hint"] {
|
|
49
|
+
font-size: var(--helix-text-sm);
|
|
50
|
+
inset-block-start: clamp(
|
|
51
|
+
var(--helix-space-2xl),
|
|
52
|
+
var(--_map-hint-y, 50%),
|
|
53
|
+
calc(100% - var(--helix-space-2xl))
|
|
54
|
+
);
|
|
55
|
+
padding: var(--helix-space-xs) var(--helix-space-sm);
|
|
56
|
+
translate: -50% -50%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[part="gesture-status"] {
|
|
60
|
+
font-size: var(--helix-text-xs);
|
|
61
|
+
inset-block-start: var(--helix-space-xs);
|
|
62
|
+
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
63
|
+
translate: -50% 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="gesture-hint"][hidden],
|
|
67
|
+
[part="gesture-status"][hidden] {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
34
71
|
[part="layers"] {
|
|
35
72
|
block-size: 1px;
|
|
36
73
|
clip-path: inset(50%);
|
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.116.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.116.0",
|
|
55
|
+
"@fusion.dev/helix-headless": "0.116.0",
|
|
56
|
+
"@fusion.dev/helix-styles": "0.116.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@fusion.dev/helix-cem": "0.
|
|
60
|
-
"@fusion.dev/helix-testing": "0.
|
|
59
|
+
"@fusion.dev/helix-cem": "0.116.0",
|
|
60
|
+
"@fusion.dev/helix-testing": "0.116.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
|
@@ -13627,6 +13627,20 @@ export type HelixMapAreaHelixMapPartChangeElementEvent =
|
|
|
13627
13627
|
export type HelixMapAreaProps = {
|
|
13628
13628
|
/** The area's color. Uses your primary color unless set. */
|
|
13629
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;
|
|
13630
13644
|
/** More about the area. Read after its label in the frame's list. */
|
|
13631
13645
|
description?: (HelixMapArea["description"]) | undefined;
|
|
13632
13646
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -13649,6 +13663,20 @@ first. */
|
|
|
13649
13663
|
export type HelixMapAreaSolidJsProps = {
|
|
13650
13664
|
/** The area's color. Uses your primary color unless set. */
|
|
13651
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;
|
|
13652
13680
|
/** More about the area. Read after its label in the frame's list. */
|
|
13653
13681
|
"prop:description"?: (HelixMapArea["description"]) | undefined;
|
|
13654
13682
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -14389,6 +14417,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
|
|
|
14389
14417
|
"zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
14390
14418
|
/** The zoom out button's label. */
|
|
14391
14419
|
zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
14420
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
14421
|
+
over, with `gestures="activate"`. */
|
|
14422
|
+
"activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
|
|
14423
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
14424
|
+
over, with `gestures="activate"`. */
|
|
14425
|
+
activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
|
|
14392
14426
|
/** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
|
|
14393
14427
|
current, and the Face north button's needle turns with it. */
|
|
14394
14428
|
bearing?: (HelixMap["bearing"]) | undefined;
|
|
@@ -14403,6 +14437,19 @@ the map zooms in, and pressing one zooms in to its places. */
|
|
|
14403
14437
|
"flat-label"?: (HelixMap["flatLabel"]) | undefined;
|
|
14404
14438
|
/** What screen readers hear when the map is tilted back to looking straight down. */
|
|
14405
14439
|
flatLabel?: (HelixMap["flatLabel"]) | undefined;
|
|
14440
|
+
/** Which gestures the map takes from the page.
|
|
14441
|
+
|
|
14442
|
+
- `always`, which unset is: the wheel zooms the map and one finger pans
|
|
14443
|
+
it, for a map that is the page, such as a full-screen view.
|
|
14444
|
+
- `cooperative`: the wheel and one finger scroll the page, and the map
|
|
14445
|
+
takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
|
|
14446
|
+
when a gesture passes to the page. Best for a map embedded in a page.
|
|
14447
|
+
- `activate`: the map takes nothing until it is pressed, and gives it
|
|
14448
|
+
back on Escape, when the pointer leaves it, or on a press elsewhere.
|
|
14449
|
+
|
|
14450
|
+
The keyboard and the frame's buttons work in every mode. The renderer is
|
|
14451
|
+
told through the connector, so MapLibre and Leaflet behave alike. */
|
|
14452
|
+
gestures?: (HelixMap["gestures"]) | undefined;
|
|
14406
14453
|
/** The Hybrid map type's name. */
|
|
14407
14454
|
"hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
|
|
14408
14455
|
/** The Hybrid map type's name. */
|
|
@@ -14484,6 +14531,22 @@ top of the map faces, clockwise from north. */
|
|
|
14484
14531
|
/** What screen readers hear when the map is turned. `{degrees}` is the way the
|
|
14485
14532
|
top of the map faces, clockwise from north. */
|
|
14486
14533
|
turnedLabel?: (HelixMap["turnedLabel"]) | undefined;
|
|
14534
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
14535
|
+
"two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
14536
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
14537
|
+
twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
14538
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
14539
|
+
"using-label"?: (HelixMap["usingLabel"]) | undefined;
|
|
14540
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
14541
|
+
usingLabel?: (HelixMap["usingLabel"]) | undefined;
|
|
14542
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
14543
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
14544
|
+
elsewhere, as the renderer reads it. */
|
|
14545
|
+
"wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
14546
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
14547
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
14548
|
+
elsewhere, as the renderer reads it. */
|
|
14549
|
+
wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
14487
14550
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|
|
14488
14551
|
"zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
|
|
14489
14552
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|
|
@@ -14663,6 +14726,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
|
|
|
14663
14726
|
"attr:zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
14664
14727
|
/** The zoom out button's label. */
|
|
14665
14728
|
"prop:zoomOutLabel"?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
14729
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
14730
|
+
over, with `gestures="activate"`. */
|
|
14731
|
+
"attr:activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
|
|
14732
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
14733
|
+
over, with `gestures="activate"`. */
|
|
14734
|
+
"prop:activateHintLabel"?: (HelixMap["activateHintLabel"]) | undefined;
|
|
14666
14735
|
/** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
|
|
14667
14736
|
current, and the Face north button's needle turns with it. */
|
|
14668
14737
|
"prop:bearing"?: (HelixMap["bearing"]) | undefined;
|
|
@@ -14677,6 +14746,19 @@ the map zooms in, and pressing one zooms in to its places. */
|
|
|
14677
14746
|
"attr:flat-label"?: (HelixMap["flatLabel"]) | undefined;
|
|
14678
14747
|
/** What screen readers hear when the map is tilted back to looking straight down. */
|
|
14679
14748
|
"prop:flatLabel"?: (HelixMap["flatLabel"]) | undefined;
|
|
14749
|
+
/** Which gestures the map takes from the page.
|
|
14750
|
+
|
|
14751
|
+
- `always`, which unset is: the wheel zooms the map and one finger pans
|
|
14752
|
+
it, for a map that is the page, such as a full-screen view.
|
|
14753
|
+
- `cooperative`: the wheel and one finger scroll the page, and the map
|
|
14754
|
+
takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
|
|
14755
|
+
when a gesture passes to the page. Best for a map embedded in a page.
|
|
14756
|
+
- `activate`: the map takes nothing until it is pressed, and gives it
|
|
14757
|
+
back on Escape, when the pointer leaves it, or on a press elsewhere.
|
|
14758
|
+
|
|
14759
|
+
The keyboard and the frame's buttons work in every mode. The renderer is
|
|
14760
|
+
told through the connector, so MapLibre and Leaflet behave alike. */
|
|
14761
|
+
"prop:gestures"?: (HelixMap["gestures"]) | undefined;
|
|
14680
14762
|
/** The Hybrid map type's name. */
|
|
14681
14763
|
"attr:hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
|
|
14682
14764
|
/** The Hybrid map type's name. */
|
|
@@ -14758,6 +14840,22 @@ top of the map faces, clockwise from north. */
|
|
|
14758
14840
|
/** What screen readers hear when the map is turned. `{degrees}` is the way the
|
|
14759
14841
|
top of the map faces, clockwise from north. */
|
|
14760
14842
|
"prop:turnedLabel"?: (HelixMap["turnedLabel"]) | undefined;
|
|
14843
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
14844
|
+
"attr:two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
14845
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
14846
|
+
"prop:twoFingerHintLabel"?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
14847
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
14848
|
+
"attr:using-label"?: (HelixMap["usingLabel"]) | undefined;
|
|
14849
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
14850
|
+
"prop:usingLabel"?: (HelixMap["usingLabel"]) | undefined;
|
|
14851
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
14852
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
14853
|
+
elsewhere, as the renderer reads it. */
|
|
14854
|
+
"attr:wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
14855
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
14856
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
14857
|
+
elsewhere, as the renderer reads it. */
|
|
14858
|
+
"prop:wheelHintLabel"?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
14761
14859
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|
|
14762
14860
|
"attr:zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
|
|
14763
14861
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|
|
@@ -37015,6 +37113,13 @@ export type CustomElements = {
|
|
|
37015
37113
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
37016
37114
|
*
|
|
37017
37115
|
* - `tone`: The area's color. Uses your primary color unless set.
|
|
37116
|
+
* - `caption`: Words drawn on the map with the area, such as `A` for a search sector.
|
|
37117
|
+
* Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
37118
|
+
* area's `label` is what a screen reader hears.
|
|
37119
|
+
* - `caption-placement`/`captionPlacement`: Where the caption stands. `inside`, the default, at the point of the area
|
|
37120
|
+
* furthest from its edges. `outside`, just above the area's northernmost
|
|
37121
|
+
* point, clear of the shape, for an area whose caption would cover what is
|
|
37122
|
+
* in it.
|
|
37018
37123
|
* - `description`: More about the area. Read after its label in the frame's list.
|
|
37019
37124
|
* - `group`: A name this layer shares with other layers, such as a route and its
|
|
37020
37125
|
* dotted legs. The layers menu shows layers in the same group as one entry,
|
|
@@ -37668,12 +37773,26 @@ export type CustomElements = {
|
|
|
37668
37773
|
* - `pan-up-label`/`panUpLabel`: The pan up button's label.
|
|
37669
37774
|
* - `zoom-in-label`/`zoomInLabel`: The zoom in button's label.
|
|
37670
37775
|
* - `zoom-out-label`/`zoomOutLabel`: The zoom out button's label.
|
|
37776
|
+
* - `activate-hint-label`/`activateHintLabel`: The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
37777
|
+
* over, with `gestures="activate"`.
|
|
37671
37778
|
* - `bearing`: The map's rotation, in degrees clockwise from north. `connectMap` keeps it
|
|
37672
37779
|
* current, and the Face north button's needle turns with it.
|
|
37673
37780
|
* - `cluster`: Combines markers that would overlap into one count. Counts split apart as
|
|
37674
37781
|
* the map zooms in, and pressing one zooms in to its places.
|
|
37675
37782
|
* - `face-north-label`/`faceNorthLabel`: The Face north button's label.
|
|
37676
37783
|
* - `flat-label`/`flatLabel`: What screen readers hear when the map is tilted back to looking straight down.
|
|
37784
|
+
* - `gestures`: Which gestures the map takes from the page.
|
|
37785
|
+
*
|
|
37786
|
+
* - `always`, which unset is: the wheel zooms the map and one finger pans
|
|
37787
|
+
* it, for a map that is the page, such as a full-screen view.
|
|
37788
|
+
* - `cooperative`: the wheel and one finger scroll the page, and the map
|
|
37789
|
+
* takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
|
|
37790
|
+
* when a gesture passes to the page. Best for a map embedded in a page.
|
|
37791
|
+
* - `activate`: the map takes nothing until it is pressed, and gives it
|
|
37792
|
+
* back on Escape, when the pointer leaves it, or on a press elsewhere.
|
|
37793
|
+
*
|
|
37794
|
+
* The keyboard and the frame's buttons work in every mode. The renderer is
|
|
37795
|
+
* told through the connector, so MapLibre and Leaflet behave alike.
|
|
37677
37796
|
* - `hybrid-label`/`hybridLabel`: The Hybrid map type's name.
|
|
37678
37797
|
* - `label`: The map's name, read by screen readers. Name the place, such as "Delivery
|
|
37679
37798
|
* area", so that several maps on one page can be told apart. Required.
|
|
@@ -37700,6 +37819,11 @@ export type CustomElements = {
|
|
|
37700
37819
|
* - `tilt-label`/`tiltLabel`: The 3D button's label.
|
|
37701
37820
|
* - `turned-label`/`turnedLabel`: What screen readers hear when the map is turned. `{degrees}` is the way the
|
|
37702
37821
|
* top of the map faces, clockwise from north.
|
|
37822
|
+
* - `two-finger-hint-label`/`twoFingerHintLabel`: The hint shown when one finger swipes over a map with `gestures="cooperative"`.
|
|
37823
|
+
* - `using-label`/`usingLabel`: The line shown while a map with `gestures="activate"` has the gestures.
|
|
37824
|
+
* - `wheel-hint-label`/`wheelHintLabel`: The hint shown when the wheel scrolls past a map with
|
|
37825
|
+
* `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
37826
|
+
* elsewhere, as the renderer reads it.
|
|
37703
37827
|
* - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
|
|
37704
37828
|
* - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
|
|
37705
37829
|
* current, and the map says it after a zoom.
|
|
@@ -37802,6 +37926,8 @@ export type CustomElements = {
|
|
|
37802
37926
|
* - `face-north`: The compass: its needle points north as the map turns, and pressing it turns the map to face north.
|
|
37803
37927
|
* - `footer`: The strip below the map.
|
|
37804
37928
|
* - `fullscreen`: The button that makes the map fill the screen.
|
|
37929
|
+
* - `gesture-hint`: Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.
|
|
37930
|
+
* - `gesture-status`: The line shown while a map with `gestures="activate"` has the gestures.
|
|
37805
37931
|
* - `header`: The strip above the map.
|
|
37806
37932
|
* - `layer`: One entry in the list of the map's layers.
|
|
37807
37933
|
* - `layer-choice`: One layer's tile in the layers menu, pressed while the layer is shown.
|
|
@@ -37836,6 +37962,7 @@ export type CustomElements = {
|
|
|
37836
37962
|
* - `fullscreen`: The map fills the screen.
|
|
37837
37963
|
* - `idle`: The user has been still long enough for the header and footer to fade.
|
|
37838
37964
|
* - `ready`: The map has been drawn whole, after `helix-map-ready`.
|
|
37965
|
+
* - `using`: A map with `gestures="activate"` has been pressed and has the gestures.
|
|
37839
37966
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
37840
37967
|
*/
|
|
37841
37968
|
"helix-map": Partial<HelixMapProps & BaseProps<HelixMap> & BaseEvents<HelixMap>>;
|
|
@@ -59017,6 +59144,13 @@ export type CustomElementsSolidJs = {
|
|
|
59017
59144
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
59018
59145
|
*
|
|
59019
59146
|
* - `tone`: The area's color. Uses your primary color unless set.
|
|
59147
|
+
* - `caption`: Words drawn on the map with the area, such as `A` for a search sector.
|
|
59148
|
+
* Unset, nothing is drawn. Keep it short: it is a caption on a map, and the
|
|
59149
|
+
* area's `label` is what a screen reader hears.
|
|
59150
|
+
* - `caption-placement`/`captionPlacement`: Where the caption stands. `inside`, the default, at the point of the area
|
|
59151
|
+
* furthest from its edges. `outside`, just above the area's northernmost
|
|
59152
|
+
* point, clear of the shape, for an area whose caption would cover what is
|
|
59153
|
+
* in it.
|
|
59020
59154
|
* - `description`: More about the area. Read after its label in the frame's list.
|
|
59021
59155
|
* - `group`: A name this layer shares with other layers, such as a route and its
|
|
59022
59156
|
* dotted legs. The layers menu shows layers in the same group as one entry,
|
|
@@ -59694,12 +59828,26 @@ export type CustomElementsSolidJs = {
|
|
|
59694
59828
|
* - `pan-up-label`/`panUpLabel`: The pan up button's label.
|
|
59695
59829
|
* - `zoom-in-label`/`zoomInLabel`: The zoom in button's label.
|
|
59696
59830
|
* - `zoom-out-label`/`zoomOutLabel`: The zoom out button's label.
|
|
59831
|
+
* - `activate-hint-label`/`activateHintLabel`: The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
59832
|
+
* over, with `gestures="activate"`.
|
|
59697
59833
|
* - `bearing`: The map's rotation, in degrees clockwise from north. `connectMap` keeps it
|
|
59698
59834
|
* current, and the Face north button's needle turns with it.
|
|
59699
59835
|
* - `cluster`: Combines markers that would overlap into one count. Counts split apart as
|
|
59700
59836
|
* the map zooms in, and pressing one zooms in to its places.
|
|
59701
59837
|
* - `face-north-label`/`faceNorthLabel`: The Face north button's label.
|
|
59702
59838
|
* - `flat-label`/`flatLabel`: What screen readers hear when the map is tilted back to looking straight down.
|
|
59839
|
+
* - `gestures`: Which gestures the map takes from the page.
|
|
59840
|
+
*
|
|
59841
|
+
* - `always`, which unset is: the wheel zooms the map and one finger pans
|
|
59842
|
+
* it, for a map that is the page, such as a full-screen view.
|
|
59843
|
+
* - `cooperative`: the wheel and one finger scroll the page, and the map
|
|
59844
|
+
* takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
|
|
59845
|
+
* when a gesture passes to the page. Best for a map embedded in a page.
|
|
59846
|
+
* - `activate`: the map takes nothing until it is pressed, and gives it
|
|
59847
|
+
* back on Escape, when the pointer leaves it, or on a press elsewhere.
|
|
59848
|
+
*
|
|
59849
|
+
* The keyboard and the frame's buttons work in every mode. The renderer is
|
|
59850
|
+
* told through the connector, so MapLibre and Leaflet behave alike.
|
|
59703
59851
|
* - `hybrid-label`/`hybridLabel`: The Hybrid map type's name.
|
|
59704
59852
|
* - `label`: The map's name, read by screen readers. Name the place, such as "Delivery
|
|
59705
59853
|
* area", so that several maps on one page can be told apart. Required.
|
|
@@ -59726,6 +59874,11 @@ export type CustomElementsSolidJs = {
|
|
|
59726
59874
|
* - `tilt-label`/`tiltLabel`: The 3D button's label.
|
|
59727
59875
|
* - `turned-label`/`turnedLabel`: What screen readers hear when the map is turned. `{degrees}` is the way the
|
|
59728
59876
|
* top of the map faces, clockwise from north.
|
|
59877
|
+
* - `two-finger-hint-label`/`twoFingerHintLabel`: The hint shown when one finger swipes over a map with `gestures="cooperative"`.
|
|
59878
|
+
* - `using-label`/`usingLabel`: The line shown while a map with `gestures="activate"` has the gestures.
|
|
59879
|
+
* - `wheel-hint-label`/`wheelHintLabel`: The hint shown when the wheel scrolls past a map with
|
|
59880
|
+
* `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
59881
|
+
* elsewhere, as the renderer reads it.
|
|
59729
59882
|
* - `zoomed-label`/`zoomedLabel`: What screen readers hear after a zoom. `{level}` is the zoom level.
|
|
59730
59883
|
* - `zoom-level`/`zoomLevel`: How far the map is zoomed, in its renderer's levels. `connectMap` keeps it
|
|
59731
59884
|
* current, and the map says it after a zoom.
|
|
@@ -59828,6 +59981,8 @@ export type CustomElementsSolidJs = {
|
|
|
59828
59981
|
* - `face-north`: The compass: its needle points north as the map turns, and pressing it turns the map to face north.
|
|
59829
59982
|
* - `footer`: The strip below the map.
|
|
59830
59983
|
* - `fullscreen`: The button that makes the map fill the screen.
|
|
59984
|
+
* - `gesture-hint`: Words over the map for a moment when it lets a gesture pass to the page, such as how to zoom it.
|
|
59985
|
+
* - `gesture-status`: The line shown while a map with `gestures="activate"` has the gestures.
|
|
59831
59986
|
* - `header`: The strip above the map.
|
|
59832
59987
|
* - `layer`: One entry in the list of the map's layers.
|
|
59833
59988
|
* - `layer-choice`: One layer's tile in the layers menu, pressed while the layer is shown.
|
|
@@ -59862,6 +60017,7 @@ export type CustomElementsSolidJs = {
|
|
|
59862
60017
|
* - `fullscreen`: The map fills the screen.
|
|
59863
60018
|
* - `idle`: The user has been still long enough for the header and footer to fade.
|
|
59864
60019
|
* - `ready`: The map has been drawn whole, after `helix-map-ready`.
|
|
60020
|
+
* - `using`: A map with `gestures="activate"` has been pressed and has the gestures.
|
|
59865
60021
|
* - `settled`: Set one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
|
|
59866
60022
|
*/
|
|
59867
60023
|
"helix-map": Partial<
|
package/types/vue.d.ts
CHANGED
|
@@ -6969,6 +6969,20 @@ export type HelixMapAreaHelixMapPartChangeElementEvent =
|
|
|
6969
6969
|
export type HelixMapAreaVueProps = {
|
|
6970
6970
|
/** The area's color. Uses your primary color unless set. */
|
|
6971
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;
|
|
6972
6986
|
/** More about the area. Read after its label in the frame's list. */
|
|
6973
6987
|
description?: (HelixMapArea["description"]) | undefined;
|
|
6974
6988
|
/** A name this layer shares with other layers, such as a route and its
|
|
@@ -7452,6 +7466,12 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
|
|
|
7452
7466
|
"zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
7453
7467
|
/** The zoom out button's label. */
|
|
7454
7468
|
zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
7469
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
7470
|
+
over, with `gestures="activate"`. */
|
|
7471
|
+
"activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
|
|
7472
|
+
/** The hint shown when a map waiting to be pressed is scrolled or swiped
|
|
7473
|
+
over, with `gestures="activate"`. */
|
|
7474
|
+
activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
|
|
7455
7475
|
/** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
|
|
7456
7476
|
current, and the Face north button's needle turns with it. */
|
|
7457
7477
|
bearing?: (HelixMap["bearing"]) | undefined;
|
|
@@ -7466,6 +7486,19 @@ the map zooms in, and pressing one zooms in to its places. */
|
|
|
7466
7486
|
"flat-label"?: (HelixMap["flatLabel"]) | undefined;
|
|
7467
7487
|
/** What screen readers hear when the map is tilted back to looking straight down. */
|
|
7468
7488
|
flatLabel?: (HelixMap["flatLabel"]) | undefined;
|
|
7489
|
+
/** Which gestures the map takes from the page.
|
|
7490
|
+
|
|
7491
|
+
- `always`, which unset is: the wheel zooms the map and one finger pans
|
|
7492
|
+
it, for a map that is the page, such as a full-screen view.
|
|
7493
|
+
- `cooperative`: the wheel and one finger scroll the page, and the map
|
|
7494
|
+
takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
|
|
7495
|
+
when a gesture passes to the page. Best for a map embedded in a page.
|
|
7496
|
+
- `activate`: the map takes nothing until it is pressed, and gives it
|
|
7497
|
+
back on Escape, when the pointer leaves it, or on a press elsewhere.
|
|
7498
|
+
|
|
7499
|
+
The keyboard and the frame's buttons work in every mode. The renderer is
|
|
7500
|
+
told through the connector, so MapLibre and Leaflet behave alike. */
|
|
7501
|
+
gestures?: (HelixMap["gestures"]) | undefined;
|
|
7469
7502
|
/** The Hybrid map type's name. */
|
|
7470
7503
|
"hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
|
|
7471
7504
|
/** The Hybrid map type's name. */
|
|
@@ -7547,6 +7580,22 @@ top of the map faces, clockwise from north. */
|
|
|
7547
7580
|
/** What screen readers hear when the map is turned. `{degrees}` is the way the
|
|
7548
7581
|
top of the map faces, clockwise from north. */
|
|
7549
7582
|
turnedLabel?: (HelixMap["turnedLabel"]) | undefined;
|
|
7583
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
7584
|
+
"two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
7585
|
+
/** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
|
|
7586
|
+
twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
|
|
7587
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
7588
|
+
"using-label"?: (HelixMap["usingLabel"]) | undefined;
|
|
7589
|
+
/** The line shown while a map with `gestures="activate"` has the gestures. */
|
|
7590
|
+
usingLabel?: (HelixMap["usingLabel"]) | undefined;
|
|
7591
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
7592
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
7593
|
+
elsewhere, as the renderer reads it. */
|
|
7594
|
+
"wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
7595
|
+
/** The hint shown when the wheel scrolls past a map with
|
|
7596
|
+
`gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
|
|
7597
|
+
elsewhere, as the renderer reads it. */
|
|
7598
|
+
wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
|
|
7550
7599
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|
|
7551
7600
|
"zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
|
|
7552
7601
|
/** What screen readers hear after a zoom. `{level}` is the zoom level. */
|