@fusion.dev/helix 0.111.2 → 0.113.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 +44 -2
- package/dist/map/root/map-root.css.js +45 -0
- package/dist/map/root/map-root.d.ts +22 -1
- package/dist/map/root/map-root.js +10 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +67 -3
- package/types/vue.d.ts +19 -2
package/custom-elements.json
CHANGED
|
@@ -83172,7 +83172,7 @@
|
|
|
83172
83172
|
"declarations": [
|
|
83173
83173
|
{
|
|
83174
83174
|
"kind": "class",
|
|
83175
|
-
"description": "The styled frame: a bordered box with the pan and zoom buttons in its top\ncorner. The buttons stay visible when the header and footer fade.",
|
|
83175
|
+
"description": "The styled frame: a bordered box with the pan and zoom buttons in its top\ncorner. The buttons stay visible when the header and footer fade.\n\nSet `fill` to lay the map behind a page's own content, such as a hero whose\nwords decide its height: the frame covers its container, which needs a\nposition of its own, such as `position: relative`. Set `credit-placement`\nto draw the map's credit compact in a corner over the map, which suits a\nmap the width of the page.",
|
|
83176
83176
|
"name": "HelixMap",
|
|
83177
83177
|
"cssProperties": [
|
|
83178
83178
|
{
|
|
@@ -83180,7 +83180,7 @@
|
|
|
83180
83180
|
"name": "--map-background-color"
|
|
83181
83181
|
},
|
|
83182
83182
|
{
|
|
83183
|
-
"description": "The frame's height, as a length.",
|
|
83183
|
+
"description": "The frame's height, as a length. Ignored with `fill`, where the container decides it.",
|
|
83184
83184
|
"name": "--map-block-size"
|
|
83185
83185
|
},
|
|
83186
83186
|
{
|
|
@@ -83201,6 +83201,27 @@
|
|
|
83201
83201
|
}
|
|
83202
83202
|
],
|
|
83203
83203
|
"members": [
|
|
83204
|
+
{
|
|
83205
|
+
"kind": "field",
|
|
83206
|
+
"name": "creditPlacement",
|
|
83207
|
+
"type": {
|
|
83208
|
+
"text": "'bottom-end' | 'bottom-start' | undefined"
|
|
83209
|
+
},
|
|
83210
|
+
"description": "Where the map's credit is drawn. Unset, it is a strip under the map.\n`bottom-end` or `bottom-start` draws it in that corner over the map, on\none line that shows the whole credit on hover or focus, the form\nOpenStreetMap's attribution guidance accepts for a small credit. Keep it\nclear of a corner the controls are in.",
|
|
83211
|
+
"attribute": "credit-placement",
|
|
83212
|
+
"reflects": true
|
|
83213
|
+
},
|
|
83214
|
+
{
|
|
83215
|
+
"kind": "field",
|
|
83216
|
+
"name": "fill",
|
|
83217
|
+
"type": {
|
|
83218
|
+
"text": "boolean"
|
|
83219
|
+
},
|
|
83220
|
+
"default": "false",
|
|
83221
|
+
"description": "Covers the container instead of taking a height of its own, for a map\nbehind a page's content. The container needs a position, such as\n`position: relative`. The frame draws no border or corners then, since\nthe container's edge is the map's.",
|
|
83222
|
+
"attribute": "fill",
|
|
83223
|
+
"reflects": true
|
|
83224
|
+
},
|
|
83204
83225
|
{
|
|
83205
83226
|
"kind": "field",
|
|
83206
83227
|
"name": "material",
|
|
@@ -85025,6 +85046,23 @@
|
|
|
85025
85046
|
}
|
|
85026
85047
|
],
|
|
85027
85048
|
"attributes": [
|
|
85049
|
+
{
|
|
85050
|
+
"name": "credit-placement",
|
|
85051
|
+
"type": {
|
|
85052
|
+
"text": "'bottom-end' | 'bottom-start' | undefined"
|
|
85053
|
+
},
|
|
85054
|
+
"description": "Where the map's credit is drawn. Unset, it is a strip under the map.\n`bottom-end` or `bottom-start` draws it in that corner over the map, on\none line that shows the whole credit on hover or focus, the form\nOpenStreetMap's attribution guidance accepts for a small credit. Keep it\nclear of a corner the controls are in.",
|
|
85055
|
+
"fieldName": "creditPlacement"
|
|
85056
|
+
},
|
|
85057
|
+
{
|
|
85058
|
+
"name": "fill",
|
|
85059
|
+
"type": {
|
|
85060
|
+
"text": "boolean"
|
|
85061
|
+
},
|
|
85062
|
+
"default": "false",
|
|
85063
|
+
"description": "Covers the container instead of taking a height of its own, for a map\nbehind a page's content. The container needs a position, such as\n`position: relative`. The frame draws no border or corners then, since\nthe container's edge is the map's.",
|
|
85064
|
+
"fieldName": "fill"
|
|
85065
|
+
},
|
|
85028
85066
|
{
|
|
85029
85067
|
"name": "material",
|
|
85030
85068
|
"type": {
|
|
@@ -85520,6 +85558,10 @@
|
|
|
85520
85558
|
"description": "A frame around a map, with pan and zoom buttons and the map credit.",
|
|
85521
85559
|
"slug": "preview"
|
|
85522
85560
|
},
|
|
85561
|
+
{
|
|
85562
|
+
"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
|
+
"slug": "behind-content"
|
|
85564
|
+
},
|
|
85523
85565
|
{
|
|
85524
85566
|
"description": "Buildings raised to their real heights on a tilted map of downtown Austin.",
|
|
85525
85567
|
"slug": "buildings"
|
|
@@ -15,6 +15,15 @@ overflow: hidden;
|
|
|
15
15
|
position: relative;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
:host([fill]) [part="region"] {
|
|
19
|
+
block-size: auto;
|
|
20
|
+
border: none;
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
container-type: size;
|
|
23
|
+
inset: 0;
|
|
24
|
+
position: absolute;
|
|
25
|
+
}
|
|
26
|
+
|
|
18
27
|
[part="viewport"] {
|
|
19
28
|
isolation: isolate;
|
|
20
29
|
min-block-size: 0;
|
|
@@ -54,6 +63,38 @@ font-size: var(--helix-text-xs);
|
|
|
54
63
|
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
55
64
|
}
|
|
56
65
|
|
|
66
|
+
:host([credit-placement]) [part="attribution"] {
|
|
67
|
+
inset-block-end: var(--helix-space-2xs);
|
|
68
|
+
max-inline-size: calc(100% - var(--helix-space-2xs) * 2);
|
|
69
|
+
position: absolute;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([credit-placement="bottom-end"]) [part="attribution"] {
|
|
73
|
+
inset-inline-end: var(--helix-space-2xs);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([credit-placement="bottom-start"]) [part="attribution"] {
|
|
77
|
+
inset-inline-start: var(--helix-space-2xs);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([credit-placement]) ::slotted([slot="attribution"]) {
|
|
81
|
+
backdrop-filter: var(--helix-material-backdrop);
|
|
82
|
+
background-color: var(--helix-material-translucent);
|
|
83
|
+
border-block-start: none;
|
|
84
|
+
border-radius: var(--helix-radii-sm);
|
|
85
|
+
color: var(--helix-color-foreground-muted);
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
padding: var(--helix-space-none) var(--helix-space-xs);
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([credit-placement])
|
|
93
|
+
[part="attribution"]:is(:hover, :focus-within)
|
|
94
|
+
::slotted([slot="attribution"]) {
|
|
95
|
+
white-space: normal;
|
|
96
|
+
}
|
|
97
|
+
|
|
57
98
|
:host([material="glass"]) [part="controls"] button {
|
|
58
99
|
backdrop-filter: var(--helix-material-backdrop);
|
|
59
100
|
background-color: var(--viewport-control-background-color, var(--helix-material-translucent));
|
|
@@ -187,6 +228,10 @@ padding: var(--helix-space-sm);
|
|
|
187
228
|
position: absolute;
|
|
188
229
|
}
|
|
189
230
|
|
|
231
|
+
:host([fill]) [part="layers-menu"] {
|
|
232
|
+
max-block-size: calc(100cqb - var(--helix-space-sm) * 2);
|
|
233
|
+
}
|
|
234
|
+
|
|
190
235
|
[part="layers-menu"][hidden] {
|
|
191
236
|
display: none;
|
|
192
237
|
}
|
|
@@ -7,6 +7,12 @@ import type { CSSResultGroup } from 'lit';
|
|
|
7
7
|
* The styled frame: a bordered box with the pan and zoom buttons in its top
|
|
8
8
|
* corner. The buttons stay visible when the header and footer fade.
|
|
9
9
|
*
|
|
10
|
+
* Set `fill` to lay the map behind a page's own content, such as a hero whose
|
|
11
|
+
* words decide its height: the frame covers its container, which needs a
|
|
12
|
+
* position of its own, such as `position: relative`. Set `credit-placement`
|
|
13
|
+
* to draw the map's credit compact in a corner over the map, which suits a
|
|
14
|
+
* map the width of the page.
|
|
15
|
+
*
|
|
10
16
|
* @since 0.100.0
|
|
11
17
|
* @status experimental
|
|
12
18
|
* @category media
|
|
@@ -14,11 +20,26 @@ import type { CSSResultGroup } from 'lit';
|
|
|
14
20
|
* @documentation https://fusion.dev/helix/components/map
|
|
15
21
|
*
|
|
16
22
|
* @cssproperty --map-background-color - The color behind the map while tiles load.
|
|
17
|
-
* @cssproperty --map-block-size - The frame's height, as a length.
|
|
23
|
+
* @cssproperty --map-block-size - The frame's height, as a length. Ignored with `fill`, where the container decides it.
|
|
18
24
|
* @cssproperty --map-border-color - The frame's border color.
|
|
19
25
|
* @cssproperty --viewport-control-background-color - The background of the pan and zoom buttons. Canvas uses the same property.
|
|
20
26
|
*/
|
|
21
27
|
export declare class HelixMap extends HelixHeadlessMap {
|
|
28
|
+
/**
|
|
29
|
+
* Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
30
|
+
* `bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
31
|
+
* one line that shows the whole credit on hover or focus, the form
|
|
32
|
+
* OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
33
|
+
* clear of a corner the controls are in.
|
|
34
|
+
*/
|
|
35
|
+
creditPlacement?: 'bottom-end' | 'bottom-start';
|
|
36
|
+
/**
|
|
37
|
+
* Covers the container instead of taking a height of its own, for a map
|
|
38
|
+
* behind a page's content. The container needs a position, such as
|
|
39
|
+
* `position: relative`. The frame draws no border or corners then, since
|
|
40
|
+
* the container's edge is the map's.
|
|
41
|
+
*/
|
|
42
|
+
fill: boolean;
|
|
22
43
|
/**
|
|
23
44
|
* The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
24
45
|
* shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
@@ -11,8 +11,18 @@ import { styles as liveStyles } from '../../shared/live/live.css.js';
|
|
|
11
11
|
import { styles as viewportStyles } from '../../shared/viewport/viewport.css.js';
|
|
12
12
|
import { styles } from './map-root.css.js';
|
|
13
13
|
let HelixMap = class HelixMap extends HelixHeadlessMap {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.fill = false;
|
|
17
|
+
}
|
|
14
18
|
static { this.styles = [liveStyles, viewportStyles, styles]; }
|
|
15
19
|
};
|
|
20
|
+
__decorate([
|
|
21
|
+
property({ attribute: 'credit-placement', reflect: true })
|
|
22
|
+
], HelixMap.prototype, "creditPlacement", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
property({ reflect: true, type: Boolean })
|
|
25
|
+
], HelixMap.prototype, "fill", void 0);
|
|
16
26
|
__decorate([
|
|
17
27
|
property({ reflect: true })
|
|
18
28
|
], HelixMap.prototype, "material", void 0);
|
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.113.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.113.0",
|
|
55
|
+
"@fusion.dev/helix-headless": "0.113.0",
|
|
56
|
+
"@fusion.dev/helix-styles": "0.113.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@fusion.dev/helix-cem": "0.
|
|
60
|
-
"@fusion.dev/helix-testing": "0.
|
|
59
|
+
"@fusion.dev/helix-cem": "0.113.0",
|
|
60
|
+
"@fusion.dev/helix-testing": "0.113.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
|
@@ -14238,6 +14238,23 @@ export type HelixMapHelixMapZoomElementEvent =
|
|
|
14238
14238
|
HelixMapElementEvent<HelixMapZoomEvent>;
|
|
14239
14239
|
|
|
14240
14240
|
export type HelixMapProps = {
|
|
14241
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
14242
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
14243
|
+
one line that shows the whole credit on hover or focus, the form
|
|
14244
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
14245
|
+
clear of a corner the controls are in. */
|
|
14246
|
+
"credit-placement"?: (HelixMap["creditPlacement"]) | undefined;
|
|
14247
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
14248
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
14249
|
+
one line that shows the whole credit on hover or focus, the form
|
|
14250
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
14251
|
+
clear of a corner the controls are in. */
|
|
14252
|
+
creditPlacement?: (HelixMap["creditPlacement"]) | undefined;
|
|
14253
|
+
/** Covers the container instead of taking a height of its own, for a map
|
|
14254
|
+
behind a page's content. The container needs a position, such as
|
|
14255
|
+
`position: relative`. The frame draws no border or corners then, since
|
|
14256
|
+
the container's edge is the map's. */
|
|
14257
|
+
fill?: (HelixMap["fill"]) | undefined;
|
|
14241
14258
|
/** The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
14242
14259
|
shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
14243
14260
|
no background. Your theme sets how see-through each one is. */
|
|
@@ -14493,6 +14510,23 @@ current, and the map says it after a zoom. */
|
|
|
14493
14510
|
};
|
|
14494
14511
|
|
|
14495
14512
|
export type HelixMapSolidJsProps = {
|
|
14513
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
14514
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
14515
|
+
one line that shows the whole credit on hover or focus, the form
|
|
14516
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
14517
|
+
clear of a corner the controls are in. */
|
|
14518
|
+
"attr:credit-placement"?: (HelixMap["creditPlacement"]) | undefined;
|
|
14519
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
14520
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
14521
|
+
one line that shows the whole credit on hover or focus, the form
|
|
14522
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
14523
|
+
clear of a corner the controls are in. */
|
|
14524
|
+
"prop:creditPlacement"?: (HelixMap["creditPlacement"]) | undefined;
|
|
14525
|
+
/** Covers the container instead of taking a height of its own, for a map
|
|
14526
|
+
behind a page's content. The container needs a position, such as
|
|
14527
|
+
`position: relative`. The frame draws no border or corners then, since
|
|
14528
|
+
the container's edge is the map's. */
|
|
14529
|
+
"prop:fill"?: (HelixMap["fill"]) | undefined;
|
|
14496
14530
|
/** The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
14497
14531
|
shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
14498
14532
|
no background. Your theme sets how see-through each one is. */
|
|
@@ -37542,10 +37576,25 @@ export type CustomElements = {
|
|
|
37542
37576
|
* The styled frame: a bordered box with the pan and zoom buttons in its top
|
|
37543
37577
|
* corner. The buttons stay visible when the header and footer fade.
|
|
37544
37578
|
*
|
|
37579
|
+
* Set `fill` to lay the map behind a page's own content, such as a hero whose
|
|
37580
|
+
* words decide its height: the frame covers its container, which needs a
|
|
37581
|
+
* position of its own, such as `position: relative`. Set `credit-placement`
|
|
37582
|
+
* to draw the map's credit compact in a corner over the map, which suits a
|
|
37583
|
+
* map the width of the page.
|
|
37584
|
+
*
|
|
37545
37585
|
* ## Attributes & Properties
|
|
37546
37586
|
*
|
|
37547
37587
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
37548
37588
|
*
|
|
37589
|
+
* - `credit-placement`/`creditPlacement`: Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
37590
|
+
* `bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
37591
|
+
* one line that shows the whole credit on hover or focus, the form
|
|
37592
|
+
* OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
37593
|
+
* clear of a corner the controls are in.
|
|
37594
|
+
* - `fill`: Covers the container instead of taking a height of its own, for a map
|
|
37595
|
+
* behind a page's content. The container needs a position, such as
|
|
37596
|
+
* `position: relative`. The frame draws no border or corners then, since
|
|
37597
|
+
* the container's edge is the map's.
|
|
37549
37598
|
* - `material`: The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
37550
37599
|
* shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
37551
37600
|
* no background. Your theme sets how see-through each one is.
|
|
@@ -37719,7 +37768,7 @@ export type CustomElements = {
|
|
|
37719
37768
|
* CSS variables available for styling the component.
|
|
37720
37769
|
*
|
|
37721
37770
|
* - `--map-background-color`: The color behind the map while tiles load. (default: `undefined`)
|
|
37722
|
-
* - `--map-block-size`: The frame's height, as a length. (default: `undefined`)
|
|
37771
|
+
* - `--map-block-size`: The frame's height, as a length. Ignored with `fill`, where the container decides it. (default: `undefined`)
|
|
37723
37772
|
* - `--map-border-color`: The frame's border color. (default: `undefined`)
|
|
37724
37773
|
* - `--viewport-control-background-color`: The background of the pan and zoom buttons. Canvas uses the same property. (default: `undefined`)
|
|
37725
37774
|
* - `--map-needle-turn`: How far the needle turns to point north, as an angle. The frame writes it from `bearing`. (default: `undefined`)
|
|
@@ -59541,10 +59590,25 @@ export type CustomElementsSolidJs = {
|
|
|
59541
59590
|
* The styled frame: a bordered box with the pan and zoom buttons in its top
|
|
59542
59591
|
* corner. The buttons stay visible when the header and footer fade.
|
|
59543
59592
|
*
|
|
59593
|
+
* Set `fill` to lay the map behind a page's own content, such as a hero whose
|
|
59594
|
+
* words decide its height: the frame covers its container, which needs a
|
|
59595
|
+
* position of its own, such as `position: relative`. Set `credit-placement`
|
|
59596
|
+
* to draw the map's credit compact in a corner over the map, which suits a
|
|
59597
|
+
* map the width of the page.
|
|
59598
|
+
*
|
|
59544
59599
|
* ## Attributes & Properties
|
|
59545
59600
|
*
|
|
59546
59601
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
59547
59602
|
*
|
|
59603
|
+
* - `credit-placement`/`creditPlacement`: Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
59604
|
+
* `bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
59605
|
+
* one line that shows the whole credit on hover or focus, the form
|
|
59606
|
+
* OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
59607
|
+
* clear of a corner the controls are in.
|
|
59608
|
+
* - `fill`: Covers the container instead of taking a height of its own, for a map
|
|
59609
|
+
* behind a page's content. The container needs a position, such as
|
|
59610
|
+
* `position: relative`. The frame draws no border or corners then, since
|
|
59611
|
+
* the container's edge is the map's.
|
|
59548
59612
|
* - `material`: The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
59549
59613
|
* shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
59550
59614
|
* no background. Your theme sets how see-through each one is.
|
|
@@ -59718,7 +59782,7 @@ export type CustomElementsSolidJs = {
|
|
|
59718
59782
|
* CSS variables available for styling the component.
|
|
59719
59783
|
*
|
|
59720
59784
|
* - `--map-background-color`: The color behind the map while tiles load. (default: `undefined`)
|
|
59721
|
-
* - `--map-block-size`: The frame's height, as a length. (default: `undefined`)
|
|
59785
|
+
* - `--map-block-size`: The frame's height, as a length. Ignored with `fill`, where the container decides it. (default: `undefined`)
|
|
59722
59786
|
* - `--map-border-color`: The frame's border color. (default: `undefined`)
|
|
59723
59787
|
* - `--viewport-control-background-color`: The background of the pan and zoom buttons. Canvas uses the same property. (default: `undefined`)
|
|
59724
59788
|
* - `--map-needle-turn`: How far the needle turns to point north, as an angle. The frame writes it from `bearing`. (default: `undefined`)
|
|
@@ -70862,7 +70926,7 @@ export type CustomCssProperties = {
|
|
|
70862
70926
|
"--map-position-size"?: (string) | undefined;
|
|
70863
70927
|
/** The color behind the map while tiles load. */
|
|
70864
70928
|
"--map-background-color"?: (string) | undefined;
|
|
70865
|
-
/** The frame's height, as a length. */
|
|
70929
|
+
/** The frame's height, as a length. Ignored with `fill`, where the container decides it. */
|
|
70866
70930
|
"--map-block-size"?: (string) | undefined;
|
|
70867
70931
|
/** The frame's border color. */
|
|
70868
70932
|
"--map-border-color"?: (string) | undefined;
|
package/types/vue.d.ts
CHANGED
|
@@ -7301,6 +7301,23 @@ export type HelixMapHelixMapZoomElementEvent =
|
|
|
7301
7301
|
HelixMapElementEvent<HelixMapZoomEvent>;
|
|
7302
7302
|
|
|
7303
7303
|
export type HelixMapVueProps = {
|
|
7304
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
7305
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
7306
|
+
one line that shows the whole credit on hover or focus, the form
|
|
7307
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
7308
|
+
clear of a corner the controls are in. */
|
|
7309
|
+
"credit-placement"?: (HelixMap["creditPlacement"]) | undefined;
|
|
7310
|
+
/** Where the map's credit is drawn. Unset, it is a strip under the map.
|
|
7311
|
+
`bottom-end` or `bottom-start` draws it in that corner over the map, on
|
|
7312
|
+
one line that shows the whole credit on hover or focus, the form
|
|
7313
|
+
OpenStreetMap's attribution guidance accepts for a small credit. Keep it
|
|
7314
|
+
clear of a corner the controls are in. */
|
|
7315
|
+
creditPlacement?: (HelixMap["creditPlacement"]) | undefined;
|
|
7316
|
+
/** Covers the container instead of taking a height of its own, for a map
|
|
7317
|
+
behind a page's content. The container needs a position, such as
|
|
7318
|
+
`position: relative`. The frame draws no border or corners then, since
|
|
7319
|
+
the container's edge is the map's. */
|
|
7320
|
+
fill?: (HelixMap["fill"]) | undefined;
|
|
7304
7321
|
/** The background of the pan and zoom buttons. Leave unset for solid. `glass`
|
|
7305
7322
|
shows the map through a blur, `frosted` blurs more, and `transparent` has
|
|
7306
7323
|
no background. Your theme sets how see-through each one is. */
|
|
@@ -14059,7 +14076,7 @@ export type CustomCssProperties = {
|
|
|
14059
14076
|
"--map-position-size"?: (string) | undefined;
|
|
14060
14077
|
/** The color behind the map while tiles load. */
|
|
14061
14078
|
"--map-background-color"?: (string) | undefined;
|
|
14062
|
-
/** The frame's height, as a length. */
|
|
14079
|
+
/** The frame's height, as a length. Ignored with `fill`, where the container decides it. */
|
|
14063
14080
|
"--map-block-size"?: (string) | undefined;
|
|
14064
14081
|
/** The frame's border color. */
|
|
14065
14082
|
"--map-border-color"?: (string) | undefined;
|
|
@@ -15045,7 +15062,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
15045
15062
|
HelixMapRasterVueProps,
|
|
15046
15063
|
HelixMapRasterVueEvents
|
|
15047
15064
|
>;
|
|
15048
|
-
/** The styled frame: a bordered box with the pan and zoom buttons in its top corner. The buttons stay visible when the header and footer fade. */
|
|
15065
|
+
/** The styled frame: a bordered box with the pan and zoom buttons in its top corner. The buttons stay visible when the header and footer fade. Set 'fill' to lay the map behind a page's own content, such as a hero whose words decide its height: the frame covers its container, which needs a position of its own, such as 'position: relative'. Set 'credit-placement' to draw the map's credit compact in a corner over the map, which suits a map the width of the page. */
|
|
15049
15066
|
"helix-map": DefineCustomElement<
|
|
15050
15067
|
HelixMap,
|
|
15051
15068
|
HelixMapVueProps,
|