flow-mindmap 0.4.2 → 0.4.4
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/components/Drawer.vue.d.ts +27 -3
- package/dist/components/MindMap.vue.d.ts +1 -0
- package/dist/flow-mindmap.js +3964 -3828
- package/dist/flow-mindmap.umd.cjs +61 -61
- package/dist/style.css +1 -1
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -7,12 +7,33 @@ type __VLS_Props = {
|
|
|
7
7
|
open?: boolean;
|
|
8
8
|
/** Optional title shown in the header. */
|
|
9
9
|
title?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Overlay scope.
|
|
12
|
+
* - 'page' : Drawer flows inside its parent (current behavior).
|
|
13
|
+
* The parent decides where the drawer lives.
|
|
14
|
+
* - 'canvas' : Drawer floats over the parent — it becomes
|
|
15
|
+
* `position: absolute` and a clickable backdrop is
|
|
16
|
+
* rendered behind it. The backdrop fills the parent
|
|
17
|
+
* only, not the whole page, so it never covers tool-
|
|
18
|
+
* bars or sidebars that live outside the canvas.
|
|
19
|
+
* Default 'page'.
|
|
20
|
+
*/
|
|
21
|
+
scope?: 'page' | 'canvas';
|
|
22
|
+
/** Hide the close (×) button. Useful when the host wires keyboard
|
|
23
|
+
* or another control to close. */
|
|
24
|
+
closable?: boolean;
|
|
25
|
+
/** Dismiss the drawer by clicking the backdrop. Default true. */
|
|
26
|
+
closeOnBackdrop?: boolean;
|
|
10
27
|
};
|
|
11
|
-
declare var
|
|
28
|
+
declare var __VLS_9: {}, __VLS_11: {}, __VLS_17: {}, __VLS_19: {};
|
|
12
29
|
type __VLS_Slots = {} & {
|
|
13
|
-
header?: (props: typeof
|
|
30
|
+
header?: (props: typeof __VLS_9) => any;
|
|
14
31
|
} & {
|
|
15
|
-
default?: (props: typeof
|
|
32
|
+
default?: (props: typeof __VLS_11) => any;
|
|
33
|
+
} & {
|
|
34
|
+
header?: (props: typeof __VLS_17) => any;
|
|
35
|
+
} & {
|
|
36
|
+
default?: (props: typeof __VLS_19) => any;
|
|
16
37
|
};
|
|
17
38
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
39
|
"update:open": (value: boolean) => any;
|
|
@@ -23,6 +44,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
23
44
|
width: number;
|
|
24
45
|
side: "left" | "right";
|
|
25
46
|
open: boolean;
|
|
47
|
+
scope: "page" | "canvas";
|
|
48
|
+
closable: boolean;
|
|
49
|
+
closeOnBackdrop: boolean;
|
|
26
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
51
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
52
|
export default _default;
|
|
@@ -46,6 +46,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
|
46
46
|
setNodeText: (nodeId: string, text: string) => void;
|
|
47
47
|
moveNode: (srcId: string, targetId: string, position: "before" | "after" | "child") => boolean;
|
|
48
48
|
getData: () => MindMapNode;
|
|
49
|
+
nodeHasContent: (id: string) => boolean;
|
|
49
50
|
setData: (data: MindMapNode) => void;
|
|
50
51
|
resetView: () => void;
|
|
51
52
|
exportData: () => string;
|