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.
@@ -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, mobileMenu, theme, }: Options): void;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mind-elixir",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "type": "module",
5
5
  "description": "Mind elixir is a free open source mind map core.",
6
6
  "keywords": [
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>
@@ -1,3 +0,0 @@
1
- import type { MindElixirInstance } from '../types/index';
2
- import './mobileMenu.less';
3
- export default function (mind: MindElixirInstance, option?: any): void;