@fusion.dev/helix 0.117.0 → 0.119.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/types/vue.d.ts CHANGED
@@ -188,7 +188,9 @@ import type {
188
188
  HelixFacetEvent,
189
189
  HelixActivateEvent,
190
190
  HelixBeforeActivateEvent,
191
+ HelixGraphLayoutEvent,
191
192
  HelixGraphPanEvent,
193
+ HelixGraphPartChangeEvent,
192
194
  HelixGraphReadyEvent,
193
195
  HelixGraphZoomEvent,
194
196
  HelixResizeEvent,
@@ -1539,6 +1541,12 @@ Absent is no ruling, a resting value being an attribute's absence. */
1539
1541
  Framed is where it rests. Plain is for a board that fills a panel or an
1540
1542
  app's working area, where the container is already the frame. */
1541
1543
  separation?: (HelixCanvas["separation"]) | undefined;
1544
+ /** The hint shown when a surface waiting to be pressed is scrolled or
1545
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
1546
+ "activate-hint-label"?: (HelixCanvas["activateHintLabel"]) | undefined;
1547
+ /** The hint shown when a surface waiting to be pressed is scrolled or
1548
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
1549
+ activateHintLabel?: (HelixCanvas["activateHintLabel"]) | undefined;
1542
1550
  /** Which controls to show, as a list such as `pan zoom fullscreen`, or
1543
1551
  `none`. A family can add words of its own.
1544
1552
 
@@ -1603,6 +1611,26 @@ would write an attribute onto every host that no server sent. */
1603
1611
  "fullscreen-label"?: (HelixCanvas["fullscreenLabel"]) | undefined;
1604
1612
  /** The fullscreen button's label. */
1605
1613
  fullscreenLabel?: (HelixCanvas["fullscreenLabel"]) | undefined;
1614
+ /** Which gestures the surface takes from the page.
1615
+
1616
+ - `always`: the surface takes the wheel and one finger, for a surface
1617
+ that is the page, such as a full-screen view. A map rests here.
1618
+ - Unset is the family's own: `always` for a map, and for a board, a
1619
+ drag and a pinch, with the plain wheel left to the page until the
1620
+ board fills the screen.
1621
+ - `cooperative`: the wheel and one finger scroll the page, and the
1622
+ surface takes Ctrl or ⌘ with the wheel, and two fingers. The frame
1623
+ says so when a gesture passes to the page. Best for a surface embedded
1624
+ in a page.
1625
+ - `activate`: the surface takes nothing until it is pressed, and gives it
1626
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
1627
+
1628
+ The keyboard and the frame's buttons work in every mode.
1629
+
1630
+ **Unreflected and without a default**, because a default that reflected
1631
+ would write an attribute onto every host that no server sent, and the
1632
+ hydration that followed would disagree with it. */
1633
+ gestures?: (HelixCanvas["gestures"]) | undefined;
1606
1634
  /** How long, in milliseconds, before the header and footer hide when the user is inactive. `0` keeps them visible.
1607
1635
 
1608
1636
  Zero keeps it up, which is the default: these controls are how a keyboard
@@ -1657,6 +1685,26 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
1657
1685
  "pan-up-label"?: (HelixCanvas["panUpLabel"]) | undefined;
1658
1686
  /** The pan up button's label. */
1659
1687
  panUpLabel?: (HelixCanvas["panUpLabel"]) | undefined;
1688
+ /** The hint shown when one finger swipes over a surface with
1689
+ `gestures="cooperative"`. Absent is the family's own. */
1690
+ "two-finger-hint-label"?: (HelixCanvas["twoFingerHintLabel"]) | undefined;
1691
+ /** The hint shown when one finger swipes over a surface with
1692
+ `gestures="cooperative"`. Absent is the family's own. */
1693
+ twoFingerHintLabel?: (HelixCanvas["twoFingerHintLabel"]) | undefined;
1694
+ /** The line shown while a surface with `gestures="activate"` has the
1695
+ gestures. Absent is the family's own. */
1696
+ "using-label"?: (HelixCanvas["usingLabel"]) | undefined;
1697
+ /** The line shown while a surface with `gestures="activate"` has the
1698
+ gestures. Absent is the family's own. */
1699
+ usingLabel?: (HelixCanvas["usingLabel"]) | undefined;
1700
+ /** The hint shown when the wheel scrolls past a surface with
1701
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
1702
+ elsewhere. Absent is the family's own. */
1703
+ "wheel-hint-label"?: (HelixCanvas["wheelHintLabel"]) | undefined;
1704
+ /** The hint shown when the wheel scrolls past a surface with
1705
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
1706
+ elsewhere. Absent is the family's own. */
1707
+ wheelHintLabel?: (HelixCanvas["wheelHintLabel"]) | undefined;
1660
1708
  /** The zoom in button's label. */
1661
1709
  "zoom-in-label"?: (HelixCanvas["zoomInLabel"]) | undefined;
1662
1710
  /** The zoom in button's label. */
@@ -5654,9 +5702,15 @@ export type HelixGraphHelixActivateElementEvent =
5654
5702
  /** `helix-before-activate` event type */
5655
5703
  export type HelixGraphHelixBeforeActivateElementEvent =
5656
5704
  HelixGraphElementEvent<HelixBeforeActivateEvent>;
5705
+ /** `helix-graph-layout` event type */
5706
+ export type HelixGraphHelixGraphLayoutElementEvent =
5707
+ HelixGraphElementEvent<HelixGraphLayoutEvent>;
5657
5708
  /** `helix-graph-pan` event type */
5658
5709
  export type HelixGraphHelixGraphPanElementEvent =
5659
5710
  HelixGraphElementEvent<HelixGraphPanEvent>;
5711
+ /** `helix-graph-part-change` event type */
5712
+ export type HelixGraphHelixGraphPartChangeElementEvent =
5713
+ HelixGraphElementEvent<HelixGraphPartChangeEvent>;
5660
5714
  /** `helix-graph-ready` event type */
5661
5715
  export type HelixGraphHelixGraphReadyElementEvent =
5662
5716
  HelixGraphElementEvent<HelixGraphReadyEvent>;
@@ -5665,6 +5719,12 @@ export type HelixGraphHelixGraphZoomElementEvent =
5665
5719
  HelixGraphElementEvent<HelixGraphZoomEvent>;
5666
5720
 
5667
5721
  export type HelixGraphVueProps = {
5722
+ /** The hint shown when a surface waiting to be pressed is scrolled or
5723
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
5724
+ "activate-hint-label"?: (HelixGraph["activateHintLabel"]) | undefined;
5725
+ /** The hint shown when a surface waiting to be pressed is scrolled or
5726
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
5727
+ activateHintLabel?: (HelixGraph["activateHintLabel"]) | undefined;
5668
5728
  /** Which controls to show, as a list such as `pan zoom fullscreen`, or
5669
5729
  `none`. A family can add words of its own.
5670
5730
 
@@ -5729,6 +5789,26 @@ would write an attribute onto every host that no server sent. */
5729
5789
  "fullscreen-label"?: (HelixGraph["fullscreenLabel"]) | undefined;
5730
5790
  /** The fullscreen button's label. */
5731
5791
  fullscreenLabel?: (HelixGraph["fullscreenLabel"]) | undefined;
5792
+ /** Which gestures the surface takes from the page.
5793
+
5794
+ - `always`: the surface takes the wheel and one finger, for a surface
5795
+ that is the page, such as a full-screen view. A map rests here.
5796
+ - Unset is the family's own: `always` for a map, and for a board, a
5797
+ drag and a pinch, with the plain wheel left to the page until the
5798
+ board fills the screen.
5799
+ - `cooperative`: the wheel and one finger scroll the page, and the
5800
+ surface takes Ctrl or ⌘ with the wheel, and two fingers. The frame
5801
+ says so when a gesture passes to the page. Best for a surface embedded
5802
+ in a page.
5803
+ - `activate`: the surface takes nothing until it is pressed, and gives it
5804
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
5805
+
5806
+ The keyboard and the frame's buttons work in every mode.
5807
+
5808
+ **Unreflected and without a default**, because a default that reflected
5809
+ would write an attribute onto every host that no server sent, and the
5810
+ hydration that followed would disagree with it. */
5811
+ gestures?: (HelixGraph["gestures"]) | undefined;
5732
5812
  /** How long, in milliseconds, before the header and footer hide when the user is inactive. `0` keeps them visible.
5733
5813
 
5734
5814
  Zero keeps it up, which is the default: these controls are how a keyboard
@@ -5783,6 +5863,26 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
5783
5863
  "pan-up-label"?: (HelixGraph["panUpLabel"]) | undefined;
5784
5864
  /** The pan up button's label. */
5785
5865
  panUpLabel?: (HelixGraph["panUpLabel"]) | undefined;
5866
+ /** The hint shown when one finger swipes over a surface with
5867
+ `gestures="cooperative"`. Absent is the family's own. */
5868
+ "two-finger-hint-label"?: (HelixGraph["twoFingerHintLabel"]) | undefined;
5869
+ /** The hint shown when one finger swipes over a surface with
5870
+ `gestures="cooperative"`. Absent is the family's own. */
5871
+ twoFingerHintLabel?: (HelixGraph["twoFingerHintLabel"]) | undefined;
5872
+ /** The line shown while a surface with `gestures="activate"` has the
5873
+ gestures. Absent is the family's own. */
5874
+ "using-label"?: (HelixGraph["usingLabel"]) | undefined;
5875
+ /** The line shown while a surface with `gestures="activate"` has the
5876
+ gestures. Absent is the family's own. */
5877
+ usingLabel?: (HelixGraph["usingLabel"]) | undefined;
5878
+ /** The hint shown when the wheel scrolls past a surface with
5879
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
5880
+ elsewhere. Absent is the family's own. */
5881
+ "wheel-hint-label"?: (HelixGraph["wheelHintLabel"]) | undefined;
5882
+ /** The hint shown when the wheel scrolls past a surface with
5883
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
5884
+ elsewhere. Absent is the family's own. */
5885
+ wheelHintLabel?: (HelixGraph["wheelHintLabel"]) | undefined;
5786
5886
  /** The zoom in button's label. */
5787
5887
  "zoom-in-label"?: (HelixGraph["zoomInLabel"]) | undefined;
5788
5888
  /** The zoom in button's label. */
@@ -5853,11 +5953,15 @@ export type HelixGraphVueEvents = {
5853
5953
  "helix-activate": HelixGraphHelixActivateElementEvent;
5854
5954
  /** A note is about to be selected. Cancelable: cancel it to keep the selection in your own state. */
5855
5955
  "helix-before-activate": HelixGraphHelixBeforeActivateElementEvent;
5856
- /** A pan button or arrow key was pressed. Move the drawing. */
5956
+ /** A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`. */
5957
+ "helix-graph-layout": HelixGraphHelixGraphLayoutElementEvent;
5958
+ /** A pan button or arrow key was pressed. `connectGraph` moves the drawing. */
5857
5959
  "helix-graph-pan": HelixGraphHelixGraphPanElementEvent;
5960
+ /** The notes, the links, the selection, the depth or the gestures changed. Used by `connectGraph`; pages do not need to listen for it. */
5961
+ "helix-graph-part-change": HelixGraphHelixGraphPartChangeElementEvent;
5858
5962
  /** The graph has been drawn whole, laid out and settled. Sent each time `drawn()` says it is drawn after it was not. */
5859
5963
  "helix-graph-ready": HelixGraphHelixGraphReadyElementEvent;
5860
- /** A zoom button or key was pressed. Zoom the drawing. */
5964
+ /** A zoom button or key was pressed. `connectGraph` zooms the drawing. */
5861
5965
  "helix-graph-zoom": HelixGraphHelixGraphZoomElementEvent;
5862
5966
  };
5863
5967
 
@@ -7559,6 +7663,12 @@ the container's edge is the map's. */
7559
7663
  shows the map through a blur, `frosted` blurs more, and `transparent` has
7560
7664
  no background. Your theme sets how see-through each one is. */
7561
7665
  material?: (HelixMap["material"]) | undefined;
7666
+ /** The hint shown when a surface waiting to be pressed is scrolled or
7667
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
7668
+ "activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
7669
+ /** The hint shown when a surface waiting to be pressed is scrolled or
7670
+ swiped over, with `gestures="activate"`. Absent is the family's own. */
7671
+ activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
7562
7672
  /** Which controls to show, as a list such as `pan zoom fullscreen`, or
7563
7673
  `none`. A family can add words of its own.
7564
7674
 
@@ -7623,6 +7733,26 @@ would write an attribute onto every host that no server sent. */
7623
7733
  "fullscreen-label"?: (HelixMap["fullscreenLabel"]) | undefined;
7624
7734
  /** The fullscreen button's label. */
7625
7735
  fullscreenLabel?: (HelixMap["fullscreenLabel"]) | undefined;
7736
+ /** Which gestures the surface takes from the page.
7737
+
7738
+ - `always`: the surface takes the wheel and one finger, for a surface
7739
+ that is the page, such as a full-screen view. A map rests here.
7740
+ - Unset is the family's own: `always` for a map, and for a board, a
7741
+ drag and a pinch, with the plain wheel left to the page until the
7742
+ board fills the screen.
7743
+ - `cooperative`: the wheel and one finger scroll the page, and the
7744
+ surface takes Ctrl or ⌘ with the wheel, and two fingers. The frame
7745
+ says so when a gesture passes to the page. Best for a surface embedded
7746
+ in a page.
7747
+ - `activate`: the surface takes nothing until it is pressed, and gives it
7748
+ back on Escape, when the pointer leaves it, or on a press elsewhere.
7749
+
7750
+ The keyboard and the frame's buttons work in every mode.
7751
+
7752
+ **Unreflected and without a default**, because a default that reflected
7753
+ would write an attribute onto every host that no server sent, and the
7754
+ hydration that followed would disagree with it. */
7755
+ gestures?: (HelixMap["gestures"]) | undefined;
7626
7756
  /** How long, in milliseconds, before the header and footer hide when the user is inactive. `0` keeps them visible.
7627
7757
 
7628
7758
  Zero keeps it up, which is the default: these controls are how a keyboard
@@ -7677,6 +7807,26 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
7677
7807
  "pan-up-label"?: (HelixMap["panUpLabel"]) | undefined;
7678
7808
  /** The pan up button's label. */
7679
7809
  panUpLabel?: (HelixMap["panUpLabel"]) | undefined;
7810
+ /** The hint shown when one finger swipes over a surface with
7811
+ `gestures="cooperative"`. Absent is the family's own. */
7812
+ "two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
7813
+ /** The hint shown when one finger swipes over a surface with
7814
+ `gestures="cooperative"`. Absent is the family's own. */
7815
+ twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
7816
+ /** The line shown while a surface with `gestures="activate"` has the
7817
+ gestures. Absent is the family's own. */
7818
+ "using-label"?: (HelixMap["usingLabel"]) | undefined;
7819
+ /** The line shown while a surface with `gestures="activate"` has the
7820
+ gestures. Absent is the family's own. */
7821
+ usingLabel?: (HelixMap["usingLabel"]) | undefined;
7822
+ /** The hint shown when the wheel scrolls past a surface with
7823
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7824
+ elsewhere. Absent is the family's own. */
7825
+ "wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
7826
+ /** The hint shown when the wheel scrolls past a surface with
7827
+ `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7828
+ elsewhere. Absent is the family's own. */
7829
+ wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
7680
7830
  /** The zoom in button's label. */
7681
7831
  "zoom-in-label"?: (HelixMap["zoomInLabel"]) | undefined;
7682
7832
  /** The zoom in button's label. */
@@ -7685,12 +7835,6 @@ at any zoom, and a consumer who wants their own units multiplies by them. */
7685
7835
  "zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
7686
7836
  /** The zoom out button's label. */
7687
7837
  zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
7688
- /** The hint shown when a map waiting to be pressed is scrolled or swiped
7689
- over, with `gestures="activate"`. */
7690
- "activate-hint-label"?: (HelixMap["activateHintLabel"]) | undefined;
7691
- /** The hint shown when a map waiting to be pressed is scrolled or swiped
7692
- over, with `gestures="activate"`. */
7693
- activateHintLabel?: (HelixMap["activateHintLabel"]) | undefined;
7694
7838
  /** The map's rotation, in degrees clockwise from north. `connectMap` keeps it
7695
7839
  current, and the Face north button's needle turns with it. */
7696
7840
  bearing?: (HelixMap["bearing"]) | undefined;
@@ -7705,19 +7849,6 @@ the map zooms in, and pressing one zooms in to its places. */
7705
7849
  "flat-label"?: (HelixMap["flatLabel"]) | undefined;
7706
7850
  /** What screen readers hear when the map is tilted back to looking straight down. */
7707
7851
  flatLabel?: (HelixMap["flatLabel"]) | undefined;
7708
- /** Which gestures the map takes from the page.
7709
-
7710
- - `always`, which unset is: the wheel zooms the map and one finger pans
7711
- it, for a map that is the page, such as a full-screen view.
7712
- - `cooperative`: the wheel and one finger scroll the page, and the map
7713
- takes Ctrl or ⌘ with the wheel, and two fingers. The frame says so
7714
- when a gesture passes to the page. Best for a map embedded in a page.
7715
- - `activate`: the map takes nothing until it is pressed, and gives it
7716
- back on Escape, when the pointer leaves it, or on a press elsewhere.
7717
-
7718
- The keyboard and the frame's buttons work in every mode. The renderer is
7719
- told through the connector, so MapLibre and Leaflet behave alike. */
7720
- gestures?: (HelixMap["gestures"]) | undefined;
7721
7852
  /** The Hybrid map type's name. */
7722
7853
  "hybrid-label"?: (HelixMap["hybridLabel"]) | undefined;
7723
7854
  /** The Hybrid map type's name. */
@@ -7799,22 +7930,6 @@ top of the map faces, clockwise from north. */
7799
7930
  /** What screen readers hear when the map is turned. `{degrees}` is the way the
7800
7931
  top of the map faces, clockwise from north. */
7801
7932
  turnedLabel?: (HelixMap["turnedLabel"]) | undefined;
7802
- /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
7803
- "two-finger-hint-label"?: (HelixMap["twoFingerHintLabel"]) | undefined;
7804
- /** The hint shown when one finger swipes over a map with `gestures="cooperative"`. */
7805
- twoFingerHintLabel?: (HelixMap["twoFingerHintLabel"]) | undefined;
7806
- /** The line shown while a map with `gestures="activate"` has the gestures. */
7807
- "using-label"?: (HelixMap["usingLabel"]) | undefined;
7808
- /** The line shown while a map with `gestures="activate"` has the gestures. */
7809
- usingLabel?: (HelixMap["usingLabel"]) | undefined;
7810
- /** The hint shown when the wheel scrolls past a map with
7811
- `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7812
- elsewhere, as the renderer reads it. */
7813
- "wheel-hint-label"?: (HelixMap["wheelHintLabel"]) | undefined;
7814
- /** The hint shown when the wheel scrolls past a map with
7815
- `gestures="cooperative"`, with `{key}`, which is ⌘ on a Mac and Ctrl
7816
- elsewhere, as the renderer reads it. */
7817
- wheelHintLabel?: (HelixMap["wheelHintLabel"]) | undefined;
7818
7933
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */
7819
7934
  "zoomed-label"?: (HelixMap["zoomedLabel"]) | undefined;
7820
7935
  /** What screen readers hear after a zoom. `{level}` is the zoom level. */