diff --git a/67077.b737d18c.async.js b/25183.0a069113.async.js
similarity index 97%
rename from 67077.b737d18c.async.js
rename to 25183.0a069113.async.js
index 85de6f6000..3342fbb04a 100644
--- a/67077.b737d18c.async.js
+++ b/25183.0a069113.async.js
@@ -1,9 +1,9 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[67077],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[25183],{
-/***/ 39721:
-/*!******************************************************************************************!*\
- !*** ./node_modules/_@mind-elixir_node-menu@1.0.3@@mind-elixir/node-menu/dist/style.css ***!
- \******************************************************************************************/
+/***/ 83350:
+/*!************************************************************************!*\
+ !*** ./node_modules/_node-menu-bar@1.0.0@node-menu-bar/dist/style.css ***!
+ \************************************************************************/
/***/ (function() {
"use strict";
@@ -2987,284 +2987,15 @@ if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
/***/ }),
-/***/ 9652:
-/*!*********************************************************************************************!*\
- !*** ./node_modules/_@mind-elixir_node-menu@1.0.3@@mind-elixir/node-menu/dist/node-menu.js ***!
- \*********************************************************************************************/
-/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ Z: function() { return /* binding */ k; }
-/* harmony export */ });
-window._iconfont_svg_string_4003484 = '', function(u) {
- var n = (n = document.getElementsByTagName("script"))[n.length - 1], l = n.getAttribute("data-injectcss"), n = n.getAttribute("data-disable-injectsvg");
- if (!n) {
- var g, p, C, r, m, t = function(s, c) {
- c.parentNode.insertBefore(s, c);
- };
- if (l && !u.__iconfont__svg__cssinject__) {
- u.__iconfont__svg__cssinject__ = !0;
- try {
- document.write("");
- } catch (s) {
- console && console.log(s);
- }
- }
- g = function() {
- var s, c = document.createElement("div");
- c.innerHTML = u._iconfont_svg_string_4003484, (c = c.getElementsByTagName("svg")[0]) && (c.setAttribute("aria-hidden", "true"), c.style.position = "absolute", c.style.width = 0, c.style.height = 0, c.style.overflow = "hidden", c = c, (s = document.body).firstChild ? t(c, s.firstChild) : s.appendChild(c));
- }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(g, 0) : (p = function() {
- document.removeEventListener("DOMContentLoaded", p, !1), g();
- }, document.addEventListener("DOMContentLoaded", p, !1)) : document.attachEvent && (C = g, r = u.document, m = !1, h(), r.onreadystatechange = function() {
- r.readyState == "complete" && (r.onreadystatechange = null, E());
- });
- }
- function E() {
- m || (m = !0, C());
- }
- function h() {
- try {
- r.documentElement.doScroll("left");
- } catch {
- return void setTimeout(h, 50);
- }
- E();
- }
-}(window);
-const N = {
- addChild: "\u63D2\u5165\u5B50\u8282\u70B9",
- addParent: "\u63D2\u5165\u7236\u8282\u70B9",
- addSibling: "\u63D2\u5165\u540C\u7EA7\u8282\u70B9",
- removeNode: "\u5220\u9664\u8282\u70B9",
- focus: "\u4E13\u6CE8",
- cancelFocus: "\u53D6\u6D88\u4E13\u6CE8",
- moveUp: "\u4E0A\u79FB",
- moveDown: "\u4E0B\u79FB",
- link: "\u8FDE\u63A5",
- clickTips: "\u8BF7\u70B9\u51FB\u76EE\u6807\u8282\u70B9",
- font: "\u6587\u5B57",
- background: "\u80CC\u666F",
- tag: "\u6807\u7B7E",
- icon: "\u56FE\u6807",
- tagsSeparate: "\u591A\u4E2A\u6807\u7B7E\u534A\u89D2\u9017\u53F7\u5206\u9694",
- iconsSeparate: "\u591A\u4E2A\u56FE\u6807\u534A\u89D2\u9017\u53F7\u5206\u9694",
- url: "URL"
-}, i = {
- cn: N,
- zh_CN: N,
- zh_TW: {
- addChild: "\u63D2\u5165\u5B50\u7BC0\u9EDE",
- addParent: "\u63D2\u5165\u7236\u7BC0\u9EDE",
- addSibling: "\u63D2\u5165\u540C\u7D1A\u7BC0\u9EDE",
- removeNode: "\u522A\u9664\u7BC0\u9EDE",
- focus: "\u5C08\u6CE8",
- cancelFocus: "\u53D6\u6D88\u5C08\u6CE8",
- moveUp: "\u4E0A\u79FB",
- moveDown: "\u4E0B\u79FB",
- link: "\u9023\u63A5",
- clickTips: "\u8ACB\u9EDE\u64CA\u76EE\u6A19\u7BC0\u9EDE",
- font: "\u6587\u5B57",
- background: "\u80CC\u666F",
- tag: "\u6A19\u7C3D",
- icon: "\u5716\u6A19",
- tagsSeparate: "\u591A\u500B\u6A19\u7C3D\u534A\u89D2\u9017\u865F\u5206\u9694",
- iconsSeparate: "\u591A\u500B\u5716\u6A19\u534A\u89D2\u9017\u865F\u5206\u9694",
- url: "URL"
- },
- en: {
- addChild: "Add child",
- addParent: "Add parent",
- addSibling: "Add sibling",
- removeNode: "Remove node",
- focus: "Focus Mode",
- cancelFocus: "Cancel Focus Mode",
- moveUp: "Move up",
- moveDown: "Move down",
- link: "Link",
- clickTips: "Please click the target node",
- font: "Font",
- background: "Background",
- tag: "Tag",
- icon: "Icon",
- tagsSeparate: "Separate tags by comma",
- iconsSeparate: "Separate icons by comma",
- url: "URL"
- },
- ru: {
- addChild: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",
- addParent: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",
- addSibling: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u044D\u0442\u043E\u043C \u0443\u0440\u043E\u0432\u043D\u0435",
- removeNode: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0443\u0437\u0435\u043B",
- focus: "\u0420\u0435\u0436\u0438\u043C \u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u043A\u0438",
- cancelFocus: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u043A\u0438",
- moveUp: "\u041F\u043E\u0434\u043D\u044F\u0442\u044C \u0432\u044B\u0448\u0435",
- moveDown: "\u041E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043D\u0438\u0436\u0435",
- link: "\u0421\u0441\u044B\u043B\u043A\u0430",
- clickTips: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u0446\u0435\u043B\u0435\u0432\u043E\u0439 \u0443\u0437\u0435\u043B",
- font: "\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",
- background: "\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",
- tag: "\u0422\u0435\u0433",
- icon: "\u0418\u043A\u043E\u043D\u043A\u0430",
- tagsSeparate: "\u0420\u0430\u0437\u0434\u0435\u043B\u044F\u0439\u0442\u0435 \u0442\u0435\u0433\u0438 \u0437\u0430\u043F\u044F\u0442\u043E\u0439",
- iconsSeparate: "\u0420\u0430\u0437\u0434\u0435\u043B\u044F\u0439\u0442\u0435 \u0438\u043A\u043E\u043D\u043A\u0438 \u0437\u0430\u043F\u044F\u0442\u043E\u0439"
- },
- ja: {
- addChild: "\u5B50\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B",
- addParent: "\u89AA\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3057\u307E\u3059",
- addSibling: "\u5144\u5F1F\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B",
- removeNode: "\u30CE\u30FC\u30C9\u3092\u524A\u9664",
- focus: "\u96C6\u4E2D",
- cancelFocus: "\u96C6\u4E2D\u89E3\u9664",
- moveUp: "\u4E0A\u3078\u79FB\u52D5",
- moveDown: "\u4E0B\u3078\u79FB\u52D5",
- link: "\u30B3\u30CD\u30AF\u30C8",
- clickTips: "\u30BF\u30FC\u30B2\u30C3\u30C8\u30CE\u30FC\u30C9\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044",
- font: "\u30D5\u30A9\u30F3\u30C8",
- background: "\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9",
- tag: "\u30BF\u30B0",
- icon: "\u30A2\u30A4\u30B3\u30F3",
- tagsSeparate: "\u8907\u6570\u30BF\u30B0\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A",
- iconsSeparate: "\u8907\u6570\u30A2\u30A4\u30B3\u30F3\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A",
- url: "URL"
- },
- pt: {
- addChild: "Adicionar item filho",
- addParent: "Adicionar item pai",
- addSibling: "Adicionar item irmao",
- removeNode: "Remover item",
- focus: "Modo Foco",
- cancelFocus: "Cancelar Modo Foco",
- moveUp: "Mover para cima",
- moveDown: "Mover para baixo",
- link: "Link",
- clickTips: "Favor clicar no item alvo",
- font: "Fonte",
- background: "Cor de fundo",
- tag: "Tag",
- icon: "Icone",
- tagsSeparate: "Separe tags por virgula",
- iconsSeparate: "Separe icones por virgula",
- url: "URL"
- }
-}, v = (u, l) => {
- const n = document.createElement("div");
- return n.id = u, n.innerHTML = l, n;
-}, S = [
- "#2c3e50",
- "#34495e",
- "#7f8c8d",
- "#94a5a6",
- "#bdc3c7",
- "#ecf0f1",
- "#8e44ad",
- "#9b59b6",
- "#2980b9",
- "#3298db",
- "#c0392c",
- "#e74c3c",
- "#d35400",
- "#f39c11",
- "#f1c40e",
- "#17a085",
- "#27ae61",
- "#2ecc71"
-];
-function k(u) {
- console.log("install node menu");
- function l(e, a) {
- const o = u.container.querySelectorAll(e);
- [].forEach.call(o, function(d) {
- d.classList.remove(a);
- });
- }
- const n = i[u.locale] ? u.locale : "en", g = v(
- "nm-style",
- `
-
- ${["15", "24", "32"].map((e) => `
-
`).join("")}
-
-
- ${S.map((e) => `
`).join("")}
-
-
- ${i[n].font}
- ${i[n].background}
-
`
- ), p = v("nm-tag", `${i[n].tag}`), C = v("nm-icon", `${i[n].icon}`), r = v("nm-url", `${i[n].url}`), m = v("nm-memo", `${i[n].memo || "Memo"}`), t = document.createElement("div");
- t.className = "node-menu", t.innerHTML = `
-
- `, t.appendChild(g), t.appendChild(p), t.appendChild(C), t.appendChild(r), t.appendChild(m), t.hidden = !0, u.container.append(t);
- const E = t.querySelectorAll(".size"), h = t.querySelector(".bold"), s = t.querySelector(".button-container"), c = t.querySelector(".font"), A = u.container.querySelector(".nm-tag"), B = u.container.querySelector(".nm-icon"), y = u.container.querySelector(".nm-url"), D = u.container.querySelector(".nm-memo");
- let f;
- u.findEle, t.onclick = (e) => {
- if (!u.currentNode)
- return;
- const a = u.currentNode.nodeObj, o = e.target;
- if (o.className === "palette") {
- l(".palette", "nmenu-selected"), o.className = "palette nmenu-selected";
- const d = o.dataset.color, F = { style: {} };
- f === "font" ? F.style.color = d : f === "background" && (F.style.background = d), console.log(F), u.reshapeNode(u.currentNode, F);
- } else
- o.className === "background" ? (l(".palette", "nmenu-selected"), f = "background", o.className = "background selected", o.previousElementSibling.className = "font", a.style && a.style.background && (t.querySelector('.palette[data-color="' + a.style.background + '"]').className = "palette nmenu-selected")) : o.className === "font" && (l(".palette", "nmenu-selected"), f = "font", o.className = "font selected", o.nextElementSibling.className = "background", a.style && a.style.color && (t.querySelector('.palette[data-color="' + a.style.color + '"]').className = "palette nmenu-selected"));
- }, Array.from(E).map((e) => {
- e.onclick = (a) => {
- l(".size", "size-selected");
- const o = a.currentTarget;
- o.className = "size size-selected", u.reshapeNode(u.currentNode, { style: { fontSize: o.dataset.size } });
- };
- }), h.onclick = (e) => {
- var o, d;
- let a = "";
- ((d = (o = u.currentNode.nodeObj) == null ? void 0 : o.style) == null ? void 0 : d.fontWeight) === "bold" ? e.currentTarget.className = "bold" : (a = "bold", e.currentTarget.className = "bold size-selected"), u.reshapeNode(u.currentNode, { style: { fontWeight: a } });
- }, A.onchange = (e) => {
- if (!!u.currentNode && typeof e.target.value == "string") {
- const a = e.target.value.split(",");
- u.reshapeNode(u.currentNode, { tags: a.filter((o) => o) });
- }
- }, B.onchange = (e) => {
- if (!!u.currentNode && typeof e.target.value == "string") {
- const a = e.target.value.split(",");
- u.reshapeNode(u.currentNode, { icons: a.filter((o) => o) });
- }
- }, y.onchange = (e) => {
- !u.currentNode || u.reshapeNode(u.currentNode, { hyperLink: e.target.value });
- }, D.onchange = (e) => {
- !u.currentNode || (u.currentNode.nodeObj.memo = e.target.value, u.bus.fire("operation", {
- name: "updateMemo",
- obj: u.currentNode.nodeObj
- }));
- };
- let b = "open";
- s.onclick = (e) => {
- t.classList.toggle("close"), b === "open" ? (b = "close", s.innerHTML = '') : (b = "open", s.innerHTML = '');
- }, u.bus.addListener("unselectNode", function() {
- t.hidden = !0;
- }), u.bus.addListener("selectNode", function(e, a) {
- !a || (t.hidden = !1, l(".palette", "nmenu-selected"), l(".size", "size-selected"), l(".bold", "size-selected"), f = "font", c.className = "font selected", c.nextElementSibling.className = "background", e.style && (e.style.fontSize && (t.querySelector('.size[data-size="' + e.style.fontSize + '"]').className = "size size-selected"), e.style.fontWeight && (t.querySelector(".bold").className = "bold size-selected"), e.style.color && (t.querySelector('.palette[data-color="' + e.style.color + '"]').className = "palette nmenu-selected")), e.tags ? A.value = e.tags.join(",") : A.value = "", e.icons ? B.value = e.icons.join(",") : B.value = "", y.value = e.hyperLink || "", D.value = e.memo || "");
- });
-}
-
-
-
-/***/ }),
-
-/***/ 90723:
+/***/ 79581:
/*!************************************************************************!*\
- !*** ./node_modules/_mind-elixir@4.0.5@mind-elixir/dist/MindElixir.js ***!
+ !*** ./node_modules/_mind-elixir@4.1.1@mind-elixir/dist/MindElixir.js ***!
\************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ Z: function() { return /* binding */ k; }
+/* harmony export */ Z: function() { return /* binding */ T; }
/* harmony export */ });
(function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0 2px var(--selected)}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container .map-canvas me-root me-tpc #input-box{padding:10px var(--gap)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;padding:var(--topic-padding);color:var(--color);background-color:var(--bgcolor);width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:all}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 3px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;font:300 15px Roboto,sans-serif;color:var(--panel-color);box-shadow:0 12px 15px #0003}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:10px 14px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color)}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none;color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li:hover{cursor:pointer;filter:brightness(.9)}.mind-elixir .context-menu .menu-list li:first-child{border-radius:5px 5px 0 0}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0;border-radius:0 0 5px 5px}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir .mobile-menu{position:absolute;left:20px;bottom:70px;z-index:99;margin:0;padding:0;color:#333;border-radius:5px;box-shadow:0 12px 15px #0003;overflow:hidden}.mind-elixir .mobile-menu *{transition:color .4s,background-color .4s}.mind-elixir .mobile-menu div{float:left;text-align:center;width:30px;overflow:hidden;white-space:nowrap;padding:8px;background-color:#fff;border-bottom:1px solid #ecf0f1}.mind-elixir .mobile-menu div a{color:#333;text-decoration:none}.mind-elixir .mobile-menu div.disabled{color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .mobile-menu div.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .mobile-menu div:hover{cursor:pointer;background-color:#ecf0f1}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
(function(e) {
@@ -3297,7 +3028,7 @@ function k(u) {
s.readyState == "complete" && (s.onreadystatechange = null, h());
});
})(window);
-const T = 0, z = 1, re = 2, D = 30, De = {
+const k = 0, z = 1, re = 2, D = 30, De = {
name: "Latte",
palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
cssVar: {
@@ -3499,7 +3230,7 @@ const st = {
if (this.direction === re) {
let o = 0, s = 0;
n.map((i) => {
- i.direction === T ? o += 1 : i.direction === z ? s += 1 : o <= s ? (i.direction = T, o += 1) : (i.direction = z, s += 1);
+ i.direction === k ? o += 1 : i.direction === z ? s += 1 : o <= s ? (i.direction = k, o += 1) : (i.direction = z, s += 1);
});
}
rt(this, n, t);
@@ -3510,7 +3241,7 @@ const st = {
s.className = "rhs";
for (let i = 0; i < t.length; i++) {
const r = t[i], { grp: c } = e.createWrapper(r);
- e.direction === re ? r.direction === T ? o.appendChild(c) : s.appendChild(c) : e.direction === T ? o.appendChild(c) : s.appendChild(c);
+ e.direction === re ? r.direction === k ? o.appendChild(c) : s.appendChild(c) : e.direction === k ? o.appendChild(c) : s.appendChild(c);
}
e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
}, ct = function(e, t) {
@@ -3587,7 +3318,7 @@ const ut = function(e) {
if (!e)
return;
const t = S.createElement("div"), n = e.text.textContent;
- e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1, t.style.cssText = `min-width:${e.offsetWidth - 8}px;`, this.direction === T && (t.style.right = "0"), t.focus(), Pe(t), this.bus.fire("operation", {
+ e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1, t.style.cssText = `min-width:${e.offsetWidth - 8}px;`, this.direction === k && (t.style.right = "0"), t.focus(), Pe(t), this.bus.fire("operation", {
name: "beginEdit",
obj: e.nodeObj
}), t.addEventListener("keydown", (o) => {
@@ -3807,7 +3538,7 @@ function mt(e, t) {
}, o = (y, x, w) => {
const _ = document.createElement("li");
return _.id = y, _.innerHTML = `${ne(x)}${ne(w)}`, _;
- }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), c = o("cm-add_parent", i.addParent, ""), l = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-down", i.link, ""), p = o("cm-down", i.summary, ""), f = document.createElement("ul");
+ }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), c = o("cm-add_parent", i.addParent, ""), l = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-link", i.link, ""), p = o("cm-summary", i.summary, ""), f = document.createElement("ul");
if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(h), (!t || t.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(m), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
for (let y = 0; y < t.extend.length; y++) {
const x = t.extend[y], w = o(x.name, x.name, x.key || "");
@@ -3818,7 +3549,7 @@ function mt(e, t) {
const v = document.createElement("div");
v.className = "context-menu", v.appendChild(f), v.hidden = !0, e.container.append(v);
let b = !0;
- e.container.oncontextmenu = function(y) {
+ return e.container.oncontextmenu = function(y) {
if (y.preventDefault(), !e.editable)
return;
const x = y.target;
@@ -3861,6 +3592,8 @@ function mt(e, t) {
);
}, p.onclick = () => {
v.hidden = !0, e.createSummary(), e.unselectNodes();
+ }, () => {
+ r.onclick = null, c.onclick = null, l.onclick = null, h.onclick = null, a.onclick = null, u.onclick = null, d.onclick = null, m.onclick = null, g.onclick = null, p.onclick = null, v.onclick = null, e.container.oncontextmenu = null;
};
}
const gt = (e) => {
@@ -3889,11 +3622,11 @@ const gt = (e) => {
if (!n)
return;
const o = n.nodeObj, s = n.offsetParent.offsetParent.parentElement;
- o.root ? t === "lhs" ? gt(e) : vt(e) : s.className === t ? xt(e, n) : (r = o.parent) != null && r.root ? bt(e) : yt(e, n);
+ o.parent ? s.className === t ? xt(e, n) : (r = o.parent) != null && r.parent ? yt(e, n) : bt(e) : t === "lhs" ? gt(e) : vt(e);
}, Ee = function(e, t) {
var r;
const n = e.currentNode || ((r = e.currentNodes) == null ? void 0 : r[0]);
- if (!n || n.nodeObj.root)
+ if (!n || !n.nodeObj.parent)
return;
const s = t + "Sibling", i = n.parentElement.parentElement[s];
i && e.selectNode(i.firstChild.firstChild);
@@ -3999,7 +3732,7 @@ function Et(e, t) {
e.bus.addListener("unselectNode", function() {
a.hidden = !0;
}), e.bus.addListener("selectNode", function(d) {
- a.hidden = !1, d.root ? u = !0 : u = !1;
+ a.hidden = !1, d.parent ? u = !1 : u = !0;
}), a.onclick = (d) => {
d.target === a && (a.hidden = !0);
}, o.onclick = () => {
@@ -4031,7 +3764,7 @@ const ae = document, Nt = function(e, t) {
}, Ne = function(e, t) {
for (const n of t) {
const o = n.parentElement.parentElement.contains(e);
- if (!(e && e.tagName === "ME-TPC" && e !== n && !o && e.nodeObj.root !== !0))
+ if (!(e && e.tagName === "ME-TPC" && e !== n && !o && e.nodeObj.parent))
return !1;
}
return !0;
@@ -4110,7 +3843,13 @@ function Mt(e) {
}), e.undo = function() {
if (n > -1) {
const s = t[n];
- o = s.prev, e.refresh(s.prev), s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i))), n--;
+ o = s.prev, e.refresh(s.prev);
+ try {
+ s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i)));
+ } catch {
+ } finally {
+ n--;
+ }
}
}, e.redo = function() {
if (n < t.length - 1) {
@@ -4131,7 +3870,7 @@ const R = (e, t) => {
function Lt(e) {
const t = document.createElement("div"), n = R("fullscreen", "full"), o = R("toCenter", "living"), s = R("zoomout", "move"), i = R("zoomin", "add"), r = document.createElement("span");
return r.innerText = "100%", t.appendChild(n), t.appendChild(o), t.appendChild(s), t.appendChild(i), t.className = "mind-elixir-toolbar rb", n.onclick = () => {
- e.container.requestFullscreen();
+ e.mindElixirBox.requestFullscreen();
}, o.onclick = () => {
e.toCenter();
}, s.onclick = () => {
@@ -4140,7 +3879,7 @@ function Lt(e) {
e.scaleVal > 1.6 || e.scale(e.scaleVal += 0.2);
}, t;
}
-function Tt(e) {
+function kt(e) {
const t = document.createElement("div"), n = R("tbltl", "left"), o = R("tbltr", "right"), s = R("tblts", "side");
return t.appendChild(n), t.appendChild(o), t.appendChild(s), t.className = "mind-elixir-toolbar lt", n.onclick = () => {
e.initLeft();
@@ -4150,8 +3889,8 @@ function Tt(e) {
e.initSide();
}, t;
}
-function kt(e) {
- e.container.append(Lt(e)), e.container.append(Tt(e));
+function Tt(e) {
+ e.container.append(Lt(e)), e.container.append(kt(e));
}
/*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
var At = Object.defineProperty, jt = (e, t, n) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t, n) => (jt(e, typeof t != "symbol" ? t + "" : t, n), n);
@@ -4685,13 +4424,13 @@ function Fe(e, t, n) {
}
const Kt = function(e, t) {
var n, o;
- if (e === T)
- return T;
+ if (e === k)
+ return k;
if (e === z)
return z;
if (e === re) {
const s = ((n = document.querySelector(".lhs")) == null ? void 0 : n.childElementCount) || 0, i = ((o = document.querySelector(".rhs")) == null ? void 0 : o.childElementCount) || 0;
- return s <= i ? (t.direction = T, T) : (t.direction = z, z);
+ return s <= i ? (t.direction = k, k) : (t.direction = z, z);
}
}, Ie = function(e, t, n) {
var i, r;
@@ -4705,7 +4444,7 @@ const Kt = function(e, t) {
}
e.linkDiv(n.offsetParent);
} else
- s.tagName === "ME-ROOT" && (Kt(e.direction, o.nodeObj) === T ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
+ s.tagName === "ME-ROOT" && (Kt(e.direction, o.nodeObj) === k ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
}, Ke = function(e, t) {
const n = e.parentNode;
if (t === 0) {
@@ -4743,12 +4482,14 @@ const Kt = function(e, t) {
if (!o)
return;
const s = o.nodeObj;
- if (s.root === !0) {
+ if (s.parent) {
+ if (!((h = s.parent) != null && h.parent) && ((u = (a = s.parent) == null ? void 0 : a.children) == null ? void 0 : u.length) === 1) {
+ this.addChild(C(s.parent.id), n);
+ return;
+ }
+ } else {
this.addChild();
return;
- } else if (((h = s.parent) == null ? void 0 : h.root) === !0 && ((u = (a = s.parent) == null ? void 0 : a.children) == null ? void 0 : u.length) === 1) {
- this.addChild(C(s.parent.id), n);
- return;
}
const i = n || this.generateNewObj();
Ft(i, e, s), $(this.nodeData);
@@ -4764,7 +4505,7 @@ const Kt = function(e, t) {
return;
J(n);
const o = n.nodeObj;
- if (o.root === !0)
+ if (!o.parent)
return;
const s = t || this.generateNewObj();
It(o, s), $(this.nodeData);
@@ -4842,7 +4583,7 @@ const Kt = function(e, t) {
if (!t)
return;
const n = t.nodeObj;
- if (n.root === !0)
+ if (!n.parent)
throw new Error("Can not remove root node");
const o = n.parent.children, s = o.findIndex((c) => c === n), i = me(n);
if (Ke(t, i), o.length !== 0) {
@@ -4860,7 +4601,7 @@ const Kt = function(e, t) {
e = ce(e);
for (const t of e) {
const n = t.nodeObj;
- if (n.root === !0)
+ if (!n.parent)
continue;
const o = me(n);
Ke(t, o);
@@ -4992,9 +4733,9 @@ const cn = function(e, t, n) {
}, yn = function(e) {
e(this);
}, xn = function(e) {
- e.nodeObj.root || (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = e.nodeObj, this.nodeData.root = !0, this.initRight(), this.toCenter());
+ e.nodeObj.parent && (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = e.nodeObj, this.initRight(), this.toCenter());
}, wn = function() {
- this.isFocusMode = !1, this.tempDirection !== null && (delete this.nodeData.root, this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
+ this.isFocusMode = !1, this.tempDirection !== null && (this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
}, En = function() {
this.direction = 0, this.refresh();
}, Nn = function() {
@@ -5040,7 +4781,7 @@ const cn = function(e, t, n) {
toCenter: bn,
unselectNode: ln,
unselectNodes: dn
-}, Symbol.toStringTag, { value: "Module" })), Tn = function(e) {
+}, Symbol.toStringTag, { value: "Module" })), kn = function(e) {
return {
dom: e,
moved: !1,
@@ -5066,8 +4807,8 @@ const cn = function(e, t, n) {
this.moved = !1, this.mousedown = !1;
}
};
-}, Te = {
- create: Tn
+}, ke = {
+ create: kn
};
function ie(e, t, n) {
const { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, c = o + i / 2, l = s + r / 2, h = c + n.x, a = l + n.y;
@@ -5088,7 +4829,7 @@ function I(e) {
y: n
};
}
-const kn = function(e, t, n, o) {
+const Tn = function(e, t, n, o) {
const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
return N(s, {
"text-anchor": "middle",
@@ -5103,7 +4844,7 @@ const kn = function(e, t, n, o) {
const i = ie(e, t, o.delta1), r = ie(e, n, o.delta2), { x: c, y: l } = I(i), { ctrlX: h, ctrlY: a } = i, { ctrlX: u, ctrlY: d } = r, { x: m, y: g } = I(r), p = Oe(u, d, m, g), f = ft(
`M ${c} ${l} C ${h} ${a} ${u} ${d} ${m} ${g}`,
`M ${p.x1} ${p.y1} L ${m} ${g} L ${p.x2} ${p.y2}`
- ), v = c / 8 + h * 3 / 8 + u * 3 / 8 + m / 8, b = l / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = kn(o.label, v, b, e.theme.cssVar["--color"]);
+ ), v = c / 8 + h * 3 / 8 + u * 3 / 8 + m / 8, b = l / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = Tn(o.label, v, b, e.theme.cssVar["--color"]);
f.appendChild(y), f.arrowObj = o, f.dataset.linkid = o.id, e.linkSvgGroup.appendChild(f), s || (e.arrows.push(o), e.currentArrow = f, Je(e, o, i, r)), performance.now();
}, An = function(e, t) {
const n = {
@@ -5158,7 +4899,7 @@ const kn = function(e, t, n, o) {
y1: h + "",
x2: a + "",
y2: u + ""
- }), e.helper1 && (e.helper1.destory(e.map), (d = e.helper2) == null || d.destory(e.map)), e.helper1 = Te.create(e.P2), e.helper2 = Te.create(e.P3), e.helper1.init(e.map, (m, g) => {
+ }), e.helper1 && (e.helper1.destory(e.map), (d = e.helper2) == null || d.destory(e.map)), e.helper1 = ke.create(e.P2), e.helper2 = ke.create(e.P3), e.helper1.init(e.map, (m, g) => {
var b;
r = r + m / e.scaleVal, c = c + g / e.scaleVal;
const p = I({ ...n, ctrlX: r, ctrlY: c });
@@ -5262,7 +5003,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
if (!o)
throw new Error("Can not select root node.");
const s = n.map((a) => a[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, c = n[0][o - 1].node;
- if (c.root)
+ if (!c.parent)
throw new Error("Please select nodes in the same main topic.");
return {
parent: c.id,
@@ -5272,7 +5013,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
}, Rn = function(e) {
const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
return t.setAttribute("id", e), t;
-}, ke = function(e, t) {
+}, Te = function(e, t) {
const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
return N(n, {
d: e,
@@ -5293,7 +5034,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
var i, r;
const n = C(e), o = n.nodeObj;
let s;
- return o.root === !0 ? s = (i = C(o.children[t].id).closest("me-main")) == null ? void 0 : i.className : s = (r = n.closest("me-main")) == null ? void 0 : r.className, s;
+ return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = C(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
}, Qe = function(e, t) {
var _;
const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, h = C(s).nodeObj, a = Fn(t);
@@ -5307,7 +5048,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
}
let p, f;
const v = m + 10, b = g + 10, y = (v + b) / 2, x = e.theme.cssVar["--color"];
- a === "lhs" ? (p = ke(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${y} h -10`, x), f = Ae(o, u - 20, y + 6, "end", x)) : (p = ke(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${b - 10} c 0 5 -5 10 -10 10 M ${d} ${y} h 10`, x), f = Ae(o, d + 20, y + 6, "start", x));
+ a === "lhs" ? (p = Te(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${y} h -10`, x), f = Ae(o, u - 20, y + 6, "end", x)) : (p = Te(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${b - 10} c 0 5 -5 10 -10 10 M ${d} ${y} h 10`, x), f = Ae(o, d + 20, y + 6, "start", x));
const w = Rn("s-" + n);
return w.appendChild(p), w.appendChild(f), w.summaryObj = t, e.summarySvg.appendChild(w), w;
}, In = function() {
@@ -5560,7 +5301,11 @@ const uo = {
init(e) {
if (!e || !e.nodeData)
return new Error("MindElixir: `data` is required");
- e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, $(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && kt(this), this.keypress && wt(this), this.editable && Bt(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && mt(this, this.contextMenuOption), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, $(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Tt(this), this.keypress && wt(this), this.editable && Bt(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && this.disposable.push(mt(this, this.contextMenuOption)), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
+ },
+ destroy() {
+ var e, t;
+ this.disposable.forEach((n) => n()), (e = this.mindElixirBox) == null || e.remove(), this.mindElixirBox = void 0, this.nodeData = void 0, this.arrows = void 0, this.summaries = void 0, this.currentArrow = void 0, this.currentNode = 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;
}
};
function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, containerHeight: h }) {
@@ -5580,7 +5325,7 @@ function po({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction:
return l === "lhs" ? (p = t, m = p + D, g = p - D, u = i + D, `M ${m} ${a} C ${p} ${a} ${p + f} ${d} ${g} ${d} H ${u}`) : (p = t + n, m = p - D, g = p + D, u = i + r - D, `M ${m} ${a} C ${p} ${a} ${p - f} ${d} ${g} ${d} H ${u}`);
}
const Y = document;
-function k({
+function T({
el: e,
direction: t,
locale: n,
@@ -5604,31 +5349,324 @@ function k({
const y = Object.prototype.toString.call(e);
if (y === "[object HTMLDivElement]" ? b = e : y === "[object String]" && (b = document.querySelector(e)), !b)
throw new Error("MindElixir: el is not a valid element");
- b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = g || po, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
+ b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = g || po, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
const x = window.matchMedia("(prefers-color-scheme: dark)");
this.theme = v || (x.matches ? $e : De);
const w = Y.createElement("div");
w.className = "map-canvas", this.map = w, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = Y.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = X("lines"), this.summarySvg = X("summary"), this.linkController = X("linkcontroller"), this.P2 = Y.createElement("div"), this.P3 = Y.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = be(), this.line2 = be(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = X("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ot(this);
}
-k.prototype = uo;
-k.LEFT = T;
-k.RIGHT = z;
-k.SIDE = re;
-k.THEME = De;
-k.DARK_THEME = $e;
-k.version = "4.0.5";
-k.E = C;
-k.new = (e) => ({
+T.prototype = uo;
+T.LEFT = k;
+T.RIGHT = z;
+T.SIDE = re;
+T.THEME = De;
+T.DARK_THEME = $e;
+T.version = "4.1.1";
+T.E = C;
+T.new = (e) => ({
nodeData: {
id: G(),
topic: e || "new topic",
- root: !0,
children: []
}
});
+/***/ }),
+
+/***/ 99113:
+/*!***************************************************************************!*\
+ !*** ./node_modules/_node-menu-bar@1.0.0@node-menu-bar/dist/node-menu.js ***!
+ \***************************************************************************/
+/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Z: function() { return /* binding */ k; }
+/* harmony export */ });
+window._iconfont_svg_string_4003484 = '', function(u) {
+ var n = (n = document.getElementsByTagName("script"))[n.length - 1], l = n.getAttribute("data-injectcss"), n = n.getAttribute("data-disable-injectsvg");
+ if (!n) {
+ var g, p, E, r, m, t = function(s, c) {
+ c.parentNode.insertBefore(s, c);
+ };
+ if (l && !u.__iconfont__svg__cssinject__) {
+ u.__iconfont__svg__cssinject__ = !0;
+ try {
+ document.write("");
+ } catch (s) {
+ console && console.log(s);
+ }
+ }
+ g = function() {
+ var s, c = document.createElement("div");
+ c.innerHTML = u._iconfont_svg_string_4003484, (c = c.getElementsByTagName("svg")[0]) && (c.setAttribute("aria-hidden", "true"), c.style.position = "absolute", c.style.width = 0, c.style.height = 0, c.style.overflow = "hidden", c = c, (s = document.body).firstChild ? t(c, s.firstChild) : s.appendChild(c));
+ }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(g, 0) : (p = function() {
+ document.removeEventListener("DOMContentLoaded", p, !1), g();
+ }, document.addEventListener("DOMContentLoaded", p, !1)) : document.attachEvent && (E = g, r = u.document, m = !1, h(), r.onreadystatechange = function() {
+ r.readyState == "complete" && (r.onreadystatechange = null, C());
+ });
+ }
+ function C() {
+ m || (m = !0, E());
+ }
+ function h() {
+ try {
+ r.documentElement.doScroll("left");
+ } catch {
+ return void setTimeout(h, 50);
+ }
+ C();
+ }
+}(window);
+const N = {
+ addChild: "\u63D2\u5165\u5B50\u8282\u70B9",
+ addParent: "\u63D2\u5165\u7236\u8282\u70B9",
+ addSibling: "\u63D2\u5165\u540C\u7EA7\u8282\u70B9",
+ removeNode: "\u5220\u9664\u8282\u70B9",
+ focus: "\u4E13\u6CE8",
+ cancelFocus: "\u53D6\u6D88\u4E13\u6CE8",
+ moveUp: "\u4E0A\u79FB",
+ moveDown: "\u4E0B\u79FB",
+ link: "\u8FDE\u63A5",
+ clickTips: "\u8BF7\u70B9\u51FB\u76EE\u6807\u8282\u70B9",
+ font: "\u6587\u5B57",
+ background: "\u80CC\u666F",
+ tag: "\u6807\u7B7E",
+ icon: "\u56FE\u6807",
+ tagsSeparate: "\u591A\u4E2A\u6807\u7B7E\u534A\u89D2\u9017\u53F7\u5206\u9694",
+ iconsSeparate: "\u591A\u4E2A\u56FE\u6807\u534A\u89D2\u9017\u53F7\u5206\u9694",
+ url: "\u94FE\u63A5",
+ memo: "\u5907\u5FD8\u5F55"
+}, i = {
+ cn: N,
+ zh_CN: N,
+ zh_TW: {
+ addChild: "\u63D2\u5165\u5B50\u7BC0\u9EDE",
+ addParent: "\u63D2\u5165\u7236\u7BC0\u9EDE",
+ addSibling: "\u63D2\u5165\u540C\u7D1A\u7BC0\u9EDE",
+ removeNode: "\u522A\u9664\u7BC0\u9EDE",
+ focus: "\u5C08\u6CE8",
+ cancelFocus: "\u53D6\u6D88\u5C08\u6CE8",
+ moveUp: "\u4E0A\u79FB",
+ moveDown: "\u4E0B\u79FB",
+ link: "\u9023\u63A5",
+ clickTips: "\u8ACB\u9EDE\u64CA\u76EE\u6A19\u7BC0\u9EDE",
+ font: "\u6587\u5B57",
+ background: "\u80CC\u666F",
+ tag: "\u6A19\u7C3D",
+ icon: "\u5716\u6A19",
+ tagsSeparate: "\u591A\u500B\u6A19\u7C3D\u534A\u89D2\u9017\u865F\u5206\u9694",
+ iconsSeparate: "\u591A\u500B\u5716\u6A19\u534A\u89D2\u9017\u865F\u5206\u9694",
+ url: "URL"
+ },
+ en: {
+ addChild: "Add child",
+ addParent: "Add parent",
+ addSibling: "Add sibling",
+ removeNode: "Remove node",
+ focus: "Focus Mode",
+ cancelFocus: "Cancel Focus Mode",
+ moveUp: "Move up",
+ moveDown: "Move down",
+ link: "Link",
+ clickTips: "Please click the target node",
+ font: "Font",
+ background: "Background",
+ tag: "Tag",
+ icon: "Icon",
+ tagsSeparate: "Separate tags by comma",
+ iconsSeparate: "Separate icons by comma",
+ url: "URL"
+ },
+ ru: {
+ addChild: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ addParent: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ addSibling: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u044D\u0442\u043E\u043C \u0443\u0440\u043E\u0432\u043D\u0435",
+ removeNode: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0443\u0437\u0435\u043B",
+ focus: "\u0420\u0435\u0436\u0438\u043C \u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u043A\u0438",
+ cancelFocus: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u043A\u0438",
+ moveUp: "\u041F\u043E\u0434\u043D\u044F\u0442\u044C \u0432\u044B\u0448\u0435",
+ moveDown: "\u041E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043D\u0438\u0436\u0435",
+ link: "\u0421\u0441\u044B\u043B\u043A\u0430",
+ clickTips: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u0446\u0435\u043B\u0435\u0432\u043E\u0439 \u0443\u0437\u0435\u043B",
+ font: "\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",
+ background: "\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",
+ tag: "\u0422\u0435\u0433",
+ icon: "\u0418\u043A\u043E\u043D\u043A\u0430",
+ tagsSeparate: "\u0420\u0430\u0437\u0434\u0435\u043B\u044F\u0439\u0442\u0435 \u0442\u0435\u0433\u0438 \u0437\u0430\u043F\u044F\u0442\u043E\u0439",
+ iconsSeparate: "\u0420\u0430\u0437\u0434\u0435\u043B\u044F\u0439\u0442\u0435 \u0438\u043A\u043E\u043D\u043A\u0438 \u0437\u0430\u043F\u044F\u0442\u043E\u0439"
+ },
+ ja: {
+ addChild: "\u5B50\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B",
+ addParent: "\u89AA\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3057\u307E\u3059",
+ addSibling: "\u5144\u5F1F\u30CE\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B",
+ removeNode: "\u30CE\u30FC\u30C9\u3092\u524A\u9664",
+ focus: "\u96C6\u4E2D",
+ cancelFocus: "\u96C6\u4E2D\u89E3\u9664",
+ moveUp: "\u4E0A\u3078\u79FB\u52D5",
+ moveDown: "\u4E0B\u3078\u79FB\u52D5",
+ link: "\u30B3\u30CD\u30AF\u30C8",
+ clickTips: "\u30BF\u30FC\u30B2\u30C3\u30C8\u30CE\u30FC\u30C9\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044",
+ font: "\u30D5\u30A9\u30F3\u30C8",
+ background: "\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9",
+ tag: "\u30BF\u30B0",
+ icon: "\u30A2\u30A4\u30B3\u30F3",
+ tagsSeparate: "\u8907\u6570\u30BF\u30B0\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A",
+ iconsSeparate: "\u8907\u6570\u30A2\u30A4\u30B3\u30F3\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A",
+ url: "URL"
+ },
+ pt: {
+ addChild: "Adicionar item filho",
+ addParent: "Adicionar item pai",
+ addSibling: "Adicionar item irmao",
+ removeNode: "Remover item",
+ focus: "Modo Foco",
+ cancelFocus: "Cancelar Modo Foco",
+ moveUp: "Mover para cima",
+ moveDown: "Mover para baixo",
+ link: "Link",
+ clickTips: "Favor clicar no item alvo",
+ font: "Fonte",
+ background: "Cor de fundo",
+ tag: "Tag",
+ icon: "Icone",
+ tagsSeparate: "Separe tags por virgula",
+ iconsSeparate: "Separe icones por virgula",
+ url: "URL"
+ }
+}, v = (u, l) => {
+ const n = document.createElement("div");
+ return n.id = u, n.innerHTML = l, n;
+}, S = [
+ "#2c3e50",
+ "#34495e",
+ "#7f8c8d",
+ "#94a5a6",
+ "#bdc3c7",
+ "#ecf0f1",
+ "#8e44ad",
+ "#9b59b6",
+ "#2980b9",
+ "#3298db",
+ "#c0392c",
+ "#e74c3c",
+ "#d35400",
+ "#f39c11",
+ "#f1c40e",
+ "#17a085",
+ "#27ae61",
+ "#2ecc71"
+];
+function k(u) {
+ console.log("install node menu");
+ function l(e, a) {
+ const o = u.container.querySelectorAll(e);
+ [].forEach.call(o, function(d) {
+ d.classList.remove(a);
+ });
+ }
+ const n = i[u.locale] ? u.locale : "en", g = v(
+ "nm-style",
+ `
+
+ ${["15", "24", "32"].map((e) => `
+
`).join("")}
+
+
+ ${S.map((e) => `
`).join("")}
+
+
+ ${i[n].font}
+ ${i[n].background}
+
`
+ ), p = v(
+ "nm-tag",
+ `${i[n].tag}`
+ ), E = v(
+ "nm-icon",
+ `${i[n].icon}`
+ ), r = v(
+ "nm-url",
+ `${i[n].url}`
+ ), m = v(
+ "nm-memo",
+ `${i[n].memo || "Memo"}`
+ ), t = document.createElement("div");
+ t.className = "node-menu", t.innerHTML = `
+
+ `, t.appendChild(g), t.appendChild(p), t.appendChild(E), t.appendChild(r), t.appendChild(m), t.hidden = !0, u.container.append(t);
+ const C = t.querySelectorAll(".size"), h = t.querySelector(".bold"), s = t.querySelector(".button-container"), c = t.querySelector(".font"), A = u.container.querySelector(".nm-tag"), B = u.container.querySelector(".nm-icon"), y = u.container.querySelector(".nm-url"), D = u.container.querySelector(".nm-memo");
+ let f;
+ u.findEle, t.onclick = (e) => {
+ if (!u.currentNode)
+ return;
+ const a = u.currentNode.nodeObj, o = e.target;
+ if (o.className === "palette") {
+ l(".palette", "nmenu-selected"), o.className = "palette nmenu-selected";
+ const d = o.dataset.color, F = { style: {} };
+ f === "font" ? F.style.color = d : f === "background" && (F.style.background = d), console.log(F), u.reshapeNode(u.currentNode, F);
+ } else
+ o.className === "background" ? (l(".palette", "nmenu-selected"), f = "background", o.className = "background selected", o.previousElementSibling.className = "font", a.style && a.style.background && (t.querySelector(
+ '.palette[data-color="' + a.style.background + '"]'
+ ).className = "palette nmenu-selected")) : o.className === "font" && (l(".palette", "nmenu-selected"), f = "font", o.className = "font selected", o.nextElementSibling.className = "background", a.style && a.style.color && (t.querySelector(
+ '.palette[data-color="' + a.style.color + '"]'
+ ).className = "palette nmenu-selected"));
+ }, Array.from(C).map((e) => {
+ e.onclick = (a) => {
+ l(".size", "size-selected");
+ const o = a.currentTarget;
+ o.className = "size size-selected", u.reshapeNode(u.currentNode, {
+ style: { fontSize: o.dataset.size }
+ });
+ };
+ }), h.onclick = (e) => {
+ var o, d;
+ let a = "";
+ ((d = (o = u.currentNode.nodeObj) == null ? void 0 : o.style) == null ? void 0 : d.fontWeight) === "bold" ? e.currentTarget.className = "bold" : (a = "bold", e.currentTarget.className = "bold size-selected"), u.reshapeNode(u.currentNode, { style: { fontWeight: a } });
+ }, A.onchange = (e) => {
+ if (!!u.currentNode && typeof e.target.value == "string") {
+ const a = e.target.value.split(",");
+ u.reshapeNode(u.currentNode, { tags: a.filter((o) => o) });
+ }
+ }, B.onchange = (e) => {
+ if (!!u.currentNode && typeof e.target.value == "string") {
+ const a = e.target.value.split(",");
+ u.reshapeNode(u.currentNode, {
+ icons: a.filter((o) => o)
+ });
+ }
+ }, y.onchange = (e) => {
+ !u.currentNode || u.reshapeNode(u.currentNode, { hyperLink: e.target.value });
+ }, D.onchange = (e) => {
+ !u.currentNode || (u.currentNode.nodeObj.memo = e.target.value, u.bus.fire("operation", {
+ name: "updateMemo",
+ obj: u.currentNode.nodeObj
+ }));
+ };
+ let b = "open";
+ s.onclick = (e) => {
+ t.classList.toggle("close"), b === "open" ? (b = "close", s.innerHTML = '') : (b = "open", s.innerHTML = '');
+ }, u.bus.addListener("unselectNode", function() {
+ t.hidden = !0;
+ }), u.bus.addListener("selectNode", function(e, a) {
+ !a || (t.hidden = !1, l(".palette", "nmenu-selected"), l(".size", "size-selected"), l(".bold", "size-selected"), f = "font", c.className = "font selected", c.nextElementSibling.className = "background", e.style && (e.style.fontSize && (t.querySelector(
+ '.size[data-size="' + e.style.fontSize + '"]'
+ ).className = "size size-selected"), e.style.fontWeight && (t.querySelector(".bold").className = "bold size-selected"), e.style.color && (t.querySelector(
+ '.palette[data-color="' + e.style.color + '"]'
+ ).className = "palette nmenu-selected")), e.tags ? A.value = e.tags.join(",") : A.value = "", e.icons ? B.value = e.icons.join(",") : B.value = "", y.value = e.hyperLink || "", D.value = e.memo || "");
+ });
+}
+
+
+
/***/ })
}]);
\ No newline at end of file
diff --git a/1681.9cb518bc.chunk.css b/54339.26349272.chunk.css
similarity index 99%
rename from 1681.9cb518bc.chunk.css
rename to 54339.26349272.chunk.css
index 78ab79b635..91dfa2352f 100644
--- a/1681.9cb518bc.chunk.css
+++ b/54339.26349272.chunk.css
@@ -1214,9 +1214,9 @@ span.CodeMirror-selectedtext {
pointer-events: none;
}
-/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.19@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/_@mind-elixir_node-menu@1.0.3@@mind-elixir/node-menu/dist/style.css ***!
- \**************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.19@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/_node-menu-bar@1.0.0@node-menu-bar/dist/style.css ***!
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************/
.mind-elixir .node-menu{position:absolute;right:20px;top:20px;background:#fff;border-radius:5px;box-shadow:0 1px 2px #0003;width:240px;box-sizing:border-box;padding:0 15px 15px;transition:.3s all}.mind-elixir .node-menu.close{height:30px;width:46px;overflow:hidden}.mind-elixir .node-menu .button-container{padding:3px 0;direction:rtl}.mind-elixir .node-menu #nm-tag{margin-top:20px}.mind-elixir .node-menu .nm-fontsize-container{display:flex;justify-content:space-around;margin-bottom:20px}.mind-elixir .node-menu .nm-fontsize-container div{height:36px;width:36px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 2px #0003;background-color:#fff;color:tomato;border-radius:100%}.mind-elixir .node-menu .nm-fontcolor-container{margin-bottom:10px}.mind-elixir .node-menu input,.mind-elixir .node-menu textarea{background:#f7f9fa;border:1px solid #dce2e6;border-radius:3px;padding:5px;margin:10px 0;width:100%;box-sizing:border-box}.mind-elixir .node-menu textarea{resize:none}.mind-elixir .node-menu .split6{display:inline-block;width:16.66%;margin-bottom:5px}.mind-elixir .node-menu .palette{border-radius:100%;width:21px;height:21px;border:1px solid #edf1f2;margin:auto}.mind-elixir .node-menu .nmenu-selected,.mind-elixir .node-menu .palette:hover{box-shadow:tomato 0 0 0 2px;background-color:#c7e9fa}.mind-elixir .node-menu .size-selected{background-color:tomato!important;border-color:tomato;fill:#fff;color:#fff}.mind-elixir .node-menu .size-selected svg{color:#fff}.mind-elixir .node-menu .bof{text-align:center}.mind-elixir .node-menu .bof span{display:inline-block;font-size:14px;border-radius:4px;padding:2px 5px}.mind-elixir .node-menu .bof .selected{background-color:tomato;color:#fff}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************!*\
diff --git a/1681.00c2e794.async.js b/54339.5ad41af8.async.js
similarity index 99%
rename from 1681.00c2e794.async.js
rename to 54339.5ad41af8.async.js
index 2a6e5d50ad..ca9e0513d6 100644
--- a/1681.00c2e794.async.js
+++ b/54339.5ad41af8.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[1681],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[54339],{
/***/ 27667:
/*!*********************************************************!*\
@@ -3083,12 +3083,12 @@ var FlowChart = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref,
/* harmony default export */ var MathematicalGraphics = (FlowChart);
// EXTERNAL MODULE: ./src/components/MathsLatexKeybords/keybords.tsx
var keybords = __webpack_require__(51294);
-// EXTERNAL MODULE: ./node_modules/_mind-elixir@4.0.5@mind-elixir/dist/MindElixir.js
-var MindElixir = __webpack_require__(90723);
-// EXTERNAL MODULE: ./node_modules/_@mind-elixir_node-menu@1.0.3@@mind-elixir/node-menu/dist/node-menu.js
-var node_menu = __webpack_require__(9652);
-// EXTERNAL MODULE: ./node_modules/_@mind-elixir_node-menu@1.0.3@@mind-elixir/node-menu/dist/style.css
-var dist_style = __webpack_require__(39721);
+// EXTERNAL MODULE: ./node_modules/_mind-elixir@4.1.1@mind-elixir/dist/MindElixir.js
+var MindElixir = __webpack_require__(79581);
+// EXTERNAL MODULE: ./node_modules/_node-menu-bar@1.0.0@node-menu-bar/dist/node-menu.js
+var node_menu = __webpack_require__(99113);
+// EXTERNAL MODULE: ./node_modules/_node-menu-bar@1.0.0@node-menu-bar/dist/style.css
+var dist_style = __webpack_require__(83350);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
@@ -3118,7 +3118,7 @@ var defaultInitData = {
direction: 2,
nodeData: {
id: "1c11affb6d8aafe1",
- root: true,
+ root: false,
topic: "中心主题",
children: [{
direction: 1,
@@ -3397,6 +3397,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
var resizeBarEl = (0,_react_17_0_2_react.useRef)();
var previewEl = (0,_react_17_0_2_react.useRef)();
var mindElixir = (0,_react_17_0_2_react.useRef)(null);
+ var ModalEl = (0,_react_17_0_2_react.useRef)();
var checkFiles = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res$attachments;
@@ -4088,6 +4089,9 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
title: '提示',
icon: null,
centered: true,
+ getContainer: function getContainer() {
+ return ModalEl.current;
+ },
content: "关闭弹窗将不会保存已编辑的思维导图,确认关闭弹窗吗?",
onOk: function onOk() {
setAction('');
@@ -4183,10 +4187,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
cm === null || cm === void 0 || cm.setValue(content);
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "markdown-editor-wrapper",
ref: containerEl,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "markdown-editor-container ".concat(className, " ").concat(preview ? 'on-preview' : '', " ").concat(miniToolbar ? 'mini' : '', " ").concat(isFull ? 'full-screen' : ''),
style: style,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(toolbar, {
@@ -4221,12 +4225,23 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
})]
}) : null]
})]
- })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ zIndex: 1011,
+ position: "fixed",
+ height: "100vh",
+ width: "100vw"
+ },
+ ref: ModalEl
+ })]
}), showResizeBar ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
ref: resizeBarEl,
className: "editor-resize"
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
children: TitleDesc[action] ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
+ getContainer: function getContainer() {
+ return ModalEl.current;
+ },
centered: true,
title: TitleDesc[action],
open: true,
diff --git a/index.html b/index.html
index 863faecae4..76c1417859 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
display: block !important;
}
-
+