@fusion.dev/helix 0.103.2 → 0.103.3

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/types/vue.d.ts CHANGED
@@ -5880,56 +5880,48 @@ export type HelixMapHelixMapZoomElementEvent =
5880
5880
  HelixMapElementEvent<HelixMapZoomEvent>;
5881
5881
 
5882
5882
  export type HelixMapVueProps = {
5883
- /** Which of the controls this frame draws, as a list of what to keep.
5884
-
5885
- **A list rather than a switch, because the overlap is not symmetric.**
5886
- Every map library draws zoom controls and none of them draws pan buttons:
5887
- MapLibre's navigation control is zoom and a compass, Leaflet's is zoom,
5888
- Google's is zoom. So a consumer slotting one of those has our zoom twice
5889
- over and our pan pad not at all, and a single switch would make them choose
5890
- between a duplicate and nothing.
5891
-
5892
- `none` draws none of them, which is the right answer where the slotted map
5893
- already has controls a reader can find: what this family argues for is that
5894
- *a* findable control exists, never that it is ours. The methods stay public
5895
- either way, so a consumer drawing their own chrome can still drive the
5896
- frame.
5897
-
5898
- Absent is all three, which is this library's rule that a resting value is an
5899
- attribute's absence, and it is what the stylesheet asks about: the layout
5900
- rules are written against `[controls]:not([controls~="zoom"])` rather than
5901
- the bare negation, or a frame that named no list at all would be laid out as
5902
- though it had dropped everything. */
5883
+ /** Which of the controls this surface draws, as a list of what to keep.
5884
+
5885
+ **A list rather than a switch, because the overlap is not symmetric.** A
5886
+ surface a consumer brings often has zoom controls of its own and almost
5887
+ never has pan buttons, so a single switch would make them choose between
5888
+ a duplicate and nothing.
5889
+
5890
+ `none` draws none of them, which is the right answer where what was
5891
+ slotted already has controls a reader can find: what this argues for is
5892
+ that *a* findable control exists, never that it is ours. The methods stay
5893
+ public either way, so a consumer drawing their own chrome can still drive
5894
+ the surface.
5895
+
5896
+ Absent is all three, which is this library's rule that a resting value is
5897
+ an attribute's absence, and it is what the stylesheet asks about: the
5898
+ layout rules are written against `[controls]:not([controls~="zoom"])`
5899
+ rather than the bare negation, or a surface that named no list at all
5900
+ would be laid out as though it had dropped everything. */
5903
5901
  controls?: (HelixMap["controls"]) | undefined;
5904
5902
  /** Which corner the controls sit in.
5905
5903
 
5906
- **Configurable because there is no safe default**, and this is a collision
5907
- rather than a taste: MapLibre puts its own controls at the top end, Leaflet
5908
- and OpenLayers at the top start, Google's zoom at the bottom end. Whichever
5909
- corner this took would land on somebody's, which is why every one of those
5910
- libraries made it a setting too.
5904
+ **Configurable because there is no safe default**, which is a collision
5905
+ rather than a taste: whatever a consumer slots may put its own controls
5906
+ in any corner, and every library that draws some made this a setting for
5907
+ the same reason.
5911
5908
 
5912
5909
  Logical corners rather than left and right, so a right-to-left page moves
5913
- them without a consumer writing a second rule.
5914
-
5915
- Absent is the top end, which is this library's rule that a resting value is
5916
- an attribute's absence: a default that reflected would write an attribute
5917
- onto every host that no server sent and nobody asked for. */
5910
+ them without a consumer writing a second rule. Absent is the top end, a
5911
+ resting value being an attribute's absence: a default that reflected
5912
+ would write an attribute onto every host that no server sent. */
5918
5913
  "controls-placement"?: (HelixMap["controlsPlacement"]) | undefined;
5919
5914
  /** Which corner the controls sit in.
5920
5915
 
5921
- **Configurable because there is no safe default**, and this is a collision
5922
- rather than a taste: MapLibre puts its own controls at the top end, Leaflet
5923
- and OpenLayers at the top start, Google's zoom at the bottom end. Whichever
5924
- corner this took would land on somebody's, which is why every one of those
5925
- libraries made it a setting too.
5916
+ **Configurable because there is no safe default**, which is a collision
5917
+ rather than a taste: whatever a consumer slots may put its own controls
5918
+ in any corner, and every library that draws some made this a setting for
5919
+ the same reason.
5926
5920
 
5927
5921
  Logical corners rather than left and right, so a right-to-left page moves
5928
- them without a consumer writing a second rule.
5929
-
5930
- Absent is the top end, which is this library's rule that a resting value is
5931
- an attribute's absence: a default that reflected would write an attribute
5932
- onto every host that no server sent and nobody asked for. */
5922
+ them without a consumer writing a second rule. Absent is the top end, a
5923
+ resting value being an attribute's absence: a default that reflected
5924
+ would write an attribute onto every host that no server sent. */
5933
5925
  controlsPlacement?: (HelixMap["controlsPlacement"]) | undefined;
5934
5926
  /** What the control that fills the screen is called. */
5935
5927
  "fullscreen-label"?: (HelixMap["fullscreenLabel"]) | undefined;
@@ -5937,16 +5929,42 @@ onto every host that no server sent and nobody asked for. */
5937
5929
  fullscreenLabel?: (HelixMap["fullscreenLabel"]) | undefined;
5938
5930
  /** How long the reader may be still before the chrome hides, in milliseconds.
5939
5931
 
5940
- Zero keeps it up, which is the default: a map's controls are how a keyboard
5941
- reader operates it, and chrome that hides itself by default would be this
5942
- component undoing its own argument. Set it for a display map nobody drives. */
5932
+ Zero keeps it up, which is the default: these controls are how a keyboard
5933
+ reader operates the surface, and chrome that hid itself by default would
5934
+ be the component undoing its own argument. Set it for a display nobody
5935
+ drives. */
5943
5936
  "idle-delay"?: (HelixMap["idleDelay"] | `${number}`) | undefined;
5944
5937
  /** How long the reader may be still before the chrome hides, in milliseconds.
5945
5938
 
5946
- Zero keeps it up, which is the default: a map's controls are how a keyboard
5947
- reader operates it, and chrome that hides itself by default would be this
5948
- component undoing its own argument. Set it for a display map nobody drives. */
5939
+ Zero keeps it up, which is the default: these controls are how a keyboard
5940
+ reader operates the surface, and chrome that hid itself by default would
5941
+ be the component undoing its own argument. Set it for a display nobody
5942
+ drives. */
5949
5943
  idleDelay?: (HelixMap["idleDelay"]) | undefined;
5944
+ /** What one pan control is called, with `{way}` filled in. */
5945
+ "pan-label"?: (HelixMap["panLabel"]) | undefined;
5946
+ /** What one pan control is called, with `{way}` filled in. */
5947
+ panLabel?: (HelixMap["panLabel"]) | undefined;
5948
+ /** How far one press moves the view, as a fraction of what is on screen.
5949
+
5950
+ A fraction rather than a distance, because this surface does not know the
5951
+ scale of what is inside it: a quarter of the viewport is the same gesture
5952
+ at any zoom, and a consumer who wants their own units multiplies by them. */
5953
+ "pan-step"?: (HelixMap["panStep"] | `${number}`) | undefined;
5954
+ /** How far one press moves the view, as a fraction of what is on screen.
5955
+
5956
+ A fraction rather than a distance, because this surface does not know the
5957
+ scale of what is inside it: a quarter of the viewport is the same gesture
5958
+ at any zoom, and a consumer who wants their own units multiplies by them. */
5959
+ panStep?: (HelixMap["panStep"]) | undefined;
5960
+ /** What the control that zooms in is called. */
5961
+ "zoom-in-label"?: (HelixMap["zoomInLabel"]) | undefined;
5962
+ /** What the control that zooms in is called. */
5963
+ zoomInLabel?: (HelixMap["zoomInLabel"]) | undefined;
5964
+ /** What the control that zooms out is called. */
5965
+ "zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
5966
+ /** What the control that zooms out is called. */
5967
+ zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
5950
5968
  /** Accessible name for the map, which is the one thing a consumer must write.
5951
5969
 
5952
5970
  There is no sensible default. "Map" names the widget rather than the place,
@@ -5960,32 +5978,6 @@ arrow keys no reader could ever press. `aria-keyshortcuts` says which keys
5960
5978
  rather than spelling them into the name, which would otherwise be read out
5961
5979
  at every encounter. */
5962
5980
  label?: (HelixMap["label"]) | undefined;
5963
- /** What the controls are called, for a page not in English. */
5964
- "pan-label"?: (HelixMap["panLabel"]) | undefined;
5965
- /** What the controls are called, for a page not in English. */
5966
- panLabel?: (HelixMap["panLabel"]) | undefined;
5967
- /** How far one press moves the map, as a fraction of what is on screen.
5968
-
5969
- A fraction rather than a distance, because this frame does not know the
5970
- scale of what is inside it: a quarter of the viewport is the same gesture at
5971
- street level and at country level, and a consumer who wants metres can
5972
- multiply by their own. */
5973
- "pan-step"?: (HelixMap["panStep"] | `${number}`) | undefined;
5974
- /** How far one press moves the map, as a fraction of what is on screen.
5975
-
5976
- A fraction rather than a distance, because this frame does not know the
5977
- scale of what is inside it: a quarter of the viewport is the same gesture at
5978
- street level and at country level, and a consumer who wants metres can
5979
- multiply by their own. */
5980
- panStep?: (HelixMap["panStep"]) | undefined;
5981
- /** What the zoom controls are called. */
5982
- "zoom-in-label"?: (HelixMap["zoomInLabel"]) | undefined;
5983
- /** What the zoom controls are called. */
5984
- zoomInLabel?: (HelixMap["zoomInLabel"]) | undefined;
5985
- /** What the zoom control that goes the other way is called. */
5986
- "zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
5987
- /** What the zoom control that goes the other way is called. */
5988
- zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
5989
5981
  };
5990
5982
 
5991
5983
  export type HelixMapVueEvents = {