mind-elixir 5.9.3 → 5.10.0-beta.1
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/LICENSE +21 -21
- package/dist/MindElixir.css +1 -1
- package/dist/MindElixir.iife.js +4 -4
- package/dist/MindElixir.js +610 -753
- package/dist/MindElixirLite.css +1 -1
- package/dist/MindElixirLite.iife.js +4 -4
- package/dist/MindElixirLite.js +232 -236
- package/dist/i18n.js +242 -0
- package/dist/types/docs.d.ts +2 -2
- package/dist/types/i18n.d.ts +19 -7
- package/dist/types/index.d.ts +2 -4
- package/dist/types/interact.d.ts +0 -8
- package/dist/types/methods.d.ts +0 -1
- package/dist/types/plugin/contextMenu.d.ts +2 -0
- package/dist/types/types/index.d.ts +13 -2
- package/package.json +104 -111
- package/readme.md +466 -466
package/dist/i18n.js
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
addChild: "插入子节点",
|
|
3
|
+
addParent: "插入父节点",
|
|
4
|
+
addSibling: "插入同级节点",
|
|
5
|
+
removeNode: "删除节点",
|
|
6
|
+
focus: "专注",
|
|
7
|
+
cancelFocus: "取消专注",
|
|
8
|
+
moveUp: "上移",
|
|
9
|
+
moveDown: "下移",
|
|
10
|
+
link: "连接",
|
|
11
|
+
linkBidirectional: "双向连接",
|
|
12
|
+
clickTips: "请点击目标节点",
|
|
13
|
+
summary: "摘要"
|
|
14
|
+
}, i = e, o = {
|
|
15
|
+
addChild: "插入子節點",
|
|
16
|
+
addParent: "插入父節點",
|
|
17
|
+
addSibling: "插入同級節點",
|
|
18
|
+
removeNode: "刪除節點",
|
|
19
|
+
focus: "專注",
|
|
20
|
+
cancelFocus: "取消專注",
|
|
21
|
+
moveUp: "上移",
|
|
22
|
+
moveDown: "下移",
|
|
23
|
+
link: "連接",
|
|
24
|
+
linkBidirectional: "雙向連接",
|
|
25
|
+
clickTips: "請點擊目標節點",
|
|
26
|
+
summary: "摘要"
|
|
27
|
+
}, n = {
|
|
28
|
+
addChild: "Add child",
|
|
29
|
+
addParent: "Add parent",
|
|
30
|
+
addSibling: "Add sibling",
|
|
31
|
+
removeNode: "Remove node",
|
|
32
|
+
focus: "Focus Mode",
|
|
33
|
+
cancelFocus: "Cancel Focus Mode",
|
|
34
|
+
moveUp: "Move up",
|
|
35
|
+
moveDown: "Move down",
|
|
36
|
+
link: "Link",
|
|
37
|
+
linkBidirectional: "Bidirectional Link",
|
|
38
|
+
clickTips: "Please click the target node",
|
|
39
|
+
summary: "Summary"
|
|
40
|
+
}, a = {
|
|
41
|
+
addChild: "Добавить дочерний элемент",
|
|
42
|
+
addParent: "Добавить родительский элемент",
|
|
43
|
+
addSibling: "Добавить на этом уровне",
|
|
44
|
+
removeNode: "Удалить узел",
|
|
45
|
+
focus: "Режим фокусировки",
|
|
46
|
+
cancelFocus: "Отменить режим фокусировки",
|
|
47
|
+
moveUp: "Поднять выше",
|
|
48
|
+
moveDown: "Опустить ниже",
|
|
49
|
+
link: "Ссылка",
|
|
50
|
+
linkBidirectional: "Двунаправленная ссылка",
|
|
51
|
+
clickTips: "Пожалуйста, нажмите на целевой узел",
|
|
52
|
+
summary: "Описание"
|
|
53
|
+
}, d = {
|
|
54
|
+
addChild: "子ノードを追加する",
|
|
55
|
+
addParent: "親ノードを追加します",
|
|
56
|
+
addSibling: "兄弟ノードを追加する",
|
|
57
|
+
removeNode: "ノードを削除",
|
|
58
|
+
focus: "集中",
|
|
59
|
+
cancelFocus: "集中解除",
|
|
60
|
+
moveUp: "上へ移動",
|
|
61
|
+
moveDown: "下へ移動",
|
|
62
|
+
link: "コネクト",
|
|
63
|
+
linkBidirectional: "双方向リンク",
|
|
64
|
+
clickTips: "ターゲットノードをクリックしてください",
|
|
65
|
+
summary: "概要"
|
|
66
|
+
}, l = {
|
|
67
|
+
addChild: "Adicionar item filho",
|
|
68
|
+
addParent: "Adicionar item pai",
|
|
69
|
+
addSibling: "Adicionar item irmao",
|
|
70
|
+
removeNode: "Remover item",
|
|
71
|
+
focus: "Modo Foco",
|
|
72
|
+
cancelFocus: "Cancelar Modo Foco",
|
|
73
|
+
moveUp: "Mover para cima",
|
|
74
|
+
moveDown: "Mover para baixo",
|
|
75
|
+
link: "Link",
|
|
76
|
+
linkBidirectional: "Link bidirecional",
|
|
77
|
+
clickTips: "Favor clicar no item alvo",
|
|
78
|
+
summary: "Resumo"
|
|
79
|
+
}, c = {
|
|
80
|
+
addChild: "Aggiungi figlio",
|
|
81
|
+
addParent: "Aggiungi genitore",
|
|
82
|
+
addSibling: "Aggiungi fratello",
|
|
83
|
+
removeNode: "Rimuovi nodo",
|
|
84
|
+
focus: "Modalità Focus",
|
|
85
|
+
cancelFocus: "Annulla Modalità Focus",
|
|
86
|
+
moveUp: "Sposta su",
|
|
87
|
+
moveDown: "Sposta giù",
|
|
88
|
+
link: "Collega",
|
|
89
|
+
linkBidirectional: "Collegamento bidirezionale",
|
|
90
|
+
clickTips: "Si prega di fare clic sul nodo di destinazione",
|
|
91
|
+
summary: "Unisci nodi"
|
|
92
|
+
}, r = {
|
|
93
|
+
addChild: "Agregar hijo",
|
|
94
|
+
addParent: "Agregar padre",
|
|
95
|
+
addSibling: "Agregar hermano",
|
|
96
|
+
removeNode: "Eliminar nodo",
|
|
97
|
+
focus: "Modo Enfoque",
|
|
98
|
+
cancelFocus: "Cancelar Modo Enfoque",
|
|
99
|
+
moveUp: "Mover hacia arriba",
|
|
100
|
+
moveDown: "Mover hacia abajo",
|
|
101
|
+
link: "Enlace",
|
|
102
|
+
linkBidirectional: "Enlace bidireccional",
|
|
103
|
+
clickTips: "Por favor haga clic en el nodo de destino",
|
|
104
|
+
summary: "Resumen"
|
|
105
|
+
}, s = {
|
|
106
|
+
addChild: "Ajout enfant",
|
|
107
|
+
addParent: "Ajout parent",
|
|
108
|
+
addSibling: "Ajout voisin",
|
|
109
|
+
removeNode: "Supprimer",
|
|
110
|
+
focus: "Cibler",
|
|
111
|
+
cancelFocus: "Retour",
|
|
112
|
+
moveUp: "Monter",
|
|
113
|
+
moveDown: "Descendre",
|
|
114
|
+
link: "Lier",
|
|
115
|
+
linkBidirectional: "Lien bidirectionnel",
|
|
116
|
+
clickTips: "Cliquer sur le noeud cible",
|
|
117
|
+
summary: "Annoter"
|
|
118
|
+
}, t = {
|
|
119
|
+
addChild: "자식 추가",
|
|
120
|
+
addParent: "부모 추가",
|
|
121
|
+
addSibling: "형제 추가",
|
|
122
|
+
removeNode: "노드 삭제",
|
|
123
|
+
focus: "포커스 모드",
|
|
124
|
+
cancelFocus: "포커스 모드 취소",
|
|
125
|
+
moveUp: "위로 이동",
|
|
126
|
+
moveDown: "아래로 이동",
|
|
127
|
+
link: "연결",
|
|
128
|
+
linkBidirectional: "양방향 연결",
|
|
129
|
+
clickTips: "대상 노드를 클릭하십시오",
|
|
130
|
+
summary: "요약"
|
|
131
|
+
}, u = {
|
|
132
|
+
addChild: "Adaugă sub-nod",
|
|
133
|
+
addParent: "Adaugă nod părinte",
|
|
134
|
+
addSibling: "Adaugă nod la același nivel",
|
|
135
|
+
removeNode: "Șterge nodul",
|
|
136
|
+
focus: "Focalizare",
|
|
137
|
+
cancelFocus: "Anulează focalizarea",
|
|
138
|
+
moveUp: "Mută în sus",
|
|
139
|
+
moveDown: "Mută în jos",
|
|
140
|
+
link: "Creează legătură",
|
|
141
|
+
linkBidirectional: "Creează legătură bidirecțională",
|
|
142
|
+
clickTips: "Click pe nodul țintă",
|
|
143
|
+
summary: "Rezumat"
|
|
144
|
+
}, m = {
|
|
145
|
+
addChild: "Tilføj barn",
|
|
146
|
+
addParent: "Tilføj forælder",
|
|
147
|
+
addSibling: "Tilføj søskende",
|
|
148
|
+
removeNode: "Fjern node",
|
|
149
|
+
focus: "Fokus-tilstand",
|
|
150
|
+
cancelFocus: "Annuller fokus-tilstand",
|
|
151
|
+
moveUp: "Flyt op",
|
|
152
|
+
moveDown: "Flyt ned",
|
|
153
|
+
link: "Link",
|
|
154
|
+
linkBidirectional: "To-vejs link",
|
|
155
|
+
clickTips: "Klik på målknuden",
|
|
156
|
+
summary: "Resumé"
|
|
157
|
+
}, k = {
|
|
158
|
+
addChild: "Lisää lapsi",
|
|
159
|
+
addParent: "Lisää vanhempi",
|
|
160
|
+
addSibling: "Lisää sisarus",
|
|
161
|
+
removeNode: "Poista solmu",
|
|
162
|
+
focus: "Kohdistustila",
|
|
163
|
+
cancelFocus: "Peruuta kohdistustila",
|
|
164
|
+
moveUp: "Siirrä ylös",
|
|
165
|
+
moveDown: "Siirrä alas",
|
|
166
|
+
link: "Linkki",
|
|
167
|
+
linkBidirectional: "Kaksisuuntainen linkki",
|
|
168
|
+
clickTips: "Klikkaa kohdesolmua",
|
|
169
|
+
summary: "Yhteenveto"
|
|
170
|
+
}, v = {
|
|
171
|
+
addChild: "Kind hinzufügen",
|
|
172
|
+
addParent: "Eltern hinzufügen",
|
|
173
|
+
addSibling: "Geschwister hinzufügen",
|
|
174
|
+
removeNode: "Knoten entfernen",
|
|
175
|
+
focus: "Fokusmodus",
|
|
176
|
+
cancelFocus: "Fokusmodus abbrechen",
|
|
177
|
+
moveUp: "Nach oben verschieben",
|
|
178
|
+
moveDown: "Nach unten verschieben",
|
|
179
|
+
link: "Link",
|
|
180
|
+
linkBidirectional: "Zweiseitiger Link",
|
|
181
|
+
clickTips: "Bitte klicken Sie auf den Zielknoten",
|
|
182
|
+
summary: "Zusammenfassung"
|
|
183
|
+
}, g = {
|
|
184
|
+
addChild: "Kind toevoegen",
|
|
185
|
+
addParent: "Ouder toevoegen",
|
|
186
|
+
addSibling: "Broer/Zus toevoegen",
|
|
187
|
+
removeNode: "Knoop verwijderen",
|
|
188
|
+
focus: "Focusmodus",
|
|
189
|
+
cancelFocus: "Focusmodus annuleren",
|
|
190
|
+
moveUp: "Omhoog verplaatsen",
|
|
191
|
+
moveDown: "Omlaag verplaatsen",
|
|
192
|
+
link: "Link",
|
|
193
|
+
linkBidirectional: "Bidirectionele link",
|
|
194
|
+
clickTips: "Klik op de doelknoop",
|
|
195
|
+
summary: "Samenvatting"
|
|
196
|
+
}, p = {
|
|
197
|
+
addChild: "Legg til barn",
|
|
198
|
+
addParent: "Legg til forelder",
|
|
199
|
+
addSibling: "Legg til søsken",
|
|
200
|
+
removeNode: "Fjern node",
|
|
201
|
+
focus: "Fokusmodus",
|
|
202
|
+
cancelFocus: "Avbryt fokusmodus",
|
|
203
|
+
moveUp: "Flytt opp",
|
|
204
|
+
moveDown: "Flytt ned",
|
|
205
|
+
link: "Lenke",
|
|
206
|
+
linkBidirectional: "Toveis lenke",
|
|
207
|
+
clickTips: "Klikk på målnoden",
|
|
208
|
+
summary: "Sammendrag"
|
|
209
|
+
}, f = {
|
|
210
|
+
addChild: "Lägg till barn",
|
|
211
|
+
addParent: "Lägg till förälder",
|
|
212
|
+
addSibling: "Lägg till syskon",
|
|
213
|
+
removeNode: "Ta bort nod",
|
|
214
|
+
focus: "Fokusläge",
|
|
215
|
+
cancelFocus: "Avbryt fokusläge",
|
|
216
|
+
moveUp: "Flytta upp",
|
|
217
|
+
moveDown: "Flytta ner",
|
|
218
|
+
link: "Länk",
|
|
219
|
+
linkBidirectional: "Tvåvägslänk",
|
|
220
|
+
clickTips: "Klicka på målnoden",
|
|
221
|
+
summary: "Sammanfattning"
|
|
222
|
+
};
|
|
223
|
+
export {
|
|
224
|
+
e as cn,
|
|
225
|
+
m as da,
|
|
226
|
+
v as de,
|
|
227
|
+
n as en,
|
|
228
|
+
r as es,
|
|
229
|
+
k as fi,
|
|
230
|
+
s as fr,
|
|
231
|
+
c as it,
|
|
232
|
+
d as ja,
|
|
233
|
+
t as ko,
|
|
234
|
+
p as nb,
|
|
235
|
+
g as nl,
|
|
236
|
+
l as pt,
|
|
237
|
+
u as ro,
|
|
238
|
+
a as ru,
|
|
239
|
+
f as sv,
|
|
240
|
+
i as zh_CN,
|
|
241
|
+
o as zh_TW
|
|
242
|
+
};
|
package/dist/types/docs.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { MindElixirMethods } from './methods';
|
|
|
4
4
|
import type { Summary, SummarySvgGroup } from './summary';
|
|
5
5
|
import type { MindElixirData, MindElixirInstance, NodeObj, NodeObjExport, Options, Theme, TagObj } from './types';
|
|
6
6
|
import type { MainLineParams, SubLineParams } from './utils/generateBranch';
|
|
7
|
-
import type {
|
|
8
|
-
export { methods, Theme, Options, MindElixirMethods, MindElixirInstance, MindElixirData, NodeObj, NodeObjExport, Summary, SummarySvgGroup, Arrow, MainLineParams, SubLineParams,
|
|
7
|
+
import type { LangPack } from './i18n';
|
|
8
|
+
export { methods, Theme, Options, MindElixirMethods, MindElixirInstance, MindElixirData, NodeObj, NodeObjExport, Summary, SummarySvgGroup, Arrow, MainLineParams, SubLineParams, LangPack, TagObj, };
|
|
9
9
|
export type * from './types/dom';
|
|
10
10
|
export type * from './utils/pubsub';
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type LangPack = {
|
|
1
|
+
export type LangPack = {
|
|
2
2
|
addChild: string;
|
|
3
3
|
addParent: string;
|
|
4
4
|
addSibling: string;
|
|
@@ -12,9 +12,21 @@ type LangPack = {
|
|
|
12
12
|
clickTips: string;
|
|
13
13
|
summary: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
declare const
|
|
20
|
-
export
|
|
15
|
+
export declare const cn: LangPack;
|
|
16
|
+
export declare const zh_CN: LangPack;
|
|
17
|
+
export declare const zh_TW: LangPack;
|
|
18
|
+
export declare const en: LangPack;
|
|
19
|
+
export declare const ru: LangPack;
|
|
20
|
+
export declare const ja: LangPack;
|
|
21
|
+
export declare const pt: LangPack;
|
|
22
|
+
export declare const it: LangPack;
|
|
23
|
+
export declare const es: LangPack;
|
|
24
|
+
export declare const fr: LangPack;
|
|
25
|
+
export declare const ko: LangPack;
|
|
26
|
+
export declare const ro: LangPack;
|
|
27
|
+
export declare const da: LangPack;
|
|
28
|
+
export declare const fi: LangPack;
|
|
29
|
+
export declare const de: LangPack;
|
|
30
|
+
export declare const nl: LangPack;
|
|
31
|
+
export declare const nb: LangPack;
|
|
32
|
+
export declare const sv: LangPack;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import './markdown.css';
|
|
|
3
3
|
import { LEFT, RIGHT, SIDE, DARK_THEME, THEME } from './const';
|
|
4
4
|
import type { MindElixirData, MindElixirInstance, MindElixirMethods, Options } from './types/index';
|
|
5
5
|
import type { Topic } from './docs';
|
|
6
|
-
declare function MindElixir(this: MindElixirInstance, { el, direction,
|
|
6
|
+
declare function MindElixir(this: MindElixirInstance, { el, direction, editable, contextMenu, toolBar, keypress, mouseSelectionButton, selectionContainer, before, newTopicName, allowUndo, generateMainBranch, generateSubBranch, overflowHidden, theme, alignment, scaleSensitivity, scaleMax, scaleMin, handleWheel, markdown, imageProxy, pasteHandler, }: Options): void;
|
|
7
7
|
declare namespace MindElixir {
|
|
8
8
|
export var prototype: {
|
|
9
9
|
init(this: MindElixirInstance, data: MindElixirData): Error | undefined;
|
|
@@ -49,8 +49,7 @@ declare namespace MindElixir {
|
|
|
49
49
|
getDataString: (this: MindElixirInstance) => string;
|
|
50
50
|
getData: (this: MindElixirInstance) => MindElixirData;
|
|
51
51
|
enableEdit: (this: MindElixirInstance) => void;
|
|
52
|
-
disableEdit: (
|
|
53
|
-
this: MindElixirInstance) => void;
|
|
52
|
+
disableEdit: (this: MindElixirInstance) => void;
|
|
54
53
|
scale: (this: MindElixirInstance, scaleVal: number, offset?: {
|
|
55
54
|
x: number;
|
|
56
55
|
y: number;
|
|
@@ -64,7 +63,6 @@ declare namespace MindElixir {
|
|
|
64
63
|
initLeft: (this: MindElixirInstance) => void;
|
|
65
64
|
initRight: (this: MindElixirInstance) => void;
|
|
66
65
|
initSide: (this: MindElixirInstance) => void;
|
|
67
|
-
setLocale: (this: MindElixirInstance, locale: import("./i18n").Locale) => void;
|
|
68
66
|
expandNode: (this: MindElixirInstance, el: Topic, isExpand?: boolean) => void;
|
|
69
67
|
expandNodeAll: (this: MindElixirInstance, el: Topic, isExpand?: boolean) => void;
|
|
70
68
|
refresh: (this: MindElixirInstance, data?: MindElixirData) => void;
|
package/dist/types/interact.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Locale } from './i18n';
|
|
2
1
|
import type { Topic } from './types/dom';
|
|
3
2
|
import type { MindElixirData, MindElixirInstance } from './types/index';
|
|
4
3
|
export declare const scrollIntoView: (this: MindElixirInstance, el: HTMLElement) => void;
|
|
@@ -116,13 +115,6 @@ export declare const initRight: (this: MindElixirInstance) => void;
|
|
|
116
115
|
* @memberof MapInteraction
|
|
117
116
|
*/
|
|
118
117
|
export declare const initSide: (this: MindElixirInstance) => void;
|
|
119
|
-
/**
|
|
120
|
-
* @function
|
|
121
|
-
* @instance
|
|
122
|
-
* @name setLocale
|
|
123
|
-
* @memberof MapInteraction
|
|
124
|
-
*/
|
|
125
|
-
export declare const setLocale: (this: MindElixirInstance, locale: Locale) => void;
|
|
126
118
|
export declare const expandNode: (this: MindElixirInstance, el: Topic, isExpand?: boolean) => void;
|
|
127
119
|
export declare const expandNodeAll: (this: MindElixirInstance, el: Topic, isExpand?: boolean) => void;
|
|
128
120
|
/**
|
package/dist/types/methods.d.ts
CHANGED
|
@@ -68,7 +68,6 @@ declare const methods: {
|
|
|
68
68
|
initLeft: (this: MindElixirInstance) => void;
|
|
69
69
|
initRight: (this: MindElixirInstance) => void;
|
|
70
70
|
initSide: (this: MindElixirInstance) => void;
|
|
71
|
-
setLocale: (this: MindElixirInstance, locale: import("./i18n").Locale) => void;
|
|
72
71
|
expandNode: (this: MindElixirInstance, el: import("./docs").Topic, isExpand?: boolean) => void;
|
|
73
72
|
expandNodeAll: (this: MindElixirInstance, el: import("./docs").Topic, isExpand?: boolean) => void;
|
|
74
73
|
refresh: (this: MindElixirInstance, data?: MindElixirData) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MindElixirInstance } from '../types/index';
|
|
2
2
|
import './contextMenu.less';
|
|
3
|
+
import type { LangPack } from '../i18n';
|
|
3
4
|
export type ContextMenuOption = {
|
|
4
5
|
focus?: boolean;
|
|
5
6
|
link?: boolean;
|
|
@@ -8,5 +9,6 @@ export type ContextMenuOption = {
|
|
|
8
9
|
key?: string;
|
|
9
10
|
onclick: (e: MouseEvent) => void;
|
|
10
11
|
}[];
|
|
12
|
+
locale?: LangPack;
|
|
11
13
|
};
|
|
12
14
|
export default function (mind: MindElixirInstance, option: true | ContextMenuOption): () => void;
|
|
@@ -5,7 +5,6 @@ import type { LinkDragMoveHelperInstance } from '../utils/LinkDragMoveHelper';
|
|
|
5
5
|
import type { Arrow } from '../arrow';
|
|
6
6
|
import type { Summary, SummarySvgGroup } from '../summary';
|
|
7
7
|
import type { MainLineParams, SubLineParams } from '../utils/generateBranch';
|
|
8
|
-
import type { Locale } from '../i18n';
|
|
9
8
|
import type { ContextMenuOption } from '../plugin/contextMenu';
|
|
10
9
|
import type { createDragMoveHelper } from '../utils/dragMoveHelper';
|
|
11
10
|
import type SelectionArea from '../viselect/src';
|
|
@@ -109,6 +108,15 @@ export interface MindElixirInstance extends Omit<Required<Options>, 'markdown' |
|
|
|
109
108
|
history: Operation[];
|
|
110
109
|
undo: () => void;
|
|
111
110
|
redo: () => void;
|
|
111
|
+
/**
|
|
112
|
+
* Reset the undo/redo stack and update the internal baseline snapshot to the
|
|
113
|
+
* current diagram state. Call this after loading new data into an existing
|
|
114
|
+
* instance (e.g. after `refresh()`) to prevent users from undoing back into
|
|
115
|
+
* a previously loaded diagram.
|
|
116
|
+
*
|
|
117
|
+
* Only available when `allowUndo` is `true` (the default).
|
|
118
|
+
*/
|
|
119
|
+
clearHistory?: () => void;
|
|
112
120
|
selection: SelectionArea;
|
|
113
121
|
dragMoveHelper: ReturnType<typeof createDragMoveHelper>;
|
|
114
122
|
}
|
|
@@ -121,7 +129,10 @@ type PathString = string;
|
|
|
121
129
|
export interface Options {
|
|
122
130
|
el: string | HTMLElement;
|
|
123
131
|
direction?: 0 | 1 | 2;
|
|
124
|
-
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Use `contextMenu.locale` instead.
|
|
134
|
+
*/
|
|
135
|
+
locale?: string;
|
|
125
136
|
/**
|
|
126
137
|
* @deprecated Use `editable` instead
|
|
127
138
|
*/
|
package/package.json
CHANGED
|
@@ -1,112 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mind-elixir",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "Mind elixir is a free open source mind map core.",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"mind-elixir",
|
|
8
|
-
"mindmap",
|
|
9
|
-
"dom",
|
|
10
|
-
"visualization"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"test": "playwright test",
|
|
20
|
-
"test:
|
|
21
|
-
"test:
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"doc": "api-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"./
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"./
|
|
52
|
-
"types": "./dist/types/
|
|
53
|
-
"import": "./dist/
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@eslint/
|
|
85
|
-
"@eslint/
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
"prettier": "3.6.2",
|
|
106
|
-
"rimraf": "^6.0.1",
|
|
107
|
-
"simple-markdown-to-html": "^1.0.0",
|
|
108
|
-
"typescript": "^5.9.2",
|
|
109
|
-
"vite": "^7.1.7",
|
|
110
|
-
"vite-plugin-istanbul": "^7.2.0"
|
|
111
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mind-elixir",
|
|
3
|
+
"version": "5.10.0-beta.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Mind elixir is a free open source mind map core.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"mind-elixir",
|
|
8
|
+
"mindmap",
|
|
9
|
+
"dom",
|
|
10
|
+
"visualization"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"lint": "eslint --cache --max-warnings 0 \"src/**/*.{js,json,ts}\" --fix",
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "node build.js && tsc",
|
|
16
|
+
"tsc": "tsc",
|
|
17
|
+
"preview": "vite preview",
|
|
18
|
+
"test": "playwright test",
|
|
19
|
+
"test:ui": "playwright test --ui",
|
|
20
|
+
"test:clean": "rimraf .nyc_output coverage",
|
|
21
|
+
"test:coverage": "pnpm test:clean && pnpm test && pnpm nyc && npx http-server ./coverage",
|
|
22
|
+
"nyc": "nyc report --reporter=html",
|
|
23
|
+
"doc": "api-extractor run --local --verbose",
|
|
24
|
+
"doc:md": "api-documenter markdown --input-folder ./api --output-folder ./md",
|
|
25
|
+
"beta": "npm run build && npm publish --tag beta"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/types/index.d.ts",
|
|
30
|
+
"import": "./dist/MindElixir.js"
|
|
31
|
+
},
|
|
32
|
+
"./lite": {
|
|
33
|
+
"import": "./dist/MindElixirLite.iife.js"
|
|
34
|
+
},
|
|
35
|
+
"./example": {
|
|
36
|
+
"types": "./dist/types/exampleData/1.d.ts",
|
|
37
|
+
"import": "./dist/example.js"
|
|
38
|
+
},
|
|
39
|
+
"./LayoutSsr": {
|
|
40
|
+
"types": "./dist/types/utils/LayoutSsr.d.ts",
|
|
41
|
+
"import": "./dist/LayoutSsr.js"
|
|
42
|
+
},
|
|
43
|
+
"./readme.md": "./readme.md",
|
|
44
|
+
"./package.json": "./package.json",
|
|
45
|
+
"./style": "./dist/MindElixir.css",
|
|
46
|
+
"./style.css": "./dist/MindElixir.css",
|
|
47
|
+
"./plaintextConverter": {
|
|
48
|
+
"types": "./dist/types/utils/plaintextConverter.d.ts",
|
|
49
|
+
"import": "./dist/PlaintextConverter.js"
|
|
50
|
+
},
|
|
51
|
+
"./i18n": {
|
|
52
|
+
"types": "./dist/types/i18n.d.ts",
|
|
53
|
+
"import": "./dist/i18n.js"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"main": "dist/MindElixir.js",
|
|
57
|
+
"types": "dist/types/index.d.ts",
|
|
58
|
+
"lint-staged": {
|
|
59
|
+
"src/**/*.{ts,js}": [
|
|
60
|
+
"eslint --cache --fix"
|
|
61
|
+
],
|
|
62
|
+
"src/**/*.{json,less}": [
|
|
63
|
+
"prettier --write"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"package.json",
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"repository": "github:SSShooter/mind-elixir-core",
|
|
71
|
+
"homepage": "https://mind-elixir.com/",
|
|
72
|
+
"author": "ssshooter",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@commitlint/cli": "^20.0.0",
|
|
76
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
77
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
78
|
+
"@eslint/js": "^9.36.0",
|
|
79
|
+
"@microsoft/api-documenter": "^7.26.34",
|
|
80
|
+
"@microsoft/api-extractor": "^7.52.13",
|
|
81
|
+
"@playwright/test": "^1.58.0",
|
|
82
|
+
"@rollup/plugin-strip": "^3.0.4",
|
|
83
|
+
"@types/node": "^24.5.2",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
85
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
86
|
+
"@viselect/vanilla": "3.9.0",
|
|
87
|
+
"@zumer/snapdom": "^1.9.11",
|
|
88
|
+
"eslint": "^9.36.0",
|
|
89
|
+
"eslint-config-prettier": "^10.1.8",
|
|
90
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
91
|
+
"globals": "^16.4.0",
|
|
92
|
+
"husky": "^9.1.7",
|
|
93
|
+
"katex": "^0.16.22",
|
|
94
|
+
"less": "^4.4.1",
|
|
95
|
+
"lint-staged": "^16.2.1",
|
|
96
|
+
"marked": "^16.3.0",
|
|
97
|
+
"nyc": "^17.1.0",
|
|
98
|
+
"prettier": "3.6.2",
|
|
99
|
+
"rimraf": "^6.0.1",
|
|
100
|
+
"simple-markdown-to-html": "^1.0.0",
|
|
101
|
+
"typescript": "^5.9.2",
|
|
102
|
+
"vite": "^7.1.7",
|
|
103
|
+
"vite-plugin-istanbul": "^7.2.0"
|
|
104
|
+
}
|
|
112
105
|
}
|