mind-elixir 4.2.4 → 4.2.5
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 +66 -66
- package/dist/MindElixirLite.iife.js +4 -4
- package/dist/MindElixirLite.js +42 -42
- package/package.json +1 -1
package/dist/MindElixirLite.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
s.readyState == "complete" && (s.onreadystatechange = null, d());
|
|
30
30
|
});
|
|
31
31
|
})(window);
|
|
32
|
-
const q = 0, Q = 1, Z = 2, $ = 30,
|
|
32
|
+
const q = 0, Q = 1, Z = 2, $ = 30, ee = {
|
|
33
33
|
name: "Latte",
|
|
34
34
|
palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
|
|
35
35
|
cssVar: {
|
|
@@ -54,7 +54,7 @@ const q = 0, Q = 1, Z = 2, $ = 30, ve = {
|
|
|
54
54
|
"--panel-border-color": "#696969"
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
function
|
|
57
|
+
function re(e) {
|
|
58
58
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);
|
|
59
59
|
}
|
|
60
60
|
const K = function(e, t) {
|
|
@@ -69,10 +69,10 @@ const K = function(e, t) {
|
|
|
69
69
|
return null;
|
|
70
70
|
} else
|
|
71
71
|
return null;
|
|
72
|
-
},
|
|
72
|
+
}, te = (e, t) => {
|
|
73
73
|
if (e.parent = t, e.children)
|
|
74
74
|
for (let n = 0; n < e.children.length; n++)
|
|
75
|
-
|
|
75
|
+
te(e.children[n], e);
|
|
76
76
|
};
|
|
77
77
|
function be(e, t, n, o) {
|
|
78
78
|
const s = o - t, i = e - n;
|
|
@@ -86,11 +86,11 @@ function be(e, t, n, o) {
|
|
|
86
86
|
y2: o - Math.sin(Math.PI * h / 180) * l
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ne() {
|
|
90
90
|
return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
|
|
91
91
|
}
|
|
92
92
|
const Ae = function() {
|
|
93
|
-
const e =
|
|
93
|
+
const e = ne();
|
|
94
94
|
return {
|
|
95
95
|
topic: this.newTopicName,
|
|
96
96
|
id: e
|
|
@@ -103,7 +103,7 @@ const Ae = function() {
|
|
|
103
103
|
}, x = (e, t) => {
|
|
104
104
|
for (const n in t)
|
|
105
105
|
e.setAttribute(n, t[n]);
|
|
106
|
-
},
|
|
106
|
+
}, le = (e) => e ? e.tagName === "ME-TPC" : !1, k = {
|
|
107
107
|
moved: !1,
|
|
108
108
|
// diffrentiate click and move
|
|
109
109
|
mousedown: !1,
|
|
@@ -139,7 +139,7 @@ function ke(e) {
|
|
|
139
139
|
const n = t.target;
|
|
140
140
|
if (n.tagName === "ME-EPD")
|
|
141
141
|
e.expandNode(n.previousSibling);
|
|
142
|
-
else if (
|
|
142
|
+
else if (le(n))
|
|
143
143
|
e.selectNode(n, !1, t);
|
|
144
144
|
else if (e.editable)
|
|
145
145
|
n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
|
|
@@ -149,7 +149,7 @@ function ke(e) {
|
|
|
149
149
|
if (!e.editable)
|
|
150
150
|
return;
|
|
151
151
|
const n = t.target;
|
|
152
|
-
|
|
152
|
+
le(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
|
|
153
153
|
}), e.map.addEventListener("mousemove", (t) => {
|
|
154
154
|
t.target.contentEditable !== "true" && k.onMove(t, e.container);
|
|
155
155
|
}), e.map.addEventListener("mousedown", (t) => {
|
|
@@ -251,12 +251,12 @@ const De = {
|
|
|
251
251
|
e.linkContainer && (e.linkContainer = void 0);
|
|
252
252
|
if (t.icons && t.icons.length) {
|
|
253
253
|
const n = S.createElement("span");
|
|
254
|
-
n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${
|
|
254
|
+
n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${re(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
|
|
255
255
|
} else
|
|
256
256
|
e.icons && (e.icons = void 0);
|
|
257
257
|
if (t.tags && t.tags.length) {
|
|
258
258
|
const n = S.createElement("div");
|
|
259
|
-
n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${
|
|
259
|
+
n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${re(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
|
|
260
260
|
} else
|
|
261
261
|
e.tags && (e.tags = void 0);
|
|
262
262
|
}, ze = function(e, t) {
|
|
@@ -333,7 +333,7 @@ const Re = function(e) {
|
|
|
333
333
|
}, I = function(e) {
|
|
334
334
|
const t = O.createElementNS(j, "svg");
|
|
335
335
|
return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
|
|
336
|
-
},
|
|
336
|
+
}, ce = function() {
|
|
337
337
|
const e = O.createElementNS(j, "line");
|
|
338
338
|
return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
|
|
339
339
|
}, Ie = function(e, t) {
|
|
@@ -459,13 +459,13 @@ class Ue {
|
|
|
459
459
|
this._listeners.clear();
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
const
|
|
462
|
+
const ae = (e, t = "px") => typeof e == "number" ? e + t : e;
|
|
463
463
|
function T({ style: e }, t, n) {
|
|
464
464
|
if (typeof t == "object")
|
|
465
465
|
for (const [o, s] of Object.entries(t))
|
|
466
|
-
s !== void 0 && (e[o] =
|
|
466
|
+
s !== void 0 && (e[o] = ae(s));
|
|
467
467
|
else
|
|
468
|
-
n !== void 0 && (e[t] =
|
|
468
|
+
n !== void 0 && (e[t] = ae(n));
|
|
469
469
|
}
|
|
470
470
|
const Ce = (e) => (t, n, o, s = {}) => {
|
|
471
471
|
t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
@@ -479,7 +479,7 @@ const Ce = (e) => (t, n, o, s = {}) => {
|
|
|
479
479
|
const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
|
|
480
480
|
return { x: n, y: o, target: s };
|
|
481
481
|
};
|
|
482
|
-
function
|
|
482
|
+
function he(e, t, n = "touch") {
|
|
483
483
|
switch (n) {
|
|
484
484
|
case "center": {
|
|
485
485
|
const o = t.left + t.width / 2, s = t.top + t.height / 2;
|
|
@@ -533,7 +533,7 @@ function et(e, t) {
|
|
|
533
533
|
}
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
|
-
const { abs: H, max:
|
|
536
|
+
const { abs: H, max: de, min: ue, ceil: fe } = Math, pe = (e = []) => ({
|
|
537
537
|
stored: e,
|
|
538
538
|
selected: [],
|
|
539
539
|
touched: [],
|
|
@@ -542,7 +542,7 @@ const { abs: H, max: he, min: de, ceil: ue } = Math, fe = (e = []) => ({
|
|
|
542
542
|
class tt extends Ue {
|
|
543
543
|
constructor(t) {
|
|
544
544
|
var n, o, s, i, r;
|
|
545
|
-
super(), b(this, "_options"), b(this, "_selection",
|
|
545
|
+
super(), b(this, "_options"), b(this, "_selection", pe()), b(this, "_area"), b(this, "_clippingElement"), b(this, "_targetElement"), b(this, "_targetBoundary"), b(this, "_targetBoundaryScrolled", !0), b(this, "_targetRect"), b(this, "_selectables", []), b(this, "_latestElement"), b(this, "_areaLocation", { y1: 0, x2: 0, y2: 0, x1: 0 }), b(this, "_areaRect", new DOMRect()), b(this, "_singleClick", !0), b(this, "_frame"), b(this, "_scrollAvailable", !0), b(this, "_scrollingActive", !1), b(this, "_scrollSpeed", { x: 0, y: 0 }), b(this, "_scrollDelta", { x: 0, y: 0 }), b(this, "disable", this._toggleStartEvents.bind(this, !1)), b(this, "enable", this._toggleStartEvents), this._options = {
|
|
546
546
|
selectionAreaClass: "selection-area",
|
|
547
547
|
selectionContainerClass: void 0,
|
|
548
548
|
selectables: [],
|
|
@@ -609,7 +609,7 @@ class tt extends Ue {
|
|
|
609
609
|
return;
|
|
610
610
|
const f = P(l, r), m = P(c, r);
|
|
611
611
|
this._targetElement = m.find(
|
|
612
|
-
(y) =>
|
|
612
|
+
(y) => he(y.getBoundingClientRect(), a)
|
|
613
613
|
);
|
|
614
614
|
const u = t.composedPath(), p = f.find((y) => u.includes(y));
|
|
615
615
|
if (this._targetBoundary = m.find((y) => u.includes(y)), !this._targetElement || !p || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
|
|
@@ -694,7 +694,7 @@ class tt extends Ue {
|
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
696
|
const { scrollTop: a, scrollLeft: f } = l;
|
|
697
|
-
n.y && (l.scrollTop +=
|
|
697
|
+
n.y && (l.scrollTop += fe(n.y / r), o.y1 -= l.scrollTop - a), n.x && (l.scrollLeft += fe(n.x / r), o.x1 -= l.scrollLeft - f), i.next(t), requestAnimationFrame(h);
|
|
698
698
|
};
|
|
699
699
|
requestAnimationFrame(h);
|
|
700
700
|
} else
|
|
@@ -721,7 +721,7 @@ class tt extends Ue {
|
|
|
721
721
|
let { x2: u, y2: p } = n;
|
|
722
722
|
const { behaviour: { scrolling: { startScrollMargins: g } } } = s;
|
|
723
723
|
u < a.left + g.x ? (t.x = c ? -H(a.left - u + g.x) : 0, u = u < a.left ? a.left : u) : u > a.right - g.x ? (t.x = d - c - h ? H(a.left + a.width - u - g.x) : 0, u = u > a.right ? a.right : u) : t.x = 0, p < a.top + g.y ? (t.y = i ? -H(a.top - p + g.y) : 0, p = p < a.top ? a.top : p) : p > a.bottom - g.y ? (t.y = r - i - l ? H(a.top + a.height - p - g.y) : 0, p = p > a.bottom ? a.bottom : p) : t.y = 0;
|
|
724
|
-
const y =
|
|
724
|
+
const y = ue(f, u), v = ue(m, p), w = de(f, u), _ = de(m, p);
|
|
725
725
|
this._areaRect = new DOMRect(y, v, w - y, _ - v);
|
|
726
726
|
}
|
|
727
727
|
_redrawSelectionArea() {
|
|
@@ -737,7 +737,7 @@ class tt extends Ue {
|
|
|
737
737
|
const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: d } = n.behaviour, h = d === "invert", a = [], f = [], m = [];
|
|
738
738
|
for (let p = 0; p < t.length; p++) {
|
|
739
739
|
const g = t[p];
|
|
740
|
-
if (
|
|
740
|
+
if (he(s, g.getBoundingClientRect(), c)) {
|
|
741
741
|
if (r.includes(g))
|
|
742
742
|
i.includes(g) && !l.includes(g) && l.push(g);
|
|
743
743
|
else if (h && i.includes(g)) {
|
|
@@ -819,7 +819,7 @@ class tt extends Ue {
|
|
|
819
819
|
i.added = [], i.removed.push(
|
|
820
820
|
...o,
|
|
821
821
|
...t ? s : []
|
|
822
|
-
), n || (this._emitEvent("move", null), this._emitEvent("stop", null)), this._selection =
|
|
822
|
+
), n || (this._emitEvent("move", null), this._emitEvent("stop", null)), this._selection = pe(t ? [] : s);
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
* @returns {Array} Selected elements
|
|
@@ -872,7 +872,7 @@ class tt extends Ue {
|
|
|
872
872
|
}
|
|
873
873
|
b(tt, "version", "3.6.0");
|
|
874
874
|
const nt = function(e, t = !0) {
|
|
875
|
-
this.theme = e;
|
|
875
|
+
e.cssVar = { ...ee.cssVar, ...e.cssVar }, this.theme = e;
|
|
876
876
|
const n = this.theme.cssVar, o = Object.keys(n);
|
|
877
877
|
for (let s = 0; s < o.length; s++) {
|
|
878
878
|
const i = o[s];
|
|
@@ -973,7 +973,7 @@ const st = function(e, t, n) {
|
|
|
973
973
|
o.parentNode.children[1].remove();
|
|
974
974
|
this.linkDiv(), this.bus.fire("expandNode", n);
|
|
975
975
|
}, St = function(e) {
|
|
976
|
-
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []),
|
|
976
|
+
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), te(this.nodeData), this.layout(), this.linkDiv();
|
|
977
977
|
}, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
978
978
|
__proto__: null,
|
|
979
979
|
cancelFocus: yt,
|
|
@@ -1023,7 +1023,7 @@ const st = function(e, t, n) {
|
|
|
1023
1023
|
this.moved = !1, this.mousedown = !1;
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
},
|
|
1026
|
+
}, me = {
|
|
1027
1027
|
create: Lt
|
|
1028
1028
|
};
|
|
1029
1029
|
function J(e, t, n) {
|
|
@@ -1064,7 +1064,7 @@ const Mt = function(e, t, n, o) {
|
|
|
1064
1064
|
g.appendChild(w), g.arrowObj = o, g.dataset.linkid = o.id, e.linkSvgGroup.appendChild(g), s || (e.arrows.push(o), e.currentArrow = g, $e(e, o, i, r)), performance.now();
|
|
1065
1065
|
}, Tt = function(e, t) {
|
|
1066
1066
|
const n = {
|
|
1067
|
-
id:
|
|
1067
|
+
id: ne(),
|
|
1068
1068
|
label: "Custom Link",
|
|
1069
1069
|
from: e.nodeObj.id,
|
|
1070
1070
|
to: t.nodeObj.id,
|
|
@@ -1115,7 +1115,7 @@ const Mt = function(e, t, n, o) {
|
|
|
1115
1115
|
y1: d + "",
|
|
1116
1116
|
x2: h + "",
|
|
1117
1117
|
y2: a + ""
|
|
1118
|
-
}), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 =
|
|
1118
|
+
}), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 = me.create(e.P2), e.helper2 = me.create(e.P3), e.helper1.init(e.map, (m, u) => {
|
|
1119
1119
|
var v;
|
|
1120
1120
|
r = r + m / e.scaleVal, l = l + u / e.scaleVal;
|
|
1121
1121
|
const p = z({ ...n, ctrlX: r, ctrlY: l });
|
|
@@ -1229,7 +1229,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1229
1229
|
}, zt = function(e) {
|
|
1230
1230
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
1231
1231
|
return t.setAttribute("id", e), t;
|
|
1232
|
-
},
|
|
1232
|
+
}, ge = function(e, t) {
|
|
1233
1233
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
1234
1234
|
return x(n, {
|
|
1235
1235
|
d: e,
|
|
@@ -1238,7 +1238,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1238
1238
|
"stroke-linecap": "round",
|
|
1239
1239
|
"stroke-width": "2"
|
|
1240
1240
|
}), n;
|
|
1241
|
-
},
|
|
1241
|
+
}, ve = function(e, t, n, o, s) {
|
|
1242
1242
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1243
1243
|
return x(i, {
|
|
1244
1244
|
"text-anchor": o,
|
|
@@ -1252,25 +1252,25 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1252
1252
|
let s;
|
|
1253
1253
|
return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = L(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
|
|
1254
1254
|
}, Ne = function(e, t) {
|
|
1255
|
-
var
|
|
1255
|
+
var oe;
|
|
1256
1256
|
const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, h = jt(t);
|
|
1257
1257
|
let a = 1 / 0, f = 0, m = 0, u = 0;
|
|
1258
1258
|
for (let R = i; R <= r; R++) {
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1259
|
+
const se = (oe = d.children) == null ? void 0 : oe[R];
|
|
1260
|
+
if (!se)
|
|
1261
1261
|
return e.removeSummary(n), null;
|
|
1262
|
-
const F = Ot(
|
|
1263
|
-
R === i && (m =
|
|
1262
|
+
const F = Ot(se.id), { offsetLeft: W, offsetTop: ie } = N(l, F);
|
|
1263
|
+
R === i && (m = ie + 20), R === r && (u = ie + F.offsetHeight - 20), W < a && (a = W), F.offsetWidth + W > f && (f = F.offsetWidth + W);
|
|
1264
1264
|
}
|
|
1265
1265
|
let p, g;
|
|
1266
1266
|
const y = m + 10, v = u + 10, w = (y + v) / 2, _ = e.theme.cssVar["--color"];
|
|
1267
|
-
h === "lhs" ? (p =
|
|
1267
|
+
h === "lhs" ? (p = ge(`M ${a + 10} ${y} c -5 0 -10 5 -10 10 L ${a} ${v - 10} c 0 5 5 10 10 10 M ${a} ${w} h -10`, _), g = ve(o, a - 20, w + 6, "end", _)) : (p = ge(`M ${f - 10} ${y} c 5 0 10 5 10 10 L ${f} ${v - 10} c 0 5 -5 10 -10 10 M ${f} ${w} h 10`, _), g = ve(o, f + 20, w + 6, "start", _));
|
|
1268
1268
|
const E = zt("s-" + n);
|
|
1269
1269
|
return E.appendChild(p), E.appendChild(g), E.summaryObj = t, e.summarySvg.appendChild(E), E;
|
|
1270
1270
|
}, qt = function() {
|
|
1271
1271
|
let e = [];
|
|
1272
1272
|
this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
|
|
1273
|
-
const { parent: t, start: n, end: o } = Pt(e), s = { id:
|
|
1273
|
+
const { parent: t, start: n, end: o } = Pt(e), s = { id: ne(), parent: t, start: n, end: o, text: "summary" }, i = Ne(this, s);
|
|
1274
1274
|
this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
|
|
1275
1275
|
name: "createSummary",
|
|
1276
1276
|
obj: s
|
|
@@ -1505,7 +1505,7 @@ const sn = function(e = !1, t) {
|
|
|
1505
1505
|
init(e) {
|
|
1506
1506
|
if (!e || !e.nodeData)
|
|
1507
1507
|
return new Error("MindElixir: `data` is required");
|
|
1508
|
-
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData,
|
|
1508
|
+
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, te(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Ye(this), this.toCenter(), this.layout(), this.linkDiv();
|
|
1509
1509
|
},
|
|
1510
1510
|
destroy() {
|
|
1511
1511
|
var e, t;
|
|
@@ -1528,7 +1528,7 @@ function dn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction:
|
|
|
1528
1528
|
const g = Math.abs(h - f) / 300 * $;
|
|
1529
1529
|
return c === "lhs" ? (p = t, m = p + $, u = p - $, a = i + $, `M ${m} ${h} C ${p} ${h} ${p + g} ${f} ${u} ${f} H ${a}`) : (p = t + n, m = p - $, u = p + $, a = i + r - $, `M ${m} ${h} C ${p} ${h} ${p - g} ${f} ${u} ${f} H ${a}`);
|
|
1530
1530
|
}
|
|
1531
|
-
const un = "4.2.
|
|
1531
|
+
const un = "4.2.5", V = document;
|
|
1532
1532
|
function A({
|
|
1533
1533
|
el: e,
|
|
1534
1534
|
direction: t,
|
|
@@ -1555,15 +1555,15 @@ function A({
|
|
|
1555
1555
|
throw new Error("MindElixir: el is not a valid element");
|
|
1556
1556
|
v.className += " mind-elixir", v.innerHTML = "", v.style.setProperty("--gap", $ + "px"), this.mindElixirBox = v, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = m === void 0 ? !1 : m, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || hn, this.generateSubBranch = p || dn, this.overflowHidden = g || !1, this.bus = De.create(), this.container = V.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
|
|
1557
1557
|
const _ = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1558
|
-
this.theme = y || (_.matches ? ye :
|
|
1558
|
+
this.theme = y || (_.matches ? ye : ee);
|
|
1559
1559
|
const E = V.createElement("div");
|
|
1560
|
-
E.className = "map-canvas", this.map = E, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = V.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = I("lines"), this.summarySvg = I("summary"), this.linkController = I("linkcontroller"), this.P2 = V.createElement("div"), this.P3 = V.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 =
|
|
1560
|
+
E.className = "map-canvas", this.map = E, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = V.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = I("lines"), this.summarySvg = I("summary"), this.linkController = I("linkcontroller"), this.P2 = V.createElement("div"), this.P3 = V.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = ce(), this.line2 = ce(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = I("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ke(this);
|
|
1561
1561
|
}
|
|
1562
1562
|
A.prototype = an;
|
|
1563
1563
|
A.LEFT = q;
|
|
1564
1564
|
A.RIGHT = Q;
|
|
1565
1565
|
A.SIDE = Z;
|
|
1566
|
-
A.THEME =
|
|
1566
|
+
A.THEME = ee;
|
|
1567
1567
|
A.DARK_THEME = ye;
|
|
1568
1568
|
A.version = un;
|
|
1569
1569
|
A.E = L;
|