mind-elixir 4.1.4 → 4.2.0
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 +6 -6
- package/dist/MindElixir.js +157 -131
- package/dist/MindElixirLite.iife.js +5 -5
- package/dist/MindElixirLite.js +118 -119
- package/dist/types/arrow.d.ts +31 -0
- package/dist/types/const.d.ts +8 -0
- package/dist/types/dev.d.ts +1 -0
- package/dist/types/docs.d.ts +9 -0
- package/dist/types/exampleData/1.cn.d.ts +125 -0
- package/dist/types/exampleData/1.d.ts +3 -0
- package/dist/types/exampleData/2.d.ts +3 -0
- package/dist/types/exampleData/3.d.ts +3 -0
- package/dist/types/exampleData/htmlText.d.ts +3 -0
- package/dist/types/i18n.d.ts +16 -0
- package/dist/types/index.d.ts +107 -0
- package/dist/types/interact.d.ts +132 -0
- package/dist/types/linkDiv.d.ts +15 -0
- package/dist/types/methods.d.ts +86 -0
- package/dist/types/mouse.d.ts +2 -0
- package/dist/types/nodeOperation.d.ts +18 -0
- package/dist/types/plugin/contextMenu.d.ts +13 -0
- package/dist/types/plugin/exportImage.d.ts +3 -0
- package/dist/types/plugin/keypress.d.ts +2 -0
- package/dist/types/plugin/mobileMenu.d.ts +3 -0
- package/dist/types/plugin/nodeDraggable.d.ts +2 -0
- package/dist/types/plugin/operationHistory.d.ts +2 -0
- package/dist/types/plugin/selection.d.ts +2 -0
- package/dist/types/plugin/toolBar.d.ts +3 -0
- package/dist/types/summary.d.ts +18 -0
- package/dist/types/types/dom.d.ts +50 -0
- package/dist/types/types/global.d.ts +7 -0
- package/dist/types/types/index.d.ts +171 -0
- package/dist/types/utils/LinkDragMoveHelper.d.ts +28 -0
- package/dist/types/utils/dom.d.ts +18 -0
- package/dist/types/utils/domManipulation.d.ts +5 -0
- package/dist/types/utils/dragMoveHelper.d.ts +7 -0
- package/dist/types/utils/generateBranch.d.ts +27 -0
- package/dist/types/utils/index.d.ts +30 -0
- package/dist/types/utils/layout.d.ts +4 -0
- package/dist/types/utils/objectManipulation.d.ts +7 -0
- package/dist/types/utils/pubsub.d.ts +80 -0
- package/dist/types/utils/svg.d.ts +7 -0
- package/dist/types/utils/theme.d.ts +4 -0
- package/package.json +3 -5
- package/readme.md +34 -1
package/dist/MindElixir.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(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>a{pointer-events:auto}.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)}})();
|
|
1
|
+
(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>a{pointer-events:auto}.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;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.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)}})();
|
|
2
2
|
(function(e) {
|
|
3
3
|
var t, n, o, s, i, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><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="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><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="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><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" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><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" ></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" ></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" ></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" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><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" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><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" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><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="" ></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="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
|
|
4
4
|
if (l && !e.__iconfont__svg__cssinject__) {
|
|
@@ -174,7 +174,7 @@ function it(e) {
|
|
|
174
174
|
else
|
|
175
175
|
return;
|
|
176
176
|
}), e.map.addEventListener("dblclick", (t) => {
|
|
177
|
-
if (
|
|
177
|
+
if (!e.editable)
|
|
178
178
|
return;
|
|
179
179
|
const n = t.target;
|
|
180
180
|
ae(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
|
|
@@ -189,8 +189,6 @@ function it(e) {
|
|
|
189
189
|
}), e.map.addEventListener("mouseup", (t) => {
|
|
190
190
|
const n = e.mouseSelectionButton === 0 ? 2 : 0;
|
|
191
191
|
t.button === n && k.clear();
|
|
192
|
-
}), e.map.addEventListener("contextmenu", (t) => {
|
|
193
|
-
t.preventDefault();
|
|
194
192
|
});
|
|
195
193
|
}
|
|
196
194
|
const rt = {
|
|
@@ -252,8 +250,8 @@ const rt = {
|
|
|
252
250
|
n.appendChild(i);
|
|
253
251
|
}
|
|
254
252
|
return n;
|
|
255
|
-
},
|
|
256
|
-
const o = (t ? t.mindElixirBox :
|
|
253
|
+
}, _ = document, C = (e, t) => {
|
|
254
|
+
const o = (t ? t.mindElixirBox : _).querySelector(`[data-nodeid=me${e}]`);
|
|
257
255
|
if (!o)
|
|
258
256
|
throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);
|
|
259
257
|
return o;
|
|
@@ -265,32 +263,32 @@ const rt = {
|
|
|
265
263
|
if (t.image) {
|
|
266
264
|
const n = t.image;
|
|
267
265
|
if (n.url && n.width && n.height) {
|
|
268
|
-
const o =
|
|
266
|
+
const o = _.createElement("img");
|
|
269
267
|
o.src = n.url, o.style.width = n.width + "px", o.style.height = n.height + "px", e.appendChild(o), e.image = o;
|
|
270
268
|
}
|
|
271
269
|
} else
|
|
272
270
|
e.image && (e.image = void 0);
|
|
273
271
|
{
|
|
274
|
-
const n =
|
|
272
|
+
const n = _.createElement("span");
|
|
275
273
|
n.className = "text", n.textContent = t.topic, e.appendChild(n), e.text = n;
|
|
276
274
|
}
|
|
277
275
|
if (t.hyperLink) {
|
|
278
|
-
const n =
|
|
276
|
+
const n = _.createElement("a");
|
|
279
277
|
n.className = "hyper-link", n.target = "_blank", n.innerText = "🔗", n.href = t.hyperLink, e.appendChild(n), e.linkContainer = n;
|
|
280
278
|
} else
|
|
281
279
|
e.linkContainer && (e.linkContainer = void 0);
|
|
282
280
|
if (t.icons && t.icons.length) {
|
|
283
|
-
const n =
|
|
281
|
+
const n = _.createElement("span");
|
|
284
282
|
n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${oe(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
|
|
285
283
|
} else
|
|
286
284
|
e.icons && (e.icons = void 0);
|
|
287
285
|
if (t.tags && t.tags.length) {
|
|
288
|
-
const n =
|
|
286
|
+
const n = _.createElement("div");
|
|
289
287
|
n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${oe(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
|
|
290
288
|
} else
|
|
291
289
|
e.tags && (e.tags = void 0);
|
|
292
290
|
}, dt = function(e, t) {
|
|
293
|
-
const n =
|
|
291
|
+
const n = _.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
|
|
294
292
|
if (n.appendChild(o), !t && e.children && e.children.length > 0) {
|
|
295
293
|
const i = me(e.expanded);
|
|
296
294
|
if (o.appendChild(i), e.expanded !== !1) {
|
|
@@ -300,17 +298,17 @@ const rt = {
|
|
|
300
298
|
}
|
|
301
299
|
return { grp: n, top: o, tpc: s };
|
|
302
300
|
}, ht = function(e) {
|
|
303
|
-
const t =
|
|
301
|
+
const t = _.createElement("me-parent"), n = this.createTopic(e);
|
|
304
302
|
return pe(n, e), t.appendChild(n), { p: t, tpc: n };
|
|
305
303
|
}, ut = function(e) {
|
|
306
|
-
const t =
|
|
304
|
+
const t = _.createElement("me-children");
|
|
307
305
|
return t.append(...e), t;
|
|
308
306
|
}, ft = function(e) {
|
|
309
|
-
const t =
|
|
307
|
+
const t = _.createElement("me-tpc");
|
|
310
308
|
return t.nodeObj = e, t.dataset.nodeid = "me" + e.id, t.draggable = this.draggable, t;
|
|
311
309
|
};
|
|
312
310
|
function Be(e) {
|
|
313
|
-
const t =
|
|
311
|
+
const t = _.createRange();
|
|
314
312
|
t.selectNodeContents(e);
|
|
315
313
|
const n = window.getSelection();
|
|
316
314
|
n && (n.removeAllRanges(), n.addRange(t));
|
|
@@ -318,7 +316,7 @@ function Be(e) {
|
|
|
318
316
|
const pt = function(e) {
|
|
319
317
|
if (!e)
|
|
320
318
|
return;
|
|
321
|
-
const t =
|
|
319
|
+
const t = _.createElement("div"), n = e.text.textContent;
|
|
322
320
|
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 === L && (t.style.right = "0"), t.focus(), Be(t), this.bus.fire("operation", {
|
|
323
321
|
name: "beginEdit",
|
|
324
322
|
obj: e.nodeObj
|
|
@@ -342,7 +340,7 @@ const pt = function(e) {
|
|
|
342
340
|
}));
|
|
343
341
|
});
|
|
344
342
|
}, me = function(e) {
|
|
345
|
-
const t =
|
|
343
|
+
const t = _.createElement("me-epd");
|
|
346
344
|
return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
|
|
347
345
|
}, K = document, V = "http://www.w3.org/2000/svg", ze = function(e, t, n) {
|
|
348
346
|
const o = K.createElementNS(V, "path");
|
|
@@ -402,28 +400,28 @@ const pt = function(e) {
|
|
|
402
400
|
for (let c = 0; c < r.length; c++) {
|
|
403
401
|
const l = r[c], h = l.querySelector("me-tpc"), { offsetLeft: a, offsetTop: d } = $(this.nodes, h), u = h.offsetWidth, g = h.offsetHeight, p = l.parentNode.className, m = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: d, cL: a, cW: u, cH: g, direction: p, containerHeight: this.nodes.offsetHeight }), f = this.theme.palette, v = h.nodeObj.branchColor || f[c % f.length];
|
|
404
402
|
h.style.borderColor = v, this.lines.appendChild(ze(m, v, "3"));
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
403
|
+
const y = l.children[0].children[1];
|
|
404
|
+
if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", p === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== l)
|
|
407
405
|
continue;
|
|
408
|
-
const
|
|
409
|
-
x.tagName === "svg" && x.remove(), l.appendChild(
|
|
406
|
+
const b = X("subLines"), x = l.lastChild;
|
|
407
|
+
x.tagName === "svg" && x.remove(), l.appendChild(b), Fe(this, b, v, l, p, !0);
|
|
410
408
|
}
|
|
411
409
|
this.renderArrow(), this.renderSummary();
|
|
412
|
-
},
|
|
410
|
+
}, Fe = function(e, t, n, o, s, i) {
|
|
413
411
|
const r = o.firstChild, c = o.children[1].children;
|
|
414
412
|
if (c.length === 0)
|
|
415
413
|
return;
|
|
416
414
|
const l = r.offsetTop, h = r.offsetLeft, a = r.offsetWidth, d = r.offsetHeight;
|
|
417
415
|
for (let u = 0; u < c.length; u++) {
|
|
418
|
-
const g = c[u], p = g.firstChild, m = p.offsetTop, f = p.offsetLeft, v = p.offsetWidth,
|
|
419
|
-
t.appendChild(ze(x,
|
|
416
|
+
const g = c[u], p = g.firstChild, m = p.offsetTop, f = p.offsetLeft, v = p.offsetWidth, y = p.offsetHeight, b = p.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: l, pL: h, pW: a, pH: d, cT: m, cL: f, cW: v, cH: y, direction: s, isFirst: i });
|
|
417
|
+
t.appendChild(ze(x, b, "2"));
|
|
420
418
|
const w = p.children[1];
|
|
421
419
|
if (w) {
|
|
422
420
|
if (w.style.bottom = -(w.offsetHeight / 2) + "px", s === "lhs" ? w.style.left = "10px" : s === "rhs" && (w.style.right = "10px"), !w.expanded)
|
|
423
421
|
continue;
|
|
424
422
|
} else
|
|
425
423
|
continue;
|
|
426
|
-
|
|
424
|
+
Fe(e, t, b, g, s);
|
|
427
425
|
}
|
|
428
426
|
}, xe = {
|
|
429
427
|
addChild: "插入子节点",
|
|
@@ -530,62 +528,88 @@ const pt = function(e) {
|
|
|
530
528
|
link: "Enlace",
|
|
531
529
|
clickTips: "Por favor haga clic en el nodo de destino",
|
|
532
530
|
summary: "Resumen"
|
|
531
|
+
},
|
|
532
|
+
fr: {
|
|
533
|
+
addChild: "Ajout enfant",
|
|
534
|
+
addParent: "Ajout parent",
|
|
535
|
+
addSibling: "Ajout voisin",
|
|
536
|
+
removeNode: "Supprimer",
|
|
537
|
+
focus: "Cibler",
|
|
538
|
+
cancelFocus: "Retour",
|
|
539
|
+
moveUp: "Monter",
|
|
540
|
+
moveDown: "Descendre",
|
|
541
|
+
link: "Lier",
|
|
542
|
+
clickTips: "Cliquer sur le noeud cible",
|
|
543
|
+
summary: "Annoter"
|
|
544
|
+
},
|
|
545
|
+
ko: {
|
|
546
|
+
addChild: "자식 추가",
|
|
547
|
+
addParent: "부모 추가",
|
|
548
|
+
addSibling: "형제 추가",
|
|
549
|
+
removeNode: "노드 삭제",
|
|
550
|
+
focus: "포커스 모드",
|
|
551
|
+
cancelFocus: "포커스 모드 취소",
|
|
552
|
+
moveUp: "위로 이동",
|
|
553
|
+
moveDown: "아래로 이동",
|
|
554
|
+
link: "연결",
|
|
555
|
+
clickTips: "대상 노드를 클릭하십시오",
|
|
556
|
+
summary: "요약"
|
|
533
557
|
}
|
|
534
558
|
};
|
|
535
559
|
function vt(e, t) {
|
|
536
|
-
const n = (
|
|
560
|
+
const n = (b) => {
|
|
537
561
|
const x = document.createElement("div");
|
|
538
|
-
return x.innerText =
|
|
539
|
-
}, o = (
|
|
540
|
-
const
|
|
541
|
-
return
|
|
542
|
-
}, s = we[e.locale] ? e.locale : "en", i = we[s], r = o("cm-add_child", i.addChild, "
|
|
562
|
+
return x.innerText = b, x.className = "tips", x;
|
|
563
|
+
}, o = (b, x, w) => {
|
|
564
|
+
const S = document.createElement("li");
|
|
565
|
+
return S.id = b, S.innerHTML = `<span>${oe(x)}</span><span ${w ? 'class="key"' : ""}>${oe(w)}</span>`, S;
|
|
566
|
+
}, s = we[e.locale] ? e.locale : "en", i = we[s], r = o("cm-add_child", i.addChild, "Tab"), c = o("cm-add_parent", i.addParent, "Ctrl + Enter"), l = o("cm-add_sibling", i.addSibling, "Enter"), h = o("cm-remove_child", i.removeNode, "Delete"), a = o("cm-fucus", i.focus, ""), d = o("cm-unfucus", i.cancelFocus, ""), u = o("cm-up", i.moveUp, "PgUp"), g = o("cm-down", i.moveDown, "Pgdn"), p = o("cm-link", i.link, ""), m = o("cm-summary", i.summary, ""), f = document.createElement("ul");
|
|
543
567
|
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(d)), f.appendChild(u), f.appendChild(g), f.appendChild(m), (!t || t.link) && f.appendChild(p), t && t.extend)
|
|
544
|
-
for (let
|
|
545
|
-
const x = t.extend[
|
|
546
|
-
f.appendChild(w), w.onclick = (
|
|
547
|
-
x.onclick(
|
|
568
|
+
for (let b = 0; b < t.extend.length; b++) {
|
|
569
|
+
const x = t.extend[b], w = o(x.name, x.name, x.key || "");
|
|
570
|
+
f.appendChild(w), w.onclick = (S) => {
|
|
571
|
+
x.onclick(S);
|
|
548
572
|
};
|
|
549
573
|
}
|
|
550
574
|
const v = document.createElement("div");
|
|
551
575
|
v.className = "context-menu", v.appendChild(f), v.hidden = !0, e.container.append(v);
|
|
552
|
-
let
|
|
553
|
-
return e.container.oncontextmenu = function(
|
|
554
|
-
if (
|
|
576
|
+
let y = !0;
|
|
577
|
+
return e.container.oncontextmenu = function(b) {
|
|
578
|
+
if (b.preventDefault(), !e.editable)
|
|
555
579
|
return;
|
|
556
|
-
const x =
|
|
580
|
+
const x = b.target;
|
|
557
581
|
if (ae(x)) {
|
|
558
|
-
x.parentElement.tagName === "ME-ROOT" ?
|
|
559
|
-
const w = f.getBoundingClientRect(),
|
|
560
|
-
|
|
582
|
+
x.parentElement.tagName === "ME-ROOT" ? y = !0 : y = !1, y ? (a.className = "disabled", u.className = "disabled", g.className = "disabled", c.className = "disabled", l.className = "disabled", h.className = "disabled") : (a.className = "", u.className = "", g.className = "", c.className = "", l.className = "", h.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, k.mousedown && (k.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
|
|
583
|
+
const w = f.getBoundingClientRect(), S = f.offsetHeight, P = f.offsetWidth, U = b.clientY - w.top, H = b.clientX - w.left;
|
|
584
|
+
S + U > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = U + 15 + "px"), P + H > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = H + 10 + "px");
|
|
561
585
|
}
|
|
562
|
-
}, v.onclick = (
|
|
563
|
-
|
|
586
|
+
}, v.onclick = (b) => {
|
|
587
|
+
b.target === v && (v.hidden = !0);
|
|
564
588
|
}, r.onclick = () => {
|
|
565
589
|
e.addChild(), v.hidden = !0;
|
|
566
590
|
}, c.onclick = () => {
|
|
567
591
|
e.insertParent(), v.hidden = !0;
|
|
568
592
|
}, l.onclick = () => {
|
|
569
|
-
|
|
593
|
+
y || (e.insertSibling("after"), v.hidden = !0);
|
|
570
594
|
}, h.onclick = () => {
|
|
571
|
-
|
|
595
|
+
y || (e.removeNode(), v.hidden = !0);
|
|
572
596
|
}, a.onclick = () => {
|
|
573
|
-
|
|
597
|
+
y || (e.focusNode(e.currentNode), v.hidden = !0);
|
|
574
598
|
}, d.onclick = () => {
|
|
575
599
|
e.cancelFocus(), v.hidden = !0;
|
|
576
600
|
}, u.onclick = () => {
|
|
577
|
-
|
|
601
|
+
y || (e.moveUpNode(), v.hidden = !0);
|
|
578
602
|
}, g.onclick = () => {
|
|
579
|
-
|
|
603
|
+
y || (e.moveDownNode(), v.hidden = !0);
|
|
580
604
|
}, p.onclick = () => {
|
|
581
605
|
v.hidden = !0;
|
|
582
|
-
const
|
|
606
|
+
const b = e.currentNode, x = n(i.clickTips);
|
|
583
607
|
e.container.appendChild(x), e.map.addEventListener(
|
|
584
608
|
"click",
|
|
585
609
|
(w) => {
|
|
586
610
|
w.preventDefault(), x.remove();
|
|
587
|
-
const
|
|
588
|
-
(
|
|
611
|
+
const S = w.target;
|
|
612
|
+
(S.parentElement.tagName === "ME-PARENT" || S.parentElement.tagName === "ME-ROOT") && e.createArrow(b, S);
|
|
589
613
|
},
|
|
590
614
|
{
|
|
591
615
|
once: !0
|
|
@@ -757,7 +781,7 @@ function Ct(e, t) {
|
|
|
757
781
|
e.beginEdit();
|
|
758
782
|
};
|
|
759
783
|
}
|
|
760
|
-
const de = document,
|
|
784
|
+
const de = document, St = function(e, t) {
|
|
761
785
|
if (!t)
|
|
762
786
|
return he(e), e;
|
|
763
787
|
let n = e.querySelector(".insert-preview");
|
|
@@ -776,13 +800,13 @@ const de = document, _t = function(e, t) {
|
|
|
776
800
|
return !1;
|
|
777
801
|
}
|
|
778
802
|
return !0;
|
|
779
|
-
},
|
|
803
|
+
}, _t = function(e) {
|
|
780
804
|
const t = document.createElement("div");
|
|
781
805
|
return t.className = "mind-elixir-ghost", e.map.appendChild(t), t;
|
|
782
806
|
};
|
|
783
807
|
function Mt(e) {
|
|
784
808
|
let t = null, n = null, o = null;
|
|
785
|
-
const s =
|
|
809
|
+
const s = _t(e), i = 12;
|
|
786
810
|
e.map.addEventListener("dragstart", (r) => {
|
|
787
811
|
var l, h;
|
|
788
812
|
const c = r.target;
|
|
@@ -821,7 +845,7 @@ function Mt(e) {
|
|
|
821
845
|
} else
|
|
822
846
|
n = o = null;
|
|
823
847
|
}
|
|
824
|
-
o &&
|
|
848
|
+
o && St(o, n);
|
|
825
849
|
}, 100)
|
|
826
850
|
);
|
|
827
851
|
}
|
|
@@ -869,14 +893,14 @@ function Lt(e) {
|
|
|
869
893
|
(s.metaKey || s.ctrlKey) && s.shiftKey && s.key === "Z" ? e.redo() : (s.metaKey || s.ctrlKey) && s.key === "z" && e.undo();
|
|
870
894
|
});
|
|
871
895
|
}
|
|
872
|
-
const
|
|
896
|
+
const F = (e, t) => {
|
|
873
897
|
const n = document.createElement("span");
|
|
874
898
|
return n.id = e, n.innerHTML = `<svg class="icon" aria-hidden="true">
|
|
875
899
|
<use xlink:href="#icon-${t}"></use>
|
|
876
900
|
</svg>`, n;
|
|
877
901
|
};
|
|
878
902
|
function Tt(e) {
|
|
879
|
-
const t = document.createElement("div"), n =
|
|
903
|
+
const t = document.createElement("div"), n = F("fullscreen", "full"), o = F("toCenter", "living"), s = F("zoomout", "move"), i = F("zoomin", "add"), r = document.createElement("span");
|
|
880
904
|
return r.innerText = "100%", t.appendChild(n), t.appendChild(o), t.appendChild(s), t.appendChild(i), t.className = "mind-elixir-toolbar rb", n.onclick = () => {
|
|
881
905
|
e.mindElixirBox.requestFullscreen();
|
|
882
906
|
}, o.onclick = () => {
|
|
@@ -888,7 +912,7 @@ function Tt(e) {
|
|
|
888
912
|
}, t;
|
|
889
913
|
}
|
|
890
914
|
function At(e) {
|
|
891
|
-
const t = document.createElement("div"), n =
|
|
915
|
+
const t = document.createElement("div"), n = F("tbltl", "left"), o = F("tbltr", "right"), s = F("tblts", "side");
|
|
892
916
|
return t.appendChild(n), t.appendChild(o), t.appendChild(s), t.className = "mind-elixir-toolbar lt", n.onclick = () => {
|
|
893
917
|
e.initLeft();
|
|
894
918
|
}, o.onclick = () => {
|
|
@@ -924,27 +948,27 @@ class $t {
|
|
|
924
948
|
this._listeners.clear();
|
|
925
949
|
}
|
|
926
950
|
}
|
|
927
|
-
const
|
|
951
|
+
const Se = (e, t = "px") => typeof e == "number" ? e + t : e;
|
|
928
952
|
function j({ style: e }, t, n) {
|
|
929
953
|
if (typeof t == "object")
|
|
930
954
|
for (const [o, s] of Object.entries(t))
|
|
931
|
-
s !== void 0 && (e[o] =
|
|
955
|
+
s !== void 0 && (e[o] = Se(s));
|
|
932
956
|
else
|
|
933
|
-
n !== void 0 && (e[t] =
|
|
957
|
+
n !== void 0 && (e[t] = Se(n));
|
|
934
958
|
}
|
|
935
|
-
const
|
|
959
|
+
const qe = (e) => (t, n, o, s = {}) => {
|
|
936
960
|
t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
937
961
|
for (const i of t)
|
|
938
962
|
if (i)
|
|
939
963
|
for (const r of n)
|
|
940
964
|
i[e](r, o, { capture: !1, ...s });
|
|
941
965
|
return [t, n, o, s];
|
|
942
|
-
}, B =
|
|
966
|
+
}, B = qe("addEventListener"), T = qe("removeEventListener"), ee = (e) => {
|
|
943
967
|
var t;
|
|
944
968
|
const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
|
|
945
969
|
return { x: n, y: o, target: s };
|
|
946
970
|
};
|
|
947
|
-
function
|
|
971
|
+
function _e(e, t, n = "touch") {
|
|
948
972
|
switch (n) {
|
|
949
973
|
case "center": {
|
|
950
974
|
const o = t.left + t.width / 2, s = t.top + t.height / 2;
|
|
@@ -956,7 +980,7 @@ function Se(e, t, n = "touch") {
|
|
|
956
980
|
return e.right >= t.left && e.left <= t.right && e.bottom >= t.top && e.top <= t.bottom;
|
|
957
981
|
}
|
|
958
982
|
}
|
|
959
|
-
function
|
|
983
|
+
function q(e, t = document) {
|
|
960
984
|
const n = Array.isArray(e) ? e : [e];
|
|
961
985
|
let o = [];
|
|
962
986
|
for (let s = 0, i = n.length; s < i; s++) {
|
|
@@ -1072,9 +1096,9 @@ class Ie extends $t {
|
|
|
1072
1096
|
const { x: o, y: s, target: i } = ee(t), { document: r, startAreas: c, boundaries: l, features: h, behaviour: a } = this._options, d = i.getBoundingClientRect();
|
|
1073
1097
|
if (t instanceof MouseEvent && !zt(t, a.triggers))
|
|
1074
1098
|
return;
|
|
1075
|
-
const u =
|
|
1099
|
+
const u = q(c, r), g = q(l, r);
|
|
1076
1100
|
this._targetElement = g.find(
|
|
1077
|
-
(v) =>
|
|
1101
|
+
(v) => _e(v.getBoundingClientRect(), d)
|
|
1078
1102
|
);
|
|
1079
1103
|
const p = t.composedPath(), m = u.find((v) => p.includes(v));
|
|
1080
1104
|
if (this._targetBoundary = g.find((v) => p.includes(v)), !this._targetElement || !m || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
|
|
@@ -1125,7 +1149,7 @@ class Ie extends $t {
|
|
|
1125
1149
|
T(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
|
|
1126
1150
|
return;
|
|
1127
1151
|
}
|
|
1128
|
-
B(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), j(this._area, "display", "block"),
|
|
1152
|
+
B(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), j(this._area, "display", "block"), q(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (B(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
|
|
1129
1153
|
}
|
|
1130
1154
|
this._handleMoveEvent(t);
|
|
1131
1155
|
}
|
|
@@ -1186,8 +1210,8 @@ class Ie extends $t {
|
|
|
1186
1210
|
let { x2: p, y2: m } = n;
|
|
1187
1211
|
const { behaviour: { scrolling: { startScrollMargins: f } } } = s;
|
|
1188
1212
|
p < d.left + f.x ? (t.x = l ? -z(d.left - p + f.x) : 0, p = p < d.left ? d.left : p) : p > d.right - f.x ? (t.x = h - l - a ? z(d.left + d.width - p - f.x) : 0, p = p > d.right ? d.right : p) : t.x = 0, m < d.top + f.y ? (t.y = i ? -z(d.top - m + f.y) : 0, m = m < d.top ? d.top : m) : m > d.bottom - f.y ? (t.y = r - i - c ? z(d.top + d.height - m - f.y) : 0, m = m > d.bottom ? d.bottom : m) : t.y = 0;
|
|
1189
|
-
const v = ke(u, p),
|
|
1190
|
-
this._areaRect = new DOMRect(v,
|
|
1213
|
+
const v = ke(u, p), y = ke(g, m), b = Me(u, p), x = Me(g, m);
|
|
1214
|
+
this._areaRect = new DOMRect(v, y, b - v, x - y);
|
|
1191
1215
|
}
|
|
1192
1216
|
_redrawSelectionArea() {
|
|
1193
1217
|
const { x: t, y: n, width: o, height: s } = this._areaRect, { style: i } = this._area;
|
|
@@ -1202,7 +1226,7 @@ class Ie extends $t {
|
|
|
1202
1226
|
const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: c } = o, { intersect: l, overlap: h } = n.behaviour, a = h === "invert", d = [], u = [], g = [];
|
|
1203
1227
|
for (let m = 0; m < t.length; m++) {
|
|
1204
1228
|
const f = t[m];
|
|
1205
|
-
if (
|
|
1229
|
+
if (_e(s, f.getBoundingClientRect(), l)) {
|
|
1206
1230
|
if (r.includes(f))
|
|
1207
1231
|
i.includes(f) && !c.includes(f) && c.push(f);
|
|
1208
1232
|
else if (a && i.includes(f)) {
|
|
@@ -1272,7 +1296,7 @@ class Ie extends $t {
|
|
|
1272
1296
|
* Will update everything that can be selected.
|
|
1273
1297
|
*/
|
|
1274
1298
|
resolveSelectables() {
|
|
1275
|
-
this._selectables =
|
|
1299
|
+
this._selectables = q(this._options.selectables, this._options.document);
|
|
1276
1300
|
}
|
|
1277
1301
|
/**
|
|
1278
1302
|
* Same as deselecting, but for all elements currently selected.
|
|
@@ -1316,7 +1340,7 @@ class Ie extends $t {
|
|
|
1316
1340
|
* @param quiet - If this should not trigger the move event
|
|
1317
1341
|
*/
|
|
1318
1342
|
select(t, n = !1) {
|
|
1319
|
-
const { changed: o, selected: s, stored: i } = this._selection, r =
|
|
1343
|
+
const { changed: o, selected: s, stored: i } = this._selection, r = q(t, this._options.document).filter(
|
|
1320
1344
|
(c) => !s.includes(c) && !i.includes(c)
|
|
1321
1345
|
);
|
|
1322
1346
|
return i.push(...r), s.push(...r), o.added.push(...r), o.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
|
|
@@ -1327,7 +1351,7 @@ class Ie extends $t {
|
|
|
1327
1351
|
* @param quiet - If this should not trigger the move event
|
|
1328
1352
|
*/
|
|
1329
1353
|
deselect(t, n = !1) {
|
|
1330
|
-
const { selected: o, stored: s, changed: i } = this._selection, r =
|
|
1354
|
+
const { selected: o, stored: s, changed: i } = this._selection, r = q(t, this._options.document).filter(
|
|
1331
1355
|
(c) => o.includes(c) || s.includes(c)
|
|
1332
1356
|
);
|
|
1333
1357
|
r.length && (this._selection.stored = s.filter((c) => !r.includes(c)), this._selection.selected = o.filter((c) => !r.includes(c)), this._selection.changed.added = [], this._selection.changed.removed.push(
|
|
@@ -1337,11 +1361,12 @@ class Ie extends $t {
|
|
|
1337
1361
|
}
|
|
1338
1362
|
E(Ie, "version", "3.6.0");
|
|
1339
1363
|
function Rt(e) {
|
|
1340
|
-
const t = new Ie({
|
|
1364
|
+
const t = e.mouseSelectionButton === 2 ? [2] : [0], n = new Ie({
|
|
1341
1365
|
selectables: [".map-container me-tpc"],
|
|
1342
1366
|
boundaries: [e.container],
|
|
1343
|
-
container:
|
|
1367
|
+
container: e.selectionContainer,
|
|
1344
1368
|
behaviour: {
|
|
1369
|
+
triggers: t,
|
|
1345
1370
|
// Scroll configuration.
|
|
1346
1371
|
scrolling: {
|
|
1347
1372
|
// On scrollable areas the number on px per frame is devided by this amount.
|
|
@@ -1356,32 +1381,32 @@ function Rt(e) {
|
|
|
1356
1381
|
startScrollMargins: { x: 10, y: 10 }
|
|
1357
1382
|
}
|
|
1358
1383
|
}
|
|
1359
|
-
}).on("beforestart", ({ event:
|
|
1360
|
-
if (
|
|
1384
|
+
}).on("beforestart", ({ event: o }) => {
|
|
1385
|
+
if (o.target.tagName === "ME-TPC" || o.target.id === "input-box" || o.target.className === "circle")
|
|
1361
1386
|
return !1;
|
|
1362
|
-
const
|
|
1363
|
-
return
|
|
1364
|
-
}).on("start", ({ event:
|
|
1365
|
-
!
|
|
1387
|
+
const s = n.getSelectionArea();
|
|
1388
|
+
return s.style.background = "#4f90f22d", s.style.border = "1px solid #4f90f2", s.parentElement && (s.parentElement.style.zIndex = "9999"), !0;
|
|
1389
|
+
}).on("start", ({ event: o }) => {
|
|
1390
|
+
!o.ctrlKey && !o.metaKey && (e.clearSelection(), n.clearSelection(!0, !0));
|
|
1366
1391
|
}).on(
|
|
1367
1392
|
"move",
|
|
1368
1393
|
({
|
|
1369
1394
|
store: {
|
|
1370
|
-
changed: { added:
|
|
1395
|
+
changed: { added: o, removed: s }
|
|
1371
1396
|
}
|
|
1372
1397
|
}) => {
|
|
1373
1398
|
k.moved = !0;
|
|
1374
|
-
for (const
|
|
1375
|
-
|
|
1376
|
-
for (const
|
|
1377
|
-
|
|
1399
|
+
for (const i of o)
|
|
1400
|
+
i.classList.add("selected");
|
|
1401
|
+
for (const i of s)
|
|
1402
|
+
i.classList.remove("selected");
|
|
1378
1403
|
}
|
|
1379
|
-
).on("stop", ({ store: { stored:
|
|
1380
|
-
e.selectNodes(
|
|
1404
|
+
).on("stop", ({ store: { stored: o } }) => {
|
|
1405
|
+
e.selectNodes(o);
|
|
1381
1406
|
});
|
|
1382
|
-
e.selection =
|
|
1407
|
+
e.selection = n;
|
|
1383
1408
|
}
|
|
1384
|
-
const
|
|
1409
|
+
const Ft = function(e, t = !0) {
|
|
1385
1410
|
this.theme = e;
|
|
1386
1411
|
const n = this.theme.cssVar, o = Object.keys(n);
|
|
1387
1412
|
for (let s = 0; s < o.length; s++) {
|
|
@@ -1394,7 +1419,7 @@ const qt = function(e, t = !0) {
|
|
|
1394
1419
|
const t = (o = e.parent) == null ? void 0 : o.children, n = (t == null ? void 0 : t.indexOf(e)) ?? 0;
|
|
1395
1420
|
return { siblings: t, index: n };
|
|
1396
1421
|
};
|
|
1397
|
-
function
|
|
1422
|
+
function qt(e) {
|
|
1398
1423
|
const { siblings: t, index: n } = W(e);
|
|
1399
1424
|
if (t === void 0)
|
|
1400
1425
|
return;
|
|
@@ -1569,7 +1594,7 @@ const Wt = function(e, t) {
|
|
|
1569
1594
|
if (!t)
|
|
1570
1595
|
return;
|
|
1571
1596
|
const n = t.nodeObj;
|
|
1572
|
-
|
|
1597
|
+
qt(n);
|
|
1573
1598
|
const o = t.parentNode.parentNode;
|
|
1574
1599
|
o.parentNode.insertBefore(o, o.previousSibling), this.linkDiv(), this.bus.fire("operation", {
|
|
1575
1600
|
name: "moveUpNode",
|
|
@@ -1747,9 +1772,9 @@ const an = function(e, t, n) {
|
|
|
1747
1772
|
this.isFocusMode = !1, this.tempDirection !== null && (this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
|
|
1748
1773
|
}, Cn = function() {
|
|
1749
1774
|
this.direction = 0, this.refresh();
|
|
1750
|
-
}, _n = function() {
|
|
1751
|
-
this.direction = 1, this.refresh();
|
|
1752
1775
|
}, Sn = function() {
|
|
1776
|
+
this.direction = 1, this.refresh();
|
|
1777
|
+
}, _n = function() {
|
|
1753
1778
|
this.direction = 2, this.refresh();
|
|
1754
1779
|
}, Mn = function(e) {
|
|
1755
1780
|
this.locale = e, this.refresh();
|
|
@@ -1779,8 +1804,8 @@ const an = function(e, t, n) {
|
|
|
1779
1804
|
getDataMd: gn,
|
|
1780
1805
|
getDataString: pn,
|
|
1781
1806
|
initLeft: Cn,
|
|
1782
|
-
initRight:
|
|
1783
|
-
initSide:
|
|
1807
|
+
initRight: Sn,
|
|
1808
|
+
initSide: _n,
|
|
1784
1809
|
install: wn,
|
|
1785
1810
|
refresh: Ln,
|
|
1786
1811
|
scale: yn,
|
|
@@ -1853,8 +1878,8 @@ const jn = function(e, t, n, o) {
|
|
|
1853
1878
|
const i = re(e, t, o.delta1), r = re(e, n, o.delta2), { x: c, y: l } = I(i), { ctrlX: h, ctrlY: a } = i, { ctrlX: d, ctrlY: u } = r, { x: g, y: p } = I(r), m = He(d, u, g, p), f = mt(
|
|
1854
1879
|
`M ${c} ${l} C ${h} ${a} ${d} ${u} ${g} ${p}`,
|
|
1855
1880
|
`M ${m.x1} ${m.y1} L ${g} ${p} L ${m.x2} ${m.y2}`
|
|
1856
|
-
), v = c / 8 + h * 3 / 8 + d * 3 / 8 + g / 8,
|
|
1857
|
-
f.appendChild(
|
|
1881
|
+
), v = c / 8 + h * 3 / 8 + d * 3 / 8 + g / 8, y = l / 8 + a * 3 / 8 + u * 3 / 8 + p / 8, b = jn(o.label, v, y, e.theme.cssVar["--color"]);
|
|
1882
|
+
f.appendChild(b), f.arrowObj = o, f.dataset.linkid = o.id, e.linkSvgGroup.appendChild(f), s || (e.arrows.push(o), e.currentArrow = f, Qe(e, o, i, r)), performance.now();
|
|
1858
1883
|
}, Dn = function(e, t) {
|
|
1859
1884
|
const n = {
|
|
1860
1885
|
id: G(),
|
|
@@ -1909,12 +1934,12 @@ const jn = function(e, t, n, o) {
|
|
|
1909
1934
|
x2: a + "",
|
|
1910
1935
|
y2: d + ""
|
|
1911
1936
|
}), e.helper1 && (e.helper1.destory(e.map), (u = e.helper2) == null || u.destory(e.map)), e.helper1 = Ae.create(e.P2), e.helper2 = Ae.create(e.P3), e.helper1.init(e.map, (g, p) => {
|
|
1912
|
-
var
|
|
1937
|
+
var y;
|
|
1913
1938
|
r = r + g / e.scaleVal, c = c + p / e.scaleVal;
|
|
1914
1939
|
const m = I({ ...n, ctrlX: r, ctrlY: c });
|
|
1915
1940
|
s = m.x, i = m.y;
|
|
1916
1941
|
const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + d / 8;
|
|
1917
|
-
e.P2.style.top = c + "px", e.P2.style.left = r + "px", (
|
|
1942
|
+
e.P2.style.top = c + "px", e.P2.style.left = r + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${d}`), N(e.currentArrow.children[2], {
|
|
1918
1943
|
x: f + "",
|
|
1919
1944
|
y: v + ""
|
|
1920
1945
|
}), N(e.line1, {
|
|
@@ -1924,12 +1949,12 @@ const jn = function(e, t, n, o) {
|
|
|
1924
1949
|
y2: c + ""
|
|
1925
1950
|
}), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy;
|
|
1926
1951
|
}), e.helper2.init(e.map, (g, p) => {
|
|
1927
|
-
var
|
|
1952
|
+
var b, x;
|
|
1928
1953
|
l = l + g / e.scaleVal, h = h + p / e.scaleVal;
|
|
1929
1954
|
const m = I({ ...o, ctrlX: l, ctrlY: h });
|
|
1930
1955
|
a = m.x, d = m.y;
|
|
1931
|
-
const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + d / 8,
|
|
1932
|
-
e.P3.style.top = h + "px", e.P3.style.left = l + "px", (
|
|
1956
|
+
const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + d / 8, y = He(l, h, a, d);
|
|
1957
|
+
e.P3.style.top = h + "px", e.P3.style.left = l + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${d}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${y.x1} ${y.y1} L ${a} ${d} L ${y.x2} ${y.y2}`), N(e.currentArrow.children[2], {
|
|
1933
1958
|
x: f + "",
|
|
1934
1959
|
y: v + ""
|
|
1935
1960
|
}), N(e.line2, {
|
|
@@ -1976,7 +2001,7 @@ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1976
2001
|
selectArrow: $n,
|
|
1977
2002
|
tidyArrow: zn,
|
|
1978
2003
|
unselectArrow: Pn
|
|
1979
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2004
|
+
}, Symbol.toStringTag, { value: "Module" })), Fn = function(e) {
|
|
1980
2005
|
var l, h;
|
|
1981
2006
|
if (e.length === 0)
|
|
1982
2007
|
throw new Error("No selected node.");
|
|
@@ -2019,7 +2044,7 @@ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2019
2044
|
start: i,
|
|
2020
2045
|
end: r
|
|
2021
2046
|
};
|
|
2022
|
-
},
|
|
2047
|
+
}, qn = function(e) {
|
|
2023
2048
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
2024
2049
|
return t.setAttribute("id", e), t;
|
|
2025
2050
|
}, je = function(e, t) {
|
|
@@ -2045,25 +2070,25 @@ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2045
2070
|
let s;
|
|
2046
2071
|
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;
|
|
2047
2072
|
}, et = function(e, t) {
|
|
2048
|
-
var
|
|
2073
|
+
var S;
|
|
2049
2074
|
const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, h = C(s).nodeObj, a = Kn(t);
|
|
2050
2075
|
let d = 1 / 0, u = 0, g = 0, p = 0;
|
|
2051
2076
|
for (let P = i; P <= r; P++) {
|
|
2052
|
-
const U = (
|
|
2077
|
+
const U = (S = h.children) == null ? void 0 : S[P];
|
|
2053
2078
|
if (!U)
|
|
2054
2079
|
return e.removeSummary(n), null;
|
|
2055
2080
|
const H = In(U.id), { offsetLeft: Z, offsetTop: be } = $(c, H);
|
|
2056
2081
|
P === i && (g = be), P === r && (p = be + H.offsetHeight), Z < d && (d = Z), H.offsetWidth + Z > u && (u = H.offsetWidth + Z);
|
|
2057
2082
|
}
|
|
2058
2083
|
let m, f;
|
|
2059
|
-
const v = g + 10,
|
|
2060
|
-
a === "lhs" ? (m = je(`M ${d + 10} ${v} c -5 0 -10 5 -10 10 L ${d} ${
|
|
2061
|
-
const w =
|
|
2084
|
+
const v = g + 10, y = p + 10, b = (v + y) / 2, x = e.theme.cssVar["--color"];
|
|
2085
|
+
a === "lhs" ? (m = je(`M ${d + 10} ${v} c -5 0 -10 5 -10 10 L ${d} ${y - 10} c 0 5 5 10 10 10 M ${d} ${b} h -10`, x), f = De(o, d - 20, b + 6, "end", x)) : (m = je(`M ${u - 10} ${v} c 5 0 10 5 10 10 L ${u} ${y - 10} c 0 5 -5 10 -10 10 M ${u} ${b} h 10`, x), f = De(o, u + 20, b + 6, "start", x));
|
|
2086
|
+
const w = qn("s-" + n);
|
|
2062
2087
|
return w.appendChild(m), w.appendChild(f), w.summaryObj = t, e.summarySvg.appendChild(w), w;
|
|
2063
2088
|
}, Vn = function() {
|
|
2064
2089
|
let e = [];
|
|
2065
2090
|
this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
|
|
2066
|
-
const { parent: t, start: n, end: o } =
|
|
2091
|
+
const { parent: t, start: n, end: o } = Fn(e), s = { id: G(), parent: t, start: n, end: o, text: "summary" }, i = et(this, s);
|
|
2067
2092
|
this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
|
|
2068
2093
|
name: "createSummary",
|
|
2069
2094
|
obj: s
|
|
@@ -2301,7 +2326,7 @@ const po = {
|
|
|
2301
2326
|
createChildren: ut,
|
|
2302
2327
|
createTopic: ft,
|
|
2303
2328
|
findEle: C,
|
|
2304
|
-
changeTheme:
|
|
2329
|
+
changeTheme: Ft,
|
|
2305
2330
|
...Tn,
|
|
2306
2331
|
...tt,
|
|
2307
2332
|
...Rn,
|
|
@@ -2333,7 +2358,7 @@ function go({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction:
|
|
|
2333
2358
|
const f = Math.abs(a - u) / 300 * D;
|
|
2334
2359
|
return l === "lhs" ? (m = t, g = m + D, p = m - D, d = i + D, `M ${g} ${a} C ${m} ${a} ${m + f} ${u} ${p} ${u} H ${d}`) : (m = t + n, g = m - D, p = m + D, d = i + r - D, `M ${g} ${a} C ${m} ${a} ${m - f} ${u} ${p} ${u} H ${d}`);
|
|
2335
2360
|
}
|
|
2336
|
-
const vo = "4.
|
|
2361
|
+
const vo = "4.2.0", Y = document;
|
|
2337
2362
|
function A({
|
|
2338
2363
|
el: e,
|
|
2339
2364
|
direction: t,
|
|
@@ -2345,24 +2370,25 @@ function A({
|
|
|
2345
2370
|
toolBar: c,
|
|
2346
2371
|
keypress: l,
|
|
2347
2372
|
mouseSelectionButton: h,
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2373
|
+
selectionContainer: a,
|
|
2374
|
+
before: d,
|
|
2375
|
+
newTopicName: u,
|
|
2376
|
+
allowUndo: g,
|
|
2377
|
+
generateMainBranch: p,
|
|
2378
|
+
generateSubBranch: m,
|
|
2379
|
+
overflowHidden: f,
|
|
2380
|
+
mobileMenu: v,
|
|
2381
|
+
theme: y
|
|
2356
2382
|
}) {
|
|
2357
2383
|
let b = null;
|
|
2358
|
-
const
|
|
2359
|
-
if (
|
|
2384
|
+
const x = Object.prototype.toString.call(e);
|
|
2385
|
+
if (x === "[object HTMLDivElement]" ? b = e : x === "[object String]" && (b = document.querySelector(e)), !b)
|
|
2360
2386
|
throw new Error("MindElixir: el is not a valid element");
|
|
2361
|
-
b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.disposable = [], this.before =
|
|
2362
|
-
const
|
|
2363
|
-
this.theme =
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2387
|
+
b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.disposable = [], this.before = d || {}, 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 = v || !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 = g === void 0 ? !1 : g, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = p || mo, this.generateSubBranch = m || go, this.overflowHidden = f || !1, this.bus = rt.create(), this.container = Y.createElement("div"), this.selectionContainer = a || this.container, this.container.className = "map-container";
|
|
2388
|
+
const w = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2389
|
+
this.theme = y || (w.matches ? Pe : $e);
|
|
2390
|
+
const S = Y.createElement("div");
|
|
2391
|
+
S.className = "map-canvas", this.map = S, 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 = ye(), this.line2 = ye(), 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" : it(this);
|
|
2366
2392
|
}
|
|
2367
2393
|
A.prototype = po;
|
|
2368
2394
|
A.LEFT = L;
|