mind-elixir 5.0.3 → 5.0.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 +4 -4
- package/dist/MindElixir.js +715 -685
- package/dist/MindElixirLite.iife.js +4 -4
- package/dist/MindElixirLite.js +323 -316
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/MindElixirLite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const J = {
|
|
2
2
|
name: "Latte",
|
|
3
3
|
type: "light",
|
|
4
4
|
palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
|
|
@@ -23,7 +23,7 @@ const K = {
|
|
|
23
23
|
"--panel-border-color": "#eaeaea",
|
|
24
24
|
"--map-padding": "50px"
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, Q = {
|
|
27
27
|
name: "Dark",
|
|
28
28
|
type: "dark",
|
|
29
29
|
palette: ["#848FA0", "#748BE9", "#D2F9FE", "#4145A5", "#789AFA", "#706CF4", "#EF987F", "#775DD5", "#FCEECF", "#DA7FBC"],
|
|
@@ -49,7 +49,7 @@ const K = {
|
|
|
49
49
|
"--map-padding": "50px 80px"
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
function
|
|
52
|
+
function st(t) {
|
|
53
53
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);
|
|
54
54
|
}
|
|
55
55
|
const Y = function(t, e) {
|
|
@@ -64,10 +64,21 @@ const Y = function(t, e) {
|
|
|
64
64
|
return null;
|
|
65
65
|
} else
|
|
66
66
|
return null;
|
|
67
|
-
},
|
|
67
|
+
}, Z = (t, e) => {
|
|
68
68
|
if (t.parent = e, t.children)
|
|
69
69
|
for (let n = 0; n < t.children.length; n++)
|
|
70
|
-
|
|
70
|
+
Z(t.children[n], t);
|
|
71
|
+
}, K = (t, e, n) => {
|
|
72
|
+
if (t.expanded = e, t.children)
|
|
73
|
+
if (n === void 0 || n > 0) {
|
|
74
|
+
const o = n !== void 0 ? n - 1 : void 0;
|
|
75
|
+
t.children.forEach((i) => {
|
|
76
|
+
K(i, e, o);
|
|
77
|
+
});
|
|
78
|
+
} else
|
|
79
|
+
t.children.forEach((o) => {
|
|
80
|
+
K(o, !1);
|
|
81
|
+
});
|
|
71
82
|
};
|
|
72
83
|
function R(t, e, n, o) {
|
|
73
84
|
const i = o - e, s = t - n;
|
|
@@ -86,7 +97,7 @@ function R(t, e, n, o) {
|
|
|
86
97
|
function V() {
|
|
87
98
|
return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
|
|
88
99
|
}
|
|
89
|
-
const
|
|
100
|
+
const Et = function() {
|
|
90
101
|
const t = V();
|
|
91
102
|
return {
|
|
92
103
|
topic: this.newTopicName,
|
|
@@ -97,13 +108,13 @@ const St = function() {
|
|
|
97
108
|
for (; e && e !== t; )
|
|
98
109
|
n += e.offsetLeft, o += e.offsetTop, e = e.offsetParent;
|
|
99
110
|
return { offsetLeft: n, offsetTop: o };
|
|
100
|
-
},
|
|
111
|
+
}, y = (t, e) => {
|
|
101
112
|
for (const n in e)
|
|
102
113
|
t.setAttribute(n, e[n]);
|
|
103
|
-
},
|
|
114
|
+
}, rt = (t) => t ? t.tagName === "ME-TPC" : !1, pt = (t) => {
|
|
104
115
|
const e = /translate\(([^,]+),\s*([^)]+)\)/, n = t.match(e);
|
|
105
116
|
return n ? { x: parseFloat(n[1]), y: parseFloat(n[2]) } : { x: 0, y: 0 };
|
|
106
|
-
},
|
|
117
|
+
}, ut = function(t) {
|
|
107
118
|
for (let e = 0; e < t.length; e++) {
|
|
108
119
|
const { dom: n, evt: o, func: i } = t[e];
|
|
109
120
|
n.addEventListener(o, i);
|
|
@@ -115,22 +126,18 @@ const St = function() {
|
|
|
115
126
|
}
|
|
116
127
|
};
|
|
117
128
|
};
|
|
118
|
-
var
|
|
119
|
-
const
|
|
129
|
+
var H = /* @__PURE__ */ ((t) => (t.LHS = "lhs", t.RHS = "rhs", t))(H || {});
|
|
130
|
+
const ct = function(t, e, n) {
|
|
120
131
|
const { scaleVal: o, scaleSensitivity: i } = t;
|
|
121
132
|
switch (e) {
|
|
122
133
|
case "in":
|
|
123
|
-
if (o > 1.6)
|
|
124
|
-
return;
|
|
125
134
|
t.scale(o + i, n);
|
|
126
135
|
break;
|
|
127
136
|
case "out":
|
|
128
|
-
if (o < 0.6)
|
|
129
|
-
return;
|
|
130
137
|
t.scale(o - i, n);
|
|
131
138
|
}
|
|
132
139
|
};
|
|
133
|
-
function
|
|
140
|
+
function Tt(t) {
|
|
134
141
|
const { dragMoveHelper: e } = t, n = (l) => {
|
|
135
142
|
var m, w, x;
|
|
136
143
|
if (l.button !== 0)
|
|
@@ -161,7 +168,7 @@ function Et(t) {
|
|
|
161
168
|
if (!t.editable)
|
|
162
169
|
return;
|
|
163
170
|
const c = l.target;
|
|
164
|
-
|
|
171
|
+
rt(c) && t.beginEdit(c);
|
|
165
172
|
const h = (m = c.parentElement) == null ? void 0 : m.parentElement;
|
|
166
173
|
h.getAttribute("class") === "topiclinks" ? t.editArrowLabel(c.parentElement) : h.getAttribute("class") === "summary" && t.editSummary(c.parentElement);
|
|
167
174
|
};
|
|
@@ -195,13 +202,13 @@ function Et(t) {
|
|
|
195
202
|
if (l.preventDefault(), l.button !== 2 || !t.editable)
|
|
196
203
|
return;
|
|
197
204
|
const c = l.target;
|
|
198
|
-
|
|
205
|
+
rt(c) && !c.classList.contains("selected") && t.selectNode(c), setTimeout(() => {
|
|
199
206
|
t.dragMoveHelper.moved || t.bus.fire("showContextMenu", l);
|
|
200
207
|
}, 200);
|
|
201
208
|
}, p = (l) => {
|
|
202
|
-
l.stopPropagation(), l.preventDefault(), l.ctrlKey || l.metaKey ? l.deltaY < 0 ?
|
|
209
|
+
l.stopPropagation(), l.preventDefault(), l.ctrlKey || l.metaKey ? l.deltaY < 0 ? ct(t, "in", t.dragMoveHelper) : t.scaleVal - t.scaleSensitivity > 0 && ct(t, "out", t.dragMoveHelper) : l.shiftKey ? t.move(-l.deltaY, 0) : (t.map.style.transition = "none", t.move(-l.deltaX, -l.deltaY), t.map.style.transition = "transform 0.3s");
|
|
203
210
|
}, { container: u } = t;
|
|
204
|
-
return
|
|
211
|
+
return ut([
|
|
205
212
|
{ dom: u, evt: "pointerdown", func: r },
|
|
206
213
|
{ dom: u, evt: "pointermove", func: a },
|
|
207
214
|
{ dom: u, evt: "pointerup", func: f },
|
|
@@ -212,7 +219,7 @@ function Et(t) {
|
|
|
212
219
|
{ dom: u, evt: "wheel", func: typeof t.handleWheel == "function" ? t.handleWheel : p }
|
|
213
220
|
]);
|
|
214
221
|
}
|
|
215
|
-
function
|
|
222
|
+
function Lt() {
|
|
216
223
|
return {
|
|
217
224
|
handlers: {},
|
|
218
225
|
addListener: function(t, e) {
|
|
@@ -237,10 +244,10 @@ function Tt() {
|
|
|
237
244
|
}
|
|
238
245
|
};
|
|
239
246
|
}
|
|
240
|
-
const X = document,
|
|
247
|
+
const X = document, kt = function() {
|
|
241
248
|
this.nodes.innerHTML = "";
|
|
242
249
|
const t = this.createTopic(this.nodeData);
|
|
243
|
-
|
|
250
|
+
mt(t, this.nodeData), t.draggable = !1;
|
|
244
251
|
const e = X.createElement("me-root");
|
|
245
252
|
e.appendChild(t);
|
|
246
253
|
const n = this.nodeData.children || [];
|
|
@@ -250,30 +257,30 @@ const X = document, Lt = function() {
|
|
|
250
257
|
s.direction === 0 ? o += 1 : s.direction === 1 ? i += 1 : o <= i ? (s.direction = 0, o += 1) : (s.direction = 1, i += 1);
|
|
251
258
|
});
|
|
252
259
|
}
|
|
253
|
-
|
|
254
|
-
},
|
|
260
|
+
$t(this, n, e);
|
|
261
|
+
}, $t = function(t, e, n) {
|
|
255
262
|
const o = X.createElement("me-main");
|
|
256
|
-
o.className =
|
|
263
|
+
o.className = H.LHS;
|
|
257
264
|
const i = X.createElement("me-main");
|
|
258
|
-
i.className =
|
|
265
|
+
i.className = H.RHS;
|
|
259
266
|
for (let s = 0; s < e.length; s++) {
|
|
260
267
|
const r = e[s], { grp: a } = t.createWrapper(r);
|
|
261
268
|
t.direction === 2 ? r.direction === 0 ? o.appendChild(a) : i.appendChild(a) : t.direction === 0 ? o.appendChild(a) : i.appendChild(a);
|
|
262
269
|
}
|
|
263
270
|
t.nodes.appendChild(o), t.nodes.appendChild(n), t.nodes.appendChild(i), t.nodes.appendChild(t.lines);
|
|
264
|
-
},
|
|
271
|
+
}, Mt = function(t, e) {
|
|
265
272
|
const n = X.createElement("me-children");
|
|
266
273
|
for (let o = 0; o < e.length; o++) {
|
|
267
274
|
const i = e[o], { grp: s } = t.createWrapper(i);
|
|
268
275
|
n.appendChild(s);
|
|
269
276
|
}
|
|
270
277
|
return n;
|
|
271
|
-
}, k = document,
|
|
278
|
+
}, k = document, gt = function(t, e) {
|
|
272
279
|
const o = (this != null && this.el ? this.el : e || document).querySelector(`[data-nodeid="me${t}"]`);
|
|
273
280
|
if (!o)
|
|
274
281
|
throw new Error(`FindEle: Node ${t} not found, maybe it's collapsed.`);
|
|
275
282
|
return o;
|
|
276
|
-
},
|
|
283
|
+
}, mt = function(t, e) {
|
|
277
284
|
if (t.innerHTML = "", e.style) {
|
|
278
285
|
const n = e.style;
|
|
279
286
|
for (const o in n)
|
|
@@ -302,41 +309,41 @@ const X = document, Lt = function() {
|
|
|
302
309
|
t.link && (t.link = void 0);
|
|
303
310
|
if (e.icons && e.icons.length) {
|
|
304
311
|
const n = k.createElement("span");
|
|
305
|
-
n.className = "icons", n.innerHTML = e.icons.map((o) => `<span>${
|
|
312
|
+
n.className = "icons", n.innerHTML = e.icons.map((o) => `<span>${st(o)}</span>`).join(""), t.appendChild(n), t.icons = n;
|
|
306
313
|
} else
|
|
307
314
|
t.icons && (t.icons = void 0);
|
|
308
315
|
if (e.tags && e.tags.length) {
|
|
309
316
|
const n = k.createElement("div");
|
|
310
|
-
n.className = "tags", n.innerHTML = e.tags.map((o) => `<span>${
|
|
317
|
+
n.className = "tags", n.innerHTML = e.tags.map((o) => `<span>${st(o)}</span>`).join(""), t.appendChild(n), t.tags = n;
|
|
311
318
|
} else
|
|
312
319
|
t.tags && (t.tags = void 0);
|
|
313
320
|
}, At = function(t, e) {
|
|
314
321
|
const n = k.createElement("me-wrapper"), { p: o, tpc: i } = this.createParent(t);
|
|
315
322
|
if (n.appendChild(o), !e && t.children && t.children.length > 0) {
|
|
316
|
-
const s =
|
|
323
|
+
const s = Bt(t.expanded);
|
|
317
324
|
if (o.appendChild(s), t.expanded !== !1) {
|
|
318
|
-
const r =
|
|
325
|
+
const r = Mt(this, t.children);
|
|
319
326
|
n.appendChild(r);
|
|
320
327
|
}
|
|
321
328
|
}
|
|
322
329
|
return { grp: n, top: o, tpc: i };
|
|
323
330
|
}, Dt = function(t) {
|
|
324
331
|
const e = k.createElement("me-parent"), n = this.createTopic(t);
|
|
325
|
-
return
|
|
326
|
-
},
|
|
332
|
+
return mt(n, t), e.appendChild(n), { p: e, tpc: n };
|
|
333
|
+
}, Nt = function(t) {
|
|
327
334
|
const e = k.createElement("me-children");
|
|
328
335
|
return e.append(...t), e;
|
|
329
|
-
},
|
|
336
|
+
}, Pt = function(t) {
|
|
330
337
|
const e = k.createElement("me-tpc");
|
|
331
338
|
return e.nodeObj = t, e.dataset.nodeid = "me" + t.id, e.draggable = this.draggable, e;
|
|
332
339
|
};
|
|
333
|
-
function
|
|
340
|
+
function wt(t) {
|
|
334
341
|
const e = k.createRange();
|
|
335
342
|
e.selectNodeContents(t);
|
|
336
343
|
const n = window.getSelection();
|
|
337
344
|
n && (n.removeAllRanges(), n.addRange(e));
|
|
338
345
|
}
|
|
339
|
-
const
|
|
346
|
+
const Ht = function(t) {
|
|
340
347
|
if (!t)
|
|
341
348
|
return;
|
|
342
349
|
const e = k.createElement("div"), n = t.text.textContent;
|
|
@@ -348,7 +355,7 @@ const Pt = function(t) {
|
|
|
348
355
|
margin:${o.margin};
|
|
349
356
|
font:${o.font};
|
|
350
357
|
background-color:${o.backgroundColor !== "rgba(0, 0, 0, 0)" && o.backgroundColor};
|
|
351
|
-
border-radius:${o.borderRadius};`, this.direction === 0 && (e.style.right = "0"),
|
|
358
|
+
border-radius:${o.borderRadius};`, this.direction === 0 && (e.style.right = "0"), wt(e), this.bus.fire("operation", {
|
|
352
359
|
name: "beginEdit",
|
|
353
360
|
obj: t.nodeObj
|
|
354
361
|
}), e.addEventListener("keydown", (i) => {
|
|
@@ -370,25 +377,25 @@ const Pt = function(t) {
|
|
|
370
377
|
origin: n
|
|
371
378
|
}));
|
|
372
379
|
});
|
|
373
|
-
},
|
|
380
|
+
}, Bt = function(t) {
|
|
374
381
|
const e = k.createElement("me-epd");
|
|
375
382
|
return e.expanded = t !== !1, e.className = t !== !1 ? "minus" : "", e;
|
|
376
|
-
},
|
|
377
|
-
const o =
|
|
378
|
-
return
|
|
383
|
+
}, P = document, T = "http://www.w3.org/2000/svg", xt = function(t, e, n) {
|
|
384
|
+
const o = P.createElementNS(T, "path");
|
|
385
|
+
return y(o, {
|
|
379
386
|
d: t,
|
|
380
387
|
stroke: e || "#666",
|
|
381
388
|
fill: "none",
|
|
382
389
|
"stroke-width": n
|
|
383
390
|
}), o;
|
|
384
391
|
}, W = function(t) {
|
|
385
|
-
const e =
|
|
392
|
+
const e = P.createElementNS(T, "svg");
|
|
386
393
|
return e.setAttribute("class", t), e.setAttribute("overflow", "visible"), e;
|
|
387
|
-
},
|
|
388
|
-
const t =
|
|
394
|
+
}, lt = function() {
|
|
395
|
+
const t = P.createElementNS(T, "line");
|
|
389
396
|
return t.setAttribute("stroke", "#4dc4ff"), t.setAttribute("fill", "none"), t.setAttribute("stroke-width", "2"), t.setAttribute("opacity", "0.45"), t;
|
|
390
|
-
},
|
|
391
|
-
const i =
|
|
397
|
+
}, Ot = function(t, e, n, o) {
|
|
398
|
+
const i = P.createElementNS(T, "g");
|
|
392
399
|
return [
|
|
393
400
|
{
|
|
394
401
|
name: "line",
|
|
@@ -403,26 +410,26 @@ const Pt = function(t) {
|
|
|
403
410
|
d: n
|
|
404
411
|
}
|
|
405
412
|
].forEach((r, a) => {
|
|
406
|
-
const f = r.d, d =
|
|
413
|
+
const f = r.d, d = P.createElementNS(T, "path"), p = {
|
|
407
414
|
d: f,
|
|
408
415
|
stroke: (o == null ? void 0 : o.stroke) || "rgb(235, 95, 82)",
|
|
409
416
|
fill: "none",
|
|
410
417
|
"stroke-linecap": (o == null ? void 0 : o.strokeLinecap) || "cap",
|
|
411
418
|
"stroke-width": String((o == null ? void 0 : o.strokeWidth) || "2")
|
|
412
419
|
};
|
|
413
|
-
(o == null ? void 0 : o.opacity) !== void 0 && (p.opacity = String(o.opacity)),
|
|
414
|
-
const u =
|
|
415
|
-
|
|
420
|
+
(o == null ? void 0 : o.opacity) !== void 0 && (p.opacity = String(o.opacity)), y(d, p), a === 0 && d.setAttribute("stroke-dasharray", (o == null ? void 0 : o.strokeDasharray) || "8,2");
|
|
421
|
+
const u = P.createElementNS(T, "path");
|
|
422
|
+
y(u, {
|
|
416
423
|
d: f,
|
|
417
424
|
stroke: "transparent",
|
|
418
425
|
fill: "none",
|
|
419
426
|
"stroke-width": "15"
|
|
420
427
|
}), i.appendChild(u), i.appendChild(d), i[r.name] = d;
|
|
421
428
|
}), i;
|
|
422
|
-
},
|
|
429
|
+
}, yt = function(t, e, n) {
|
|
423
430
|
if (!e)
|
|
424
431
|
return;
|
|
425
|
-
const o =
|
|
432
|
+
const o = P.createElement("div");
|
|
426
433
|
t.nodes.appendChild(o);
|
|
427
434
|
const i = e.innerHTML;
|
|
428
435
|
o.id = "input-box", o.textContent = i, o.contentEditable = "plaintext-only", o.spellcheck = !1;
|
|
@@ -434,7 +441,7 @@ const Pt = function(t) {
|
|
|
434
441
|
top:${s.y}px;
|
|
435
442
|
padding: 2px 4px;
|
|
436
443
|
margin: -2px -4px;
|
|
437
|
-
`,
|
|
444
|
+
`, wt(o), t.scrollIntoView(o), o.addEventListener("keydown", (r) => {
|
|
438
445
|
r.stopPropagation();
|
|
439
446
|
const a = r.key;
|
|
440
447
|
if (a === "Enter" || a === "Tab") {
|
|
@@ -455,61 +462,61 @@ const Pt = function(t) {
|
|
|
455
462
|
obj: n
|
|
456
463
|
}));
|
|
457
464
|
});
|
|
458
|
-
},
|
|
465
|
+
}, Wt = function(t) {
|
|
459
466
|
const e = this.map.querySelector("me-root"), n = e.offsetTop, o = e.offsetLeft, i = e.offsetWidth, s = e.offsetHeight, r = this.map.querySelectorAll("me-main > me-wrapper");
|
|
460
467
|
this.lines.innerHTML = "";
|
|
461
468
|
for (let a = 0; a < r.length; a++) {
|
|
462
469
|
const f = r[a], d = f.querySelector("me-tpc"), { offsetLeft: p, offsetTop: u } = D(this.nodes, d), g = d.offsetWidth, l = d.offsetHeight, c = f.parentNode.className, h = this.generateMainBranch({ pT: n, pL: o, pW: i, pH: s, cT: u, cL: p, cW: g, cH: l, direction: c, containerHeight: this.nodes.offsetHeight }), m = this.theme.palette, w = d.nodeObj.branchColor || m[a % m.length];
|
|
463
|
-
if (d.style.borderColor = w, this.lines.appendChild(
|
|
470
|
+
if (d.style.borderColor = w, this.lines.appendChild(xt(h, w, "3")), t && t !== f)
|
|
464
471
|
continue;
|
|
465
472
|
const x = W("subLines"), v = f.lastChild;
|
|
466
|
-
v.tagName === "svg" && v.remove(), f.appendChild(x),
|
|
473
|
+
v.tagName === "svg" && v.remove(), f.appendChild(x), vt(this, x, w, f, c, !0);
|
|
467
474
|
}
|
|
468
475
|
this.renderArrow(), this.renderSummary(), this.bus.fire("linkDiv");
|
|
469
|
-
},
|
|
476
|
+
}, vt = function(t, e, n, o, i, s) {
|
|
470
477
|
const r = o.firstChild, a = o.children[1].children;
|
|
471
478
|
if (a.length === 0)
|
|
472
479
|
return;
|
|
473
480
|
const f = r.offsetTop, d = r.offsetLeft, p = r.offsetWidth, u = r.offsetHeight;
|
|
474
481
|
for (let g = 0; g < a.length; g++) {
|
|
475
|
-
const l = a[g], c = l.firstChild, h = c.offsetTop, m = c.offsetLeft, w = c.offsetWidth, x = c.offsetHeight, v = c.firstChild.nodeObj.branchColor || n,
|
|
476
|
-
e.appendChild(
|
|
477
|
-
const
|
|
478
|
-
if (
|
|
479
|
-
if (!
|
|
482
|
+
const l = a[g], c = l.firstChild, h = c.offsetTop, m = c.offsetLeft, w = c.offsetWidth, x = c.offsetHeight, v = c.firstChild.nodeObj.branchColor || n, S = t.generateSubBranch({ pT: f, pL: d, pW: p, pH: u, cT: h, cL: m, cW: w, cH: x, direction: i, isFirst: s });
|
|
483
|
+
e.appendChild(xt(S, v, "2"));
|
|
484
|
+
const E = c.children[1];
|
|
485
|
+
if (E) {
|
|
486
|
+
if (!E.expanded)
|
|
480
487
|
continue;
|
|
481
488
|
} else
|
|
482
489
|
continue;
|
|
483
|
-
|
|
490
|
+
vt(t, e, v, l, i);
|
|
484
491
|
}
|
|
485
492
|
};
|
|
486
|
-
const
|
|
487
|
-
const
|
|
488
|
-
side:
|
|
489
|
-
left:
|
|
490
|
-
right:
|
|
491
|
-
full:
|
|
492
|
-
living:
|
|
493
|
-
zoomin:
|
|
494
|
-
zoomout:
|
|
495
|
-
},
|
|
493
|
+
const Vt = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169394918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2021" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" p-id="2022"></path></svg>', Gt = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169375313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1775" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="currentColor" p-id="1776"></path></svg>', It = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169667709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3037" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="currentColor" p-id="3038"></path></svg>', Ft = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169402629" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2170" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" p-id="2171"></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" p-id="2172"></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" p-id="2173"></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" p-id="2174"></path></svg>', jt = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169573443" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2883" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="currentColor" p-id="2884"></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="currentColor" p-id="2885"></path></svg>', zt = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169419447" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2480" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" p-id="2481"></path></svg>', Yt = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169426515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2730" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" p-id="2731"></path></svg>';
|
|
494
|
+
const Rt = {
|
|
495
|
+
side: Vt,
|
|
496
|
+
left: Gt,
|
|
497
|
+
right: It,
|
|
498
|
+
full: Ft,
|
|
499
|
+
living: jt,
|
|
500
|
+
zoomin: zt,
|
|
501
|
+
zoomout: Yt
|
|
502
|
+
}, N = (t, e) => {
|
|
496
503
|
const n = document.createElement("span");
|
|
497
|
-
return n.id = t, n.innerHTML =
|
|
504
|
+
return n.id = t, n.innerHTML = Rt[e], n;
|
|
498
505
|
};
|
|
499
|
-
function
|
|
500
|
-
const e = document.createElement("div"), n =
|
|
506
|
+
function Xt(t) {
|
|
507
|
+
const e = document.createElement("div"), n = N("fullscreen", "full"), o = N("toCenter", "living"), i = N("zoomout", "zoomout"), s = N("zoomin", "zoomin"), r = document.createElement("span");
|
|
501
508
|
return r.innerText = "100%", e.appendChild(n), e.appendChild(o), e.appendChild(i), e.appendChild(s), e.className = "mind-elixir-toolbar rb", n.onclick = () => {
|
|
502
509
|
document.fullscreenElement === t.el ? document.exitFullscreen() : t.el.requestFullscreen();
|
|
503
510
|
}, o.onclick = () => {
|
|
504
511
|
t.toCenter();
|
|
505
512
|
}, i.onclick = () => {
|
|
506
|
-
t.
|
|
513
|
+
t.scale(t.scaleVal - t.scaleSensitivity);
|
|
507
514
|
}, s.onclick = () => {
|
|
508
|
-
t.
|
|
515
|
+
t.scale(t.scaleVal + t.scaleSensitivity);
|
|
509
516
|
}, e;
|
|
510
517
|
}
|
|
511
|
-
function
|
|
512
|
-
const e = document.createElement("div"), n =
|
|
518
|
+
function qt(t) {
|
|
519
|
+
const e = document.createElement("div"), n = N("tbltl", "left"), o = N("tbltr", "right"), i = N("tblts", "side");
|
|
513
520
|
return e.appendChild(n), e.appendChild(o), e.appendChild(i), e.className = "mind-elixir-toolbar lt", n.onclick = () => {
|
|
514
521
|
t.initLeft();
|
|
515
522
|
}, o.onclick = () => {
|
|
@@ -518,13 +525,13 @@ function Xt(t) {
|
|
|
518
525
|
t.initSide();
|
|
519
526
|
}, e;
|
|
520
527
|
}
|
|
521
|
-
function
|
|
522
|
-
t.container.append(
|
|
528
|
+
function _t(t) {
|
|
529
|
+
t.container.append(Xt(t)), t.container.append(qt(t));
|
|
523
530
|
}
|
|
524
|
-
const
|
|
531
|
+
const Ut = function(t, e = !0) {
|
|
525
532
|
this.theme = t;
|
|
526
533
|
const o = {
|
|
527
|
-
...(t.type === "dark" ?
|
|
534
|
+
...(t.type === "dark" ? Q : J).cssVar,
|
|
528
535
|
...t.cssVar
|
|
529
536
|
}, i = Object.keys(o);
|
|
530
537
|
for (let s = 0; s < i.length; s++) {
|
|
@@ -532,11 +539,11 @@ const _t = function(t, e = !0) {
|
|
|
532
539
|
this.container.style.setProperty(r, o[r]);
|
|
533
540
|
}
|
|
534
541
|
e && this.refresh();
|
|
535
|
-
},
|
|
542
|
+
}, Kt = function(t) {
|
|
536
543
|
const n = t.parentElement.parentElement.lastElementChild;
|
|
537
544
|
(n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
|
|
538
545
|
};
|
|
539
|
-
function
|
|
546
|
+
function Jt(t) {
|
|
540
547
|
return {
|
|
541
548
|
nodeData: t.isFocusMode ? t.nodeDataBackup : t.nodeData,
|
|
542
549
|
arrows: t.arrows,
|
|
@@ -545,68 +552,70 @@ function Kt(t) {
|
|
|
545
552
|
theme: t.theme
|
|
546
553
|
};
|
|
547
554
|
}
|
|
548
|
-
const
|
|
555
|
+
const Qt = function(t) {
|
|
549
556
|
const e = this.container, n = t.getBoundingClientRect(), o = e.getBoundingClientRect();
|
|
550
557
|
if (n.top > o.bottom || n.bottom < o.top || n.left > o.right || n.right < o.left) {
|
|
551
558
|
const s = n.left + n.width / 2, r = n.top + n.height / 2, a = o.left + o.width / 2, f = o.top + o.height / 2, d = s - a, p = r - f;
|
|
552
559
|
this.move(-d, -p);
|
|
553
560
|
}
|
|
554
|
-
},
|
|
561
|
+
}, Zt = function(t, e, n) {
|
|
555
562
|
this.clearSelection(), this.scrollIntoView(t), this.selection.select(t), e && this.bus.fire("selectNewNode", t.nodeObj);
|
|
556
|
-
}, Zt = function(t) {
|
|
557
|
-
this.selection.select(t);
|
|
558
563
|
}, te = function(t) {
|
|
564
|
+
this.selection.select(t);
|
|
565
|
+
}, ee = function(t) {
|
|
559
566
|
this.selection.deselect(t);
|
|
560
|
-
}, ee = function() {
|
|
561
|
-
this.unselectNodes(this.currentNodes), this.unselectSummary(), this.unselectArrow();
|
|
562
567
|
}, ne = function() {
|
|
563
|
-
|
|
568
|
+
this.unselectNodes(this.currentNodes), this.unselectSummary(), this.unselectArrow();
|
|
569
|
+
}, oe = function() {
|
|
570
|
+
const t = Jt(this);
|
|
564
571
|
return JSON.stringify(t, (e, n) => {
|
|
565
572
|
if (!(e === "parent" && typeof n != "string"))
|
|
566
573
|
return n;
|
|
567
574
|
});
|
|
568
|
-
}, oe = function() {
|
|
569
|
-
return JSON.parse(this.getDataString());
|
|
570
575
|
}, ie = function() {
|
|
571
|
-
this.
|
|
576
|
+
return JSON.parse(this.getDataString());
|
|
572
577
|
}, se = function() {
|
|
578
|
+
this.editable = !0;
|
|
579
|
+
}, re = function() {
|
|
573
580
|
this.editable = !1;
|
|
574
|
-
},
|
|
575
|
-
|
|
581
|
+
}, ce = function(t, e = { x: 0, y: 0 }) {
|
|
582
|
+
if (t < this.scaleMin || t > this.scaleMax)
|
|
583
|
+
return;
|
|
584
|
+
const n = this.container.getBoundingClientRect(), o = e.x ? e.x - n.left - n.width / 2 : 0, i = e.y ? e.y - n.top - n.height / 2 : 0, { dx: s, dy: r } = bt(this), a = this.map.style.transform, { x: f, y: d } = pt(a), p = f - s, u = d - r, g = this.scaleVal, l = (-o + p) * (1 - t / g), c = (-i + u) * (1 - t / g);
|
|
576
585
|
this.map.style.transform = `translate(${f - l}px, ${d - c}px) scale(${t})`, this.scaleVal = t, this.bus.fire("scale", t);
|
|
577
|
-
},
|
|
586
|
+
}, le = function() {
|
|
578
587
|
const t = this.nodes.offsetHeight / this.container.offsetHeight, e = this.nodes.offsetWidth / this.container.offsetWidth, n = 1 / Math.max(1, Math.max(t, e));
|
|
579
588
|
this.scaleVal = n, this.map.style.transform = "scale(" + n + ")", this.bus.fire("scale", n);
|
|
580
|
-
},
|
|
589
|
+
}, ae = function(t, e) {
|
|
581
590
|
const { map: n, scaleVal: o, bus: i } = this, s = n.style.transform;
|
|
582
|
-
let { x: r, y: a } =
|
|
591
|
+
let { x: r, y: a } = pt(s);
|
|
583
592
|
r += t, a += e, n.style.transform = `translate(${r}px, ${a}px) scale(${o})`, i.fire("move", { dx: t, dy: e });
|
|
584
593
|
}, bt = (t) => {
|
|
585
594
|
const { container: e, map: n, nodes: o } = t, i = n.querySelector("me-root"), s = i.offsetTop, r = i.offsetLeft, a = i.offsetWidth, f = i.offsetHeight;
|
|
586
595
|
let d, p;
|
|
587
596
|
return t.alignment === "root" ? (d = e.offsetWidth / 2 - r - a / 2, p = e.offsetHeight / 2 - s - f / 2, n.style.transformOrigin = `${r + a / 2}px 50%`) : (d = (e.offsetWidth - o.offsetWidth) / 2, p = (e.offsetHeight - o.offsetHeight) / 2, n.style.transformOrigin = "50% 50%"), { dx: d, dy: p };
|
|
588
|
-
},
|
|
597
|
+
}, he = function() {
|
|
589
598
|
const { map: t } = this, { dx: e, dy: n } = bt(this);
|
|
590
599
|
t.style.transform = `translate(${e}px, ${n}px) scale(${this.scaleVal})`;
|
|
591
|
-
}, he = function(t) {
|
|
592
|
-
t(this);
|
|
593
600
|
}, de = function(t) {
|
|
601
|
+
t(this);
|
|
602
|
+
}, fe = function(t) {
|
|
594
603
|
t.nodeObj.parent && (this.clearSelection(), this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = t.nodeObj, this.initRight(), this.toCenter());
|
|
595
|
-
}, fe = function() {
|
|
596
|
-
this.isFocusMode = !1, this.tempDirection !== null && (this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
|
|
597
604
|
}, pe = function() {
|
|
598
|
-
this.direction =
|
|
605
|
+
this.isFocusMode = !1, this.tempDirection !== null && (this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
|
|
599
606
|
}, ue = function() {
|
|
600
|
-
this.direction =
|
|
607
|
+
this.direction = 0, this.refresh(), this.toCenter();
|
|
601
608
|
}, ge = function() {
|
|
609
|
+
this.direction = 1, this.refresh(), this.toCenter();
|
|
610
|
+
}, me = function() {
|
|
602
611
|
this.direction = 2, this.refresh(), this.toCenter();
|
|
603
|
-
},
|
|
612
|
+
}, we = function(t) {
|
|
604
613
|
this.locale = t, this.refresh();
|
|
605
|
-
},
|
|
614
|
+
}, xe = function(t, e) {
|
|
606
615
|
const n = t.nodeObj;
|
|
607
616
|
typeof e == "boolean" ? n.expanded = e : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0;
|
|
608
617
|
const o = t.parentNode, i = o.children[1];
|
|
609
|
-
if (i.expanded = n.expanded, i.className = n.expanded ? "minus" : "",
|
|
618
|
+
if (i.expanded = n.expanded, i.className = n.expanded ? "minus" : "", Kt(t), n.expanded) {
|
|
610
619
|
const f = this.createChildren(
|
|
611
620
|
n.children.map((d) => this.createWrapper(d).grp)
|
|
612
621
|
);
|
|
@@ -616,41 +625,37 @@ const Jt = function(t) {
|
|
|
616
625
|
this.linkDiv(t.closest("me-main > me-wrapper"));
|
|
617
626
|
const s = t.getBoundingClientRect(), r = this.container.getBoundingClientRect();
|
|
618
627
|
(s.bottom > r.bottom || s.top < r.top || s.right > r.right || s.left < r.left) && this.scrollIntoView(t), this.bus.fire("expandNode", n);
|
|
619
|
-
},
|
|
620
|
-
const n = t.nodeObj
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
};
|
|
625
|
-
typeof e == "boolean" ? o(n, e) : n.expanded !== !1 ? o(n, !1) : o(n, !0), this.refresh();
|
|
626
|
-
}, ye = function(t) {
|
|
627
|
-
t && (t = JSON.parse(JSON.stringify(t)), this.nodeData = t.nodeData, this.arrows = t.arrows || [], this.summaries = t.summaries || [], t.theme && this.changeTheme(t.theme)), Q(this.nodeData), this.layout(), this.linkDiv();
|
|
628
|
+
}, ye = function(t, e) {
|
|
629
|
+
const n = t.nodeObj;
|
|
630
|
+
K(n, e ?? !n.expanded), this.refresh();
|
|
631
|
+
}, ve = function(t) {
|
|
632
|
+
t && (t = JSON.parse(JSON.stringify(t)), this.nodeData = t.nodeData, this.arrows = t.arrows || [], this.summaries = t.summaries || [], t.theme && this.changeTheme(t.theme)), Z(this.nodeData), this.layout(), this.linkDiv();
|
|
628
633
|
}, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
629
634
|
__proto__: null,
|
|
630
|
-
cancelFocus:
|
|
631
|
-
clearSelection:
|
|
632
|
-
disableEdit:
|
|
633
|
-
enableEdit:
|
|
634
|
-
expandNode:
|
|
635
|
-
expandNodeAll:
|
|
636
|
-
focusNode:
|
|
637
|
-
getData:
|
|
638
|
-
getDataString:
|
|
639
|
-
initLeft:
|
|
640
|
-
initRight:
|
|
641
|
-
initSide:
|
|
642
|
-
install:
|
|
643
|
-
move:
|
|
644
|
-
refresh:
|
|
645
|
-
scale:
|
|
646
|
-
scaleFit:
|
|
647
|
-
scrollIntoView:
|
|
648
|
-
selectNode:
|
|
649
|
-
selectNodes:
|
|
650
|
-
setLocale:
|
|
651
|
-
toCenter:
|
|
652
|
-
unselectNodes:
|
|
653
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
635
|
+
cancelFocus: pe,
|
|
636
|
+
clearSelection: ne,
|
|
637
|
+
disableEdit: re,
|
|
638
|
+
enableEdit: se,
|
|
639
|
+
expandNode: xe,
|
|
640
|
+
expandNodeAll: ye,
|
|
641
|
+
focusNode: fe,
|
|
642
|
+
getData: ie,
|
|
643
|
+
getDataString: oe,
|
|
644
|
+
initLeft: ue,
|
|
645
|
+
initRight: ge,
|
|
646
|
+
initSide: me,
|
|
647
|
+
install: de,
|
|
648
|
+
move: ae,
|
|
649
|
+
refresh: ve,
|
|
650
|
+
scale: ce,
|
|
651
|
+
scaleFit: le,
|
|
652
|
+
scrollIntoView: Qt,
|
|
653
|
+
selectNode: Zt,
|
|
654
|
+
selectNodes: te,
|
|
655
|
+
setLocale: we,
|
|
656
|
+
toCenter: he,
|
|
657
|
+
unselectNodes: ee
|
|
658
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = function(t) {
|
|
654
659
|
return {
|
|
655
660
|
dom: t,
|
|
656
661
|
moved: !1,
|
|
@@ -673,7 +678,7 @@ const Jt = function(t) {
|
|
|
673
678
|
},
|
|
674
679
|
cb: null,
|
|
675
680
|
init(e, n) {
|
|
676
|
-
this.cb = n, this.handleClear = this.handleClear.bind(this), this.handlePointerMove = this.handlePointerMove.bind(this), this.handlePointerDown = this.handlePointerDown.bind(this), this.destroy =
|
|
681
|
+
this.cb = n, this.handleClear = this.handleClear.bind(this), this.handlePointerMove = this.handlePointerMove.bind(this), this.handlePointerDown = this.handlePointerDown.bind(this), this.destroy = ut([
|
|
677
682
|
{ dom: e, evt: "pointermove", func: this.handlePointerMove },
|
|
678
683
|
{ dom: e, evt: "pointerleave", func: this.handleClear },
|
|
679
684
|
{ dom: e, evt: "pointerup", func: this.handleClear },
|
|
@@ -685,30 +690,30 @@ const Jt = function(t) {
|
|
|
685
690
|
this.moved = !1, this.pointerdown = !1;
|
|
686
691
|
}
|
|
687
692
|
};
|
|
688
|
-
},
|
|
689
|
-
create:
|
|
690
|
-
},
|
|
691
|
-
function
|
|
693
|
+
}, at = {
|
|
694
|
+
create: Ce
|
|
695
|
+
}, Se = "#4dc4ff";
|
|
696
|
+
function Ct(t, e, n, o, i, s, r, a) {
|
|
692
697
|
return {
|
|
693
698
|
x: t / 8 + n * 3 / 8 + i * 3 / 8 + r / 8,
|
|
694
699
|
y: e / 8 + o * 3 / 8 + s * 3 / 8 + a / 8
|
|
695
700
|
};
|
|
696
701
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
702
|
+
function Ee(t, e, n) {
|
|
703
|
+
y(t, {
|
|
699
704
|
x: e + "",
|
|
700
705
|
y: n + ""
|
|
701
706
|
});
|
|
702
707
|
}
|
|
703
708
|
function F(t, e, n, o, i) {
|
|
704
|
-
|
|
709
|
+
y(t, {
|
|
705
710
|
x1: e + "",
|
|
706
711
|
y1: n + "",
|
|
707
712
|
x2: o + "",
|
|
708
713
|
y2: i + ""
|
|
709
714
|
});
|
|
710
715
|
}
|
|
711
|
-
function
|
|
716
|
+
function ht(t, e, n, o, i, s, r, a, f, d) {
|
|
712
717
|
var l;
|
|
713
718
|
if (t.line.setAttribute("d", `M ${e} ${n} C ${o} ${i} ${s} ${r} ${a} ${f}`), d.style) {
|
|
714
719
|
const c = d.style;
|
|
@@ -726,8 +731,8 @@ function at(t, e, n, o, i, s, r, a, f, d) {
|
|
|
726
731
|
h.stroke && t.arrow2.setAttribute("stroke", h.stroke), h.strokeWidth && t.arrow2.setAttribute("stroke-width", String(h.strokeWidth)), h.strokeLinecap && t.arrow2.setAttribute("stroke-linecap", h.strokeLinecap), h.opacity !== void 0 && t.arrow2.setAttribute("opacity", String(h.opacity));
|
|
727
732
|
}
|
|
728
733
|
}
|
|
729
|
-
const { x: u, y: g } =
|
|
730
|
-
|
|
734
|
+
const { x: u, y: g } = Ct(e, n, o, i, s, r, a, f);
|
|
735
|
+
Ee(t.label, u, g), (l = d.style) != null && l.labelColor && t.label.setAttribute("fill", d.style.labelColor), Pe(t);
|
|
731
736
|
}
|
|
732
737
|
function q(t, e, n) {
|
|
733
738
|
const { offsetLeft: o, offsetTop: i } = D(t.nodes, e), s = e.offsetWidth, r = e.offsetHeight, a = o + s / 2, f = i + r / 2, d = a + n.x, p = f + n.y;
|
|
@@ -740,7 +745,7 @@ function q(t, e, n) {
|
|
|
740
745
|
ctrlY: p
|
|
741
746
|
};
|
|
742
747
|
}
|
|
743
|
-
function
|
|
748
|
+
function B(t) {
|
|
744
749
|
let e, n;
|
|
745
750
|
const o = (t.cy - t.ctrlY) / (t.ctrlX - t.cx);
|
|
746
751
|
return o > t.h / t.w || o < -t.h / t.w ? t.cy - t.ctrlY < 0 ? (e = t.cx - t.h / 2 / o, n = t.cy + t.h / 2) : (e = t.cx + t.h / 2 / o, n = t.cy - t.h / 2) : t.cx - t.ctrlX < 0 ? (e = t.cx + t.w / 2, n = t.cy - t.w * o / 2) : (e = t.cx - t.w / 2, n = t.cy + t.w * o / 2), {
|
|
@@ -748,32 +753,32 @@ function H(t) {
|
|
|
748
753
|
y: n
|
|
749
754
|
};
|
|
750
755
|
}
|
|
751
|
-
const
|
|
756
|
+
const Te = function(t, e, n, o) {
|
|
752
757
|
const i = document.createElementNS(T, "text");
|
|
753
|
-
return
|
|
758
|
+
return y(i, {
|
|
754
759
|
"text-anchor": "middle",
|
|
755
760
|
x: e + "",
|
|
756
761
|
y: n + "",
|
|
757
762
|
fill: o || "rgb(235, 95, 82)"
|
|
758
763
|
}), i.dataset.type = "custom-link", i.innerHTML = t, i;
|
|
759
|
-
},
|
|
764
|
+
}, tt = function(t, e, n, o, i) {
|
|
760
765
|
var C;
|
|
761
766
|
if (!e || !n)
|
|
762
767
|
return;
|
|
763
|
-
const s = q(t, e, o.delta1), r = q(t, n, o.delta2), { x: a, y: f } =
|
|
768
|
+
const s = q(t, e, o.delta1), r = q(t, n, o.delta2), { x: a, y: f } = B(s), { ctrlX: d, ctrlY: p } = s, { ctrlX: u, ctrlY: g } = r, { x: l, y: c } = B(r), h = R(u, g, l, c);
|
|
764
769
|
if (!h)
|
|
765
770
|
return;
|
|
766
771
|
const m = `M ${h.x1} ${h.y1} L ${l} ${c} L ${h.x2} ${h.y2}`;
|
|
767
772
|
let w = "";
|
|
768
773
|
if (o.bidirectional) {
|
|
769
|
-
const
|
|
770
|
-
if (
|
|
774
|
+
const $ = R(d, p, a, f);
|
|
775
|
+
if (!$)
|
|
771
776
|
return;
|
|
772
|
-
w = `M ${
|
|
777
|
+
w = `M ${$.x1} ${$.y1} L ${a} ${f} L ${$.x2} ${$.y2}`;
|
|
773
778
|
}
|
|
774
|
-
const x =
|
|
775
|
-
x.appendChild(
|
|
776
|
-
},
|
|
779
|
+
const x = Ot(`M ${a} ${f} C ${d} ${p} ${u} ${g} ${l} ${c}`, m, w, o.style), { x: v, y: S } = Ct(a, f, d, p, u, g, l, c), E = (C = o.style) == null ? void 0 : C.labelColor, b = Te(o.label, v, S, E);
|
|
780
|
+
x.appendChild(b), x.label = b, x.arrowObj = o, x.dataset.linkid = o.id, t.linkSvgGroup.appendChild(x), i || (t.arrows.push(o), t.currentArrow = x, St(t, o, s, r));
|
|
781
|
+
}, Le = function(t, e, n = {}) {
|
|
777
782
|
const o = {
|
|
778
783
|
id: V(),
|
|
779
784
|
label: "Custom Link",
|
|
@@ -789,18 +794,18 @@ const Ee = function(t, e, n, o) {
|
|
|
789
794
|
},
|
|
790
795
|
...n
|
|
791
796
|
};
|
|
792
|
-
|
|
797
|
+
tt(this, t, e, o), this.bus.fire("operation", {
|
|
793
798
|
name: "createArrow",
|
|
794
799
|
obj: o
|
|
795
800
|
});
|
|
796
|
-
},
|
|
801
|
+
}, ke = function(t) {
|
|
797
802
|
_(this);
|
|
798
803
|
const e = { ...t, id: V() };
|
|
799
|
-
|
|
804
|
+
tt(this, this.findEle(e.from), this.findEle(e.to), e), this.bus.fire("operation", {
|
|
800
805
|
name: "createArrow",
|
|
801
806
|
obj: e
|
|
802
807
|
});
|
|
803
|
-
},
|
|
808
|
+
}, $e = function(t) {
|
|
804
809
|
let e;
|
|
805
810
|
if (t ? e = t : e = this.currentArrow, !e)
|
|
806
811
|
return;
|
|
@@ -812,15 +817,15 @@ const Ee = function(t, e, n, o) {
|
|
|
812
817
|
id: n
|
|
813
818
|
}
|
|
814
819
|
});
|
|
815
|
-
},
|
|
820
|
+
}, Me = function(t) {
|
|
816
821
|
this.currentArrow = t;
|
|
817
822
|
const e = t.arrowObj, n = this.findEle(e.from), o = this.findEle(e.to), i = q(this, n, e.delta1), s = q(this, o, e.delta2);
|
|
818
|
-
|
|
823
|
+
St(this, e, i, s);
|
|
819
824
|
}, Ae = function() {
|
|
820
825
|
_(this), this.currentArrow = null;
|
|
821
826
|
}, U = function(t, e) {
|
|
822
827
|
const n = document.createElementNS(T, "path");
|
|
823
|
-
return
|
|
828
|
+
return y(n, {
|
|
824
829
|
d: t,
|
|
825
830
|
stroke: e,
|
|
826
831
|
fill: "none",
|
|
@@ -839,10 +844,10 @@ const Ee = function(t, e, n, o) {
|
|
|
839
844
|
n.appendChild(s);
|
|
840
845
|
}
|
|
841
846
|
t.insertBefore(n, t.firstChild);
|
|
842
|
-
},
|
|
847
|
+
}, Ne = function(t) {
|
|
843
848
|
const e = t.querySelector(".arrow-highlight");
|
|
844
849
|
e && e.remove();
|
|
845
|
-
},
|
|
850
|
+
}, Pe = function(t) {
|
|
846
851
|
const e = t.querySelector(".arrow-highlight");
|
|
847
852
|
if (!e)
|
|
848
853
|
return;
|
|
@@ -850,54 +855,54 @@ const Ee = function(t, e, n, o) {
|
|
|
850
855
|
n.length >= 1 && n[0].setAttribute("d", t.line.getAttribute("d")), n.length >= 2 && n[1].setAttribute("d", t.arrow1.getAttribute("d")), n.length >= 3 && t.arrow2.getAttribute("d") && n[2].setAttribute("d", t.arrow2.getAttribute("d"));
|
|
851
856
|
}, _ = function(t) {
|
|
852
857
|
var e, n;
|
|
853
|
-
(e = t.helper1) == null || e.destroy(), (n = t.helper2) == null || n.destroy(), t.linkController.style.display = "none", t.P2.style.display = "none", t.P3.style.display = "none", t.currentArrow &&
|
|
854
|
-
},
|
|
858
|
+
(e = t.helper1) == null || e.destroy(), (n = t.helper2) == null || n.destroy(), t.linkController.style.display = "none", t.P2.style.display = "none", t.P3.style.display = "none", t.currentArrow && Ne(t.currentArrow);
|
|
859
|
+
}, St = function(t, e, n, o) {
|
|
855
860
|
const { linkController: i, P2: s, P3: r, line1: a, line2: f, nodes: d, map: p, currentArrow: u, bus: g } = t;
|
|
856
861
|
if (!u)
|
|
857
862
|
return;
|
|
858
|
-
i.style.display = "initial", s.style.display = "initial", r.style.display = "initial", d.appendChild(i), d.appendChild(s), d.appendChild(r), De(u,
|
|
859
|
-
let { x: l, y: c } =
|
|
860
|
-
s.style.cssText = `top:${m}px;left:${h}px;`, r.style.cssText = `top:${x}px;left:${w}px;`, F(a, l, c, h, m), F(f, w, x, v,
|
|
861
|
-
h = h +
|
|
862
|
-
const C =
|
|
863
|
-
l = C.x, c = C.y, s.style.top = m + "px", s.style.left = h + "px",
|
|
864
|
-
}), t.helper2.init(p, (
|
|
865
|
-
w = w +
|
|
866
|
-
const C =
|
|
867
|
-
v = C.x,
|
|
863
|
+
i.style.display = "initial", s.style.display = "initial", r.style.display = "initial", d.appendChild(i), d.appendChild(s), d.appendChild(r), De(u, Se);
|
|
864
|
+
let { x: l, y: c } = B(n), { ctrlX: h, ctrlY: m } = n, { ctrlX: w, ctrlY: x } = o, { x: v, y: S } = B(o);
|
|
865
|
+
s.style.cssText = `top:${m}px;left:${h}px;`, r.style.cssText = `top:${x}px;left:${w}px;`, F(a, l, c, h, m), F(f, w, x, v, S), t.helper1 = at.create(s), t.helper2 = at.create(r), t.helper1.init(p, (E, b) => {
|
|
866
|
+
h = h + E / t.scaleVal, m = m + b / t.scaleVal;
|
|
867
|
+
const C = B({ ...n, ctrlX: h, ctrlY: m });
|
|
868
|
+
l = C.x, c = C.y, s.style.top = m + "px", s.style.left = h + "px", ht(u, l, c, h, m, w, x, v, S, e), F(a, l, c, h, m), e.delta1.x = h - n.cx, e.delta1.y = m - n.cy, g.fire("updateArrowDelta", e);
|
|
869
|
+
}), t.helper2.init(p, (E, b) => {
|
|
870
|
+
w = w + E / t.scaleVal, x = x + b / t.scaleVal;
|
|
871
|
+
const C = B({ ...o, ctrlX: w, ctrlY: x });
|
|
872
|
+
v = C.x, S = C.y, r.style.top = x + "px", r.style.left = w + "px", ht(u, l, c, h, m, w, x, v, S, e), F(f, w, x, v, S), e.delta2.x = w - o.cx, e.delta2.y = x - o.cy, g.fire("updateArrowDelta", e);
|
|
868
873
|
});
|
|
869
874
|
};
|
|
870
|
-
function
|
|
875
|
+
function He() {
|
|
871
876
|
this.linkSvgGroup.innerHTML = "";
|
|
872
877
|
for (let t = 0; t < this.arrows.length; t++) {
|
|
873
878
|
const e = this.arrows[t];
|
|
874
879
|
try {
|
|
875
|
-
|
|
880
|
+
tt(this, this.findEle(e.from), this.findEle(e.to), e, !0);
|
|
876
881
|
} catch {
|
|
877
882
|
}
|
|
878
883
|
}
|
|
879
884
|
this.nodes.appendChild(this.linkSvgGroup);
|
|
880
885
|
}
|
|
881
|
-
function
|
|
886
|
+
function Be(t) {
|
|
882
887
|
if (_(this), !t)
|
|
883
888
|
return;
|
|
884
889
|
const e = t.label;
|
|
885
|
-
|
|
890
|
+
yt(this, e, t.arrowObj);
|
|
886
891
|
}
|
|
887
|
-
function
|
|
892
|
+
function Oe() {
|
|
888
893
|
this.arrows = this.arrows.filter((t) => Y(t.from, this.nodeData) && Y(t.to, this.nodeData));
|
|
889
894
|
}
|
|
890
|
-
const
|
|
895
|
+
const We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
891
896
|
__proto__: null,
|
|
892
|
-
createArrow:
|
|
893
|
-
createArrowFrom:
|
|
894
|
-
editArrowLabel:
|
|
895
|
-
removeArrow:
|
|
896
|
-
renderArrow:
|
|
897
|
-
selectArrow:
|
|
898
|
-
tidyArrow:
|
|
897
|
+
createArrow: Le,
|
|
898
|
+
createArrowFrom: ke,
|
|
899
|
+
editArrowLabel: Be,
|
|
900
|
+
removeArrow: $e,
|
|
901
|
+
renderArrow: He,
|
|
902
|
+
selectArrow: Me,
|
|
903
|
+
tidyArrow: Oe,
|
|
899
904
|
unselectArrow: Ae
|
|
900
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
905
|
+
}, Symbol.toStringTag, { value: "Module" })), Ve = function(t) {
|
|
901
906
|
var f, d;
|
|
902
907
|
if (t.length === 0)
|
|
903
908
|
throw new Error("No selected node.");
|
|
@@ -940,70 +945,70 @@ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
940
945
|
start: s,
|
|
941
946
|
end: r
|
|
942
947
|
};
|
|
943
|
-
},
|
|
948
|
+
}, Ge = function(t) {
|
|
944
949
|
const e = document.createElementNS(T, "g");
|
|
945
950
|
return e.setAttribute("id", t), e;
|
|
946
|
-
},
|
|
951
|
+
}, dt = function(t, e) {
|
|
947
952
|
const n = document.createElementNS(T, "path");
|
|
948
|
-
return
|
|
953
|
+
return y(n, {
|
|
949
954
|
d: t,
|
|
950
955
|
stroke: e || "#666",
|
|
951
956
|
fill: "none",
|
|
952
957
|
"stroke-linecap": "round",
|
|
953
958
|
"stroke-width": "2"
|
|
954
959
|
}), n;
|
|
955
|
-
},
|
|
960
|
+
}, ft = function(t, e, n, o, i) {
|
|
956
961
|
const s = document.createElementNS(T, "text");
|
|
957
|
-
return
|
|
962
|
+
return y(s, {
|
|
958
963
|
"text-anchor": o,
|
|
959
964
|
x: e + "",
|
|
960
965
|
y: n + "",
|
|
961
966
|
fill: i || "#666"
|
|
962
967
|
}), s.innerHTML = t, s;
|
|
963
|
-
},
|
|
968
|
+
}, Ie = (t) => t.parentElement.parentElement, Fe = function(t, { parent: e, start: n }) {
|
|
964
969
|
const o = t.findEle(e), i = o.nodeObj;
|
|
965
970
|
let s;
|
|
966
971
|
return i.parent ? s = o.closest("me-main").className : s = t.findEle(i.children[n].id).closest("me-main").className, s;
|
|
967
|
-
},
|
|
968
|
-
var
|
|
969
|
-
const { id: n, label: o, parent: i, start: s, end: r } = e, { nodes: a, theme: f, summarySvg: d } = t, u = t.findEle(i).nodeObj, g =
|
|
972
|
+
}, et = function(t, e) {
|
|
973
|
+
var $;
|
|
974
|
+
const { id: n, label: o, parent: i, start: s, end: r } = e, { nodes: a, theme: f, summarySvg: d } = t, u = t.findEle(i).nodeObj, g = Fe(t, e);
|
|
970
975
|
let l = 1 / 0, c = 0, h = 0, m = 0;
|
|
971
|
-
for (let
|
|
972
|
-
const
|
|
973
|
-
if (!
|
|
976
|
+
for (let M = s; M <= r; M++) {
|
|
977
|
+
const nt = ($ = u.children) == null ? void 0 : $[M];
|
|
978
|
+
if (!nt)
|
|
974
979
|
return t.removeSummary(n), null;
|
|
975
|
-
const G =
|
|
976
|
-
|
|
980
|
+
const G = Ie(t.findEle(nt.id)), { offsetLeft: I, offsetTop: ot } = D(a, G), it = s === r ? 10 : 20;
|
|
981
|
+
M === s && (h = ot + it), M === r && (m = ot + G.offsetHeight - it), I < l && (l = I), G.offsetWidth + I > c && (c = G.offsetWidth + I);
|
|
977
982
|
}
|
|
978
983
|
let w, x;
|
|
979
|
-
const v = h + 10,
|
|
980
|
-
g ===
|
|
981
|
-
const C =
|
|
984
|
+
const v = h + 10, S = m + 10, E = (v + S) / 2, b = f.cssVar["--color"];
|
|
985
|
+
g === H.LHS ? (w = dt(`M ${l + 10} ${v} c -5 0 -10 5 -10 10 L ${l} ${S - 10} c 0 5 5 10 10 10 M ${l} ${E} h -10`, b), x = ft(o, l - 20, E + 6, "end", b)) : (w = dt(`M ${c - 10} ${v} c 5 0 10 5 10 10 L ${c} ${S - 10} c 0 5 -5 10 -10 10 M ${c} ${E} h 10`, b), x = ft(o, c + 20, E + 6, "start", b));
|
|
986
|
+
const C = Ge("s-" + n);
|
|
982
987
|
return C.appendChild(w), C.appendChild(x), C.summaryObj = e, d.appendChild(C), C;
|
|
983
|
-
},
|
|
988
|
+
}, je = function() {
|
|
984
989
|
if (!this.currentNodes)
|
|
985
990
|
return;
|
|
986
|
-
const { currentNodes: t, summaries: e, bus: n } = this, { parent: o, start: i, end: s } =
|
|
991
|
+
const { currentNodes: t, summaries: e, bus: n } = this, { parent: o, start: i, end: s } = Ve(t), r = { id: V(), parent: o, start: i, end: s, label: "summary" }, a = et(this, r);
|
|
987
992
|
e.push(r), this.editSummary(a), n.fire("operation", {
|
|
988
993
|
name: "createSummary",
|
|
989
994
|
obj: r
|
|
990
995
|
});
|
|
991
|
-
},
|
|
996
|
+
}, ze = function(t) {
|
|
992
997
|
const e = V(), n = { ...t, id: e };
|
|
993
|
-
|
|
998
|
+
et(this, n), this.summaries.push(n), this.bus.fire("operation", {
|
|
994
999
|
name: "createSummary",
|
|
995
1000
|
obj: n
|
|
996
1001
|
});
|
|
997
|
-
},
|
|
1002
|
+
}, Ye = function(t) {
|
|
998
1003
|
var n;
|
|
999
1004
|
const e = this.summaries.findIndex((o) => o.id === t);
|
|
1000
1005
|
e > -1 && (this.summaries.splice(e, 1), (n = document.querySelector("#s-" + t)) == null || n.remove()), this.bus.fire("operation", {
|
|
1001
1006
|
name: "removeSummary",
|
|
1002
1007
|
obj: { id: t }
|
|
1003
1008
|
});
|
|
1004
|
-
},
|
|
1009
|
+
}, Re = function(t) {
|
|
1005
1010
|
const e = t.children[1].getBBox(), n = 6, o = 3, i = document.createElementNS(T, "rect");
|
|
1006
|
-
|
|
1011
|
+
y(i, {
|
|
1007
1012
|
x: e.x - n + "",
|
|
1008
1013
|
y: e.y - n + "",
|
|
1009
1014
|
width: e.width + n * 2 + "",
|
|
@@ -1013,52 +1018,52 @@ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1013
1018
|
"stroke-width": "2",
|
|
1014
1019
|
fill: "none"
|
|
1015
1020
|
}), t.appendChild(i), this.currentSummary = t;
|
|
1016
|
-
},
|
|
1021
|
+
}, Xe = function() {
|
|
1017
1022
|
var t, e;
|
|
1018
1023
|
(e = (t = this.currentSummary) == null ? void 0 : t.querySelector("rect")) == null || e.remove(), this.currentSummary = null;
|
|
1019
|
-
},
|
|
1024
|
+
}, qe = function() {
|
|
1020
1025
|
this.summarySvg.innerHTML = "", this.summaries.forEach((t) => {
|
|
1021
1026
|
try {
|
|
1022
|
-
|
|
1027
|
+
et(this, t);
|
|
1023
1028
|
} catch {
|
|
1024
1029
|
}
|
|
1025
1030
|
}), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
|
|
1026
|
-
},
|
|
1031
|
+
}, _e = function(t) {
|
|
1027
1032
|
if (!t)
|
|
1028
1033
|
return;
|
|
1029
1034
|
const e = t.childNodes[1];
|
|
1030
|
-
|
|
1031
|
-
},
|
|
1035
|
+
yt(this, e, t.summaryObj);
|
|
1036
|
+
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1032
1037
|
__proto__: null,
|
|
1033
|
-
createSummary:
|
|
1034
|
-
createSummaryFrom:
|
|
1035
|
-
editSummary:
|
|
1036
|
-
removeSummary:
|
|
1037
|
-
renderSummary:
|
|
1038
|
-
selectSummary:
|
|
1039
|
-
unselectSummary:
|
|
1038
|
+
createSummary: je,
|
|
1039
|
+
createSummaryFrom: ze,
|
|
1040
|
+
editSummary: _e,
|
|
1041
|
+
removeSummary: Ye,
|
|
1042
|
+
renderSummary: qe,
|
|
1043
|
+
selectSummary: Re,
|
|
1044
|
+
unselectSummary: Xe
|
|
1040
1045
|
}, Symbol.toStringTag, { value: "Module" })), L = "http://www.w3.org/2000/svg";
|
|
1041
|
-
function
|
|
1046
|
+
function Ke(t, e) {
|
|
1042
1047
|
const n = document.createElementNS(L, "svg");
|
|
1043
|
-
return
|
|
1048
|
+
return y(n, {
|
|
1044
1049
|
version: "1.1",
|
|
1045
1050
|
xmlns: L,
|
|
1046
1051
|
height: t,
|
|
1047
1052
|
width: e
|
|
1048
1053
|
}), n;
|
|
1049
1054
|
}
|
|
1050
|
-
function
|
|
1055
|
+
function Je(t, e) {
|
|
1051
1056
|
return (parseInt(t) - parseInt(e)) / 2;
|
|
1052
1057
|
}
|
|
1053
|
-
function
|
|
1058
|
+
function Qe(t, e, n, o) {
|
|
1054
1059
|
const i = document.createElementNS(L, "g");
|
|
1055
1060
|
let s = "";
|
|
1056
1061
|
return t.text ? s = t.text.textContent : s = t.childNodes[0].textContent, s.split(`
|
|
1057
1062
|
`).forEach((a, f) => {
|
|
1058
1063
|
const d = document.createElementNS(L, "text");
|
|
1059
|
-
|
|
1064
|
+
y(d, {
|
|
1060
1065
|
x: n + parseInt(e.paddingLeft) + "",
|
|
1061
|
-
y: o + parseInt(e.paddingTop) +
|
|
1066
|
+
y: o + parseInt(e.paddingTop) + Je(e.lineHeight, e.fontSize) * (f + 1) + parseFloat(e.fontSize) * (f + 1) + "",
|
|
1062
1067
|
"text-anchor": "start",
|
|
1063
1068
|
"font-family": e.fontFamily,
|
|
1064
1069
|
"font-size": `${e.fontSize}`,
|
|
@@ -1067,26 +1072,26 @@ function Je(t, e, n, o) {
|
|
|
1067
1072
|
}), d.innerHTML = a, i.appendChild(d);
|
|
1068
1073
|
}), i;
|
|
1069
1074
|
}
|
|
1070
|
-
function
|
|
1075
|
+
function Ze(t, e, n, o) {
|
|
1071
1076
|
var a;
|
|
1072
1077
|
let i = "";
|
|
1073
1078
|
(a = t.nodeObj) != null && a.dangerouslySetInnerHTML ? i = t.nodeObj.dangerouslySetInnerHTML : t.text ? i = t.text.textContent : i = t.childNodes[0].textContent;
|
|
1074
1079
|
const s = document.createElementNS(L, "foreignObject");
|
|
1075
|
-
|
|
1080
|
+
y(s, {
|
|
1076
1081
|
x: n + parseInt(e.paddingLeft) + "",
|
|
1077
1082
|
y: o + parseInt(e.paddingTop) + "",
|
|
1078
1083
|
width: e.width,
|
|
1079
1084
|
height: e.height
|
|
1080
1085
|
});
|
|
1081
1086
|
const r = document.createElement("div");
|
|
1082
|
-
return
|
|
1087
|
+
return y(r, {
|
|
1083
1088
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
1084
1089
|
style: `font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`
|
|
1085
1090
|
}), r.innerHTML = i, s.appendChild(r), s;
|
|
1086
1091
|
}
|
|
1087
|
-
function
|
|
1092
|
+
function tn(t, e) {
|
|
1088
1093
|
const n = getComputedStyle(e), { offsetLeft: o, offsetTop: i } = D(t.nodes, e), s = document.createElementNS(L, "rect");
|
|
1089
|
-
return
|
|
1094
|
+
return y(s, {
|
|
1090
1095
|
x: o + "",
|
|
1091
1096
|
y: i + "",
|
|
1092
1097
|
rx: n.borderRadius,
|
|
@@ -1100,7 +1105,7 @@ function Ze(t, e) {
|
|
|
1100
1105
|
}
|
|
1101
1106
|
function j(t, e, n = !1) {
|
|
1102
1107
|
const o = getComputedStyle(e), { offsetLeft: i, offsetTop: s } = D(t.nodes, e), r = document.createElementNS(L, "rect");
|
|
1103
|
-
|
|
1108
|
+
y(r, {
|
|
1104
1109
|
x: i + "",
|
|
1105
1110
|
y: s + "",
|
|
1106
1111
|
rx: o.borderRadius,
|
|
@@ -1114,11 +1119,11 @@ function j(t, e, n = !1) {
|
|
|
1114
1119
|
const a = document.createElementNS(L, "g");
|
|
1115
1120
|
a.appendChild(r);
|
|
1116
1121
|
let f;
|
|
1117
|
-
return n ? f =
|
|
1122
|
+
return n ? f = Ze(e, o, i, s) : f = Qe(e, o, i, s), a.appendChild(f), a;
|
|
1118
1123
|
}
|
|
1119
|
-
function
|
|
1124
|
+
function en(t, e) {
|
|
1120
1125
|
const n = getComputedStyle(e), { offsetLeft: o, offsetTop: i } = D(t.nodes, e), s = document.createElementNS(L, "a"), r = document.createElementNS(L, "text");
|
|
1121
|
-
return
|
|
1126
|
+
return y(r, {
|
|
1122
1127
|
x: o + "",
|
|
1123
1128
|
y: i + parseInt(n.fontSize) + "",
|
|
1124
1129
|
"text-anchor": "start",
|
|
@@ -1128,9 +1133,9 @@ function tn(t, e) {
|
|
|
1128
1133
|
fill: `${n.color}`
|
|
1129
1134
|
}), r.innerHTML = e.textContent, s.appendChild(r), s.setAttribute("href", e.href), s;
|
|
1130
1135
|
}
|
|
1131
|
-
function
|
|
1136
|
+
function nn(t, e) {
|
|
1132
1137
|
const n = getComputedStyle(e), { offsetLeft: o, offsetTop: i } = D(t.nodes, e), s = document.createElementNS(L, "image");
|
|
1133
|
-
return
|
|
1138
|
+
return y(s, {
|
|
1134
1139
|
x: o + "",
|
|
1135
1140
|
y: i + "",
|
|
1136
1141
|
width: n.width + "",
|
|
@@ -1138,10 +1143,10 @@ function en(t, e) {
|
|
|
1138
1143
|
href: e.src
|
|
1139
1144
|
}), s;
|
|
1140
1145
|
}
|
|
1141
|
-
const z = 100,
|
|
1146
|
+
const z = 100, on = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', sn = (t, e = !1) => {
|
|
1142
1147
|
var u, g, l;
|
|
1143
|
-
const n = t.nodes, o = n.offsetHeight + z * 2, i = n.offsetWidth + z * 2, s =
|
|
1144
|
-
|
|
1148
|
+
const n = t.nodes, o = n.offsetHeight + z * 2, i = n.offsetWidth + z * 2, s = Ke(o + "px", i + "px"), r = document.createElementNS(L, "svg"), a = document.createElementNS(L, "rect");
|
|
1149
|
+
y(a, {
|
|
1145
1150
|
x: "0",
|
|
1146
1151
|
y: "0",
|
|
1147
1152
|
width: `${i}`,
|
|
@@ -1157,22 +1162,22 @@ const z = 100, nn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "
|
|
|
1157
1162
|
d && r.appendChild(d);
|
|
1158
1163
|
const p = (l = n.querySelector(".summary")) == null ? void 0 : l.cloneNode(!0);
|
|
1159
1164
|
return p && r.appendChild(p), n.querySelectorAll("me-tpc").forEach((c) => {
|
|
1160
|
-
c.nodeObj.dangerouslySetInnerHTML ? r.appendChild(j(t, c, !e)) : (r.appendChild(
|
|
1165
|
+
c.nodeObj.dangerouslySetInnerHTML ? r.appendChild(j(t, c, !e)) : (r.appendChild(tn(t, c)), r.appendChild(j(t, c.text, !e)));
|
|
1161
1166
|
}), n.querySelectorAll(".tags > span").forEach((c) => {
|
|
1162
1167
|
r.appendChild(j(t, c));
|
|
1163
1168
|
}), n.querySelectorAll(".icons > span").forEach((c) => {
|
|
1164
1169
|
r.appendChild(j(t, c));
|
|
1165
1170
|
}), n.querySelectorAll(".hyper-link").forEach((c) => {
|
|
1166
|
-
r.appendChild(tn(t, c));
|
|
1167
|
-
}), n.querySelectorAll("img").forEach((c) => {
|
|
1168
1171
|
r.appendChild(en(t, c));
|
|
1169
|
-
}),
|
|
1172
|
+
}), n.querySelectorAll("img").forEach((c) => {
|
|
1173
|
+
r.appendChild(nn(t, c));
|
|
1174
|
+
}), y(r, {
|
|
1170
1175
|
x: z + "",
|
|
1171
1176
|
y: z + "",
|
|
1172
1177
|
overflow: "visible"
|
|
1173
1178
|
}), s.appendChild(r), s;
|
|
1174
|
-
},
|
|
1175
|
-
function
|
|
1179
|
+
}, rn = (t, e) => (e && t.insertAdjacentHTML("afterbegin", "<style>" + e + "</style>"), on + t.outerHTML);
|
|
1180
|
+
function cn(t) {
|
|
1176
1181
|
return new Promise((e, n) => {
|
|
1177
1182
|
const o = new FileReader();
|
|
1178
1183
|
o.onload = (i) => {
|
|
@@ -1182,11 +1187,11 @@ function rn(t) {
|
|
|
1182
1187
|
}, o.readAsDataURL(t);
|
|
1183
1188
|
});
|
|
1184
1189
|
}
|
|
1185
|
-
const
|
|
1186
|
-
const n =
|
|
1190
|
+
const ln = function(t = !1, e) {
|
|
1191
|
+
const n = sn(this, t), o = rn(n, e);
|
|
1187
1192
|
return new Blob([o], { type: "image/svg+xml" });
|
|
1188
|
-
},
|
|
1189
|
-
const n = this.exportSvg(t, e), o = await
|
|
1193
|
+
}, an = async function(t = !1, e) {
|
|
1194
|
+
const n = this.exportSvg(t, e), o = await cn(n);
|
|
1190
1195
|
return new Promise((i, s) => {
|
|
1191
1196
|
const r = new Image();
|
|
1192
1197
|
r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
|
|
@@ -1194,56 +1199,56 @@ const cn = function(t = !1, e) {
|
|
|
1194
1199
|
a.width = r.width, a.height = r.height, a.getContext("2d").drawImage(r, 0, 0), a.toBlob(i, "image/png", 1);
|
|
1195
1200
|
}, r.src = o, r.onerror = s;
|
|
1196
1201
|
});
|
|
1197
|
-
},
|
|
1202
|
+
}, hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1198
1203
|
__proto__: null,
|
|
1199
|
-
exportPng:
|
|
1200
|
-
exportSvg:
|
|
1201
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1204
|
+
exportPng: an,
|
|
1205
|
+
exportSvg: ln
|
|
1206
|
+
}, Symbol.toStringTag, { value: "Module" })), dn = {}, fn = {
|
|
1202
1207
|
getObjById: Y,
|
|
1203
|
-
generateNewObj:
|
|
1204
|
-
layout:
|
|
1205
|
-
linkDiv:
|
|
1206
|
-
editTopic:
|
|
1208
|
+
generateNewObj: Et,
|
|
1209
|
+
layout: kt,
|
|
1210
|
+
linkDiv: Wt,
|
|
1211
|
+
editTopic: Ht,
|
|
1207
1212
|
createWrapper: At,
|
|
1208
1213
|
createParent: Dt,
|
|
1209
|
-
createChildren:
|
|
1210
|
-
createTopic:
|
|
1211
|
-
findEle:
|
|
1212
|
-
changeTheme:
|
|
1214
|
+
createChildren: Nt,
|
|
1215
|
+
createTopic: Pt,
|
|
1216
|
+
findEle: gt,
|
|
1217
|
+
changeTheme: Ut,
|
|
1213
1218
|
...be,
|
|
1219
|
+
...dn,
|
|
1220
|
+
...We,
|
|
1221
|
+
...Ue,
|
|
1214
1222
|
...hn,
|
|
1215
|
-
...Oe,
|
|
1216
|
-
..._e,
|
|
1217
|
-
...an,
|
|
1218
1223
|
init(t) {
|
|
1219
1224
|
if (t = JSON.parse(JSON.stringify(t)), !t || !t.nodeData)
|
|
1220
1225
|
return new Error("MindElixir: `data` is required");
|
|
1221
|
-
t.direction !== void 0 && (this.direction = t.direction), this.changeTheme(t.theme || this.theme, !1), this.nodeData = t.nodeData,
|
|
1226
|
+
t.direction !== void 0 && (this.direction = t.direction), this.changeTheme(t.theme || this.theme, !1), this.nodeData = t.nodeData, Z(this.nodeData), this.arrows = t.arrows || [], this.summaries = t.summaries || [], this.tidyArrow(), this.toolBar && _t(this), this.layout(), this.linkDiv(), this.toCenter();
|
|
1222
1227
|
},
|
|
1223
1228
|
destroy() {
|
|
1224
1229
|
var t;
|
|
1225
1230
|
this.disposable.forEach((e) => e()), this.el && (this.el.innerHTML = ""), this.el = void 0, this.nodeData = void 0, this.arrows = void 0, this.summaries = void 0, this.currentArrow = void 0, this.currentNodes = void 0, this.currentSummary = void 0, this.waitCopy = void 0, this.theme = void 0, this.direction = void 0, this.bus = void 0, this.container = void 0, this.map = void 0, this.lines = void 0, this.linkController = void 0, this.linkSvgGroup = void 0, this.P2 = void 0, this.P3 = void 0, this.line1 = void 0, this.line2 = void 0, this.nodes = void 0, (t = this.selection) == null || t.destroy(), this.selection = void 0;
|
|
1226
1231
|
}
|
|
1227
1232
|
};
|
|
1228
|
-
function
|
|
1233
|
+
function pn({ pT: t, pL: e, pW: n, pH: o, cT: i, cL: s, cW: r, cH: a, direction: f, containerHeight: d }) {
|
|
1229
1234
|
let p = e + n / 2;
|
|
1230
1235
|
const u = t + o / 2;
|
|
1231
1236
|
let g;
|
|
1232
|
-
f ===
|
|
1237
|
+
f === H.LHS ? g = s + r : g = s;
|
|
1233
1238
|
const l = i + a / 2, h = (1 - Math.abs(l - u) / d) * 0.25 * (n / 2);
|
|
1234
|
-
return f ===
|
|
1239
|
+
return f === H.LHS ? p = p - n / 10 - h : p = p + n / 10 + h, `M ${p} ${u} Q ${p} ${l} ${g} ${l}`;
|
|
1235
1240
|
}
|
|
1236
|
-
function
|
|
1241
|
+
function un({ pT: t, pL: e, pW: n, pH: o, cT: i, cL: s, cW: r, cH: a, direction: f, isFirst: d }) {
|
|
1237
1242
|
const p = parseInt(this.container.style.getPropertyValue("--node-gap-x"));
|
|
1238
1243
|
let u = 0, g = 0;
|
|
1239
1244
|
d ? u = t + o / 2 : u = t + o;
|
|
1240
1245
|
const l = i + a;
|
|
1241
1246
|
let c = 0, h = 0, m = 0;
|
|
1242
1247
|
const w = Math.abs(u - l) / 300 * p;
|
|
1243
|
-
return f ===
|
|
1248
|
+
return f === H.LHS ? (m = e, c = m + p, h = m - p, g = s + p, `M ${c} ${u} C ${m} ${u} ${m + w} ${l} ${h} ${l} H ${g}`) : (m = e + n, c = m - p, h = m + p, g = s + r - p, `M ${c} ${u} C ${m} ${u} ${m - w} ${l} ${h} ${l} H ${g}`);
|
|
1244
1249
|
}
|
|
1245
|
-
const
|
|
1246
|
-
function
|
|
1250
|
+
const gn = "5.0.4";
|
|
1251
|
+
function mn(t) {
|
|
1247
1252
|
return {
|
|
1248
1253
|
x: 0,
|
|
1249
1254
|
y: 0,
|
|
@@ -1259,7 +1264,7 @@ function gn(t) {
|
|
|
1259
1264
|
};
|
|
1260
1265
|
}
|
|
1261
1266
|
const O = document;
|
|
1262
|
-
function
|
|
1267
|
+
function A({
|
|
1263
1268
|
el: t,
|
|
1264
1269
|
direction: e,
|
|
1265
1270
|
locale: n,
|
|
@@ -1279,34 +1284,36 @@ function $({
|
|
|
1279
1284
|
theme: m,
|
|
1280
1285
|
alignment: w,
|
|
1281
1286
|
scaleSensitivity: x,
|
|
1282
|
-
|
|
1287
|
+
scaleMax: v,
|
|
1288
|
+
scaleMin: S,
|
|
1289
|
+
handleWheel: E
|
|
1283
1290
|
}) {
|
|
1284
|
-
let
|
|
1285
|
-
const
|
|
1286
|
-
if (
|
|
1291
|
+
let b = null;
|
|
1292
|
+
const C = Object.prototype.toString.call(t);
|
|
1293
|
+
if (C === "[object HTMLDivElement]" ? b = t : C === "[object String]" && (b = document.querySelector(t)), !b)
|
|
1287
1294
|
throw new Error("MindElixir: el is not a valid element");
|
|
1288
|
-
|
|
1289
|
-
const
|
|
1290
|
-
this.theme = m || (
|
|
1291
|
-
const
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}, 300), this.map =
|
|
1295
|
+
b.style.position = "relative", b.innerHTML = "", this.el = b, this.disposable = [], this.before = p || {}, this.locale = n || "en", this.newTopicName = u || "new node", this.contextMenu = s ?? !0, this.toolBar = r ?? !0, this.keypress = a ?? !0, this.mouseSelectionButton = f ?? 0, this.direction = e ?? 1, this.draggable = o ?? !0, this.editable = i ?? !0, this.allowUndo = g ?? !1, this.scaleSensitivity = x ?? 0.1, this.scaleMax = v ?? 1.4, this.scaleMin = S ?? 0.2, this.generateMainBranch = l || pn, this.generateSubBranch = c || un, this.overflowHidden = h ?? !1, this.alignment = w ?? "root", this.handleWheel = E ?? !0, this.currentNodes = [], this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.dragMoveHelper = mn(this), this.bus = Lt(), this.container = O.createElement("div"), this.selectionContainer = d || this.container, this.container.className = "map-container";
|
|
1296
|
+
const $ = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1297
|
+
this.theme = m || ($.matches ? Q : J);
|
|
1298
|
+
const M = O.createElement("div");
|
|
1299
|
+
M.className = "map-canvas", setTimeout(() => {
|
|
1300
|
+
M.style.transition = "all 0.3s";
|
|
1301
|
+
}, 300), this.map = M, this.container.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.el.appendChild(this.container), this.nodes = O.createElement("me-nodes"), this.lines = W("lines"), this.summarySvg = W("summary"), this.linkController = W("linkcontroller"), this.P2 = O.createElement("div"), this.P3 = O.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = lt(), this.line2 = lt(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = W("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : this.disposable.push(Tt(this));
|
|
1295
1302
|
}
|
|
1296
|
-
|
|
1297
|
-
Object.defineProperty(
|
|
1303
|
+
A.prototype = fn;
|
|
1304
|
+
Object.defineProperty(A.prototype, "currentNode", {
|
|
1298
1305
|
get() {
|
|
1299
1306
|
return this.currentNodes[this.currentNodes.length - 1];
|
|
1300
1307
|
},
|
|
1301
1308
|
enumerable: !0
|
|
1302
1309
|
});
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
+
A.LEFT = 0;
|
|
1311
|
+
A.RIGHT = 1;
|
|
1312
|
+
A.SIDE = 2;
|
|
1313
|
+
A.THEME = J;
|
|
1314
|
+
A.DARK_THEME = Q;
|
|
1315
|
+
A.version = gn;
|
|
1316
|
+
A.E = gt;
|
|
1310
1317
|
export {
|
|
1311
|
-
|
|
1318
|
+
A as default
|
|
1312
1319
|
};
|