mind-elixir 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MindElixir.iife.js +4 -4
- package/dist/MindElixir.js +176 -176
- package/dist/MindElixirLite.iife.js +1 -1
- package/dist/MindElixirLite.js +3 -3
- 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, 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 (
|
|
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 (c && !e.__iconfont__svg__cssinject__) {
|
|
5
5
|
e.__iconfont__svg__cssinject__ = !0;
|
|
6
6
|
try {
|
|
7
7
|
document.write(
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
t = function() {
|
|
17
17
|
var d, a, p, g;
|
|
18
|
-
(g = document.createElement("div")).innerHTML =
|
|
18
|
+
(g = document.createElement("div")).innerHTML = l, l = null, (p = g.getElementsByTagName("svg")[0]) && (p.setAttribute("aria-hidden", "true"), p.style.position = "absolute", p.style.width = 0, p.style.height = 0, p.style.overflow = "hidden", d = p, (a = document.body).firstChild ? (g = d, (p = a.firstChild).parentNode.insertBefore(g, p)) : 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() {
|
|
@@ -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 l = 15, c = 30, u = r + c, d = r - c;
|
|
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) * l,
|
|
98
|
+
y1: o - Math.sin(Math.PI * u / 180) * l,
|
|
99
|
+
x2: n + Math.cos(Math.PI * d / 180) * l,
|
|
100
|
+
y2: o - Math.sin(Math.PI * d / 180) * l
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function X() {
|
|
@@ -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
|
+
}, ce = (e) => e ? e.tagName === "ME-TPC" : !1, le = (e) => e.filter((t) => {
|
|
130
130
|
for (let n = 0; n < e.length; n++) {
|
|
131
131
|
if (t === e[n])
|
|
132
132
|
continue;
|
|
@@ -170,7 +170,7 @@ function ot(e) {
|
|
|
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 (ce(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,7 +180,7 @@ function ot(e) {
|
|
|
180
180
|
if (!e.editable)
|
|
181
181
|
return;
|
|
182
182
|
const n = t.target;
|
|
183
|
-
|
|
183
|
+
ce(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
185
|
t.target.contentEditable !== "true" && k.onMove(t, e.container);
|
|
186
186
|
}), e.map.addEventListener("mousedown", (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 === T ? o.appendChild(
|
|
245
|
+
const r = t[i], { grp: l } = e.createWrapper(r);
|
|
246
|
+
e.direction === re ? r.direction === T ? o.appendChild(l) : s.appendChild(l) : e.direction === T ? o.appendChild(l) : s.appendChild(l);
|
|
247
247
|
}
|
|
248
248
|
e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
|
|
249
|
-
},
|
|
249
|
+
}, lt = 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
|
+
}, ct = 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 = lt(this, e.children);
|
|
299
299
|
n.appendChild(r);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -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 l = t.getAttribute("text-anchor");
|
|
395
|
+
l === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : l === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Be(o), o.addEventListener("keydown", (c) => {
|
|
396
|
+
c.stopPropagation();
|
|
397
|
+
const u = c.key;
|
|
398
398
|
if (u === "Enter" || u === "Tab") {
|
|
399
|
-
if (
|
|
399
|
+
if (c.shiftKey)
|
|
400
400
|
return;
|
|
401
|
-
|
|
401
|
+
c.preventDefault(), o.blur(), e.map.focus();
|
|
402
402
|
}
|
|
403
403
|
}), o.addEventListener("blur", () => {
|
|
404
404
|
o && n(o);
|
|
@@ -408,23 +408,23 @@ 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 l = 0; l < r.length; l++) {
|
|
412
|
+
const c = r[l], u = c.querySelector("me-tpc"), { offsetLeft: d, offsetTop: a } = $(this.nodes, u), p = u.offsetWidth, g = u.offsetHeight, f = c.parentNode.className, m = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: d, cW: p, cH: g, direction: f, containerHeight: this.nodes.offsetHeight }), h = this.theme.palette, v = u.nodeObj.branchColor || h[l % 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", f === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !==
|
|
414
|
+
const y = c.children[0].children[1];
|
|
415
|
+
if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", f === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== c)
|
|
416
416
|
continue;
|
|
417
|
-
const b = Y("subLines"), x =
|
|
418
|
-
x.tagName === "svg" && x.remove(),
|
|
417
|
+
const b = Y("subLines"), x = c.lastChild;
|
|
418
|
+
x.tagName === "svg" && x.remove(), c.appendChild(b), Re(this, b, v, c, f, !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, l = o.children[1].children;
|
|
423
|
+
if (l.length === 0)
|
|
424
424
|
return;
|
|
425
|
-
const
|
|
426
|
-
for (let p = 0; p <
|
|
427
|
-
const g =
|
|
425
|
+
const c = r.offsetTop, u = r.offsetLeft, d = r.offsetWidth, a = r.offsetHeight;
|
|
426
|
+
for (let p = 0; p < l.length; p++) {
|
|
427
|
+
const g = l[p], f = g.firstChild, m = f.offsetTop, h = f.offsetLeft, v = f.offsetWidth, y = f.offsetHeight, b = f.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: c, 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
429
|
const w = f.children[1];
|
|
430
430
|
if (w) {
|
|
@@ -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"), l = o("cm-add_parent", i.addParent, "Ctrl + Enter"), c = 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, ""), p = o("cm-up", i.moveUp, "PgUp"), g = o("cm-down", i.moveDown, "Pgdn"), f = 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(l), h.appendChild(c), h.appendChild(u), (!t || t.focus) && (h.appendChild(d), h.appendChild(a)), h.appendChild(p), h.appendChild(g), h.appendChild(m), (!t || t.link) && h.appendChild(f), 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,8 +589,8 @@ 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", p.className = "disabled", g.className = "disabled",
|
|
592
|
+
if (ce(x)) {
|
|
593
|
+
x.parentElement.tagName === "ME-ROOT" ? y = !0 : y = !1, y ? (d.className = "disabled", p.className = "disabled", g.className = "disabled", l.className = "disabled", c.className = "disabled", u.className = "disabled") : (d.className = "", p.className = "", g.className = "", l.className = "", c.className = "", u.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, k.mousedown && (k.mousedown = !1), h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "";
|
|
594
594
|
const w = h.getBoundingClientRect(), S = h.offsetHeight, O = h.offsetWidth, W = b.clientY - w.top, P = b.clientX - w.left;
|
|
595
595
|
S + W > window.innerHeight ? (h.style.top = "", h.style.bottom = "0px") : (h.style.bottom = "", h.style.top = W + 15 + "px"), O + P > window.innerWidth ? (h.style.left = "", h.style.right = "0px") : (h.style.right = "", h.style.left = P + 10 + "px");
|
|
596
596
|
}
|
|
@@ -598,9 +598,9 @@ function mt(e, t) {
|
|
|
598
598
|
b.target === v && (v.hidden = !0);
|
|
599
599
|
}, r.onclick = () => {
|
|
600
600
|
e.addChild(), v.hidden = !0;
|
|
601
|
-
}, c.onclick = () => {
|
|
602
|
-
e.insertParent(), v.hidden = !0;
|
|
603
601
|
}, l.onclick = () => {
|
|
602
|
+
e.insertParent(), v.hidden = !0;
|
|
603
|
+
}, c.onclick = () => {
|
|
604
604
|
y || (e.insertSibling("after"), v.hidden = !0);
|
|
605
605
|
}, u.onclick = () => {
|
|
606
606
|
y || (e.removeNode(), v.hidden = !0);
|
|
@@ -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, l.onclick = null, c.onclick = null, u.onclick = null, d.onclick = null, a.onclick = null, p.onclick = null, g.onclick = null, f.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 c, u;
|
|
786
|
+
const l = r.target;
|
|
787
|
+
if ((l == null ? void 0 : l.tagName) !== "ME-TPC") {
|
|
788
788
|
r.preventDefault();
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
|
-
(
|
|
791
|
+
(c = e.currentNodes) != null && c.includes(l) || (e.unselectNodes(), e.selectNode(l)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [l], s.innerHTML = l.innerHTML);
|
|
792
792
|
for (const d of t)
|
|
793
793
|
d.parentElement.parentElement.style.opacity = "0.5";
|
|
794
794
|
(u = r.dataTransfer) == null || u.setDragImage(s, 0, 0), k.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 c of t)
|
|
799
|
+
c.parentElement.parentElement.style.opacity = "1";
|
|
800
|
+
const l = r.target;
|
|
801
|
+
l.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 l = ae.elementFromPoint(r.clientX, r.clientY - i);
|
|
809
|
+
if (Ne(l, t)) {
|
|
810
|
+
o = l;
|
|
811
|
+
const c = l.getBoundingClientRect().y;
|
|
812
|
+
r.clientY > c + l.clientHeight ? n = "after" : n = "in";
|
|
813
813
|
} else {
|
|
814
|
-
const
|
|
815
|
-
if (Ne(
|
|
816
|
-
o =
|
|
817
|
-
const u =
|
|
814
|
+
const c = ae.elementFromPoint(r.clientX, r.clientY + i);
|
|
815
|
+
if (Ne(c, t)) {
|
|
816
|
+
o = c;
|
|
817
|
+
const u = c.getBoundingClientRect().y;
|
|
818
818
|
r.clientY < u ? n = "before" : n = "in";
|
|
819
819
|
} else
|
|
820
820
|
n = o = null;
|
|
@@ -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: l, selectionAreaClass: c, selectionContainerClass: u } = this._options;
|
|
1049
|
+
this._area = l.createElement("div"), this._clippingElement = l.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(c), 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,
|
|
@@ -1067,10 +1067,10 @@ class qe extends jt {
|
|
|
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: l, boundaries: c, features: u, behaviour: d } = this._options, a = i.getBoundingClientRect();
|
|
1071
1071
|
if (t instanceof MouseEvent && !Pt(t, d.triggers))
|
|
1072
1072
|
return;
|
|
1073
|
-
const p = F(
|
|
1073
|
+
const p = F(l, r), g = F(c, r);
|
|
1074
1074
|
this._targetElement = g.find(
|
|
1075
1075
|
(v) => Se(v.getBoundingClientRect(), a)
|
|
1076
1076
|
);
|
|
@@ -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: l, y: c } = s;
|
|
1092
1092
|
i = this._selectables.find((u) => {
|
|
1093
1093
|
const { right: d, left: a, top: p, bottom: g } = u.getBoundingClientRect();
|
|
1094
|
-
return
|
|
1094
|
+
return l < d && l > a && c < g && c > p;
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
if (!i)
|
|
@@ -1105,19 +1105,19 @@ 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 l = this._latestElement, [c, u] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], d = [...this._selectables.filter(
|
|
1109
|
+
(a) => a.compareDocumentPosition(c) & 4 && a.compareDocumentPosition(u) & 2
|
|
1110
|
+
), c, u];
|
|
1111
|
+
this.select(d), this._latestElement = l;
|
|
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((l) => this._selection.stored.includes(l))) ? 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: l, y: c } = Q(t);
|
|
1117
1117
|
if (
|
|
1118
1118
|
// Single number for both coordinates
|
|
1119
|
-
typeof s == "number" && H(
|
|
1120
|
-
typeof s == "object" && H(
|
|
1119
|
+
typeof s == "number" && H(l + c - (i + r)) >= s || // Different x and y threshold
|
|
1120
|
+
typeof s == "object" && H(l - i) >= s.x || H(c - 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);
|
|
@@ -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, l = this._targetElement, { x: c, y: u } = Q(t);
|
|
1152
|
+
if (o.x2 = c, 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: p } =
|
|
1160
|
-
n.y && (
|
|
1159
|
+
const { scrollTop: a, scrollLeft: p } = l;
|
|
1160
|
+
n.y && (l.scrollTop += ke(n.y / r), o.y1 -= l.scrollTop - a), n.x && (l.scrollLeft += ke(n.x / r), o.x1 -= l.scrollLeft - p), i.next(t), requestAnimationFrame(d);
|
|
1161
1161
|
};
|
|
1162
1162
|
requestAnimationFrame(d);
|
|
1163
1163
|
} else
|
|
@@ -1180,10 +1180,10 @@ 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:
|
|
1183
|
+
const { _scrollSpeed: t, _areaLocation: n, _targetElement: o, _options: s } = this, { scrollTop: i, scrollHeight: r, clientHeight: l, scrollLeft: c, scrollWidth: u, clientWidth: d } = o, a = this._targetRect, { x1: p, y1: g } = n;
|
|
1184
1184
|
let { x2: f, y2: m } = n;
|
|
1185
1185
|
const { behaviour: { scrolling: { startScrollMargins: h } } } = s;
|
|
1186
|
-
f < a.left + h.x ? (t.x =
|
|
1186
|
+
f < a.left + h.x ? (t.x = c ? -H(a.left - f + h.x) : 0, f = f < a.left ? a.left : f) : f > a.right - h.x ? (t.x = u - c - d ? H(a.left + a.width - f - h.x) : 0, f = f > a.right ? a.right : f) : t.x = 0, m < a.top + h.y ? (t.y = i ? -H(a.top - m + h.y) : 0, m = m < a.top ? a.top : m) : m > a.bottom - h.y ? (t.y = r - i - l ? H(a.top + a.height - m - h.y) : 0, m = m > a.bottom ? a.bottom : m) : t.y = 0;
|
|
1187
1187
|
const v = Me(p, f), y = Me(g, m), b = _e(p, f), x = _e(g, m);
|
|
1188
1188
|
this._areaRect = new DOMRect(v, y, b - v, x - y);
|
|
1189
1189
|
}
|
|
@@ -1197,12 +1197,12 @@ 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: l } = o, { intersect: c, overlap: u } = n.behaviour, d = u === "invert", a = [], p = [], 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(), c)) {
|
|
1204
1204
|
if (r.includes(h))
|
|
1205
|
-
i.includes(h) && !
|
|
1205
|
+
i.includes(h) && !l.includes(h) && l.push(h);
|
|
1206
1206
|
else if (d && i.includes(h)) {
|
|
1207
1207
|
g.push(h);
|
|
1208
1208
|
continue;
|
|
@@ -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, l = o.filter((c) => !r.includes(c));
|
|
1233
1233
|
switch (t.behaviour.overlap) {
|
|
1234
1234
|
case "drop": {
|
|
1235
1235
|
n.stored = [
|
|
1236
|
-
...
|
|
1237
|
-
...r.filter((
|
|
1236
|
+
...l,
|
|
1237
|
+
...r.filter((c) => !i.includes(c))
|
|
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
|
+
...l,
|
|
1245
|
+
...r.filter((c) => !s.removed.includes(c))
|
|
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((c) => !r.includes(c))
|
|
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
|
+
(l) => !s.includes(l) && !i.includes(l)
|
|
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
|
+
(l) => o.includes(l) || s.includes(l)
|
|
1330
1330
|
);
|
|
1331
|
-
r.length && (this._selection.stored = s.filter((
|
|
1332
|
-
...r.filter((
|
|
1331
|
+
r.length && (this._selection.stored = s.filter((l) => !r.includes(l)), this._selection.selected = o.filter((l) => !r.includes(l)), this._selection.changed.added = [], this._selection.changed.removed.push(
|
|
1332
|
+
...r.filter((l) => !i.removed.includes(l))
|
|
1333
1333
|
), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
@@ -1448,8 +1448,8 @@ 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 l = e.createChildren([n]);
|
|
1452
|
+
s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", l);
|
|
1453
1453
|
}
|
|
1454
1454
|
e.linkDiv(n.offsetParent);
|
|
1455
1455
|
} else
|
|
@@ -1502,8 +1502,8 @@ const It = function(e, t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
const i = n || this.generateNewObj();
|
|
1504
1504
|
Ft(i, e, s), D(this.nodeData);
|
|
1505
|
-
const r = o.parentElement, { grp:
|
|
1506
|
-
r.parentElement.insertAdjacentElement(We[e],
|
|
1505
|
+
const r = o.parentElement, { grp: l, top: c } = this.createWrapper(i);
|
|
1506
|
+
r.parentElement.insertAdjacentElement(We[e], l), this.linkDiv(l.offsetParent), n || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), this.bus.fire("operation", {
|
|
1507
1507
|
name: "insertSibling",
|
|
1508
1508
|
type: e,
|
|
1509
1509
|
obj: i
|
|
@@ -1518,10 +1518,10 @@ const It = function(e, t) {
|
|
|
1518
1518
|
return;
|
|
1519
1519
|
const s = t || this.generateNewObj();
|
|
1520
1520
|
qt(o, s), D(this.nodeData);
|
|
1521
|
-
const i = n.parentElement.parentElement, { grp: r, top:
|
|
1522
|
-
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1521
|
+
const i = n.parentElement.parentElement, { grp: r, top: l } = this.createWrapper(s, !0);
|
|
1522
|
+
l.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
|
|
1523
|
+
const c = this.createChildren([i]);
|
|
1524
|
+
l.insertAdjacentElement("afterend", c), this.linkDiv(), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), this.bus.fire("operation", {
|
|
1525
1525
|
name: "insertParent",
|
|
1526
1526
|
obj: s
|
|
1527
1527
|
});
|
|
@@ -1549,7 +1549,7 @@ const It = function(e, t) {
|
|
|
1549
1549
|
obj: s
|
|
1550
1550
|
});
|
|
1551
1551
|
}, Xt = function(e, t) {
|
|
1552
|
-
e =
|
|
1552
|
+
e = le(e);
|
|
1553
1553
|
const n = [];
|
|
1554
1554
|
for (let o = 0; o < e.length; o++) {
|
|
1555
1555
|
const s = e[o], i = ue(s.nodeObj);
|
|
@@ -1557,8 +1557,8 @@ const It = function(e, t) {
|
|
|
1557
1557
|
const r = ge(this, t, i);
|
|
1558
1558
|
if (!r)
|
|
1559
1559
|
return;
|
|
1560
|
-
const { newNodeObj:
|
|
1561
|
-
n.push(
|
|
1560
|
+
const { newNodeObj: l } = r;
|
|
1561
|
+
n.push(l);
|
|
1562
1562
|
}
|
|
1563
1563
|
this.selectNodes(n.map((o) => C(o.id))), this.bus.fire("operation", {
|
|
1564
1564
|
name: "copyNodes",
|
|
@@ -1594,10 +1594,10 @@ const It = function(e, t) {
|
|
|
1594
1594
|
const n = t.nodeObj;
|
|
1595
1595
|
if (!n.parent)
|
|
1596
1596
|
throw new Error("Can not remove root node");
|
|
1597
|
-
const o = n.parent.children, s = o.findIndex((
|
|
1597
|
+
const o = n.parent.children, s = o.findIndex((l) => l === n), i = me(n);
|
|
1598
1598
|
if (Ve(t, i), o.length !== 0) {
|
|
1599
|
-
const
|
|
1600
|
-
this.selectNode(C(
|
|
1599
|
+
const l = o[s] || o[s - 1];
|
|
1600
|
+
this.selectNode(C(l.id));
|
|
1601
1601
|
} else
|
|
1602
1602
|
this.selectNode(C(n.parent.id));
|
|
1603
1603
|
this.linkDiv(), this.bus.fire("operation", {
|
|
@@ -1607,7 +1607,7 @@ const It = function(e, t) {
|
|
|
1607
1607
|
originParentId: (r = n == null ? void 0 : n.parent) == null ? void 0 : r.id
|
|
1608
1608
|
});
|
|
1609
1609
|
}, Qt = function(e) {
|
|
1610
|
-
e =
|
|
1610
|
+
e = le(e);
|
|
1611
1611
|
for (const t of e) {
|
|
1612
1612
|
const n = t.nodeObj;
|
|
1613
1613
|
if (!n.parent)
|
|
@@ -1620,7 +1620,7 @@ const It = function(e, t) {
|
|
|
1620
1620
|
objs: e.map((t) => t.nodeObj)
|
|
1621
1621
|
});
|
|
1622
1622
|
}, en = function(e, t) {
|
|
1623
|
-
e =
|
|
1623
|
+
e = le(e);
|
|
1624
1624
|
const n = t.nodeObj;
|
|
1625
1625
|
n.expanded === !1 && (this.expandNode(t, !0), t = C(n.id));
|
|
1626
1626
|
for (const o of e) {
|
|
@@ -1635,13 +1635,13 @@ const It = function(e, t) {
|
|
|
1635
1635
|
toObj: n
|
|
1636
1636
|
});
|
|
1637
1637
|
}, Ue = (e, t, n, o) => {
|
|
1638
|
-
e =
|
|
1638
|
+
e = le(e), t === "after" && (e = e.reverse());
|
|
1639
1639
|
const s = n.nodeObj;
|
|
1640
1640
|
for (const i of e) {
|
|
1641
1641
|
const r = i.nodeObj;
|
|
1642
1642
|
Ie(t, r, s), D(o.nodeData), G(i);
|
|
1643
|
-
const
|
|
1644
|
-
n.parentElement.parentNode.insertAdjacentElement(We[t],
|
|
1643
|
+
const l = i.parentElement.parentNode;
|
|
1644
|
+
n.parentElement.parentNode.insertAdjacentElement(We[t], l);
|
|
1645
1645
|
}
|
|
1646
1646
|
o.linkDiv(), o.bus.fire("operation", {
|
|
1647
1647
|
name: t === "before" ? "moveNodeBefore" : "moveNodeAfter",
|
|
@@ -1693,9 +1693,9 @@ const rn = function(e, t, n) {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
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
1695
|
}
|
|
1696
|
-
},
|
|
1696
|
+
}, ln = function() {
|
|
1697
1697
|
this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
|
|
1698
|
-
},
|
|
1698
|
+
}, cn = function(e) {
|
|
1699
1699
|
this.clearSelection();
|
|
1700
1700
|
for (const t of e)
|
|
1701
1701
|
t.className = "selected";
|
|
@@ -1785,10 +1785,10 @@ const rn = function(e, t, n) {
|
|
|
1785
1785
|
refresh: _n,
|
|
1786
1786
|
scale: gn,
|
|
1787
1787
|
selectNode: rn,
|
|
1788
|
-
selectNodes:
|
|
1788
|
+
selectNodes: cn,
|
|
1789
1789
|
setLocale: Cn,
|
|
1790
1790
|
toCenter: vn,
|
|
1791
|
-
unselectNode:
|
|
1791
|
+
unselectNode: ln,
|
|
1792
1792
|
unselectNodes: an
|
|
1793
1793
|
}, Symbol.toStringTag, { value: "Module" })), kn = function(e) {
|
|
1794
1794
|
return {
|
|
@@ -1820,12 +1820,12 @@ const rn = function(e, t, n) {
|
|
|
1820
1820
|
create: kn
|
|
1821
1821
|
};
|
|
1822
1822
|
function ie(e, t, n) {
|
|
1823
|
-
const { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight,
|
|
1823
|
+
const { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, u = l + n.x, d = c + n.y;
|
|
1824
1824
|
return {
|
|
1825
1825
|
w: i,
|
|
1826
1826
|
h: r,
|
|
1827
|
-
cx:
|
|
1828
|
-
cy:
|
|
1827
|
+
cx: l,
|
|
1828
|
+
cy: c,
|
|
1829
1829
|
ctrlX: u,
|
|
1830
1830
|
ctrlY: d
|
|
1831
1831
|
};
|
|
@@ -1850,10 +1850,10 @@ const Tn = function(e, t, n, o) {
|
|
|
1850
1850
|
if (!t || !n)
|
|
1851
1851
|
return;
|
|
1852
1852
|
performance.now();
|
|
1853
|
-
const i = ie(e, t, o.delta1), r = ie(e, n, o.delta2), { x:
|
|
1854
|
-
`M ${
|
|
1853
|
+
const i = ie(e, t, o.delta1), r = ie(e, n, o.delta2), { x: l, y: c } = q(i), { ctrlX: u, ctrlY: d } = i, { ctrlX: a, ctrlY: p } = r, { x: g, y: f } = q(r), m = Pe(a, p, g, f), h = ft(
|
|
1854
|
+
`M ${l} ${c} C ${u} ${d} ${a} ${p} ${g} ${f}`,
|
|
1855
1855
|
`M ${m.x1} ${m.y1} L ${g} ${f} L ${m.x2} ${m.y2}`
|
|
1856
|
-
), v =
|
|
1856
|
+
), v = l / 8 + u * 3 / 8 + a * 3 / 8 + g / 8, y = c / 8 + d * 3 / 8 + p * 3 / 8 + f / 8, b = Tn(o.label, v, y, e.theme.cssVar["--color"]);
|
|
1857
1857
|
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
1858
|
}, Ln = function(e, t) {
|
|
1859
1859
|
const n = {
|
|
@@ -1897,47 +1897,47 @@ const Tn = function(e, t, n, o) {
|
|
|
1897
1897
|
}, Ze = function(e, t, n, o) {
|
|
1898
1898
|
var p;
|
|
1899
1899
|
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:${
|
|
1900
|
+
let { x: s, y: i } = q(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: u } = o, { x: d, y: a } = q(o);
|
|
1901
|
+
e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${u}px;left:${c}px;`, N(e.line1, {
|
|
1902
1902
|
x1: s + "",
|
|
1903
1903
|
y1: i + "",
|
|
1904
1904
|
x2: r + "",
|
|
1905
|
-
y2:
|
|
1905
|
+
y2: l + ""
|
|
1906
1906
|
}), N(e.line2, {
|
|
1907
|
-
x1:
|
|
1907
|
+
x1: c + "",
|
|
1908
1908
|
y1: u + "",
|
|
1909
1909
|
x2: d + "",
|
|
1910
1910
|
y2: a + ""
|
|
1911
1911
|
}), e.helper1 && (e.helper1.destory(e.map), (p = e.helper2) == null || p.destory(e.map)), e.helper1 = Le.create(e.P2), e.helper2 = Le.create(e.P3), e.helper1.init(e.map, (g, f) => {
|
|
1912
1912
|
var y;
|
|
1913
|
-
r = r + g / e.scaleVal,
|
|
1914
|
-
const m = q({ ...n, ctrlX: r, ctrlY:
|
|
1913
|
+
r = r + g / e.scaleVal, l = l + f / e.scaleVal;
|
|
1914
|
+
const m = q({ ...n, ctrlX: r, ctrlY: l });
|
|
1915
1915
|
s = m.x, i = m.y;
|
|
1916
|
-
const h = s / 8 + r * 3 / 8 +
|
|
1917
|
-
e.P2.style.top =
|
|
1916
|
+
const h = s / 8 + r * 3 / 8 + c * 3 / 8 + d / 8, v = i / 8 + l * 3 / 8 + u * 3 / 8 + a / 8;
|
|
1917
|
+
e.P2.style.top = l + "px", e.P2.style.left = r + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${u} ${d} ${a}`), N(e.currentArrow.children[2], {
|
|
1918
1918
|
x: h + "",
|
|
1919
1919
|
y: v + ""
|
|
1920
1920
|
}), N(e.line1, {
|
|
1921
1921
|
x1: s + "",
|
|
1922
1922
|
y1: i + "",
|
|
1923
1923
|
x2: r + "",
|
|
1924
|
-
y2:
|
|
1925
|
-
}), t.delta1.x = r - n.cx, t.delta1.y =
|
|
1924
|
+
y2: l + ""
|
|
1925
|
+
}), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
|
|
1926
1926
|
}), e.helper2.init(e.map, (g, f) => {
|
|
1927
1927
|
var b, x;
|
|
1928
|
-
|
|
1929
|
-
const m = q({ ...o, ctrlX:
|
|
1928
|
+
c = c + g / e.scaleVal, u = u + f / e.scaleVal;
|
|
1929
|
+
const m = q({ ...o, ctrlX: c, ctrlY: u });
|
|
1930
1930
|
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 =
|
|
1931
|
+
const h = s / 8 + r * 3 / 8 + c * 3 / 8 + d / 8, v = i / 8 + l * 3 / 8 + u * 3 / 8 + a / 8, y = Pe(c, u, d, a);
|
|
1932
|
+
e.P3.style.top = u + "px", e.P3.style.left = c + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${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
1933
|
x: h + "",
|
|
1934
1934
|
y: v + ""
|
|
1935
1935
|
}), N(e.line2, {
|
|
1936
|
-
x1:
|
|
1936
|
+
x1: c + "",
|
|
1937
1937
|
y1: u + "",
|
|
1938
1938
|
x2: d + "",
|
|
1939
1939
|
y2: a + ""
|
|
1940
|
-
}), t.delta2.x =
|
|
1940
|
+
}), t.delta2.x = c - o.cx, t.delta2.y = u - o.cy;
|
|
1941
1941
|
});
|
|
1942
1942
|
};
|
|
1943
1943
|
function $n() {
|
|
@@ -1977,7 +1977,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1977
1977
|
tidyArrow: Pn,
|
|
1978
1978
|
unselectArrow: Dn
|
|
1979
1979
|
}, Symbol.toStringTag, { value: "Module" })), Hn = function(e) {
|
|
1980
|
-
var
|
|
1980
|
+
var c, u;
|
|
1981
1981
|
if (e.length === 0)
|
|
1982
1982
|
throw new Error("No selected node.");
|
|
1983
1983
|
if (e.length === 1) {
|
|
@@ -2004,18 +2004,18 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2004
2004
|
let o = 0;
|
|
2005
2005
|
e:
|
|
2006
2006
|
for (; o < t; o++) {
|
|
2007
|
-
const d = (
|
|
2007
|
+
const d = (c = n[0][o]) == null ? void 0 : c.node;
|
|
2008
2008
|
for (let a = 1; a < n.length; a++)
|
|
2009
2009
|
if (((u = n[a][o]) == null ? void 0 : u.node) !== d)
|
|
2010
2010
|
break e;
|
|
2011
2011
|
}
|
|
2012
2012
|
if (!o)
|
|
2013
2013
|
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 (!
|
|
2014
|
+
const s = n.map((d) => d[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, l = n[0][o - 1].node;
|
|
2015
|
+
if (!l.parent)
|
|
2016
2016
|
throw new Error("Please select nodes in the same main topic.");
|
|
2017
2017
|
return {
|
|
2018
|
-
parent:
|
|
2018
|
+
parent: l.id,
|
|
2019
2019
|
start: i,
|
|
2020
2020
|
end: r
|
|
2021
2021
|
};
|
|
@@ -2046,13 +2046,13 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2046
2046
|
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
2047
|
}, Qe = function(e, t) {
|
|
2048
2048
|
var S;
|
|
2049
|
-
const { id: n, text: o, parent: s, start: i, end: r } = t,
|
|
2049
|
+
const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, u = C(s).nodeObj, d = Fn(t);
|
|
2050
2050
|
let a = 1 / 0, p = 0, g = 0, f = 0;
|
|
2051
2051
|
for (let O = i; O <= r; O++) {
|
|
2052
2052
|
const W = (S = u.children) == null ? void 0 : S[O];
|
|
2053
2053
|
if (!W)
|
|
2054
2054
|
return e.removeSummary(n), null;
|
|
2055
|
-
const P = Rn(W.id), { offsetLeft: J, offsetTop: ve } = $(
|
|
2055
|
+
const P = Rn(W.id), { offsetLeft: J, offsetTop: ve } = $(l, P);
|
|
2056
2056
|
O === i && (g = ve + 20), O === r && (f = ve + P.offsetHeight - 20), J < a && (a = J), P.offsetWidth + J > p && (p = P.offsetWidth + J);
|
|
2057
2057
|
}
|
|
2058
2058
|
let m, h;
|
|
@@ -2134,23 +2134,23 @@ function Jn(e, t, n, o) {
|
|
|
2134
2134
|
const s = document.createElementNS(M, "g");
|
|
2135
2135
|
let i = "";
|
|
2136
2136
|
return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
|
|
2137
|
-
`).forEach((
|
|
2137
|
+
`).forEach((l, c) => {
|
|
2138
2138
|
const u = document.createElementNS(M, "text");
|
|
2139
2139
|
N(u, {
|
|
2140
2140
|
x: n + parseInt(t.paddingLeft) + "",
|
|
2141
|
-
y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (
|
|
2141
|
+
y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
|
|
2142
2142
|
"text-anchor": "start",
|
|
2143
2143
|
"font-family": t.fontFamily,
|
|
2144
2144
|
"font-size": `${t.fontSize}`,
|
|
2145
2145
|
"font-weight": `${t.fontWeight}`,
|
|
2146
2146
|
fill: `${t.color}`
|
|
2147
|
-
}), u.innerHTML =
|
|
2147
|
+
}), u.innerHTML = l, s.appendChild(u);
|
|
2148
2148
|
}), s;
|
|
2149
2149
|
}
|
|
2150
2150
|
function Zn(e, t, n, o) {
|
|
2151
|
-
var
|
|
2151
|
+
var l;
|
|
2152
2152
|
let s = "";
|
|
2153
|
-
(
|
|
2153
|
+
(l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
|
|
2154
2154
|
const i = document.createElementNS(M, "foreignObject");
|
|
2155
2155
|
N(i, {
|
|
2156
2156
|
x: n + parseInt(t.paddingLeft) + "",
|
|
@@ -2191,10 +2191,10 @@ function ee(e, t, n = !1) {
|
|
|
2191
2191
|
stroke: o.borderColor,
|
|
2192
2192
|
"stroke-width": o.borderWidth
|
|
2193
2193
|
});
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2196
|
-
let
|
|
2197
|
-
return n ?
|
|
2194
|
+
const l = document.createElementNS(M, "g");
|
|
2195
|
+
l.appendChild(r);
|
|
2196
|
+
let c;
|
|
2197
|
+
return n ? c = Zn(t, o, s, i) : c = Jn(t, o, s, i), l.appendChild(c), l;
|
|
2198
2198
|
}
|
|
2199
2199
|
function eo(e, t) {
|
|
2200
2200
|
const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
|
|
@@ -2220,19 +2220,19 @@ function to(e, t) {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
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
2222
|
var a, p, g;
|
|
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(
|
|
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"), l = document.createElementNS(M, "rect");
|
|
2224
|
+
N(l, {
|
|
2225
2225
|
x: "0",
|
|
2226
2226
|
y: "0",
|
|
2227
2227
|
width: `${s}`,
|
|
2228
2228
|
height: `${o}`,
|
|
2229
2229
|
fill: e.theme.cssVar["--bgcolor"]
|
|
2230
|
-
}), i.appendChild(
|
|
2230
|
+
}), i.appendChild(l), n.querySelectorAll(".subLines").forEach((f) => {
|
|
2231
2231
|
const m = f.cloneNode(!0), { offsetLeft: h, offsetTop: v } = $(n, f.parentElement);
|
|
2232
2232
|
m.setAttribute("x", `${h}`), m.setAttribute("y", `${v}`), r.appendChild(m);
|
|
2233
2233
|
});
|
|
2234
|
-
const
|
|
2235
|
-
|
|
2234
|
+
const c = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
|
|
2235
|
+
c && r.appendChild(c);
|
|
2236
2236
|
const u = (p = n.querySelector(".topiclinks")) == null ? void 0 : p.cloneNode(!0);
|
|
2237
2237
|
u && r.appendChild(u);
|
|
2238
2238
|
const d = (g = n.querySelector(".summary")) == null ? void 0 : g.cloneNode(!0);
|
|
@@ -2265,18 +2265,18 @@ function io(e) {
|
|
|
2265
2265
|
const ro = function(e = !1, t) {
|
|
2266
2266
|
const n = oo(this, e), o = so(n, t);
|
|
2267
2267
|
return new Blob([o], { type: "image/svg+xml" });
|
|
2268
|
-
},
|
|
2268
|
+
}, lo = async function(e = !1, t) {
|
|
2269
2269
|
const n = this.exportSvg(e, t), o = await io(n);
|
|
2270
2270
|
return new Promise((s, i) => {
|
|
2271
2271
|
const r = new Image();
|
|
2272
2272
|
r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2273
|
+
const l = document.createElement("canvas");
|
|
2274
|
+
l.width = r.width, l.height = r.height, l.getContext("2d").drawImage(r, 0, 0), l.toBlob(s, "image/png", 1);
|
|
2275
2275
|
}, r.src = o, r.onerror = i;
|
|
2276
2276
|
});
|
|
2277
|
-
},
|
|
2277
|
+
}, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2278
2278
|
__proto__: null,
|
|
2279
|
-
exportPng:
|
|
2279
|
+
exportPng: lo,
|
|
2280
2280
|
exportSvg: ro
|
|
2281
2281
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2282
2282
|
function ao(e, t) {
|
|
@@ -2296,7 +2296,7 @@ const ho = {
|
|
|
2296
2296
|
layout: it,
|
|
2297
2297
|
linkDiv: pt,
|
|
2298
2298
|
editTopic: ut,
|
|
2299
|
-
createWrapper:
|
|
2299
|
+
createWrapper: ct,
|
|
2300
2300
|
createParent: at,
|
|
2301
2301
|
createChildren: dt,
|
|
2302
2302
|
createTopic: ht,
|
|
@@ -2306,35 +2306,35 @@ const ho = {
|
|
|
2306
2306
|
...et,
|
|
2307
2307
|
...Bn,
|
|
2308
2308
|
...Yn,
|
|
2309
|
-
...
|
|
2309
|
+
...co,
|
|
2310
2310
|
init(e) {
|
|
2311
2311
|
if (!e || !e.nodeData)
|
|
2312
2312
|
return new Error("MindElixir: `data` is required");
|
|
2313
2313
|
e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, D(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
2314
|
},
|
|
2315
2315
|
destroy() {
|
|
2316
|
-
var e
|
|
2317
|
-
this.disposable.forEach((
|
|
2316
|
+
var e;
|
|
2317
|
+
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
2318
|
}
|
|
2319
2319
|
};
|
|
2320
|
-
function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH:
|
|
2320
|
+
function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, containerHeight: u }) {
|
|
2321
2321
|
let d = t + n / 2;
|
|
2322
2322
|
const a = e + o / 2;
|
|
2323
2323
|
let p;
|
|
2324
|
-
|
|
2325
|
-
const g = s +
|
|
2326
|
-
return
|
|
2324
|
+
c === "lhs" ? p = i + r : p = i;
|
|
2325
|
+
const g = s + l / 2, m = (1 - Math.abs(g - a) / u) * 0.25 * (n / 2);
|
|
2326
|
+
return c === "lhs" ? d = d - n / 10 - m : d = d + n / 10 + m, `M ${d} ${a} Q ${d} ${g} ${p} ${g}`;
|
|
2327
2327
|
}
|
|
2328
|
-
function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH:
|
|
2328
|
+
function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, isFirst: u }) {
|
|
2329
2329
|
const d = parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));
|
|
2330
2330
|
let a = 0, p = 0;
|
|
2331
2331
|
u ? a = e + o / 2 : a = e + o;
|
|
2332
|
-
const g = s +
|
|
2332
|
+
const g = s + l;
|
|
2333
2333
|
let f = 0, m = 0, h = 0;
|
|
2334
2334
|
const v = Math.abs(a - g) / 300 * d;
|
|
2335
|
-
return
|
|
2335
|
+
return c === "lhs" ? (h = t, f = h + d, m = h - d, p = i + d, `M ${f} ${a} C ${h} ${a} ${h + v} ${g} ${m} ${g} H ${p}`) : (h = t + n, f = h - d, m = h + d, p = i + r - d, `M ${f} ${a} C ${h} ${a} ${h - v} ${g} ${m} ${g} H ${p}`);
|
|
2336
2336
|
}
|
|
2337
|
-
const po = "4.3.
|
|
2337
|
+
const po = "4.3.2", U = document;
|
|
2338
2338
|
function A({
|
|
2339
2339
|
el: e,
|
|
2340
2340
|
direction: t,
|
|
@@ -2343,8 +2343,8 @@ function A({
|
|
|
2343
2343
|
editable: s,
|
|
2344
2344
|
contextMenu: i,
|
|
2345
2345
|
contextMenuOption: r,
|
|
2346
|
-
toolBar:
|
|
2347
|
-
keypress:
|
|
2346
|
+
toolBar: l,
|
|
2347
|
+
keypress: c,
|
|
2348
2348
|
mouseSelectionButton: u,
|
|
2349
2349
|
selectionContainer: d,
|
|
2350
2350
|
before: a,
|
|
@@ -2359,7 +2359,7 @@ function A({
|
|
|
2359
2359
|
const b = Object.prototype.toString.call(e);
|
|
2360
2360
|
if (b === "[object HTMLDivElement]" ? y = e : b === "[object String]" && (y = document.querySelector(e)), !y)
|
|
2361
2361
|
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 =
|
|
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 = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = u || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = p || "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 = f || 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
2363
|
const x = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2364
2364
|
this.theme = v || (x.matches ? Oe : $e);
|
|
2365
2365
|
const w = U.createElement("div");
|