mind-elixir 4.2.2 → 4.2.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/MindElixir.iife.js +11 -7
- package/dist/MindElixir.js +398 -428
- package/dist/MindElixirLite.iife.js +11 -5
- package/dist/MindElixirLite.js +156 -149
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/index.d.ts +3 -4
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/types/plugin/mobileMenu.d.ts +0 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { findEle } from './utils/dom';
|
|
|
5
5
|
export * from './types/index';
|
|
6
6
|
export * from './types/dom';
|
|
7
7
|
import type { MindElixirData, MindElixirInstance, MindElixirMethods, Options } from './types/index';
|
|
8
|
-
declare function MindElixir(this: MindElixirInstance, { el, direction, locale, draggable, editable, contextMenu, contextMenuOption, toolBar, keypress, mouseSelectionButton, selectionContainer, before, newTopicName, allowUndo, generateMainBranch, generateSubBranch, overflowHidden,
|
|
8
|
+
declare function MindElixir(this: MindElixirInstance, { el, direction, locale, draggable, editable, contextMenu, contextMenuOption, toolBar, keypress, mouseSelectionButton, selectionContainer, before, newTopicName, allowUndo, generateMainBranch, generateSubBranch, overflowHidden, theme, }: Options): void;
|
|
9
9
|
declare namespace MindElixir {
|
|
10
10
|
export var prototype: {
|
|
11
11
|
init(this: MindElixirInstance, data: MindElixirData): Error | undefined;
|
|
@@ -21,13 +21,14 @@ export type Theme = {
|
|
|
21
21
|
'--color': string;
|
|
22
22
|
'--bgcolor': string;
|
|
23
23
|
'--selected': string;
|
|
24
|
-
'--panel-color': string;
|
|
25
|
-
'--panel-bgcolor': string;
|
|
26
24
|
'--root-color': string;
|
|
27
25
|
'--root-bgcolor': string;
|
|
26
|
+
'--root-border-color': string;
|
|
28
27
|
'--root-radius': string;
|
|
29
28
|
'--main-radius': string;
|
|
30
29
|
'--topic-padding': string;
|
|
30
|
+
'--panel-color': string;
|
|
31
|
+
'--panel-bgcolor': string;
|
|
31
32
|
'--panel-border-color': string;
|
|
32
33
|
}>;
|
|
33
34
|
};
|
|
@@ -68,7 +69,6 @@ export interface MindElixirInstance extends MindElixirMethods {
|
|
|
68
69
|
overflowHidden: boolean;
|
|
69
70
|
mainBranchStyle: number;
|
|
70
71
|
subBranchStyle: number;
|
|
71
|
-
mobileMenu: boolean;
|
|
72
72
|
generateMainBranch: (params: MainLineParams) => PathString;
|
|
73
73
|
generateSubBranch: (params: SubLineParams) => PathString;
|
|
74
74
|
container: HTMLElement;
|
|
@@ -121,7 +121,6 @@ export type Options = {
|
|
|
121
121
|
overflowHidden?: boolean;
|
|
122
122
|
generateMainBranch?: (this: MindElixirInstance, params: MainLineParams) => PathString;
|
|
123
123
|
generateSubBranch?: (this: MindElixirInstance, params: SubLineParams) => PathString;
|
|
124
|
-
mobileMenu?: boolean;
|
|
125
124
|
theme?: Theme;
|
|
126
125
|
nodeMenu?: boolean;
|
|
127
126
|
selectionContainer?: string | HTMLElement;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -33,13 +33,13 @@ Features:
|
|
|
33
33
|
- High performance
|
|
34
34
|
- Framework agnostic
|
|
35
35
|
- Pluginable
|
|
36
|
-
- Export as SVG or PNG
|
|
37
36
|
- Build-in drag and drop / node edit plugin
|
|
37
|
+
- Export as SVG / PNG / Html
|
|
38
38
|
- Summarize nodes
|
|
39
39
|
- Bulk operations supported
|
|
40
40
|
- Undo / Redo
|
|
41
41
|
- Efficient shortcuts
|
|
42
|
-
- Styling your node with CSS
|
|
42
|
+
- Easily Styling your node with CSS
|
|
43
43
|
|
|
44
44
|
<details>
|
|
45
45
|
<summary>Table of Contents</summary>
|