flow-mindmap 0.5.8 → 0.5.10
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/dist/composables/useKeyboard.d.ts +7 -0
- package/dist/composables/usePanZoom.d.ts +1 -0
- package/dist/flow-mindmap.js +4636 -4522
- package/dist/flow-mindmap.umd.cjs +58 -58
- package/dist/style.css +2 -2
- package/dist/types.d.ts +3 -2
- package/package.json +1 -1
|
@@ -47,6 +47,13 @@ export interface KeyboardOptions {
|
|
|
47
47
|
* dy = +1 → select next sibling
|
|
48
48
|
*/
|
|
49
49
|
onNavigate: (dx: number, dy: number) => void;
|
|
50
|
+
/** Move the currently selected node one slot up (dy=-1) or down
|
|
51
|
+
* (dy=+1) among its siblings. The host is responsible for
|
|
52
|
+
* mapping the visual direction to the correct data-level
|
|
53
|
+
* before/after, taking into account the left/right side
|
|
54
|
+
* reversal of root children. No-op when the node is the root
|
|
55
|
+
* or already at the boundary. */
|
|
56
|
+
onMoveSibling: (dy: number) => void;
|
|
50
57
|
onSelectRoot: () => void;
|
|
51
58
|
}
|
|
52
59
|
export declare function useKeyboard(opts: KeyboardOptions): void;
|
|
@@ -27,6 +27,7 @@ export declare function usePanZoom(opts: PanZoomOptions): {
|
|
|
27
27
|
onWheel: (e: WheelEvent) => void;
|
|
28
28
|
zoomIn: () => void;
|
|
29
29
|
zoomOut: () => void;
|
|
30
|
+
zoomTo100: () => void;
|
|
30
31
|
startPan: (e: PointerEvent | MouseEvent) => void;
|
|
31
32
|
startMarquee: (worldX: number, worldY: number, opts?: {
|
|
32
33
|
shift?: boolean;
|