mind-elixir 4.3.2 → 4.3.3
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 +5 -5
- package/dist/MindElixir.js +269 -265
- package/dist/MindElixirLite.iife.js +1 -1
- package/dist/MindElixirLite.js +1 -1
- package/dist/types/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/MindElixir.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--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{outline:2px solid var(--selected);outline-offset:1px}.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);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.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-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;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.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 4px 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-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(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
(function(e) {
|
|
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
|
-
if (
|
|
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
|
+
if (l && !e.__iconfont__svg__cssinject__) {
|
|
5
5
|
e.__iconfont__svg__cssinject__ = !0;
|
|
6
6
|
try {
|
|
7
7
|
document.write(
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
i || (i = !0, o());
|
|
15
15
|
}
|
|
16
16
|
t = function() {
|
|
17
|
-
var d, a,
|
|
18
|
-
(g = document.createElement("div")).innerHTML =
|
|
17
|
+
var d, a, f, g;
|
|
18
|
+
(g = document.createElement("div")).innerHTML = c, c = null, (f = g.getElementsByTagName("svg")[0]) && (f.setAttribute("aria-hidden", "true"), f.style.position = "absolute", f.style.width = 0, f.style.height = 0, f.style.overflow = "hidden", d = f, (a = document.body).firstChild ? (g = d, (f = a.firstChild).parentNode.insertBefore(g, f)) : a.appendChild(d));
|
|
19
19
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
|
|
20
20
|
document.removeEventListener("DOMContentLoaded", n, !1), t();
|
|
21
21
|
}, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (o = t, s = e.document, i = !1, (r = function() {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
s.readyState == "complete" && (s.onreadystatechange = null, u());
|
|
30
30
|
});
|
|
31
31
|
})(window);
|
|
32
|
-
const
|
|
32
|
+
const k = 0, D = 1, re = 2, $e = {
|
|
33
33
|
name: "Latte",
|
|
34
34
|
type: "light",
|
|
35
35
|
palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
|
|
@@ -72,10 +72,10 @@ const oe = function(e, t) {
|
|
|
72
72
|
return null;
|
|
73
73
|
} else
|
|
74
74
|
return null;
|
|
75
|
-
},
|
|
75
|
+
}, $ = (e, t) => {
|
|
76
76
|
if (e.parent = t, e.children)
|
|
77
77
|
for (let n = 0; n < e.children.length; n++)
|
|
78
|
-
|
|
78
|
+
$(e.children[n], e);
|
|
79
79
|
};
|
|
80
80
|
function he(e) {
|
|
81
81
|
if (e.id = X(), e.children)
|
|
@@ -92,12 +92,12 @@ function Pe(e, t, n, o) {
|
|
|
92
92
|
const s = o - t, i = e - n;
|
|
93
93
|
let r = Math.atan(Math.abs(s) / Math.abs(i)) / 3.14 * 180;
|
|
94
94
|
i < 0 && s > 0 && (r = 180 - r), i < 0 && s < 0 && (r = 180 + r), i > 0 && s < 0 && (r = 360 - r);
|
|
95
|
-
const
|
|
95
|
+
const c = 15, l = 30, u = r + l, d = r - l;
|
|
96
96
|
return {
|
|
97
|
-
x1: n + Math.cos(Math.PI * u / 180) *
|
|
98
|
-
y1: o - Math.sin(Math.PI * u / 180) *
|
|
99
|
-
x2: n + Math.cos(Math.PI * d / 180) *
|
|
100
|
-
y2: o - Math.sin(Math.PI * d / 180) *
|
|
97
|
+
x1: n + Math.cos(Math.PI * u / 180) * c,
|
|
98
|
+
y1: o - Math.sin(Math.PI * u / 180) * c,
|
|
99
|
+
x2: n + Math.cos(Math.PI * d / 180) * c,
|
|
100
|
+
y2: o - Math.sin(Math.PI * d / 180) * c
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function X() {
|
|
@@ -118,7 +118,7 @@ function ue(e) {
|
|
|
118
118
|
})
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
const
|
|
121
|
+
const O = (e, t) => {
|
|
122
122
|
let n = 0, o = 0;
|
|
123
123
|
for (; t && t !== e; )
|
|
124
124
|
n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
|
|
@@ -126,7 +126,7 @@ const $ = (e, t) => {
|
|
|
126
126
|
}, N = (e, t) => {
|
|
127
127
|
for (const n in t)
|
|
128
128
|
e.setAttribute(n, t[n]);
|
|
129
|
-
},
|
|
129
|
+
}, le = (e) => e ? e.tagName === "ME-TPC" : !1, ce = (e) => e.filter((t) => {
|
|
130
130
|
for (let n = 0; n < e.length; n++) {
|
|
131
131
|
if (t === e[n])
|
|
132
132
|
continue;
|
|
@@ -134,7 +134,7 @@ const $ = (e, t) => {
|
|
|
134
134
|
return !1;
|
|
135
135
|
}
|
|
136
136
|
return !0;
|
|
137
|
-
}),
|
|
137
|
+
}), T = {
|
|
138
138
|
moved: !1,
|
|
139
139
|
// diffrentiate click and move
|
|
140
140
|
mousedown: !1,
|
|
@@ -162,15 +162,15 @@ function ot(e) {
|
|
|
162
162
|
e.helper2.clear();
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
166
|
-
|
|
165
|
+
if (T.moved) {
|
|
166
|
+
T.clear();
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
e.clearSelection();
|
|
170
170
|
const n = t.target;
|
|
171
171
|
if (n.tagName === "ME-EPD")
|
|
172
172
|
e.expandNode(n.previousSibling);
|
|
173
|
-
else if (
|
|
173
|
+
else if (le(n))
|
|
174
174
|
e.selectNode(n, !1, t);
|
|
175
175
|
else if (e.editable)
|
|
176
176
|
n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
|
|
@@ -180,18 +180,18 @@ function ot(e) {
|
|
|
180
180
|
if (!e.editable)
|
|
181
181
|
return;
|
|
182
182
|
const n = t.target;
|
|
183
|
-
|
|
183
|
+
le(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
|
|
184
184
|
}), e.map.addEventListener("mousemove", (t) => {
|
|
185
|
-
t.target.contentEditable !== "true" &&
|
|
185
|
+
t.target.contentEditable !== "true" && T.onMove(t, e.container);
|
|
186
186
|
}), e.map.addEventListener("mousedown", (t) => {
|
|
187
187
|
const n = e.mouseSelectionButton === 0 ? 2 : 0;
|
|
188
|
-
t.button === n && t.target.contentEditable !== "true" && (
|
|
188
|
+
t.button === n && t.target.contentEditable !== "true" && (T.moved = !1, T.mousedown = !0);
|
|
189
189
|
}), e.map.addEventListener("mouseleave", (t) => {
|
|
190
190
|
const n = e.mouseSelectionButton === 0 ? 2 : 0;
|
|
191
|
-
t.button === n &&
|
|
191
|
+
t.button === n && T.clear();
|
|
192
192
|
}), e.map.addEventListener("mouseup", (t) => {
|
|
193
193
|
const n = e.mouseSelectionButton === 0 ? 2 : 0;
|
|
194
|
-
t.button === n &&
|
|
194
|
+
t.button === n && T.clear();
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
const st = {
|
|
@@ -232,7 +232,7 @@ const st = {
|
|
|
232
232
|
if (this.direction === re) {
|
|
233
233
|
let o = 0, s = 0;
|
|
234
234
|
n.map((i) => {
|
|
235
|
-
i.direction ===
|
|
235
|
+
i.direction === k ? o += 1 : i.direction === D ? s += 1 : o <= s ? (i.direction = k, o += 1) : (i.direction = D, s += 1);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
rt(this, n, t);
|
|
@@ -242,11 +242,11 @@ const st = {
|
|
|
242
242
|
const s = se.createElement("me-main");
|
|
243
243
|
s.className = "rhs";
|
|
244
244
|
for (let i = 0; i < t.length; i++) {
|
|
245
|
-
const r = t[i], { grp:
|
|
246
|
-
e.direction === re ? r.direction ===
|
|
245
|
+
const r = t[i], { grp: c } = e.createWrapper(r);
|
|
246
|
+
e.direction === re ? r.direction === k ? o.appendChild(c) : s.appendChild(c) : e.direction === k ? o.appendChild(c) : s.appendChild(c);
|
|
247
247
|
}
|
|
248
248
|
e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
|
|
249
|
-
},
|
|
249
|
+
}, ct = function(e, t) {
|
|
250
250
|
const n = se.createElement("me-children");
|
|
251
251
|
for (let o = 0; o < t.length; o++) {
|
|
252
252
|
const s = t[o], { grp: i } = e.createWrapper(s);
|
|
@@ -290,12 +290,12 @@ const st = {
|
|
|
290
290
|
n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${ne(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
|
|
291
291
|
} else
|
|
292
292
|
e.tags && (e.tags = void 0);
|
|
293
|
-
},
|
|
293
|
+
}, lt = function(e, t) {
|
|
294
294
|
const n = _.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
|
|
295
295
|
if (n.appendChild(o), !t && e.children && e.children.length > 0) {
|
|
296
296
|
const i = pe(e.expanded);
|
|
297
297
|
if (o.appendChild(i), e.expanded !== !1) {
|
|
298
|
-
const r =
|
|
298
|
+
const r = ct(this, e.children);
|
|
299
299
|
n.appendChild(r);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -328,7 +328,7 @@ const ut = function(e) {
|
|
|
328
328
|
margin:${o.margin};
|
|
329
329
|
font:${o.font};
|
|
330
330
|
background-color:${o.backgroundColor !== "rgba(0, 0, 0, 0)" && o.backgroundColor};
|
|
331
|
-
border-radius:${o.borderRadius};`, this.direction ===
|
|
331
|
+
border-radius:${o.borderRadius};`, this.direction === k && (t.style.right = "0"), t.focus(), Be(t), this.bus.fire("operation", {
|
|
332
332
|
name: "beginEdit",
|
|
333
333
|
obj: e.nodeObj
|
|
334
334
|
}), t.addEventListener("keydown", (s) => {
|
|
@@ -391,14 +391,14 @@ const ut = function(e) {
|
|
|
391
391
|
o.id = "input-box", o.textContent = s, o.contentEditable = "true", o.spellcheck = !1;
|
|
392
392
|
const i = t.getAttribute("x"), r = t.getAttribute("y");
|
|
393
393
|
o.style.cssText = `min-width:88px;position:absolute;left:${i}px;top:${r}px;`;
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
const u =
|
|
394
|
+
const c = t.getAttribute("text-anchor");
|
|
395
|
+
c === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : c === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Be(o), o.addEventListener("keydown", (l) => {
|
|
396
|
+
l.stopPropagation();
|
|
397
|
+
const u = l.key;
|
|
398
398
|
if (u === "Enter" || u === "Tab") {
|
|
399
|
-
if (
|
|
399
|
+
if (l.shiftKey)
|
|
400
400
|
return;
|
|
401
|
-
|
|
401
|
+
l.preventDefault(), o.blur(), e.map.focus();
|
|
402
402
|
}
|
|
403
403
|
}), o.addEventListener("blur", () => {
|
|
404
404
|
o && n(o);
|
|
@@ -408,25 +408,25 @@ const ut = function(e) {
|
|
|
408
408
|
this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - o - s / 2}px`;
|
|
409
409
|
const r = this.map.querySelectorAll("me-main > me-wrapper");
|
|
410
410
|
this.lines.innerHTML = "";
|
|
411
|
-
for (let
|
|
412
|
-
const
|
|
411
|
+
for (let c = 0; c < r.length; c++) {
|
|
412
|
+
const l = r[c], u = l.querySelector("me-tpc"), { offsetLeft: d, offsetTop: a } = O(this.nodes, u), f = u.offsetWidth, g = u.offsetHeight, p = l.parentNode.className, m = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: d, cW: f, cH: g, direction: p, containerHeight: this.nodes.offsetHeight }), h = this.theme.palette, v = u.nodeObj.branchColor || h[c % h.length];
|
|
413
413
|
u.style.borderColor = v, this.lines.appendChild(He(m, v, "3"));
|
|
414
|
-
const y =
|
|
415
|
-
if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px",
|
|
414
|
+
const y = l.children[0].children[1];
|
|
415
|
+
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)
|
|
416
416
|
continue;
|
|
417
|
-
const b = Y("subLines"), x =
|
|
418
|
-
x.tagName === "svg" && x.remove(),
|
|
417
|
+
const b = Y("subLines"), x = l.lastChild;
|
|
418
|
+
x.tagName === "svg" && x.remove(), l.appendChild(b), Re(this, b, v, l, p, !0);
|
|
419
419
|
}
|
|
420
420
|
this.renderArrow(), this.renderSummary(), this.bus.fire("linkDiv");
|
|
421
421
|
}, Re = function(e, t, n, o, s, i) {
|
|
422
|
-
const r = o.firstChild,
|
|
423
|
-
if (
|
|
422
|
+
const r = o.firstChild, c = o.children[1].children;
|
|
423
|
+
if (c.length === 0)
|
|
424
424
|
return;
|
|
425
|
-
const
|
|
426
|
-
for (let
|
|
427
|
-
const g =
|
|
425
|
+
const l = r.offsetTop, u = r.offsetLeft, d = r.offsetWidth, a = r.offsetHeight;
|
|
426
|
+
for (let f = 0; f < c.length; f++) {
|
|
427
|
+
const g = c[f], p = g.firstChild, m = p.offsetTop, h = p.offsetLeft, v = p.offsetWidth, y = p.offsetHeight, b = p.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: l, pL: u, pW: d, pH: a, cT: m, cL: h, cW: v, cH: y, direction: s, isFirst: i });
|
|
428
428
|
t.appendChild(He(x, b, "2"));
|
|
429
|
-
const w =
|
|
429
|
+
const w = p.children[1];
|
|
430
430
|
if (w) {
|
|
431
431
|
if (w.style.bottom = -(w.offsetHeight / 2) + "px", s === "lhs" ? w.style.left = "10px" : s === "rhs" && (w.style.right = "10px"), !w.expanded)
|
|
432
432
|
continue;
|
|
@@ -574,8 +574,8 @@ function mt(e, t) {
|
|
|
574
574
|
}, o = (b, x, w) => {
|
|
575
575
|
const S = document.createElement("li");
|
|
576
576
|
return S.id = b, S.innerHTML = `<span>${ne(x)}</span><span ${w ? 'class="key"' : ""}>${ne(w)}</span>`, S;
|
|
577
|
-
}, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "Tab"),
|
|
578
|
-
if (h.className = "menu-list", h.appendChild(r), h.appendChild(
|
|
577
|
+
}, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "Tab"), c = o("cm-add_parent", i.addParent, "Ctrl + Enter"), l = o("cm-add_sibling", i.addSibling, "Enter"), u = o("cm-remove_child", i.removeNode, "Delete"), d = o("cm-fucus", i.focus, ""), a = o("cm-unfucus", i.cancelFocus, ""), f = 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, ""), h = document.createElement("ul");
|
|
578
|
+
if (h.className = "menu-list", h.appendChild(r), h.appendChild(c), h.appendChild(l), h.appendChild(u), (!t || t.focus) && (h.appendChild(d), h.appendChild(a)), h.appendChild(f), h.appendChild(g), h.appendChild(m), (!t || t.link) && h.appendChild(p), t && t.extend)
|
|
579
579
|
for (let b = 0; b < t.extend.length; b++) {
|
|
580
580
|
const x = t.extend[b], w = o(x.name, x.name, x.key || "");
|
|
581
581
|
h.appendChild(w), w.onclick = (S) => {
|
|
@@ -589,18 +589,18 @@ function mt(e, t) {
|
|
|
589
589
|
if (b.preventDefault(), !e.editable)
|
|
590
590
|
return;
|
|
591
591
|
const x = b.target;
|
|
592
|
-
if (
|
|
593
|
-
x.parentElement.tagName === "ME-ROOT" ? y = !0 : y = !1, y ? (d.className = "disabled",
|
|
594
|
-
const w = h.getBoundingClientRect(), S = h.offsetHeight,
|
|
595
|
-
S + W > window.innerHeight ? (h.style.top = "", h.style.bottom = "0px") : (h.style.bottom = "", h.style.top = W + 15 + "px"),
|
|
592
|
+
if (le(x)) {
|
|
593
|
+
x.parentElement.tagName === "ME-ROOT" ? y = !0 : y = !1, y ? (d.className = "disabled", f.className = "disabled", g.className = "disabled", c.className = "disabled", l.className = "disabled", u.className = "disabled") : (d.className = "", f.className = "", g.className = "", c.className = "", l.className = "", u.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, T.mousedown && (T.mousedown = !1), h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "";
|
|
594
|
+
const w = h.getBoundingClientRect(), S = h.offsetHeight, P = h.offsetWidth, W = b.clientY - w.top, B = b.clientX - w.left;
|
|
595
|
+
S + W > window.innerHeight ? (h.style.top = "", h.style.bottom = "0px") : (h.style.bottom = "", h.style.top = W + 15 + "px"), P + B > window.innerWidth ? (h.style.left = "", h.style.right = "0px") : (h.style.right = "", h.style.left = B + 10 + "px");
|
|
596
596
|
}
|
|
597
597
|
}, v.onclick = (b) => {
|
|
598
598
|
b.target === v && (v.hidden = !0);
|
|
599
599
|
}, r.onclick = () => {
|
|
600
600
|
e.addChild(), v.hidden = !0;
|
|
601
|
-
}, l.onclick = () => {
|
|
602
|
-
e.insertParent(), v.hidden = !0;
|
|
603
601
|
}, c.onclick = () => {
|
|
602
|
+
e.insertParent(), v.hidden = !0;
|
|
603
|
+
}, l.onclick = () => {
|
|
604
604
|
y || (e.insertSibling("after"), v.hidden = !0);
|
|
605
605
|
}, u.onclick = () => {
|
|
606
606
|
y || (e.removeNode(), v.hidden = !0);
|
|
@@ -608,11 +608,11 @@ function mt(e, t) {
|
|
|
608
608
|
y || (e.focusNode(e.currentNode), v.hidden = !0);
|
|
609
609
|
}, a.onclick = () => {
|
|
610
610
|
e.cancelFocus(), v.hidden = !0;
|
|
611
|
-
},
|
|
611
|
+
}, f.onclick = () => {
|
|
612
612
|
y || (e.moveUpNode(), v.hidden = !0);
|
|
613
613
|
}, g.onclick = () => {
|
|
614
614
|
y || (e.moveDownNode(), v.hidden = !0);
|
|
615
|
-
},
|
|
615
|
+
}, p.onclick = () => {
|
|
616
616
|
v.hidden = !0;
|
|
617
617
|
const b = e.currentNode, x = n(i.clickTips);
|
|
618
618
|
e.container.appendChild(x), e.map.addEventListener(
|
|
@@ -629,7 +629,7 @@ function mt(e, t) {
|
|
|
629
629
|
}, m.onclick = () => {
|
|
630
630
|
v.hidden = !0, e.createSummary(), e.unselectNodes();
|
|
631
631
|
}, () => {
|
|
632
|
-
r.onclick = null,
|
|
632
|
+
r.onclick = null, c.onclick = null, l.onclick = null, u.onclick = null, d.onclick = null, a.onclick = null, f.onclick = null, g.onclick = null, p.onclick = null, m.onclick = null, v.onclick = null, e.container.oncontextmenu = null;
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
const gt = (e) => {
|
|
@@ -782,39 +782,39 @@ function Ct(e) {
|
|
|
782
782
|
let t = null, n = null, o = null;
|
|
783
783
|
const s = Nt(e), i = 12;
|
|
784
784
|
e.map.addEventListener("dragstart", (r) => {
|
|
785
|
-
var
|
|
786
|
-
const
|
|
787
|
-
if ((
|
|
785
|
+
var l, u;
|
|
786
|
+
const c = r.target;
|
|
787
|
+
if ((c == null ? void 0 : c.tagName) !== "ME-TPC") {
|
|
788
788
|
r.preventDefault();
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
|
-
(
|
|
791
|
+
(l = e.currentNodes) != null && l.includes(c) || (e.unselectNodes(), e.selectNode(c)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [c], s.innerHTML = c.innerHTML);
|
|
792
792
|
for (const d of t)
|
|
793
793
|
d.parentElement.parentElement.style.opacity = "0.5";
|
|
794
|
-
(u = r.dataTransfer) == null || u.setDragImage(s, 0, 0),
|
|
794
|
+
(u = r.dataTransfer) == null || u.setDragImage(s, 0, 0), T.clear();
|
|
795
795
|
}), e.map.addEventListener("dragend", async (r) => {
|
|
796
796
|
if (!t)
|
|
797
797
|
return;
|
|
798
|
-
for (const
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
|
|
798
|
+
for (const l of t)
|
|
799
|
+
l.parentElement.parentElement.style.opacity = "1";
|
|
800
|
+
const c = r.target;
|
|
801
|
+
c.style.opacity = "", o && (de(o), n === "before" ? e.moveNodeBefore(t, o) : n === "after" ? e.moveNodeAfter(t, o) : n === "in" && e.moveNodeIn(t, o), t = null);
|
|
802
802
|
}), e.map.addEventListener(
|
|
803
803
|
"dragover",
|
|
804
804
|
tt(function(r) {
|
|
805
805
|
if (!t)
|
|
806
806
|
return;
|
|
807
807
|
de(o);
|
|
808
|
-
const
|
|
809
|
-
if (Ne(
|
|
810
|
-
o =
|
|
811
|
-
const
|
|
812
|
-
r.clientY >
|
|
808
|
+
const c = ae.elementFromPoint(r.clientX, r.clientY - i);
|
|
809
|
+
if (Ne(c, t)) {
|
|
810
|
+
o = c;
|
|
811
|
+
const l = c.getBoundingClientRect().y;
|
|
812
|
+
r.clientY > l + c.clientHeight ? n = "after" : n = "in";
|
|
813
813
|
} else {
|
|
814
|
-
const
|
|
815
|
-
if (Ne(
|
|
816
|
-
o =
|
|
817
|
-
const u =
|
|
814
|
+
const l = ae.elementFromPoint(r.clientX, r.clientY + i);
|
|
815
|
+
if (Ne(l, t)) {
|
|
816
|
+
o = l;
|
|
817
|
+
const u = l.getBoundingClientRect().y;
|
|
818
818
|
r.clientY < u ? n = "before" : n = "in";
|
|
819
819
|
} else
|
|
820
820
|
n = o = null;
|
|
@@ -937,7 +937,7 @@ const Fe = (e) => (t, n, o, s = {}) => {
|
|
|
937
937
|
for (const r of n)
|
|
938
938
|
i[e](r, o, { capture: !1, ...s });
|
|
939
939
|
return [t, n, o, s];
|
|
940
|
-
},
|
|
940
|
+
}, H = Fe("addEventListener"), L = Fe("removeEventListener"), Q = (e) => {
|
|
941
941
|
var t;
|
|
942
942
|
const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
|
|
943
943
|
return { x: n, y: o, target: s };
|
|
@@ -996,7 +996,7 @@ function Pt(e, t) {
|
|
|
996
996
|
}
|
|
997
997
|
return !1;
|
|
998
998
|
}
|
|
999
|
-
const { abs:
|
|
999
|
+
const { abs: z, max: _e, min: Me, ceil: ke } = Math, Te = (e = []) => ({
|
|
1000
1000
|
stored: e,
|
|
1001
1001
|
selected: [],
|
|
1002
1002
|
touched: [],
|
|
@@ -1045,8 +1045,8 @@ class qe extends jt {
|
|
|
1045
1045
|
};
|
|
1046
1046
|
for (const d of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
|
|
1047
1047
|
typeof this[d] == "function" && (this[d] = this[d].bind(this));
|
|
1048
|
-
const { document:
|
|
1049
|
-
this._area =
|
|
1048
|
+
const { document: c, selectionAreaClass: l, selectionContainerClass: u } = this._options;
|
|
1049
|
+
this._area = c.createElement("div"), this._clippingElement = c.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(l), u && this._clippingElement.classList.add(u), j(this._area, {
|
|
1050
1050
|
willChange: "top, left, bottom, right, width, height",
|
|
1051
1051
|
top: 0,
|
|
1052
1052
|
left: 0,
|
|
@@ -1063,23 +1063,23 @@ class qe extends jt {
|
|
|
1063
1063
|
}), this.enable();
|
|
1064
1064
|
}
|
|
1065
1065
|
_toggleStartEvents(t = !0) {
|
|
1066
|
-
const { document: n, features: o } = this._options, s = t ?
|
|
1066
|
+
const { document: n, features: o } = this._options, s = t ? H : L;
|
|
1067
1067
|
s(n, "mousedown", this._onTapStart), o.touch && s(n, "touchstart", this._onTapStart, { passive: !1 });
|
|
1068
1068
|
}
|
|
1069
1069
|
_onTapStart(t, n = !1) {
|
|
1070
|
-
const { x: o, y: s, target: i } = Q(t), { document: r, startAreas:
|
|
1070
|
+
const { x: o, y: s, target: i } = Q(t), { document: r, startAreas: c, boundaries: l, features: u, behaviour: d } = this._options, a = i.getBoundingClientRect();
|
|
1071
1071
|
if (t instanceof MouseEvent && !Pt(t, d.triggers))
|
|
1072
1072
|
return;
|
|
1073
|
-
const
|
|
1073
|
+
const f = F(c, r), g = F(l, r);
|
|
1074
1074
|
this._targetElement = g.find(
|
|
1075
1075
|
(v) => Se(v.getBoundingClientRect(), a)
|
|
1076
1076
|
);
|
|
1077
|
-
const
|
|
1078
|
-
if (this._targetBoundary = g.find((v) =>
|
|
1077
|
+
const p = t.composedPath(), m = f.find((v) => p.includes(v));
|
|
1078
|
+
if (this._targetBoundary = g.find((v) => p.includes(v)), !this._targetElement || !m || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
|
|
1079
1079
|
return;
|
|
1080
1080
|
this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
|
|
1081
1081
|
const h = r.scrollingElement ?? r.body;
|
|
1082
|
-
this._scrollDelta = { x: h.scrollLeft, y: h.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0),
|
|
1082
|
+
this._scrollDelta = { x: h.scrollLeft, y: h.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), H(r, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), H(r, ["mouseup", "touchcancel", "touchend"], this._onTapStop), H(r, "scroll", this._onScroll), u.deselectOnBlur && (this._targetBoundaryScrolled = !1, H(this._targetBoundary, "scroll", this._onStartAreaScroll));
|
|
1083
1083
|
}
|
|
1084
1084
|
_onSingleTap(t) {
|
|
1085
1085
|
const { singleTap: { intersect: n }, range: o } = this._options.features, s = Q(t);
|
|
@@ -1088,10 +1088,10 @@ class qe extends jt {
|
|
|
1088
1088
|
i = s.target;
|
|
1089
1089
|
else if (n === "touch") {
|
|
1090
1090
|
this.resolveSelectables();
|
|
1091
|
-
const { x:
|
|
1091
|
+
const { x: c, y: l } = s;
|
|
1092
1092
|
i = this._selectables.find((u) => {
|
|
1093
|
-
const { right: d, left: a, top:
|
|
1094
|
-
return
|
|
1093
|
+
const { right: d, left: a, top: f, bottom: g } = u.getBoundingClientRect();
|
|
1094
|
+
return c < d && c > a && l < g && l > f;
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
if (!i)
|
|
@@ -1105,25 +1105,25 @@ class qe extends jt {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
const { stored: r } = this._selection;
|
|
1107
1107
|
if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
|
|
1108
|
-
const
|
|
1109
|
-
(a) => a.compareDocumentPosition(
|
|
1110
|
-
),
|
|
1111
|
-
this.select(d), this._latestElement =
|
|
1108
|
+
const c = this._latestElement, [l, u] = c.compareDocumentPosition(i) & 4 ? [i, c] : [c, i], d = [...this._selectables.filter(
|
|
1109
|
+
(a) => a.compareDocumentPosition(l) & 4 && a.compareDocumentPosition(u) & 2
|
|
1110
|
+
), l, u];
|
|
1111
|
+
this.select(d), this._latestElement = c;
|
|
1112
1112
|
} else
|
|
1113
|
-
r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((
|
|
1113
|
+
r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((c) => this._selection.stored.includes(c))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
|
|
1114
1114
|
}
|
|
1115
1115
|
_delayedTapMove(t) {
|
|
1116
|
-
const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x:
|
|
1116
|
+
const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: c, y: l } = Q(t);
|
|
1117
1117
|
if (
|
|
1118
1118
|
// Single number for both coordinates
|
|
1119
|
-
typeof s == "number" &&
|
|
1120
|
-
typeof s == "object" &&
|
|
1119
|
+
typeof s == "number" && z(c + l - (i + r)) >= s || // Different x and y threshold
|
|
1120
|
+
typeof s == "object" && z(c - i) >= s.x || z(l - r) >= s.y
|
|
1121
1121
|
) {
|
|
1122
1122
|
if (L(o, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", t) === !1) {
|
|
1123
1123
|
L(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
|
|
1124
1124
|
return;
|
|
1125
1125
|
}
|
|
1126
|
-
|
|
1126
|
+
H(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), j(this._area, "display", "block"), F(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 && (H(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((u) => this._targetElement.contains(u))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
|
|
1127
1127
|
}
|
|
1128
1128
|
this._handleMoveEvent(t);
|
|
1129
1129
|
}
|
|
@@ -1148,16 +1148,16 @@ class qe extends jt {
|
|
|
1148
1148
|
}));
|
|
1149
1149
|
}
|
|
1150
1150
|
_onTapMove(t) {
|
|
1151
|
-
const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling,
|
|
1152
|
-
if (o.x2 =
|
|
1151
|
+
const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, c = this._targetElement, { x: l, y: u } = Q(t);
|
|
1152
|
+
if (o.x2 = l, o.y2 = u, this._scrollAvailable && !this._scrollingActive && (n.y || n.x)) {
|
|
1153
1153
|
this._scrollingActive = !0;
|
|
1154
1154
|
const d = () => {
|
|
1155
1155
|
if (!n.x && !n.y) {
|
|
1156
1156
|
this._scrollingActive = !1;
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
const { scrollTop: a, scrollLeft:
|
|
1160
|
-
n.y && (
|
|
1159
|
+
const { scrollTop: a, scrollLeft: f } = c;
|
|
1160
|
+
n.y && (c.scrollTop += ke(n.y / r), o.y1 -= c.scrollTop - a), n.x && (c.scrollLeft += ke(n.x / r), o.x1 -= c.scrollLeft - f), i.next(t), requestAnimationFrame(d);
|
|
1161
1161
|
};
|
|
1162
1162
|
requestAnimationFrame(d);
|
|
1163
1163
|
} else
|
|
@@ -1180,11 +1180,11 @@ class qe extends jt {
|
|
|
1180
1180
|
this._scrollSpeed.y += o * n, this._scrollSpeed.x += s * n, this._onTapMove(t), t.preventDefault();
|
|
1181
1181
|
}
|
|
1182
1182
|
_recalculateSelectionAreaRect() {
|
|
1183
|
-
const { _scrollSpeed: t, _areaLocation: n, _targetElement: o, _options: s } = this, { scrollTop: i, scrollHeight: r, clientHeight:
|
|
1184
|
-
let { x2:
|
|
1183
|
+
const { _scrollSpeed: t, _areaLocation: n, _targetElement: o, _options: s } = this, { scrollTop: i, scrollHeight: r, clientHeight: c, scrollLeft: l, scrollWidth: u, clientWidth: d } = o, a = this._targetRect, { x1: f, y1: g } = n;
|
|
1184
|
+
let { x2: p, y2: m } = n;
|
|
1185
1185
|
const { behaviour: { scrolling: { startScrollMargins: h } } } = s;
|
|
1186
|
-
|
|
1187
|
-
const v = Me(
|
|
1186
|
+
p < a.left + h.x ? (t.x = l ? -z(a.left - p + h.x) : 0, p = p < a.left ? a.left : p) : p > a.right - h.x ? (t.x = u - l - d ? z(a.left + a.width - p - h.x) : 0, p = p > a.right ? a.right : p) : t.x = 0, m < a.top + h.y ? (t.y = i ? -z(a.top - m + h.y) : 0, m = m < a.top ? a.top : m) : m > a.bottom - h.y ? (t.y = r - i - c ? z(a.top + a.height - m - h.y) : 0, m = m > a.bottom ? a.bottom : m) : t.y = 0;
|
|
1187
|
+
const v = Me(f, p), y = Me(g, m), b = _e(f, p), x = _e(g, m);
|
|
1188
1188
|
this._areaRect = new DOMRect(v, y, b - v, x - y);
|
|
1189
1189
|
}
|
|
1190
1190
|
_redrawSelectionArea() {
|
|
@@ -1197,29 +1197,29 @@ class qe extends jt {
|
|
|
1197
1197
|
L(this._targetElement, "scroll", this._onStartAreaScroll), L(s, ["mousemove", "touchmove"], this._delayedTapMove), L(s, ["touchmove", "mousemove"], this._onTapMove), L(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), L(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, L(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), j(this._area, "display", "none");
|
|
1198
1198
|
}
|
|
1199
1199
|
_updateElementSelection() {
|
|
1200
|
-
const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched:
|
|
1200
|
+
const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: c } = o, { intersect: l, overlap: u } = n.behaviour, d = u === "invert", a = [], f = [], g = [];
|
|
1201
1201
|
for (let m = 0; m < t.length; m++) {
|
|
1202
1202
|
const h = t[m];
|
|
1203
|
-
if (Se(s, h.getBoundingClientRect(),
|
|
1203
|
+
if (Se(s, h.getBoundingClientRect(), l)) {
|
|
1204
1204
|
if (r.includes(h))
|
|
1205
|
-
i.includes(h) && !
|
|
1205
|
+
i.includes(h) && !c.includes(h) && c.push(h);
|
|
1206
1206
|
else if (d && i.includes(h)) {
|
|
1207
1207
|
g.push(h);
|
|
1208
1208
|
continue;
|
|
1209
1209
|
} else
|
|
1210
|
-
|
|
1210
|
+
f.push(h);
|
|
1211
1211
|
a.push(h);
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
|
-
d &&
|
|
1215
|
-
const
|
|
1214
|
+
d && f.push(...i.filter((m) => !r.includes(m)));
|
|
1215
|
+
const p = u === "keep";
|
|
1216
1216
|
for (let m = 0; m < r.length; m++) {
|
|
1217
1217
|
const h = r[m];
|
|
1218
1218
|
!a.includes(h) && !// Check if the user wants to keep previously selected elements, e.g.,
|
|
1219
1219
|
// not make them part of the current selection as soon as they're touched.
|
|
1220
|
-
(
|
|
1220
|
+
(p && i.includes(h)) && g.push(h);
|
|
1221
1221
|
}
|
|
1222
|
-
o.selected = a, o.changed = { added:
|
|
1222
|
+
o.selected = a, o.changed = { added: f, removed: g }, this._latestElement = void 0;
|
|
1223
1223
|
}
|
|
1224
1224
|
_emitEvent(t, n) {
|
|
1225
1225
|
return this.emit(t, {
|
|
@@ -1229,20 +1229,20 @@ class qe extends jt {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
1231
|
_keepSelection() {
|
|
1232
|
-
const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n,
|
|
1232
|
+
const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, c = o.filter((l) => !r.includes(l));
|
|
1233
1233
|
switch (t.behaviour.overlap) {
|
|
1234
1234
|
case "drop": {
|
|
1235
1235
|
n.stored = [
|
|
1236
|
-
...
|
|
1237
|
-
...r.filter((
|
|
1236
|
+
...c,
|
|
1237
|
+
...r.filter((l) => !i.includes(l))
|
|
1238
1238
|
// Elements not touched
|
|
1239
1239
|
];
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
1242
|
case "invert": {
|
|
1243
1243
|
n.stored = [
|
|
1244
|
-
...
|
|
1245
|
-
...r.filter((
|
|
1244
|
+
...c,
|
|
1245
|
+
...r.filter((l) => !s.removed.includes(l))
|
|
1246
1246
|
// Elements not removed from selection
|
|
1247
1247
|
];
|
|
1248
1248
|
break;
|
|
@@ -1250,7 +1250,7 @@ class qe extends jt {
|
|
|
1250
1250
|
case "keep": {
|
|
1251
1251
|
n.stored = [
|
|
1252
1252
|
...r,
|
|
1253
|
-
...o.filter((
|
|
1253
|
+
...o.filter((l) => !r.includes(l))
|
|
1254
1254
|
// Newly added
|
|
1255
1255
|
];
|
|
1256
1256
|
break;
|
|
@@ -1315,7 +1315,7 @@ class qe extends jt {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
select(t, n = !1) {
|
|
1317
1317
|
const { changed: o, selected: s, stored: i } = this._selection, r = F(t, this._options.document).filter(
|
|
1318
|
-
(
|
|
1318
|
+
(c) => !s.includes(c) && !i.includes(c)
|
|
1319
1319
|
);
|
|
1320
1320
|
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;
|
|
1321
1321
|
}
|
|
@@ -1326,10 +1326,10 @@ class qe extends jt {
|
|
|
1326
1326
|
*/
|
|
1327
1327
|
deselect(t, n = !1) {
|
|
1328
1328
|
const { selected: o, stored: s, changed: i } = this._selection, r = F(t, this._options.document).filter(
|
|
1329
|
-
(
|
|
1329
|
+
(c) => o.includes(c) || s.includes(c)
|
|
1330
1330
|
);
|
|
1331
|
-
r.length && (this._selection.stored = s.filter((
|
|
1332
|
-
...r.filter((
|
|
1331
|
+
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(
|
|
1332
|
+
...r.filter((c) => !i.removed.includes(c))
|
|
1333
1333
|
), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
@@ -1369,7 +1369,7 @@ function Bt(e) {
|
|
|
1369
1369
|
changed: { added: o, removed: s }
|
|
1370
1370
|
}
|
|
1371
1371
|
}) => {
|
|
1372
|
-
|
|
1372
|
+
T.moved = !0;
|
|
1373
1373
|
for (const i of o)
|
|
1374
1374
|
i.classList.add("selected");
|
|
1375
1375
|
for (const i of s)
|
|
@@ -1433,13 +1433,13 @@ function Ie(e, t, n) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
const It = function(e, t) {
|
|
1435
1435
|
var n, o;
|
|
1436
|
-
if (e ===
|
|
1437
|
-
return
|
|
1438
|
-
if (e ===
|
|
1439
|
-
return
|
|
1436
|
+
if (e === k)
|
|
1437
|
+
return k;
|
|
1438
|
+
if (e === D)
|
|
1439
|
+
return D;
|
|
1440
1440
|
if (e === re) {
|
|
1441
1441
|
const s = ((n = document.querySelector(".lhs")) == null ? void 0 : n.childElementCount) || 0, i = ((o = document.querySelector(".rhs")) == null ? void 0 : o.childElementCount) || 0;
|
|
1442
|
-
return s <= i ? (t.direction =
|
|
1442
|
+
return s <= i ? (t.direction = k, k) : (t.direction = D, D);
|
|
1443
1443
|
}
|
|
1444
1444
|
}, Ke = function(e, t, n) {
|
|
1445
1445
|
var i, r;
|
|
@@ -1448,12 +1448,12 @@ const It = function(e, t) {
|
|
|
1448
1448
|
if (G(o), s.children[1])
|
|
1449
1449
|
s.nextSibling.appendChild(n);
|
|
1450
1450
|
else {
|
|
1451
|
-
const
|
|
1452
|
-
s.appendChild(pe(!0)), s.insertAdjacentElement("afterend",
|
|
1451
|
+
const c = e.createChildren([n]);
|
|
1452
|
+
s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", c);
|
|
1453
1453
|
}
|
|
1454
1454
|
e.linkDiv(n.offsetParent);
|
|
1455
1455
|
} else
|
|
1456
|
-
s.tagName === "ME-ROOT" && (It(e.direction, o.nodeObj) ===
|
|
1456
|
+
s.tagName === "ME-ROOT" && (It(e.direction, o.nodeObj) === k ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
|
|
1457
1457
|
}, Ve = function(e, t) {
|
|
1458
1458
|
const n = e.parentNode;
|
|
1459
1459
|
if (t === 0) {
|
|
@@ -1482,11 +1482,11 @@ const It = function(e, t) {
|
|
|
1482
1482
|
const o = t.nodeObj;
|
|
1483
1483
|
o.expanded === !1 && (e.expandNode(t, !0), t = C(o.id));
|
|
1484
1484
|
const s = n || e.generateNewObj();
|
|
1485
|
-
o.children ? o.children.push(s) : o.children = [s],
|
|
1485
|
+
o.children ? o.children.push(s) : o.children = [s], $(e.nodeData);
|
|
1486
1486
|
const { grp: i, top: r } = e.createWrapper(s);
|
|
1487
1487
|
return Ke(e, t, i), { newTop: r, newNodeObj: s };
|
|
1488
1488
|
}, Vt = function(e, t, n) {
|
|
1489
|
-
var u, d, a;
|
|
1489
|
+
var u, d, a, f;
|
|
1490
1490
|
const o = t || this.currentNode;
|
|
1491
1491
|
if (!o)
|
|
1492
1492
|
return;
|
|
@@ -1501,9 +1501,13 @@ const It = function(e, t) {
|
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
1503
|
const i = n || this.generateNewObj();
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1504
|
+
if (!((f = s.parent) != null && f.parent)) {
|
|
1505
|
+
const g = o.offsetParent.offsetParent.parentElement.className === "lhs" ? k : D;
|
|
1506
|
+
i.direction = g;
|
|
1507
|
+
}
|
|
1508
|
+
Ft(i, e, s), $(this.nodeData);
|
|
1509
|
+
const r = o.parentElement, { grp: c, top: l } = this.createWrapper(i);
|
|
1510
|
+
r.parentElement.insertAdjacentElement(We[e], c), this.linkDiv(c.offsetParent), n || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), this.bus.fire("operation", {
|
|
1507
1511
|
name: "insertSibling",
|
|
1508
1512
|
type: e,
|
|
1509
1513
|
obj: i
|
|
@@ -1517,11 +1521,11 @@ const It = function(e, t) {
|
|
|
1517
1521
|
if (!o.parent)
|
|
1518
1522
|
return;
|
|
1519
1523
|
const s = t || this.generateNewObj();
|
|
1520
|
-
qt(o, s),
|
|
1521
|
-
const i = n.parentElement.parentElement, { grp: r, top:
|
|
1522
|
-
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1524
|
+
qt(o, s), $(this.nodeData);
|
|
1525
|
+
const i = n.parentElement.parentElement, { grp: r, top: c } = this.createWrapper(s, !0);
|
|
1526
|
+
c.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
|
|
1527
|
+
const l = this.createChildren([i]);
|
|
1528
|
+
c.insertAdjacentElement("afterend", l), this.linkDiv(), t || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), this.bus.fire("operation", {
|
|
1525
1529
|
name: "insertParent",
|
|
1526
1530
|
obj: s
|
|
1527
1531
|
});
|
|
@@ -1549,7 +1553,7 @@ const It = function(e, t) {
|
|
|
1549
1553
|
obj: s
|
|
1550
1554
|
});
|
|
1551
1555
|
}, Xt = function(e, t) {
|
|
1552
|
-
e =
|
|
1556
|
+
e = ce(e);
|
|
1553
1557
|
const n = [];
|
|
1554
1558
|
for (let o = 0; o < e.length; o++) {
|
|
1555
1559
|
const s = e[o], i = ue(s.nodeObj);
|
|
@@ -1557,8 +1561,8 @@ const It = function(e, t) {
|
|
|
1557
1561
|
const r = ge(this, t, i);
|
|
1558
1562
|
if (!r)
|
|
1559
1563
|
return;
|
|
1560
|
-
const { newNodeObj:
|
|
1561
|
-
n.push(
|
|
1564
|
+
const { newNodeObj: c } = r;
|
|
1565
|
+
n.push(c);
|
|
1562
1566
|
}
|
|
1563
1567
|
this.selectNodes(n.map((o) => C(o.id))), this.bus.fire("operation", {
|
|
1564
1568
|
name: "copyNodes",
|
|
@@ -1594,10 +1598,10 @@ const It = function(e, t) {
|
|
|
1594
1598
|
const n = t.nodeObj;
|
|
1595
1599
|
if (!n.parent)
|
|
1596
1600
|
throw new Error("Can not remove root node");
|
|
1597
|
-
const o = n.parent.children, s = o.findIndex((
|
|
1601
|
+
const o = n.parent.children, s = o.findIndex((c) => c === n), i = me(n);
|
|
1598
1602
|
if (Ve(t, i), o.length !== 0) {
|
|
1599
|
-
const
|
|
1600
|
-
this.selectNode(C(
|
|
1603
|
+
const c = o[s] || o[s - 1];
|
|
1604
|
+
this.selectNode(C(c.id));
|
|
1601
1605
|
} else
|
|
1602
1606
|
this.selectNode(C(n.parent.id));
|
|
1603
1607
|
this.linkDiv(), this.bus.fire("operation", {
|
|
@@ -1607,7 +1611,7 @@ const It = function(e, t) {
|
|
|
1607
1611
|
originParentId: (r = n == null ? void 0 : n.parent) == null ? void 0 : r.id
|
|
1608
1612
|
});
|
|
1609
1613
|
}, Qt = function(e) {
|
|
1610
|
-
e =
|
|
1614
|
+
e = ce(e);
|
|
1611
1615
|
for (const t of e) {
|
|
1612
1616
|
const n = t.nodeObj;
|
|
1613
1617
|
if (!n.parent)
|
|
@@ -1620,12 +1624,12 @@ const It = function(e, t) {
|
|
|
1620
1624
|
objs: e.map((t) => t.nodeObj)
|
|
1621
1625
|
});
|
|
1622
1626
|
}, en = function(e, t) {
|
|
1623
|
-
e =
|
|
1627
|
+
e = ce(e);
|
|
1624
1628
|
const n = t.nodeObj;
|
|
1625
1629
|
n.expanded === !1 && (this.expandNode(t, !0), t = C(n.id));
|
|
1626
1630
|
for (const o of e) {
|
|
1627
1631
|
const s = o.nodeObj;
|
|
1628
|
-
Ie("in", s, n),
|
|
1632
|
+
Ie("in", s, n), $(this.nodeData);
|
|
1629
1633
|
const i = o.parentElement;
|
|
1630
1634
|
Ke(this, t, i.parentElement);
|
|
1631
1635
|
}
|
|
@@ -1635,13 +1639,13 @@ const It = function(e, t) {
|
|
|
1635
1639
|
toObj: n
|
|
1636
1640
|
});
|
|
1637
1641
|
}, Ue = (e, t, n, o) => {
|
|
1638
|
-
e =
|
|
1642
|
+
e = ce(e), t === "after" && (e = e.reverse());
|
|
1639
1643
|
const s = n.nodeObj;
|
|
1640
1644
|
for (const i of e) {
|
|
1641
1645
|
const r = i.nodeObj;
|
|
1642
|
-
Ie(t, r, s),
|
|
1643
|
-
const
|
|
1644
|
-
n.parentElement.parentNode.insertAdjacentElement(We[t],
|
|
1646
|
+
Ie(t, r, s), $(o.nodeData), G(i);
|
|
1647
|
+
const c = i.parentElement.parentNode;
|
|
1648
|
+
n.parentElement.parentNode.insertAdjacentElement(We[t], c);
|
|
1645
1649
|
}
|
|
1646
1650
|
o.linkDiv(), o.bus.fire("operation", {
|
|
1647
1651
|
name: t === "before" ? "moveNodeBefore" : "moveNodeAfter",
|
|
@@ -1693,9 +1697,9 @@ const rn = function(e, t, n) {
|
|
|
1693
1697
|
}
|
|
1694
1698
|
e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
|
|
1695
1699
|
}
|
|
1696
|
-
},
|
|
1700
|
+
}, cn = function() {
|
|
1697
1701
|
this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
|
|
1698
|
-
},
|
|
1702
|
+
}, ln = function(e) {
|
|
1699
1703
|
this.clearSelection();
|
|
1700
1704
|
for (const t of e)
|
|
1701
1705
|
t.className = "selected";
|
|
@@ -1766,7 +1770,7 @@ const rn = function(e, t, n) {
|
|
|
1766
1770
|
o.parentNode.children[1].remove();
|
|
1767
1771
|
this.linkDiv(), this.bus.fire("expandNode", n);
|
|
1768
1772
|
}, _n = function(e) {
|
|
1769
|
-
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []),
|
|
1773
|
+
e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), $(this.nodeData), this.layout(), this.linkDiv();
|
|
1770
1774
|
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1771
1775
|
__proto__: null,
|
|
1772
1776
|
cancelFocus: xn,
|
|
@@ -1785,10 +1789,10 @@ const rn = function(e, t, n) {
|
|
|
1785
1789
|
refresh: _n,
|
|
1786
1790
|
scale: gn,
|
|
1787
1791
|
selectNode: rn,
|
|
1788
|
-
selectNodes:
|
|
1792
|
+
selectNodes: ln,
|
|
1789
1793
|
setLocale: Cn,
|
|
1790
1794
|
toCenter: vn,
|
|
1791
|
-
unselectNode:
|
|
1795
|
+
unselectNode: cn,
|
|
1792
1796
|
unselectNodes: an
|
|
1793
1797
|
}, Symbol.toStringTag, { value: "Module" })), kn = function(e) {
|
|
1794
1798
|
return {
|
|
@@ -1820,12 +1824,12 @@ const rn = function(e, t, n) {
|
|
|
1820
1824
|
create: kn
|
|
1821
1825
|
};
|
|
1822
1826
|
function ie(e, t, n) {
|
|
1823
|
-
const { offsetLeft: o, offsetTop: s } =
|
|
1827
|
+
const { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, c = o + i / 2, l = s + r / 2, u = c + n.x, d = l + n.y;
|
|
1824
1828
|
return {
|
|
1825
1829
|
w: i,
|
|
1826
1830
|
h: r,
|
|
1827
|
-
cx:
|
|
1828
|
-
cy:
|
|
1831
|
+
cx: c,
|
|
1832
|
+
cy: l,
|
|
1829
1833
|
ctrlX: u,
|
|
1830
1834
|
ctrlY: d
|
|
1831
1835
|
};
|
|
@@ -1850,10 +1854,10 @@ const Tn = function(e, t, n, o) {
|
|
|
1850
1854
|
if (!t || !n)
|
|
1851
1855
|
return;
|
|
1852
1856
|
performance.now();
|
|
1853
|
-
const i = ie(e, t, o.delta1), r = ie(e, n, o.delta2), { x:
|
|
1854
|
-
`M ${
|
|
1855
|
-
`M ${m.x1} ${m.y1} L ${g} ${
|
|
1856
|
-
), v =
|
|
1857
|
+
const i = ie(e, t, o.delta1), r = ie(e, n, o.delta2), { x: c, y: l } = q(i), { ctrlX: u, ctrlY: d } = i, { ctrlX: a, ctrlY: f } = r, { x: g, y: p } = q(r), m = Pe(a, f, g, p), h = ft(
|
|
1858
|
+
`M ${c} ${l} C ${u} ${d} ${a} ${f} ${g} ${p}`,
|
|
1859
|
+
`M ${m.x1} ${m.y1} L ${g} ${p} L ${m.x2} ${m.y2}`
|
|
1860
|
+
), v = c / 8 + u * 3 / 8 + a * 3 / 8 + g / 8, y = l / 8 + d * 3 / 8 + f * 3 / 8 + p / 8, b = Tn(o.label, v, y, e.theme.cssVar["--color"]);
|
|
1857
1861
|
h.appendChild(b), h.arrowObj = o, h.dataset.linkid = o.id, e.linkSvgGroup.appendChild(h), s || (e.arrows.push(o), e.currentArrow = h, Ze(e, o, i, r)), performance.now();
|
|
1858
1862
|
}, Ln = function(e, t) {
|
|
1859
1863
|
const n = {
|
|
@@ -1895,49 +1899,49 @@ const Tn = function(e, t, n, o) {
|
|
|
1895
1899
|
}, Je = function(e) {
|
|
1896
1900
|
e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
|
|
1897
1901
|
}, Ze = function(e, t, n, o) {
|
|
1898
|
-
var
|
|
1902
|
+
var f;
|
|
1899
1903
|
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);
|
|
1900
|
-
let { x: s, y: i } = q(n), { ctrlX: r, ctrlY:
|
|
1901
|
-
e.P2.style.cssText = `top:${
|
|
1904
|
+
let { x: s, y: i } = q(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: u } = o, { x: d, y: a } = q(o);
|
|
1905
|
+
e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${u}px;left:${l}px;`, N(e.line1, {
|
|
1902
1906
|
x1: s + "",
|
|
1903
1907
|
y1: i + "",
|
|
1904
1908
|
x2: r + "",
|
|
1905
|
-
y2:
|
|
1909
|
+
y2: c + ""
|
|
1906
1910
|
}), N(e.line2, {
|
|
1907
|
-
x1:
|
|
1911
|
+
x1: l + "",
|
|
1908
1912
|
y1: u + "",
|
|
1909
1913
|
x2: d + "",
|
|
1910
1914
|
y2: a + ""
|
|
1911
|
-
}), e.helper1 && (e.helper1.destory(e.map), (
|
|
1915
|
+
}), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 = Le.create(e.P2), e.helper2 = Le.create(e.P3), e.helper1.init(e.map, (g, p) => {
|
|
1912
1916
|
var y;
|
|
1913
|
-
r = r + g / e.scaleVal,
|
|
1914
|
-
const m = q({ ...n, ctrlX: r, ctrlY:
|
|
1917
|
+
r = r + g / e.scaleVal, c = c + p / e.scaleVal;
|
|
1918
|
+
const m = q({ ...n, ctrlX: r, ctrlY: c });
|
|
1915
1919
|
s = m.x, i = m.y;
|
|
1916
|
-
const h = s / 8 + r * 3 / 8 +
|
|
1917
|
-
e.P2.style.top =
|
|
1920
|
+
const h = s / 8 + r * 3 / 8 + l * 3 / 8 + d / 8, v = i / 8 + c * 3 / 8 + u * 3 / 8 + a / 8;
|
|
1921
|
+
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} ${u} ${d} ${a}`), N(e.currentArrow.children[2], {
|
|
1918
1922
|
x: h + "",
|
|
1919
1923
|
y: v + ""
|
|
1920
1924
|
}), N(e.line1, {
|
|
1921
1925
|
x1: s + "",
|
|
1922
1926
|
y1: i + "",
|
|
1923
1927
|
x2: r + "",
|
|
1924
|
-
y2:
|
|
1925
|
-
}), t.delta1.x = r - n.cx, t.delta1.y =
|
|
1926
|
-
}), e.helper2.init(e.map, (g,
|
|
1928
|
+
y2: c + ""
|
|
1929
|
+
}), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy;
|
|
1930
|
+
}), e.helper2.init(e.map, (g, p) => {
|
|
1927
1931
|
var b, x;
|
|
1928
|
-
|
|
1929
|
-
const m = q({ ...o, ctrlX:
|
|
1932
|
+
l = l + g / e.scaleVal, u = u + p / e.scaleVal;
|
|
1933
|
+
const m = q({ ...o, ctrlX: l, ctrlY: u });
|
|
1930
1934
|
d = m.x, a = m.y;
|
|
1931
|
-
const h = s / 8 + r * 3 / 8 +
|
|
1932
|
-
e.P3.style.top = u + "px", e.P3.style.left =
|
|
1935
|
+
const h = s / 8 + r * 3 / 8 + l * 3 / 8 + d / 8, v = i / 8 + c * 3 / 8 + u * 3 / 8 + a / 8, y = Pe(l, u, d, a);
|
|
1936
|
+
e.P3.style.top = u + "px", e.P3.style.left = l + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${u} ${d} ${a}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${y.x1} ${y.y1} L ${d} ${a} L ${y.x2} ${y.y2}`), N(e.currentArrow.children[2], {
|
|
1933
1937
|
x: h + "",
|
|
1934
1938
|
y: v + ""
|
|
1935
1939
|
}), N(e.line2, {
|
|
1936
|
-
x1:
|
|
1940
|
+
x1: l + "",
|
|
1937
1941
|
y1: u + "",
|
|
1938
1942
|
x2: d + "",
|
|
1939
1943
|
y2: a + ""
|
|
1940
|
-
}), t.delta2.x =
|
|
1944
|
+
}), t.delta2.x = l - o.cx, t.delta2.y = u - o.cy;
|
|
1941
1945
|
});
|
|
1942
1946
|
};
|
|
1943
1947
|
function $n() {
|
|
@@ -1977,45 +1981,45 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1977
1981
|
tidyArrow: Pn,
|
|
1978
1982
|
unselectArrow: Dn
|
|
1979
1983
|
}, Symbol.toStringTag, { value: "Module" })), Hn = function(e) {
|
|
1980
|
-
var
|
|
1984
|
+
var l, u;
|
|
1981
1985
|
if (e.length === 0)
|
|
1982
1986
|
throw new Error("No selected node.");
|
|
1983
1987
|
if (e.length === 1) {
|
|
1984
1988
|
const d = e[0].nodeObj, a = e[0].nodeObj.parent;
|
|
1985
1989
|
if (!a)
|
|
1986
1990
|
throw new Error("Can not select root node.");
|
|
1987
|
-
const
|
|
1991
|
+
const f = a.children.findIndex((g) => d === g);
|
|
1988
1992
|
return {
|
|
1989
1993
|
parent: a.id,
|
|
1990
|
-
start:
|
|
1991
|
-
end:
|
|
1994
|
+
start: f,
|
|
1995
|
+
end: f
|
|
1992
1996
|
};
|
|
1993
1997
|
}
|
|
1994
1998
|
let t = 0;
|
|
1995
1999
|
const n = e.map((d) => {
|
|
1996
2000
|
let a = d.nodeObj;
|
|
1997
|
-
const
|
|
2001
|
+
const f = [];
|
|
1998
2002
|
for (; a.parent; ) {
|
|
1999
|
-
const g = a.parent,
|
|
2000
|
-
a = g,
|
|
2003
|
+
const g = a.parent, p = g.children, m = p == null ? void 0 : p.indexOf(a);
|
|
2004
|
+
a = g, f.unshift({ node: a, index: m });
|
|
2001
2005
|
}
|
|
2002
|
-
return
|
|
2006
|
+
return f.length > t && (t = f.length), f;
|
|
2003
2007
|
});
|
|
2004
2008
|
let o = 0;
|
|
2005
2009
|
e:
|
|
2006
2010
|
for (; o < t; o++) {
|
|
2007
|
-
const d = (
|
|
2011
|
+
const d = (l = n[0][o]) == null ? void 0 : l.node;
|
|
2008
2012
|
for (let a = 1; a < n.length; a++)
|
|
2009
2013
|
if (((u = n[a][o]) == null ? void 0 : u.node) !== d)
|
|
2010
2014
|
break e;
|
|
2011
2015
|
}
|
|
2012
2016
|
if (!o)
|
|
2013
2017
|
throw new Error("Can not select root node.");
|
|
2014
|
-
const s = n.map((d) => d[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0,
|
|
2015
|
-
if (!
|
|
2018
|
+
const s = n.map((d) => d[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, c = n[0][o - 1].node;
|
|
2019
|
+
if (!c.parent)
|
|
2016
2020
|
throw new Error("Please select nodes in the same main topic.");
|
|
2017
2021
|
return {
|
|
2018
|
-
parent:
|
|
2022
|
+
parent: c.id,
|
|
2019
2023
|
start: i,
|
|
2020
2024
|
end: r
|
|
2021
2025
|
};
|
|
@@ -2046,18 +2050,18 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2046
2050
|
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
2051
|
}, Qe = function(e, t) {
|
|
2048
2052
|
var S;
|
|
2049
|
-
const { id: n, text: o, parent: s, start: i, end: r } = t,
|
|
2050
|
-
let a = 1 / 0,
|
|
2051
|
-
for (let
|
|
2052
|
-
const W = (S = u.children) == null ? void 0 : S[
|
|
2053
|
+
const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, u = C(s).nodeObj, d = Fn(t);
|
|
2054
|
+
let a = 1 / 0, f = 0, g = 0, p = 0;
|
|
2055
|
+
for (let P = i; P <= r; P++) {
|
|
2056
|
+
const W = (S = u.children) == null ? void 0 : S[P];
|
|
2053
2057
|
if (!W)
|
|
2054
2058
|
return e.removeSummary(n), null;
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2059
|
+
const B = Rn(W.id), { offsetLeft: J, offsetTop: ve } = O(c, B);
|
|
2060
|
+
P === i && (g = ve + 20), P === r && (p = ve + B.offsetHeight - 20), J < a && (a = J), B.offsetWidth + J > f && (f = B.offsetWidth + J);
|
|
2057
2061
|
}
|
|
2058
2062
|
let m, h;
|
|
2059
|
-
const v = g + 10, y =
|
|
2060
|
-
d === "lhs" ? (m = Ae(`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`, x), h = je(o, a - 20, b + 6, "end", x)) : (m = Ae(`M ${
|
|
2063
|
+
const v = g + 10, y = p + 10, b = (v + y) / 2, x = e.theme.cssVar["--color"];
|
|
2064
|
+
d === "lhs" ? (m = Ae(`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`, x), h = je(o, a - 20, b + 6, "end", x)) : (m = Ae(`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`, x), h = je(o, f + 20, b + 6, "start", x));
|
|
2061
2065
|
const w = zn("s-" + n);
|
|
2062
2066
|
return w.appendChild(m), w.appendChild(h), w.summaryObj = t, e.summarySvg.appendChild(w), w;
|
|
2063
2067
|
}, qn = function() {
|
|
@@ -2134,23 +2138,23 @@ function Jn(e, t, n, o) {
|
|
|
2134
2138
|
const s = document.createElementNS(M, "g");
|
|
2135
2139
|
let i = "";
|
|
2136
2140
|
return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
|
|
2137
|
-
`).forEach((
|
|
2141
|
+
`).forEach((c, l) => {
|
|
2138
2142
|
const u = document.createElementNS(M, "text");
|
|
2139
2143
|
N(u, {
|
|
2140
2144
|
x: n + parseInt(t.paddingLeft) + "",
|
|
2141
|
-
y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (
|
|
2145
|
+
y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (l + 1) + parseFloat(t.fontSize) * (l + 1) + "",
|
|
2142
2146
|
"text-anchor": "start",
|
|
2143
2147
|
"font-family": t.fontFamily,
|
|
2144
2148
|
"font-size": `${t.fontSize}`,
|
|
2145
2149
|
"font-weight": `${t.fontWeight}`,
|
|
2146
2150
|
fill: `${t.color}`
|
|
2147
|
-
}), u.innerHTML =
|
|
2151
|
+
}), u.innerHTML = c, s.appendChild(u);
|
|
2148
2152
|
}), s;
|
|
2149
2153
|
}
|
|
2150
2154
|
function Zn(e, t, n, o) {
|
|
2151
|
-
var
|
|
2155
|
+
var c;
|
|
2152
2156
|
let s = "";
|
|
2153
|
-
(
|
|
2157
|
+
(c = e.nodeObj) != null && c.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
|
|
2154
2158
|
const i = document.createElementNS(M, "foreignObject");
|
|
2155
2159
|
N(i, {
|
|
2156
2160
|
x: n + parseInt(t.paddingLeft) + "",
|
|
@@ -2165,7 +2169,7 @@ function Zn(e, t, n, o) {
|
|
|
2165
2169
|
}), r.innerHTML = s, i.appendChild(r), i;
|
|
2166
2170
|
}
|
|
2167
2171
|
function Qn(e, t) {
|
|
2168
|
-
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } =
|
|
2172
|
+
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "rect");
|
|
2169
2173
|
return N(i, {
|
|
2170
2174
|
x: o + "",
|
|
2171
2175
|
y: s + "",
|
|
@@ -2179,7 +2183,7 @@ function Qn(e, t) {
|
|
|
2179
2183
|
}), i;
|
|
2180
2184
|
}
|
|
2181
2185
|
function ee(e, t, n = !1) {
|
|
2182
|
-
const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } =
|
|
2186
|
+
const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = O(e.nodes, t), r = document.createElementNS(M, "rect");
|
|
2183
2187
|
N(r, {
|
|
2184
2188
|
x: s + "",
|
|
2185
2189
|
y: i + "",
|
|
@@ -2191,13 +2195,13 @@ function ee(e, t, n = !1) {
|
|
|
2191
2195
|
stroke: o.borderColor,
|
|
2192
2196
|
"stroke-width": o.borderWidth
|
|
2193
2197
|
});
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2196
|
-
let
|
|
2197
|
-
return n ?
|
|
2198
|
+
const c = document.createElementNS(M, "g");
|
|
2199
|
+
c.appendChild(r);
|
|
2200
|
+
let l;
|
|
2201
|
+
return n ? l = Zn(t, o, s, i) : l = Jn(t, o, s, i), c.appendChild(l), c;
|
|
2198
2202
|
}
|
|
2199
2203
|
function eo(e, t) {
|
|
2200
|
-
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } =
|
|
2204
|
+
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
|
|
2201
2205
|
return N(r, {
|
|
2202
2206
|
x: o + "",
|
|
2203
2207
|
y: s + parseInt(n.fontSize) + "",
|
|
@@ -2209,7 +2213,7 @@ function eo(e, t) {
|
|
|
2209
2213
|
}), r.innerHTML = t.textContent, i.appendChild(r), i.setAttribute("href", t.href), i;
|
|
2210
2214
|
}
|
|
2211
2215
|
function to(e, t) {
|
|
2212
|
-
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } =
|
|
2216
|
+
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "image");
|
|
2213
2217
|
return N(i, {
|
|
2214
2218
|
x: o + "",
|
|
2215
2219
|
y: s + "",
|
|
@@ -2219,33 +2223,33 @@ function to(e, t) {
|
|
|
2219
2223
|
}), i;
|
|
2220
2224
|
}
|
|
2221
2225
|
const te = 100, no = '<?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">', oo = (e, t = !1) => {
|
|
2222
|
-
var a,
|
|
2223
|
-
const n = e.nodes, o = n.offsetHeight + te * 2, s = n.offsetWidth + te * 2, i = Xn(o + "px", s + "px"), r = document.createElementNS(M, "svg"),
|
|
2224
|
-
N(
|
|
2226
|
+
var a, f, g;
|
|
2227
|
+
const n = e.nodes, o = n.offsetHeight + te * 2, s = n.offsetWidth + te * 2, i = Xn(o + "px", s + "px"), r = document.createElementNS(M, "svg"), c = document.createElementNS(M, "rect");
|
|
2228
|
+
N(c, {
|
|
2225
2229
|
x: "0",
|
|
2226
2230
|
y: "0",
|
|
2227
2231
|
width: `${s}`,
|
|
2228
2232
|
height: `${o}`,
|
|
2229
2233
|
fill: e.theme.cssVar["--bgcolor"]
|
|
2230
|
-
}), i.appendChild(
|
|
2231
|
-
const m =
|
|
2234
|
+
}), i.appendChild(c), n.querySelectorAll(".subLines").forEach((p) => {
|
|
2235
|
+
const m = p.cloneNode(!0), { offsetLeft: h, offsetTop: v } = O(n, p.parentElement);
|
|
2232
2236
|
m.setAttribute("x", `${h}`), m.setAttribute("y", `${v}`), r.appendChild(m);
|
|
2233
2237
|
});
|
|
2234
|
-
const
|
|
2235
|
-
|
|
2236
|
-
const u = (
|
|
2238
|
+
const l = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
|
|
2239
|
+
l && r.appendChild(l);
|
|
2240
|
+
const u = (f = n.querySelector(".topiclinks")) == null ? void 0 : f.cloneNode(!0);
|
|
2237
2241
|
u && r.appendChild(u);
|
|
2238
2242
|
const d = (g = n.querySelector(".summary")) == null ? void 0 : g.cloneNode(!0);
|
|
2239
|
-
return d && r.appendChild(d), n.querySelectorAll("me-tpc").forEach((
|
|
2240
|
-
|
|
2241
|
-
}), n.querySelectorAll(".tags > span").forEach((
|
|
2242
|
-
r.appendChild(ee(e,
|
|
2243
|
-
}), n.querySelectorAll(".icons > span").forEach((
|
|
2244
|
-
r.appendChild(ee(e,
|
|
2245
|
-
}), n.querySelectorAll(".hyper-link").forEach((
|
|
2246
|
-
r.appendChild(eo(e,
|
|
2247
|
-
}), n.querySelectorAll("img").forEach((
|
|
2248
|
-
r.appendChild(to(e,
|
|
2243
|
+
return d && r.appendChild(d), n.querySelectorAll("me-tpc").forEach((p) => {
|
|
2244
|
+
p.nodeObj.dangerouslySetInnerHTML ? r.appendChild(ee(e, p, !t)) : (r.appendChild(Qn(e, p)), r.appendChild(ee(e, p.text, !t)));
|
|
2245
|
+
}), n.querySelectorAll(".tags > span").forEach((p) => {
|
|
2246
|
+
r.appendChild(ee(e, p));
|
|
2247
|
+
}), n.querySelectorAll(".icons > span").forEach((p) => {
|
|
2248
|
+
r.appendChild(ee(e, p));
|
|
2249
|
+
}), n.querySelectorAll(".hyper-link").forEach((p) => {
|
|
2250
|
+
r.appendChild(eo(e, p));
|
|
2251
|
+
}), n.querySelectorAll("img").forEach((p) => {
|
|
2252
|
+
r.appendChild(to(e, p));
|
|
2249
2253
|
}), N(r, {
|
|
2250
2254
|
x: te + "",
|
|
2251
2255
|
y: te + "",
|
|
@@ -2265,18 +2269,18 @@ function io(e) {
|
|
|
2265
2269
|
const ro = function(e = !1, t) {
|
|
2266
2270
|
const n = oo(this, e), o = so(n, t);
|
|
2267
2271
|
return new Blob([o], { type: "image/svg+xml" });
|
|
2268
|
-
},
|
|
2272
|
+
}, co = async function(e = !1, t) {
|
|
2269
2273
|
const n = this.exportSvg(e, t), o = await io(n);
|
|
2270
2274
|
return new Promise((s, i) => {
|
|
2271
2275
|
const r = new Image();
|
|
2272
2276
|
r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2277
|
+
const c = document.createElement("canvas");
|
|
2278
|
+
c.width = r.width, c.height = r.height, c.getContext("2d").drawImage(r, 0, 0), c.toBlob(s, "image/png", 1);
|
|
2275
2279
|
}, r.src = o, r.onerror = i;
|
|
2276
2280
|
});
|
|
2277
|
-
},
|
|
2281
|
+
}, lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2278
2282
|
__proto__: null,
|
|
2279
|
-
exportPng:
|
|
2283
|
+
exportPng: co,
|
|
2280
2284
|
exportSvg: ro
|
|
2281
2285
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2282
2286
|
function ao(e, t) {
|
|
@@ -2296,7 +2300,7 @@ const ho = {
|
|
|
2296
2300
|
layout: it,
|
|
2297
2301
|
linkDiv: pt,
|
|
2298
2302
|
editTopic: ut,
|
|
2299
|
-
createWrapper:
|
|
2303
|
+
createWrapper: lt,
|
|
2300
2304
|
createParent: at,
|
|
2301
2305
|
createChildren: dt,
|
|
2302
2306
|
createTopic: ht,
|
|
@@ -2306,35 +2310,35 @@ const ho = {
|
|
|
2306
2310
|
...et,
|
|
2307
2311
|
...Bn,
|
|
2308
2312
|
...Yn,
|
|
2309
|
-
...
|
|
2313
|
+
...lo,
|
|
2310
2314
|
init(e) {
|
|
2311
2315
|
if (!e || !e.nodeData)
|
|
2312
2316
|
return new Error("MindElixir: `data` is required");
|
|
2313
|
-
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData,
|
|
2317
|
+
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, $(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Tt(this), this.keypress && wt(this), this.editable && Bt(this), this.contextMenu && this.disposable.push(mt(this, this.contextMenuOption)), this.draggable && Ct(this), this.allowUndo && _t(this), this.toCenter(), this.layout(), this.linkDiv();
|
|
2314
2318
|
},
|
|
2315
2319
|
destroy() {
|
|
2316
2320
|
var e;
|
|
2317
2321
|
this.disposable.forEach((t) => t()), this.mindElixirBox && (this.mindElixirBox.innerHTML = ""), this.mindElixirBox = void 0, this.nodeData = void 0, this.arrows = void 0, this.summaries = void 0, this.currentArrow = void 0, this.currentNode = void 0, this.currentNodes = void 0, this.currentSummary = void 0, this.waitCopy = void 0, this.theme = void 0, this.direction = void 0, this.bus = void 0, this.container = void 0, this.map = void 0, this.lines = void 0, this.linkController = void 0, this.linkSvgGroup = void 0, this.P2 = void 0, this.P3 = void 0, this.line1 = void 0, this.line2 = void 0, this.nodes = void 0, (e = this.selection) == null || e.destroy(), this.selection = void 0;
|
|
2318
2322
|
}
|
|
2319
2323
|
};
|
|
2320
|
-
function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH:
|
|
2324
|
+
function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, containerHeight: u }) {
|
|
2321
2325
|
let d = t + n / 2;
|
|
2322
2326
|
const a = e + o / 2;
|
|
2323
|
-
let
|
|
2324
|
-
|
|
2325
|
-
const g = s +
|
|
2326
|
-
return
|
|
2327
|
+
let f;
|
|
2328
|
+
l === "lhs" ? f = i + r : f = i;
|
|
2329
|
+
const g = s + c / 2, m = (1 - Math.abs(g - a) / u) * 0.25 * (n / 2);
|
|
2330
|
+
return l === "lhs" ? d = d - n / 10 - m : d = d + n / 10 + m, `M ${d} ${a} Q ${d} ${g} ${f} ${g}`;
|
|
2327
2331
|
}
|
|
2328
|
-
function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH:
|
|
2332
|
+
function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, isFirst: u }) {
|
|
2329
2333
|
const d = parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));
|
|
2330
|
-
let a = 0,
|
|
2334
|
+
let a = 0, f = 0;
|
|
2331
2335
|
u ? a = e + o / 2 : a = e + o;
|
|
2332
|
-
const g = s +
|
|
2333
|
-
let
|
|
2336
|
+
const g = s + c;
|
|
2337
|
+
let p = 0, m = 0, h = 0;
|
|
2334
2338
|
const v = Math.abs(a - g) / 300 * d;
|
|
2335
|
-
return
|
|
2339
|
+
return l === "lhs" ? (h = t, p = h + d, m = h - d, f = i + d, `M ${p} ${a} C ${h} ${a} ${h + v} ${g} ${m} ${g} H ${f}`) : (h = t + n, p = h - d, m = h + d, f = i + r - d, `M ${p} ${a} C ${h} ${a} ${h - v} ${g} ${m} ${g} H ${f}`);
|
|
2336
2340
|
}
|
|
2337
|
-
const po = "4.3.
|
|
2341
|
+
const po = "4.3.3", U = document;
|
|
2338
2342
|
function A({
|
|
2339
2343
|
el: e,
|
|
2340
2344
|
direction: t,
|
|
@@ -2343,14 +2347,14 @@ function A({
|
|
|
2343
2347
|
editable: s,
|
|
2344
2348
|
contextMenu: i,
|
|
2345
2349
|
contextMenuOption: r,
|
|
2346
|
-
toolBar:
|
|
2347
|
-
keypress:
|
|
2350
|
+
toolBar: c,
|
|
2351
|
+
keypress: l,
|
|
2348
2352
|
mouseSelectionButton: u,
|
|
2349
2353
|
selectionContainer: d,
|
|
2350
2354
|
before: a,
|
|
2351
|
-
newTopicName:
|
|
2355
|
+
newTopicName: f,
|
|
2352
2356
|
allowUndo: g,
|
|
2353
|
-
generateMainBranch:
|
|
2357
|
+
generateMainBranch: p,
|
|
2354
2358
|
generateSubBranch: m,
|
|
2355
2359
|
overflowHidden: h,
|
|
2356
2360
|
theme: v
|
|
@@ -2359,15 +2363,15 @@ function A({
|
|
|
2359
2363
|
const b = Object.prototype.toString.call(e);
|
|
2360
2364
|
if (b === "[object HTMLDivElement]" ? y = e : b === "[object String]" && (y = document.querySelector(e)), !y)
|
|
2361
2365
|
throw new Error("MindElixir: el is not a valid element");
|
|
2362
|
-
y.className += " mind-elixir", y.innerHTML = "", this.mindElixirBox = y, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar =
|
|
2366
|
+
y.className += " mind-elixir", y.innerHTML = "", this.mindElixirBox = y, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = u || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = g === void 0 ? !1 : g, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = p || uo, this.generateSubBranch = m || fo, this.overflowHidden = h || !1, this.bus = st.create(), this.container = U.createElement("div"), this.selectionContainer = d || this.container, this.container.className = "map-container";
|
|
2363
2367
|
const x = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2364
2368
|
this.theme = v || (x.matches ? Oe : $e);
|
|
2365
2369
|
const w = U.createElement("div");
|
|
2366
2370
|
w.className = "map-canvas", this.map = w, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = U.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = Y("lines"), this.summarySvg = Y("summary"), this.linkController = Y("linkcontroller"), this.P2 = U.createElement("div"), this.P3 = U.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 = Y("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ot(this);
|
|
2367
2371
|
}
|
|
2368
2372
|
A.prototype = ho;
|
|
2369
|
-
A.LEFT =
|
|
2370
|
-
A.RIGHT =
|
|
2373
|
+
A.LEFT = k;
|
|
2374
|
+
A.RIGHT = D;
|
|
2371
2375
|
A.SIDE = re;
|
|
2372
2376
|
A.THEME = $e;
|
|
2373
2377
|
A.DARK_THEME = Oe;
|