mind-elixir 4.1.5 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MindElixir.iife.js +6 -6
- package/dist/MindElixir.js +158 -132
- package/dist/MindElixirLite.iife.js +5 -5
- package/dist/MindElixirLite.js +119 -120
- package/dist/types/i18n.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin/contextMenu.d.ts +11 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/utils/pubsub.d.ts +1 -0
- package/package.json +2 -4
- package/readme.md +34 -1
package/dist/MindElixirLite.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, l = '<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>', c = (c = document.getElementsByTagName("script"))[c.length - 1].getAttribute("data-injectcss");
|
|
4
4
|
if (c && !e.__iconfont__svg__cssinject__) {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
s.readyState == "complete" && (s.onreadystatechange = null, d());
|
|
30
30
|
});
|
|
31
31
|
})(window);
|
|
32
|
-
const q = 0,
|
|
32
|
+
const q = 0, Z = 1, ee = 2, N = 30, ve = {
|
|
33
33
|
name: "Latte",
|
|
34
34
|
palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
|
|
35
35
|
cssVar: {
|
|
@@ -57,22 +57,22 @@ const q = 0, Q = 1, Z = 2, N = 30, ve = {
|
|
|
57
57
|
function ie(e) {
|
|
58
58
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const U = function(e, t) {
|
|
61
61
|
if (t.id === e)
|
|
62
62
|
return t;
|
|
63
63
|
if (t.children && t.children.length) {
|
|
64
64
|
for (let n = 0; n < t.children.length; n++) {
|
|
65
|
-
const o =
|
|
65
|
+
const o = U(e, t.children[n]);
|
|
66
66
|
if (o)
|
|
67
67
|
return o;
|
|
68
68
|
}
|
|
69
69
|
return null;
|
|
70
70
|
} else
|
|
71
71
|
return null;
|
|
72
|
-
},
|
|
72
|
+
}, te = (e, t) => {
|
|
73
73
|
if (e.parent = t, e.children)
|
|
74
74
|
for (let n = 0; n < e.children.length; n++)
|
|
75
|
-
|
|
75
|
+
te(e.children[n], e);
|
|
76
76
|
};
|
|
77
77
|
function be(e, t, n, o) {
|
|
78
78
|
const s = o - t, i = e - n;
|
|
@@ -86,11 +86,11 @@ function be(e, t, n, o) {
|
|
|
86
86
|
y2: o - Math.sin(Math.PI * h / 180) * l
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ne() {
|
|
90
90
|
return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
|
|
91
91
|
}
|
|
92
92
|
const $e = function() {
|
|
93
|
-
const e =
|
|
93
|
+
const e = ne();
|
|
94
94
|
return {
|
|
95
95
|
topic: this.newTopicName,
|
|
96
96
|
id: e
|
|
@@ -100,7 +100,7 @@ const $e = function() {
|
|
|
100
100
|
for (; t && t !== e; )
|
|
101
101
|
n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
|
|
102
102
|
return { offsetLeft: n, offsetTop: o };
|
|
103
|
-
},
|
|
103
|
+
}, w = (e, t) => {
|
|
104
104
|
for (const n in t)
|
|
105
105
|
e.setAttribute(n, t[n]);
|
|
106
106
|
}, re = (e) => e ? e.tagName === "ME-TPC" : !1, k = {
|
|
@@ -146,7 +146,7 @@ function ke(e) {
|
|
|
146
146
|
else
|
|
147
147
|
return;
|
|
148
148
|
}), e.map.addEventListener("dblclick", (t) => {
|
|
149
|
-
if (
|
|
149
|
+
if (!e.editable)
|
|
150
150
|
return;
|
|
151
151
|
const n = t.target;
|
|
152
152
|
re(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
|
|
@@ -161,8 +161,6 @@ function ke(e) {
|
|
|
161
161
|
}), e.map.addEventListener("mouseup", (t) => {
|
|
162
162
|
const n = e.mouseSelectionButton === 0 ? 2 : 0;
|
|
163
163
|
t.button === n && k.clear();
|
|
164
|
-
}), e.map.addEventListener("contextmenu", (t) => {
|
|
165
|
-
t.preventDefault();
|
|
166
164
|
});
|
|
167
165
|
}
|
|
168
166
|
const De = {
|
|
@@ -193,32 +191,32 @@ const De = {
|
|
|
193
191
|
}
|
|
194
192
|
};
|
|
195
193
|
}
|
|
196
|
-
},
|
|
194
|
+
}, J = document, He = function() {
|
|
197
195
|
this.nodes.innerHTML = "";
|
|
198
196
|
const e = this.createTopic(this.nodeData);
|
|
199
197
|
xe(e, this.nodeData), e.draggable = !1;
|
|
200
|
-
const t =
|
|
198
|
+
const t = J.createElement("me-root");
|
|
201
199
|
t.appendChild(e);
|
|
202
200
|
const n = this.nodeData.children || [];
|
|
203
|
-
if (this.direction ===
|
|
201
|
+
if (this.direction === ee) {
|
|
204
202
|
let o = 0, s = 0;
|
|
205
203
|
n.map((i) => {
|
|
206
|
-
i.direction === q ? o += 1 : i.direction ===
|
|
204
|
+
i.direction === q ? o += 1 : i.direction === Z ? s += 1 : o <= s ? (i.direction = q, o += 1) : (i.direction = Z, s += 1);
|
|
207
205
|
});
|
|
208
206
|
}
|
|
209
207
|
Be(this, n, t);
|
|
210
208
|
}, Be = function(e, t, n) {
|
|
211
|
-
const o =
|
|
209
|
+
const o = J.createElement("me-main");
|
|
212
210
|
o.className = "lhs";
|
|
213
|
-
const s =
|
|
211
|
+
const s = J.createElement("me-main");
|
|
214
212
|
s.className = "rhs";
|
|
215
213
|
for (let i = 0; i < t.length; i++) {
|
|
216
214
|
const r = t[i], { grp: l } = e.createWrapper(r);
|
|
217
|
-
e.direction ===
|
|
215
|
+
e.direction === ee ? r.direction === q ? o.appendChild(l) : s.appendChild(l) : e.direction === q ? o.appendChild(l) : s.appendChild(l);
|
|
218
216
|
}
|
|
219
217
|
e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
|
|
220
218
|
}, Pe = function(e, t) {
|
|
221
|
-
const n =
|
|
219
|
+
const n = J.createElement("me-children");
|
|
222
220
|
for (let o = 0; o < t.length; o++) {
|
|
223
221
|
const s = t[o], { grp: i } = e.createWrapper(s);
|
|
224
222
|
n.appendChild(i);
|
|
@@ -318,13 +316,13 @@ const Re = function(e) {
|
|
|
318
316
|
return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
|
|
319
317
|
}, O = document, j = "http://www.w3.org/2000/svg", _e = function(e, t, n) {
|
|
320
318
|
const o = O.createElementNS(j, "path");
|
|
321
|
-
return
|
|
319
|
+
return w(o, {
|
|
322
320
|
d: e,
|
|
323
321
|
stroke: t || "#666",
|
|
324
322
|
fill: "none",
|
|
325
323
|
"stroke-width": n
|
|
326
324
|
}), o;
|
|
327
|
-
},
|
|
325
|
+
}, F = function(e) {
|
|
328
326
|
const t = O.createElementNS(j, "svg");
|
|
329
327
|
return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
|
|
330
328
|
}, le = function() {
|
|
@@ -337,10 +335,10 @@ const Re = function(e) {
|
|
|
337
335
|
"stroke-linecap": "cap",
|
|
338
336
|
"stroke-width": "2"
|
|
339
337
|
}, o = O.createElementNS(j, "g"), s = O.createElementNS(j, "path"), i = O.createElementNS(j, "path");
|
|
340
|
-
return
|
|
338
|
+
return w(i, {
|
|
341
339
|
d: t,
|
|
342
340
|
...n
|
|
343
|
-
}),
|
|
341
|
+
}), w(s, {
|
|
344
342
|
d: e,
|
|
345
343
|
...n,
|
|
346
344
|
"stroke-dasharray": "8,2"
|
|
@@ -372,30 +370,30 @@ const Re = function(e) {
|
|
|
372
370
|
const r = this.map.querySelectorAll("me-main > me-wrapper");
|
|
373
371
|
this.lines.innerHTML = "";
|
|
374
372
|
for (let l = 0; l < r.length; l++) {
|
|
375
|
-
const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = A(this.nodes, d), f = d.offsetWidth, m = d.offsetHeight, u = c.parentNode.className, p = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: f, cH: m, direction: u, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette,
|
|
376
|
-
d.style.borderColor =
|
|
377
|
-
const
|
|
378
|
-
if (
|
|
373
|
+
const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = A(this.nodes, d), f = d.offsetWidth, m = d.offsetHeight, u = c.parentNode.className, p = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: f, cH: m, direction: u, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, v = d.nodeObj.branchColor || g[l % g.length];
|
|
374
|
+
d.style.borderColor = v, this.lines.appendChild(_e(p, v, "3"));
|
|
375
|
+
const y = c.children[0].children[1];
|
|
376
|
+
if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", u === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== c)
|
|
379
377
|
continue;
|
|
380
|
-
const
|
|
381
|
-
_.tagName === "svg" && _.remove(), c.appendChild(
|
|
378
|
+
const b = F("subLines"), _ = c.lastChild;
|
|
379
|
+
_.tagName === "svg" && _.remove(), c.appendChild(b), Se(this, b, v, c, u, !0);
|
|
382
380
|
}
|
|
383
|
-
this.renderArrow(), this.renderSummary();
|
|
381
|
+
this.renderArrow(), this.renderSummary(), this.bus.fire("linkDiv");
|
|
384
382
|
}, Se = function(e, t, n, o, s, i) {
|
|
385
383
|
const r = o.firstChild, l = o.children[1].children;
|
|
386
384
|
if (l.length === 0)
|
|
387
385
|
return;
|
|
388
386
|
const c = r.offsetTop, d = r.offsetLeft, h = r.offsetWidth, a = r.offsetHeight;
|
|
389
387
|
for (let f = 0; f < l.length; f++) {
|
|
390
|
-
const m = l[f], u = m.firstChild, p = u.offsetTop, g = u.offsetLeft,
|
|
391
|
-
t.appendChild(_e(_,
|
|
388
|
+
const m = l[f], u = m.firstChild, p = u.offsetTop, g = u.offsetLeft, v = u.offsetWidth, y = u.offsetHeight, b = u.firstChild.nodeObj.branchColor || n, _ = e.generateSubBranch({ pT: c, pL: d, pW: h, pH: a, cT: p, cL: g, cW: v, cH: y, direction: s, isFirst: i });
|
|
389
|
+
t.appendChild(_e(_, b, "2"));
|
|
392
390
|
const E = u.children[1];
|
|
393
391
|
if (E) {
|
|
394
392
|
if (E.style.bottom = -(E.offsetHeight / 2) + "px", s === "lhs" ? E.style.left = "10px" : s === "rhs" && (E.style.right = "10px"), !E.expanded)
|
|
395
393
|
continue;
|
|
396
394
|
} else
|
|
397
395
|
continue;
|
|
398
|
-
Se(e, t,
|
|
396
|
+
Se(e, t, b, m, s);
|
|
399
397
|
}
|
|
400
398
|
};
|
|
401
399
|
const B = (e, t) => {
|
|
@@ -430,10 +428,10 @@ function Ye(e) {
|
|
|
430
428
|
e.container.append(We(e)), e.container.append(Xe(e));
|
|
431
429
|
}
|
|
432
430
|
/*! @viselect/vanilla v3.6.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
|
|
433
|
-
var Ge = Object.defineProperty, Ke = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
431
|
+
var Ge = Object.defineProperty, Ke = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t, n) => Ke(e, typeof t != "symbol" ? t + "" : t, n);
|
|
434
432
|
class Ue {
|
|
435
433
|
constructor() {
|
|
436
|
-
|
|
434
|
+
x(this, "_listeners", /* @__PURE__ */ new Map()), x(this, "on", this.addEventListener), x(this, "off", this.removeEventListener), x(this, "emit", this.dispatchEvent);
|
|
437
435
|
}
|
|
438
436
|
addEventListener(t, n) {
|
|
439
437
|
const o = this._listeners.get(t) ?? /* @__PURE__ */ new Set();
|
|
@@ -468,7 +466,7 @@ const Ce = (e) => (t, n, o, s = {}) => {
|
|
|
468
466
|
for (const r of n)
|
|
469
467
|
i[e](r, o, { capture: !1, ...s });
|
|
470
468
|
return [t, n, o, s];
|
|
471
|
-
}, D = Ce("addEventListener"), M = Ce("removeEventListener"),
|
|
469
|
+
}, D = Ce("addEventListener"), M = Ce("removeEventListener"), Y = (e) => {
|
|
472
470
|
var t;
|
|
473
471
|
const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
|
|
474
472
|
return { x: n, y: o, target: s };
|
|
@@ -536,7 +534,7 @@ const { abs: H, max: he, min: de, ceil: ue } = Math, fe = (e = []) => ({
|
|
|
536
534
|
class tt extends Ue {
|
|
537
535
|
constructor(t) {
|
|
538
536
|
var n, o, s, i, r;
|
|
539
|
-
super(),
|
|
537
|
+
super(), x(this, "_options"), x(this, "_selection", fe()), x(this, "_area"), x(this, "_clippingElement"), x(this, "_targetElement"), x(this, "_targetBoundary"), x(this, "_targetBoundaryScrolled", !0), x(this, "_targetRect"), x(this, "_selectables", []), x(this, "_latestElement"), x(this, "_areaLocation", { y1: 0, x2: 0, y2: 0, x1: 0 }), x(this, "_areaRect", new DOMRect()), x(this, "_singleClick", !0), x(this, "_frame"), x(this, "_scrollAvailable", !0), x(this, "_scrollingActive", !1), x(this, "_scrollSpeed", { x: 0, y: 0 }), x(this, "_scrollDelta", { x: 0, y: 0 }), x(this, "disable", this._toggleStartEvents.bind(this, !1)), x(this, "enable", this._toggleStartEvents), this._options = {
|
|
540
538
|
selectionAreaClass: "selection-area",
|
|
541
539
|
selectionContainerClass: void 0,
|
|
542
540
|
selectables: [],
|
|
@@ -598,22 +596,22 @@ class tt extends Ue {
|
|
|
598
596
|
s(n, "mousedown", this._onTapStart), o.touch && s(n, "touchstart", this._onTapStart, { passive: !1 });
|
|
599
597
|
}
|
|
600
598
|
_onTapStart(t, n = !1) {
|
|
601
|
-
const { x: o, y: s, target: i } =
|
|
599
|
+
const { x: o, y: s, target: i } = Y(t), { document: r, startAreas: l, boundaries: c, features: d, behaviour: h } = this._options, a = i.getBoundingClientRect();
|
|
602
600
|
if (t instanceof MouseEvent && !et(t, h.triggers))
|
|
603
601
|
return;
|
|
604
602
|
const f = P(l, r), m = P(c, r);
|
|
605
603
|
this._targetElement = m.find(
|
|
606
|
-
(
|
|
604
|
+
(v) => ae(v.getBoundingClientRect(), a)
|
|
607
605
|
);
|
|
608
|
-
const u = t.composedPath(), p = f.find((
|
|
609
|
-
if (this._targetBoundary = m.find((
|
|
606
|
+
const u = t.composedPath(), p = f.find((v) => u.includes(v));
|
|
607
|
+
if (this._targetBoundary = m.find((v) => u.includes(v)), !this._targetElement || !p || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
|
|
610
608
|
return;
|
|
611
609
|
this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
|
|
612
610
|
const g = r.scrollingElement ?? r.body;
|
|
613
611
|
this._scrollDelta = { x: g.scrollLeft, y: g.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), D(r, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), D(r, ["mouseup", "touchcancel", "touchend"], this._onTapStop), D(r, "scroll", this._onScroll), d.deselectOnBlur && (this._targetBoundaryScrolled = !1, D(this._targetBoundary, "scroll", this._onStartAreaScroll));
|
|
614
612
|
}
|
|
615
613
|
_onSingleTap(t) {
|
|
616
|
-
const { singleTap: { intersect: n }, range: o } = this._options.features, s =
|
|
614
|
+
const { singleTap: { intersect: n }, range: o } = this._options.features, s = Y(t);
|
|
617
615
|
let i;
|
|
618
616
|
if (n === "native")
|
|
619
617
|
i = s.target;
|
|
@@ -644,7 +642,7 @@ class tt extends Ue {
|
|
|
644
642
|
r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
|
|
645
643
|
}
|
|
646
644
|
_delayedTapMove(t) {
|
|
647
|
-
const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } =
|
|
645
|
+
const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = Y(t);
|
|
648
646
|
if (
|
|
649
647
|
// Single number for both coordinates
|
|
650
648
|
typeof s == "number" && H(l + c - (i + r)) >= s || // Different x and y threshold
|
|
@@ -679,7 +677,7 @@ class tt extends Ue {
|
|
|
679
677
|
}));
|
|
680
678
|
}
|
|
681
679
|
_onTapMove(t) {
|
|
682
|
-
const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, l = this._targetElement, { x: c, y: d } =
|
|
680
|
+
const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, l = this._targetElement, { x: c, y: d } = Y(t);
|
|
683
681
|
if (o.x2 = c, o.y2 = d, this._scrollAvailable && !this._scrollingActive && (n.y || n.x)) {
|
|
684
682
|
this._scrollingActive = !0;
|
|
685
683
|
const h = () => {
|
|
@@ -715,8 +713,8 @@ class tt extends Ue {
|
|
|
715
713
|
let { x2: u, y2: p } = n;
|
|
716
714
|
const { behaviour: { scrolling: { startScrollMargins: g } } } = s;
|
|
717
715
|
u < a.left + g.x ? (t.x = c ? -H(a.left - u + g.x) : 0, u = u < a.left ? a.left : u) : u > a.right - g.x ? (t.x = d - c - h ? H(a.left + a.width - u - g.x) : 0, u = u > a.right ? a.right : u) : t.x = 0, p < a.top + g.y ? (t.y = i ? -H(a.top - p + g.y) : 0, p = p < a.top ? a.top : p) : p > a.bottom - g.y ? (t.y = r - i - l ? H(a.top + a.height - p - g.y) : 0, p = p > a.bottom ? a.bottom : p) : t.y = 0;
|
|
718
|
-
const
|
|
719
|
-
this._areaRect = new DOMRect(
|
|
716
|
+
const v = de(f, u), y = de(m, p), b = he(f, u), _ = he(m, p);
|
|
717
|
+
this._areaRect = new DOMRect(v, y, b - v, _ - y);
|
|
720
718
|
}
|
|
721
719
|
_redrawSelectionArea() {
|
|
722
720
|
const { x: t, y: n, width: o, height: s } = this._areaRect, { style: i } = this._area;
|
|
@@ -864,7 +862,7 @@ class tt extends Ue {
|
|
|
864
862
|
), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
|
|
865
863
|
}
|
|
866
864
|
}
|
|
867
|
-
|
|
865
|
+
x(tt, "version", "3.6.0");
|
|
868
866
|
const nt = function(e, t = !0) {
|
|
869
867
|
this.theme = e;
|
|
870
868
|
const n = this.theme.cssVar, o = Object.keys(n);
|
|
@@ -967,7 +965,7 @@ const st = function(e, t, n) {
|
|
|
967
965
|
o.parentNode.children[1].remove();
|
|
968
966
|
this.linkDiv(), this.bus.fire("expandNode", n);
|
|
969
967
|
}, St = function(e) {
|
|
970
|
-
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []),
|
|
968
|
+
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), te(this.nodeData), this.layout(), this.linkDiv();
|
|
971
969
|
}, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
972
970
|
__proto__: null,
|
|
973
971
|
cancelFocus: yt,
|
|
@@ -1020,7 +1018,7 @@ const st = function(e, t, n) {
|
|
|
1020
1018
|
}, pe = {
|
|
1021
1019
|
create: Lt
|
|
1022
1020
|
};
|
|
1023
|
-
function
|
|
1021
|
+
function Q(e, t, n) {
|
|
1024
1022
|
const { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, h = c + n.y;
|
|
1025
1023
|
return {
|
|
1026
1024
|
w: i,
|
|
@@ -1041,7 +1039,7 @@ function z(e) {
|
|
|
1041
1039
|
}
|
|
1042
1040
|
const Mt = function(e, t, n, o) {
|
|
1043
1041
|
const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1044
|
-
return
|
|
1042
|
+
return w(s, {
|
|
1045
1043
|
"text-anchor": "middle",
|
|
1046
1044
|
x: t + "",
|
|
1047
1045
|
y: n + "",
|
|
@@ -1051,14 +1049,14 @@ const Mt = function(e, t, n, o) {
|
|
|
1051
1049
|
if (!t || !n)
|
|
1052
1050
|
return;
|
|
1053
1051
|
performance.now();
|
|
1054
|
-
const i =
|
|
1052
|
+
const i = Q(e, t, o.delta1), r = Q(e, n, o.delta2), { x: l, y: c } = z(i), { ctrlX: d, ctrlY: h } = i, { ctrlX: a, ctrlY: f } = r, { x: m, y: u } = z(r), p = be(a, f, m, u), g = Ie(
|
|
1055
1053
|
`M ${l} ${c} C ${d} ${h} ${a} ${f} ${m} ${u}`,
|
|
1056
1054
|
`M ${p.x1} ${p.y1} L ${m} ${u} L ${p.x2} ${p.y2}`
|
|
1057
|
-
),
|
|
1058
|
-
g.appendChild(
|
|
1055
|
+
), v = l / 8 + d * 3 / 8 + a * 3 / 8 + m / 8, y = c / 8 + h * 3 / 8 + f * 3 / 8 + u / 8, b = Mt(o.label, v, y, e.theme.cssVar["--color"]);
|
|
1056
|
+
g.appendChild(b), g.arrowObj = o, g.dataset.linkid = o.id, e.linkSvgGroup.appendChild(g), s || (e.arrows.push(o), e.currentArrow = g, Ne(e, o, i, r)), performance.now();
|
|
1059
1057
|
}, Tt = function(e, t) {
|
|
1060
1058
|
const n = {
|
|
1061
|
-
id:
|
|
1059
|
+
id: ne(),
|
|
1062
1060
|
label: "Custom Link",
|
|
1063
1061
|
from: e.nodeObj.id,
|
|
1064
1062
|
to: t.nodeObj.id,
|
|
@@ -1089,7 +1087,7 @@ const Mt = function(e, t, n, o) {
|
|
|
1089
1087
|
});
|
|
1090
1088
|
}, At = function(e) {
|
|
1091
1089
|
this.currentArrow = e;
|
|
1092
|
-
const t = e.arrowObj, n = L(t.from), o = L(t.to), s =
|
|
1090
|
+
const t = e.arrowObj, n = L(t.from), o = L(t.to), s = Q(this, n, t.delta1), i = Q(this, o, t.delta2);
|
|
1093
1091
|
Ne(this, t, s, i);
|
|
1094
1092
|
}, $t = function() {
|
|
1095
1093
|
this.currentArrow = null, Te(this);
|
|
@@ -1099,41 +1097,41 @@ const Mt = function(e, t, n, o) {
|
|
|
1099
1097
|
var f;
|
|
1100
1098
|
e.linkController.style.display = "initial", e.P2.style.display = "initial", e.P3.style.display = "initial", e.nodes.appendChild(e.linkController), e.nodes.appendChild(e.P2), e.nodes.appendChild(e.P3);
|
|
1101
1099
|
let { x: s, y: i } = z(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: d } = o, { x: h, y: a } = z(o);
|
|
1102
|
-
e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`,
|
|
1100
|
+
e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`, w(e.line1, {
|
|
1103
1101
|
x1: s + "",
|
|
1104
1102
|
y1: i + "",
|
|
1105
1103
|
x2: r + "",
|
|
1106
1104
|
y2: l + ""
|
|
1107
|
-
}),
|
|
1105
|
+
}), w(e.line2, {
|
|
1108
1106
|
x1: c + "",
|
|
1109
1107
|
y1: d + "",
|
|
1110
1108
|
x2: h + "",
|
|
1111
1109
|
y2: a + ""
|
|
1112
1110
|
}), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 = pe.create(e.P2), e.helper2 = pe.create(e.P3), e.helper1.init(e.map, (m, u) => {
|
|
1113
|
-
var
|
|
1111
|
+
var y;
|
|
1114
1112
|
r = r + m / e.scaleVal, l = l + u / e.scaleVal;
|
|
1115
1113
|
const p = z({ ...n, ctrlX: r, ctrlY: l });
|
|
1116
1114
|
s = p.x, i = p.y;
|
|
1117
|
-
const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8,
|
|
1118
|
-
e.P2.style.top = l + "px", e.P2.style.left = r + "px", (
|
|
1115
|
+
const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, v = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8;
|
|
1116
|
+
e.P2.style.top = l + "px", e.P2.style.left = r + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), w(e.currentArrow.children[2], {
|
|
1119
1117
|
x: g + "",
|
|
1120
|
-
y:
|
|
1121
|
-
}),
|
|
1118
|
+
y: v + ""
|
|
1119
|
+
}), w(e.line1, {
|
|
1122
1120
|
x1: s + "",
|
|
1123
1121
|
y1: i + "",
|
|
1124
1122
|
x2: r + "",
|
|
1125
1123
|
y2: l + ""
|
|
1126
1124
|
}), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
|
|
1127
1125
|
}), e.helper2.init(e.map, (m, u) => {
|
|
1128
|
-
var
|
|
1126
|
+
var b, _;
|
|
1129
1127
|
c = c + m / e.scaleVal, d = d + u / e.scaleVal;
|
|
1130
1128
|
const p = z({ ...o, ctrlX: c, ctrlY: d });
|
|
1131
1129
|
h = p.x, a = p.y;
|
|
1132
|
-
const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8,
|
|
1133
|
-
e.P3.style.top = d + "px", e.P3.style.left = c + "px", (
|
|
1130
|
+
const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, v = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8, y = be(c, d, h, a);
|
|
1131
|
+
e.P3.style.top = d + "px", e.P3.style.left = c + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), (_ = e.currentArrow) == null || _.children[1].setAttribute("d", `M ${y.x1} ${y.y1} L ${h} ${a} L ${y.x2} ${y.y2}`), w(e.currentArrow.children[2], {
|
|
1134
1132
|
x: g + "",
|
|
1135
|
-
y:
|
|
1136
|
-
}),
|
|
1133
|
+
y: v + ""
|
|
1134
|
+
}), w(e.line2, {
|
|
1137
1135
|
x1: c + "",
|
|
1138
1136
|
y1: d + "",
|
|
1139
1137
|
x2: h + "",
|
|
@@ -1166,7 +1164,7 @@ function Dt(e) {
|
|
|
1166
1164
|
});
|
|
1167
1165
|
}
|
|
1168
1166
|
function Ht() {
|
|
1169
|
-
this.arrows = this.arrows.filter((e) =>
|
|
1167
|
+
this.arrows = this.arrows.filter((e) => U(e.from, this.nodeData) && U(e.to, this.nodeData));
|
|
1170
1168
|
}
|
|
1171
1169
|
const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1172
1170
|
__proto__: null,
|
|
@@ -1225,7 +1223,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1225
1223
|
return t.setAttribute("id", e), t;
|
|
1226
1224
|
}, me = function(e, t) {
|
|
1227
1225
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
1228
|
-
return
|
|
1226
|
+
return w(n, {
|
|
1229
1227
|
d: e,
|
|
1230
1228
|
stroke: t || "#666",
|
|
1231
1229
|
fill: "none",
|
|
@@ -1234,7 +1232,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1234
1232
|
}), n;
|
|
1235
1233
|
}, ge = function(e, t, n, o, s) {
|
|
1236
1234
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1237
|
-
return
|
|
1235
|
+
return w(i, {
|
|
1238
1236
|
"text-anchor": o,
|
|
1239
1237
|
x: t + "",
|
|
1240
1238
|
y: n + "",
|
|
@@ -1246,25 +1244,25 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1246
1244
|
let s;
|
|
1247
1245
|
return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = L(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
|
|
1248
1246
|
}, Ae = function(e, t) {
|
|
1249
|
-
var
|
|
1247
|
+
var R;
|
|
1250
1248
|
const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, h = jt(t);
|
|
1251
1249
|
let a = 1 / 0, f = 0, m = 0, u = 0;
|
|
1252
|
-
for (let
|
|
1253
|
-
const oe = (
|
|
1250
|
+
for (let V = i; V <= r; V++) {
|
|
1251
|
+
const oe = (R = d.children) == null ? void 0 : R[V];
|
|
1254
1252
|
if (!oe)
|
|
1255
1253
|
return e.removeSummary(n), null;
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1254
|
+
const W = Ot(oe.id), { offsetLeft: X, offsetTop: se } = A(l, W);
|
|
1255
|
+
V === i && (m = se), V === r && (u = se + W.offsetHeight), X < a && (a = X), W.offsetWidth + X > f && (f = W.offsetWidth + X);
|
|
1258
1256
|
}
|
|
1259
1257
|
let p, g;
|
|
1260
|
-
const
|
|
1261
|
-
h === "lhs" ? (p = me(`M ${a + 10} ${
|
|
1258
|
+
const v = m + 10, y = u + 10, b = (v + y) / 2, _ = e.theme.cssVar["--color"];
|
|
1259
|
+
h === "lhs" ? (p = me(`M ${a + 10} ${v} c -5 0 -10 5 -10 10 L ${a} ${y - 10} c 0 5 5 10 10 10 M ${a} ${b} h -10`, _), g = ge(o, a - 20, b + 6, "end", _)) : (p = me(`M ${f - 10} ${v} c 5 0 10 5 10 10 L ${f} ${y - 10} c 0 5 -5 10 -10 10 M ${f} ${b} h 10`, _), g = ge(o, f + 20, b + 6, "start", _));
|
|
1262
1260
|
const E = zt("s-" + n);
|
|
1263
1261
|
return E.appendChild(p), E.appendChild(g), E.summaryObj = t, e.summarySvg.appendChild(E), E;
|
|
1264
1262
|
}, qt = function() {
|
|
1265
1263
|
let e = [];
|
|
1266
1264
|
this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
|
|
1267
|
-
const { parent: t, start: n, end: o } = Pt(e), s = { id:
|
|
1265
|
+
const { parent: t, start: n, end: o } = Pt(e), s = { id: ne(), parent: t, start: n, end: o, text: "summary" }, i = Ae(this, s);
|
|
1268
1266
|
this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
|
|
1269
1267
|
name: "createSummary",
|
|
1270
1268
|
obj: s
|
|
@@ -1278,7 +1276,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1278
1276
|
});
|
|
1279
1277
|
}, Vt = function(e) {
|
|
1280
1278
|
const t = e.children[1].getBBox(), n = 6, o = 3, s = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
1281
|
-
|
|
1279
|
+
w(s, {
|
|
1282
1280
|
x: t.x - n + "",
|
|
1283
1281
|
y: t.y - n + "",
|
|
1284
1282
|
width: t.width + n * 2 + "",
|
|
@@ -1321,7 +1319,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1321
1319
|
}, Symbol.toStringTag, { value: "Module" })), C = "http://www.w3.org/2000/svg";
|
|
1322
1320
|
function Yt(e, t) {
|
|
1323
1321
|
const n = document.createElementNS(C, "svg");
|
|
1324
|
-
return
|
|
1322
|
+
return w(n, {
|
|
1325
1323
|
version: "1.1",
|
|
1326
1324
|
xmlns: C,
|
|
1327
1325
|
height: e,
|
|
@@ -1337,7 +1335,7 @@ function Kt(e, t, n, o) {
|
|
|
1337
1335
|
return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
|
|
1338
1336
|
`).forEach((l, c) => {
|
|
1339
1337
|
const d = document.createElementNS(C, "text");
|
|
1340
|
-
|
|
1338
|
+
w(d, {
|
|
1341
1339
|
x: n + parseInt(t.paddingLeft) + "",
|
|
1342
1340
|
y: o + parseInt(t.paddingTop) + Gt(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
|
|
1343
1341
|
"text-anchor": "start",
|
|
@@ -1353,21 +1351,21 @@ function Ut(e, t, n, o) {
|
|
|
1353
1351
|
let s = "";
|
|
1354
1352
|
(l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
|
|
1355
1353
|
const i = document.createElementNS(C, "foreignObject");
|
|
1356
|
-
|
|
1354
|
+
w(i, {
|
|
1357
1355
|
x: n + parseInt(t.paddingLeft) + "",
|
|
1358
1356
|
y: o + parseInt(t.paddingTop) + "",
|
|
1359
1357
|
width: t.width,
|
|
1360
1358
|
height: t.height
|
|
1361
1359
|
});
|
|
1362
1360
|
const r = document.createElement("div");
|
|
1363
|
-
return
|
|
1361
|
+
return w(r, {
|
|
1364
1362
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
1365
1363
|
style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
|
|
1366
1364
|
}), r.innerHTML = s, i.appendChild(r), i;
|
|
1367
1365
|
}
|
|
1368
1366
|
function Jt(e, t) {
|
|
1369
1367
|
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "rect");
|
|
1370
|
-
return
|
|
1368
|
+
return w(i, {
|
|
1371
1369
|
x: o + "",
|
|
1372
1370
|
y: s + "",
|
|
1373
1371
|
rx: n.borderRadius,
|
|
@@ -1379,9 +1377,9 @@ function Jt(e, t) {
|
|
|
1379
1377
|
"stroke-width": n.borderWidth
|
|
1380
1378
|
}), i;
|
|
1381
1379
|
}
|
|
1382
|
-
function
|
|
1380
|
+
function G(e, t, n = !1) {
|
|
1383
1381
|
const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = A(e.nodes, t), r = document.createElementNS(C, "rect");
|
|
1384
|
-
|
|
1382
|
+
w(r, {
|
|
1385
1383
|
x: s + "",
|
|
1386
1384
|
y: i + "",
|
|
1387
1385
|
rx: o.borderRadius,
|
|
@@ -1399,7 +1397,7 @@ function Y(e, t, n = !1) {
|
|
|
1399
1397
|
}
|
|
1400
1398
|
function Qt(e, t) {
|
|
1401
1399
|
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "a"), r = document.createElementNS(C, "text");
|
|
1402
|
-
return
|
|
1400
|
+
return w(r, {
|
|
1403
1401
|
x: o + "",
|
|
1404
1402
|
y: s + parseInt(n.fontSize) + "",
|
|
1405
1403
|
"text-anchor": "start",
|
|
@@ -1411,7 +1409,7 @@ function Qt(e, t) {
|
|
|
1411
1409
|
}
|
|
1412
1410
|
function Zt(e, t) {
|
|
1413
1411
|
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "image");
|
|
1414
|
-
return
|
|
1412
|
+
return w(i, {
|
|
1415
1413
|
x: o + "",
|
|
1416
1414
|
y: s + "",
|
|
1417
1415
|
width: n.width + "",
|
|
@@ -1419,18 +1417,18 @@ function Zt(e, t) {
|
|
|
1419
1417
|
href: t.src
|
|
1420
1418
|
}), i;
|
|
1421
1419
|
}
|
|
1422
|
-
const
|
|
1420
|
+
const K = 100, en = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', tn = (e, t = !1) => {
|
|
1423
1421
|
var a, f, m;
|
|
1424
|
-
const n = e.nodes, o = n.offsetHeight +
|
|
1425
|
-
|
|
1422
|
+
const n = e.nodes, o = n.offsetHeight + K * 2, s = n.offsetWidth + K * 2, i = Yt(o + "px", s + "px"), r = document.createElementNS(C, "svg"), l = document.createElementNS(C, "rect");
|
|
1423
|
+
w(l, {
|
|
1426
1424
|
x: "0",
|
|
1427
1425
|
y: "0",
|
|
1428
1426
|
width: `${s}`,
|
|
1429
1427
|
height: `${o}`,
|
|
1430
1428
|
fill: e.theme.cssVar["--bgcolor"]
|
|
1431
1429
|
}), i.appendChild(l), n.querySelectorAll(".subLines").forEach((u) => {
|
|
1432
|
-
const p = u.cloneNode(!0), { offsetLeft: g, offsetTop:
|
|
1433
|
-
p.setAttribute("x", `${g}`), p.setAttribute("y", `${
|
|
1430
|
+
const p = u.cloneNode(!0), { offsetLeft: g, offsetTop: v } = A(n, u.parentElement);
|
|
1431
|
+
p.setAttribute("x", `${g}`), p.setAttribute("y", `${v}`), r.appendChild(p);
|
|
1434
1432
|
});
|
|
1435
1433
|
const c = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
|
|
1436
1434
|
c && r.appendChild(c);
|
|
@@ -1438,18 +1436,18 @@ const G = 100, en = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "
|
|
|
1438
1436
|
d && r.appendChild(d);
|
|
1439
1437
|
const h = (m = n.querySelector(".summary")) == null ? void 0 : m.cloneNode(!0);
|
|
1440
1438
|
return h && r.appendChild(h), n.querySelectorAll("me-tpc").forEach((u) => {
|
|
1441
|
-
u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(
|
|
1439
|
+
u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(G(e, u, !t)) : (r.appendChild(Jt(e, u)), r.appendChild(G(e, u.text, !t)));
|
|
1442
1440
|
}), n.querySelectorAll(".tags > span").forEach((u) => {
|
|
1443
|
-
r.appendChild(
|
|
1441
|
+
r.appendChild(G(e, u));
|
|
1444
1442
|
}), n.querySelectorAll(".icons > span").forEach((u) => {
|
|
1445
|
-
r.appendChild(
|
|
1443
|
+
r.appendChild(G(e, u));
|
|
1446
1444
|
}), n.querySelectorAll(".hyper-link").forEach((u) => {
|
|
1447
1445
|
r.appendChild(Qt(e, u));
|
|
1448
1446
|
}), n.querySelectorAll("img").forEach((u) => {
|
|
1449
1447
|
r.appendChild(Zt(e, u));
|
|
1450
|
-
}),
|
|
1451
|
-
x:
|
|
1452
|
-
y:
|
|
1448
|
+
}), w(r, {
|
|
1449
|
+
x: K + "",
|
|
1450
|
+
y: K + "",
|
|
1453
1451
|
overflow: "visible"
|
|
1454
1452
|
}), i.appendChild(r), i;
|
|
1455
1453
|
}, nn = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), en + e.outerHTML);
|
|
@@ -1480,7 +1478,7 @@ const sn = function(e = !1, t) {
|
|
|
1480
1478
|
exportPng: rn,
|
|
1481
1479
|
exportSvg: sn
|
|
1482
1480
|
}, Symbol.toStringTag, { value: "Module" })), cn = {}, an = {
|
|
1483
|
-
getObjById:
|
|
1481
|
+
getObjById: U,
|
|
1484
1482
|
generateNewObj: $e,
|
|
1485
1483
|
layout: He,
|
|
1486
1484
|
linkDiv: Fe,
|
|
@@ -1499,7 +1497,7 @@ const sn = function(e = !1, t) {
|
|
|
1499
1497
|
init(e) {
|
|
1500
1498
|
if (!e || !e.nodeData)
|
|
1501
1499
|
return new Error("MindElixir: `data` is required");
|
|
1502
|
-
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData,
|
|
1500
|
+
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, te(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Ye(this), this.toCenter(), this.layout(), this.linkDiv();
|
|
1503
1501
|
},
|
|
1504
1502
|
destroy() {
|
|
1505
1503
|
var e, t;
|
|
@@ -1522,7 +1520,7 @@ function dn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction:
|
|
|
1522
1520
|
const g = Math.abs(h - f) / 300 * N;
|
|
1523
1521
|
return c === "lhs" ? (p = t, m = p + N, u = p - N, a = i + N, `M ${m} ${h} C ${p} ${h} ${p + g} ${f} ${u} ${f} H ${a}`) : (p = t + n, m = p - N, u = p + N, a = i + r - N, `M ${m} ${h} C ${p} ${h} ${p - g} ${f} ${u} ${f} H ${a}`);
|
|
1524
1522
|
}
|
|
1525
|
-
const un = "4.1
|
|
1523
|
+
const un = "4.2.1", I = document;
|
|
1526
1524
|
function $({
|
|
1527
1525
|
el: e,
|
|
1528
1526
|
direction: t,
|
|
@@ -1534,29 +1532,30 @@ function $({
|
|
|
1534
1532
|
toolBar: l,
|
|
1535
1533
|
keypress: c,
|
|
1536
1534
|
mouseSelectionButton: d,
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1535
|
+
selectionContainer: h,
|
|
1536
|
+
before: a,
|
|
1537
|
+
newTopicName: f,
|
|
1538
|
+
allowUndo: m,
|
|
1539
|
+
generateMainBranch: u,
|
|
1540
|
+
generateSubBranch: p,
|
|
1541
|
+
overflowHidden: g,
|
|
1542
|
+
mobileMenu: v,
|
|
1544
1543
|
theme: y
|
|
1545
1544
|
}) {
|
|
1546
|
-
let
|
|
1547
|
-
const
|
|
1548
|
-
if (
|
|
1545
|
+
let b = null;
|
|
1546
|
+
const _ = Object.prototype.toString.call(e);
|
|
1547
|
+
if (_ === "[object HTMLDivElement]" ? b = e : _ === "[object String]" && (b = document.querySelector(e)), !b)
|
|
1549
1548
|
throw new Error("MindElixir: el is not a valid element");
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1552
|
-
this.theme = y || (
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1549
|
+
b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", N + "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 = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = d || 0, this.mobileMenu = v || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = m === void 0 ? !1 : m, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || hn, this.generateSubBranch = p || dn, this.overflowHidden = g || !1, this.bus = De.create(), this.container = I.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
|
|
1550
|
+
const E = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1551
|
+
this.theme = y || (E.matches ? ye : ve);
|
|
1552
|
+
const R = I.createElement("div");
|
|
1553
|
+
R.className = "map-canvas", this.map = R, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = I.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = F("lines"), this.summarySvg = F("summary"), this.linkController = F("linkcontroller"), this.P2 = I.createElement("div"), this.P3 = I.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = le(), this.line2 = le(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = F("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ke(this);
|
|
1555
1554
|
}
|
|
1556
1555
|
$.prototype = an;
|
|
1557
1556
|
$.LEFT = q;
|
|
1558
|
-
$.RIGHT =
|
|
1559
|
-
$.SIDE =
|
|
1557
|
+
$.RIGHT = Z;
|
|
1558
|
+
$.SIDE = ee;
|
|
1560
1559
|
$.THEME = ve;
|
|
1561
1560
|
$.DARK_THEME = ye;
|
|
1562
1561
|
$.version = un;
|