mind-elixir 3.0.2 → 3.0.4
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 +138 -125
- package/dist/MindElixirLite.iife.js +3 -3
- package/dist/MindElixirLite.js +202 -196
- package/dist/types/const.d.ts +6 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/utils/pubsub.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +19 -34
package/dist/MindElixir.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;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}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--panel-color: #444446;--panel-bgcolor: #ffffff;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}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0 3px #4dc4ff}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container .map-canvas me-root me-tpc #input-box{padding:10px var(--gap)}.map-container me-main>me-wrapper{position:relative;margin:20px 65px}.map-container me-main>me-wrapper>me-parent{margin:var(--gap);background-color:var(--main-bgcolor);border:2px solid var(--main-color);border-radius:var(--main-radius);padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);color:var(--main-color);padding:8px var(--gap)}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px var(--gap)}.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:800px;white-space:pre-wrap;padding:var(--topic-padding);line-height:1.2}.map-container me-parent me-tpc>div,.map-container me-parent me-tpc>span,.map-container me-parent me-tpc>img{pointer-events:none}.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 .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller{pointer-events:none}.map-container .topiclinks g,.map-container .linkcontroller g{pointer-events:all}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;padding:var(--topic-padding);color:var(--color);background-color:var(--bgcolor);width:max-content;max-width:800px;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto}.map-container me-tpc>img{pointer-events:none;display:block;margin-top:8px}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#aaa;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 3px 0 0;font-size:12px;line-height:16px}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.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}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;font:300 15px Roboto,sans-serif;color:var(--panel-color);box-shadow:0 12px 15px #0003}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:10px 14px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color)}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none;color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li:hover{cursor:pointer;filter:brightness(.9)}.mind-elixir .context-menu .menu-list li:first-child{border-radius:5px 5px 0 0}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0;border-radius:0 0 5px 5px}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .mobile-menu{position:absolute;left:20px;bottom:70px;z-index:99;margin:0;padding:0;color:#333;border-radius:5px;box-shadow:0 12px 15px #0003;overflow:hidden}.mind-elixir .mobile-menu *{transition:color .4s,background-color .4s}.mind-elixir .mobile-menu div{float:left;text-align:center;width:30px;overflow:hidden;white-space:nowrap;padding:8px;background-color:#fff;border-bottom:1px solid #ecf0f1}.mind-elixir .mobile-menu div a{color:#333;text-decoration:none}.mind-elixir .mobile-menu div.disabled{color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .mobile-menu div.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .mobile-menu div:hover{cursor:pointer;background-color:#ecf0f1}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
(function(e) {
|
|
3
|
-
var t, n, i, o, s, r, a = '<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");
|
|
3
|
+
var t, n, i, o, s, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
|
|
4
4
|
if (l && !e.__iconfont__svg__cssinject__) {
|
|
5
5
|
e.__iconfont__svg__cssinject__ = !0;
|
|
6
6
|
try {
|
|
7
7
|
document.write(
|
|
8
8
|
"<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>"
|
|
9
9
|
);
|
|
10
|
-
} catch (
|
|
11
|
-
console && console.log(
|
|
10
|
+
} catch (a) {
|
|
11
|
+
console && console.log(a);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
function u() {
|
|
15
15
|
s || (s = !0, i());
|
|
16
16
|
}
|
|
17
17
|
t = function() {
|
|
18
|
-
var
|
|
19
|
-
(p = document.createElement("div")).innerHTML =
|
|
18
|
+
var a, h, d, p;
|
|
19
|
+
(p = document.createElement("div")).innerHTML = c, c = null, (d = p.getElementsByTagName("svg")[0]) && (d.setAttribute("aria-hidden", "true"), d.style.position = "absolute", d.style.width = 0, d.style.height = 0, d.style.overflow = "hidden", a = d, (h = document.body).firstChild ? (p = a, (d = h.firstChild).parentNode.insertBefore(p, d)) : h.appendChild(a));
|
|
20
20
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
|
|
21
21
|
document.removeEventListener("DOMContentLoaded", n, !1), t();
|
|
22
22
|
}, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (i = t, o = e.document, s = !1, (r = function() {
|
|
@@ -37,7 +37,10 @@ const x = 0, P = 1, _ = 2, M = 30, w = 8, le = {
|
|
|
37
37
|
"--main-color": "#444446",
|
|
38
38
|
"--main-bgcolor": "#ffffff",
|
|
39
39
|
"--color": "#777777",
|
|
40
|
-
"--bgcolor": "#f6f6f6"
|
|
40
|
+
"--bgcolor": "#f6f6f6",
|
|
41
|
+
"--panel-color": "#444446",
|
|
42
|
+
"--panel-bgcolor": "#ffffff",
|
|
43
|
+
"--panel-border-color": "#eaeaea"
|
|
41
44
|
}
|
|
42
45
|
}, ce = {
|
|
43
46
|
name: "Dark",
|
|
@@ -46,7 +49,10 @@ const x = 0, P = 1, _ = 2, M = 30, w = 8, le = {
|
|
|
46
49
|
"--main-color": "#ffffff",
|
|
47
50
|
"--main-bgcolor": "#4c4f69",
|
|
48
51
|
"--color": "#cccccc",
|
|
49
|
-
"--bgcolor": "#252526"
|
|
52
|
+
"--bgcolor": "#252526",
|
|
53
|
+
"--panel-color": "#ffffff",
|
|
54
|
+
"--panel-bgcolor": "#2d3748",
|
|
55
|
+
"--panel-border-color": "#696969"
|
|
50
56
|
}
|
|
51
57
|
};
|
|
52
58
|
function q(e) {
|
|
@@ -84,12 +90,12 @@ function he(e, t, n, i) {
|
|
|
84
90
|
const o = i - t, s = e - n;
|
|
85
91
|
let r = Math.atan(Math.abs(o) / Math.abs(s)) / 3.14 * 180;
|
|
86
92
|
s < 0 && o > 0 && (r = 180 - r), s < 0 && o < 0 && (r = 180 + r), s > 0 && o < 0 && (r = 360 - r);
|
|
87
|
-
const
|
|
93
|
+
const c = 20, l = 30, u = r + l, a = r - l;
|
|
88
94
|
return {
|
|
89
|
-
x1: n + Math.cos(Math.PI * u / 180) *
|
|
90
|
-
y1: i - Math.sin(Math.PI * u / 180) *
|
|
91
|
-
x2: n + Math.cos(Math.PI *
|
|
92
|
-
y2: i - Math.sin(Math.PI *
|
|
95
|
+
x1: n + Math.cos(Math.PI * u / 180) * c,
|
|
96
|
+
y1: i - Math.sin(Math.PI * u / 180) * c,
|
|
97
|
+
x2: n + Math.cos(Math.PI * a / 180) * c,
|
|
98
|
+
y2: i - Math.sin(Math.PI * a / 180) * c
|
|
93
99
|
};
|
|
94
100
|
}
|
|
95
101
|
function U(e, t, n) {
|
|
@@ -273,8 +279,8 @@ const De = {
|
|
|
273
279
|
const o = R.createElement("me-main");
|
|
274
280
|
o.className = "rhs";
|
|
275
281
|
for (let s = 0; s < t.length; s++) {
|
|
276
|
-
const r = t[s], { grp:
|
|
277
|
-
e.direction === _ ? r.direction === x ? i.appendChild(
|
|
282
|
+
const r = t[s], { grp: c } = e.createWrapper(r);
|
|
283
|
+
e.direction === _ ? r.direction === x ? i.appendChild(c) : o.appendChild(c) : e.direction === x ? i.appendChild(c) : o.appendChild(c);
|
|
278
284
|
}
|
|
279
285
|
e.nodes.appendChild(i), e.nodes.appendChild(n), e.nodes.appendChild(o), e.nodes.appendChild(e.lines);
|
|
280
286
|
}, Be = function(e, t) {
|
|
@@ -284,7 +290,7 @@ const De = {
|
|
|
284
290
|
n.appendChild(s);
|
|
285
291
|
}
|
|
286
292
|
return n;
|
|
287
|
-
}, k = document,
|
|
293
|
+
}, k = document, C = (e, t) => (t ? t.mindElixirBox : k).querySelector(`[data-nodeid=me${e}]`), Q = function(e, t) {
|
|
288
294
|
if (e.textContent = t.topic, t.style && (e.style.color = t.style.color || "", e.style.background = t.style.background || "", e.style.fontSize = t.style.fontSize + "px", e.style.fontWeight = t.style.fontWeight || "normal"), t.image) {
|
|
289
295
|
const n = t.image;
|
|
290
296
|
if (n.url && n.width && n.height) {
|
|
@@ -392,48 +398,48 @@ const Ue = function(e) {
|
|
|
392
398
|
const n = this.map.querySelectorAll("me-main > me-wrapper");
|
|
393
399
|
this.lines.innerHTML = "", fe = this.subLinkStyle === 2 ? Je : me;
|
|
394
400
|
for (let i = 0; i < n.length; i++) {
|
|
395
|
-
const o = n[i], s = o.querySelector("me-tpc"), r = o.firstChild,
|
|
401
|
+
const o = n[i], s = o.querySelector("me-tpc"), r = o.firstChild, c = o.parentNode.className;
|
|
396
402
|
let l = t.offsetLeft + t.offsetWidth / 2;
|
|
397
403
|
const u = t.offsetTop + t.offsetHeight / 2;
|
|
398
|
-
let
|
|
404
|
+
let a;
|
|
399
405
|
const h = this.theme.palette, d = s.nodeObj.branchColor || h[i % h.length], { offsetLeft: p, offsetTop: g } = We(this.nodes, r);
|
|
400
|
-
|
|
406
|
+
c === "lhs" ? a = p + r.offsetWidth : a = p;
|
|
401
407
|
const f = g + r.offsetHeight / 2;
|
|
402
408
|
let m = "";
|
|
403
409
|
if (this.mainLinkStyle === 2)
|
|
404
|
-
this.direction === _ && (
|
|
410
|
+
this.direction === _ && (c === "lhs" ? l = l - t.offsetWidth / 6 : l = l + t.offsetWidth / 6), m = Ge({ x1: l, y1: u, x2: a, y2: f });
|
|
405
411
|
else {
|
|
406
412
|
const y = (1 - Math.abs(f - o.parentElement.offsetTop - o.parentElement.offsetHeight / 2) / o.parentElement.offsetHeight) * 0.25 * (t.offsetWidth / 2);
|
|
407
|
-
|
|
413
|
+
c === "lhs" ? l = l - t.offsetWidth / 10 - y : l = l + t.offsetWidth / 10 + y, m = Ke({ x1: l, y1: u, x2: a, y2: f });
|
|
408
414
|
}
|
|
409
415
|
this.lines.appendChild(Ie(m, d));
|
|
410
416
|
const b = o.children[0].children[1];
|
|
411
|
-
if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px",
|
|
417
|
+
if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", c === "lhs" ? b.style.left = "-10px" : b.style.right = "-10px"), !(e && e !== o) && o.childElementCount) {
|
|
412
418
|
const v = F("subLines"), y = o.lastChild;
|
|
413
419
|
y.tagName === "svg" && y.remove(), o.appendChild(v);
|
|
414
|
-
const N = o.firstChild,
|
|
420
|
+
const N = o.firstChild, E = o.children[1].children, H = pe(E, N, c, !0);
|
|
415
421
|
v.appendChild(Ye(H, d));
|
|
416
422
|
}
|
|
417
423
|
}
|
|
418
424
|
this.linkSvgGroup.innerHTML = "";
|
|
419
425
|
for (const i in this.linkData) {
|
|
420
426
|
const o = this.linkData[i];
|
|
421
|
-
this.createLink(
|
|
427
|
+
this.createLink(C(o.from), C(o.to), !0, o);
|
|
422
428
|
}
|
|
423
429
|
console.timeEnd("linkDiv");
|
|
424
430
|
}, pe = function(e, t, n, i) {
|
|
425
431
|
let o = "";
|
|
426
|
-
const s = t.offsetTop, r = t.offsetLeft,
|
|
432
|
+
const s = t.offsetTop, r = t.offsetLeft, c = t.offsetWidth, l = t.offsetHeight;
|
|
427
433
|
for (let u = 0; u < e.length; u++) {
|
|
428
|
-
const
|
|
429
|
-
o += fe({ pT: s, pL: r, pW:
|
|
434
|
+
const a = e[u], h = a.firstChild, d = h.offsetTop, p = h.offsetLeft, g = h.offsetWidth, f = h.offsetHeight;
|
|
435
|
+
o += fe({ pT: s, pL: r, pW: c, pH: l, cT: d, cL: p, cW: g, cH: f, direction: n, isFirst: i });
|
|
430
436
|
const m = h.children[1];
|
|
431
437
|
if (m) {
|
|
432
438
|
if (m.style.bottom = -(m.offsetHeight / 2) + "px", n === "lhs" ? m.style.left = "10px" : n === "rhs" && (m.style.right = "10px"), !m.expanded)
|
|
433
439
|
continue;
|
|
434
440
|
} else
|
|
435
441
|
continue;
|
|
436
|
-
const b =
|
|
442
|
+
const b = a.children[1].children;
|
|
437
443
|
b.length > 0 && (o += pe(b, h, n));
|
|
438
444
|
}
|
|
439
445
|
return o;
|
|
@@ -444,20 +450,20 @@ function Ge({ x1: e, y1: t, x2: n, y2: i }) {
|
|
|
444
450
|
function Ke({ x1: e, y1: t, x2: n, y2: i }) {
|
|
445
451
|
return `M ${e} ${t} Q ${e} ${i} ${n} ${i}`;
|
|
446
452
|
}
|
|
447
|
-
function Je({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH:
|
|
448
|
-
let
|
|
449
|
-
u ?
|
|
450
|
-
const h = o +
|
|
453
|
+
function Je({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH: c, direction: l, isFirst: u }) {
|
|
454
|
+
let a;
|
|
455
|
+
u ? a = e + i / 2 : a = e + i;
|
|
456
|
+
const h = o + c;
|
|
451
457
|
let d = 0, p = 0, g = 0;
|
|
452
|
-
return l === "lhs" ? (d = t + M, p = s, g = s + r) : l === "rhs" && (d = t + n - M, p = s + r, g = s), h <
|
|
458
|
+
return l === "lhs" ? (d = t + M, p = s, g = s + r) : l === "rhs" && (d = t + n - M, p = s + r, g = s), h < a + 50 && h > a - 50 ? `M ${d} ${a} H ${g} V ${h} H ${p}` : h >= a ? `M ${d} ${a} H ${g} V ${h - w} A ${w} ${w} 0 0 ${d > p ? 1 : 0} ${d > p ? g - w : g + w} ${h} H ${p}` : `M ${d} ${a} H ${g} V ${h + w} A ${w} ${w} 0 0 ${d > p ? 0 : 1} ${d > p ? g - w : g + w} ${h} H ${p}`;
|
|
453
459
|
}
|
|
454
|
-
function me({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH:
|
|
455
|
-
let
|
|
456
|
-
u ?
|
|
457
|
-
const d = o +
|
|
460
|
+
function me({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH: c, direction: l, isFirst: u }) {
|
|
461
|
+
let a = 0, h = 0;
|
|
462
|
+
u ? a = e + i / 2 : a = e + i;
|
|
463
|
+
const d = o + c;
|
|
458
464
|
let p = 0, g = 0, f = 0;
|
|
459
|
-
const m = Math.min(Math.abs(
|
|
460
|
-
return l === "lhs" ? (f = t, p = f + M, g = f - M, h = s + M, `M ${p} ${
|
|
465
|
+
const m = Math.min(Math.abs(a - d) / 800, 1.2) * M;
|
|
466
|
+
return l === "lhs" ? (f = t, p = f + M, g = f - M, h = s + M, `M ${p} ${a} C ${f} ${a} ${f + m} ${d} ${g} ${d} H ${h}`) : (f = t + n, p = f - M, g = f + M, h = s + r - M, `M ${p} ${a} C ${f} ${a} ${f - m} ${d} ${g} ${d} H ${h}`);
|
|
461
467
|
}
|
|
462
468
|
const te = {
|
|
463
469
|
addChild: "插入子节点",
|
|
@@ -539,14 +545,14 @@ function Qe(e, t) {
|
|
|
539
545
|
const y = document.createElement("div");
|
|
540
546
|
return y.innerText = v, y.style.cssText = "position:absolute;bottom:20px;left:50%;transform:translateX(-50%);", y;
|
|
541
547
|
}, i = (v, y, N) => {
|
|
542
|
-
const
|
|
543
|
-
return
|
|
544
|
-
}, o = ne[e.locale] ? e.locale : "en", s = ne[o], r = i("cm-add_child", s.addChild, "tab"),
|
|
545
|
-
if (f.className = "menu-list", f.appendChild(r), f.appendChild(
|
|
548
|
+
const E = document.createElement("li");
|
|
549
|
+
return E.id = v, E.innerHTML = `<span>${q(y)}</span><span>${q(N)}</span>`, E;
|
|
550
|
+
}, o = ne[e.locale] ? e.locale : "en", s = ne[o], r = i("cm-add_child", s.addChild, "tab"), c = i("cm-add_parent", s.addParent, ""), l = i("cm-add_sibling", s.addSibling, "enter"), u = i("cm-remove_child", s.removeNode, "delete"), a = i("cm-fucus", s.focus, ""), h = i("cm-unfucus", s.cancelFocus, ""), d = i("cm-up", s.moveUp, "PgUp"), p = i("cm-down", s.moveDown, "Pgdn"), g = i("cm-down", s.link, ""), f = document.createElement("ul");
|
|
551
|
+
if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(u), (!t || t.focus) && (f.appendChild(a), f.appendChild(h)), f.appendChild(d), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
|
|
546
552
|
for (let v = 0; v < t.extend.length; v++) {
|
|
547
553
|
const y = t.extend[v], N = i(y.name, y.name, y.key || "");
|
|
548
|
-
f.appendChild(N), N.onclick = (
|
|
549
|
-
y.onclick(
|
|
554
|
+
f.appendChild(N), N.onclick = (E) => {
|
|
555
|
+
y.onclick(E);
|
|
550
556
|
};
|
|
551
557
|
}
|
|
552
558
|
const m = document.createElement("div");
|
|
@@ -557,21 +563,21 @@ function Qe(e, t) {
|
|
|
557
563
|
return;
|
|
558
564
|
const y = v.target;
|
|
559
565
|
if (y.tagName === "ME-TPC") {
|
|
560
|
-
y.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (
|
|
561
|
-
const N = f.offsetHeight,
|
|
562
|
-
N + v.clientY > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = v.clientY + 15 + "px"),
|
|
566
|
+
y.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (a.className = "disabled", d.className = "disabled", p.className = "disabled", c.className = "disabled", l.className = "disabled", u.className = "disabled") : (a.className = "", d.className = "", p.className = "", c.className = "", l.className = "", u.className = ""), e.selectNode(y), m.hidden = !1;
|
|
567
|
+
const N = f.offsetHeight, E = f.offsetWidth;
|
|
568
|
+
N + v.clientY > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = v.clientY + 15 + "px"), E + v.clientX > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = v.clientX + 10 + "px");
|
|
563
569
|
}
|
|
564
570
|
}, m.onclick = (v) => {
|
|
565
571
|
v.target === m && (m.hidden = !0);
|
|
566
572
|
}, r.onclick = () => {
|
|
567
573
|
e.addChild(), m.hidden = !0;
|
|
568
|
-
},
|
|
574
|
+
}, c.onclick = () => {
|
|
569
575
|
e.insertParent(), m.hidden = !0;
|
|
570
576
|
}, l.onclick = () => {
|
|
571
577
|
b || (e.insertSibling(), m.hidden = !0);
|
|
572
578
|
}, u.onclick = () => {
|
|
573
579
|
b || (e.removeNode(), m.hidden = !0);
|
|
574
|
-
},
|
|
580
|
+
}, a.onclick = () => {
|
|
575
581
|
b || (e.focusNode(e.currentNode), m.hidden = !0);
|
|
576
582
|
}, h.onclick = () => {
|
|
577
583
|
e.cancelFocus(), m.hidden = !0;
|
|
@@ -586,8 +592,8 @@ function Qe(e, t) {
|
|
|
586
592
|
"click",
|
|
587
593
|
(N) => {
|
|
588
594
|
N.preventDefault(), y.remove();
|
|
589
|
-
const
|
|
590
|
-
|
|
595
|
+
const E = N.target;
|
|
596
|
+
E.parentElement.tagName === "ME-PARENT" || E.parentElement.tagName === "ME-ROOT" ? e.createLink(v, e.currentNode) : console.log("link cancel");
|
|
591
597
|
},
|
|
592
598
|
{
|
|
593
599
|
once: !0
|
|
@@ -680,7 +686,7 @@ function nt(e, t) {
|
|
|
680
686
|
return g.id = d, g.innerHTML = `<svg class="icon" aria-hidden="true">
|
|
681
687
|
<use xlink:href="#icon-${p}"></use>
|
|
682
688
|
</svg>`, g;
|
|
683
|
-
}, i = n("cm-add_child", "zijiedian"), o = n("cm-add_sibling", "tongjijiedian-"), s = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"),
|
|
689
|
+
}, i = n("cm-add_child", "zijiedian"), o = n("cm-add_sibling", "tongjijiedian-"), s = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), c = n("cm-down", "falling"), l = n("cm-edit", "edit"), u = document.createElement("ul");
|
|
684
690
|
if (u.className = "menu-list", t && t.extend)
|
|
685
691
|
for (let d = 0; d < t.extend.length; d++) {
|
|
686
692
|
const p = t.extend[d], g = n(p.name, p.name);
|
|
@@ -688,15 +694,15 @@ function nt(e, t) {
|
|
|
688
694
|
p.onclick(f);
|
|
689
695
|
};
|
|
690
696
|
}
|
|
691
|
-
const
|
|
692
|
-
|
|
697
|
+
const a = document.createElement("mmenu");
|
|
698
|
+
a.className = "mobile-menu", a.appendChild(i), a.appendChild(o), a.appendChild(s), a.appendChild(r), a.appendChild(c), a.appendChild(l), a.hidden = !0, e.container.append(a);
|
|
693
699
|
let h = !0;
|
|
694
700
|
e.bus.addListener("unselectNode", function() {
|
|
695
|
-
|
|
701
|
+
a.hidden = !0;
|
|
696
702
|
}), e.bus.addListener("selectNode", function(d) {
|
|
697
|
-
|
|
698
|
-
}),
|
|
699
|
-
d.target ===
|
|
703
|
+
a.hidden = !1, d.root ? h = !0 : h = !1;
|
|
704
|
+
}), a.onclick = (d) => {
|
|
705
|
+
d.target === a && (a.hidden = !0);
|
|
700
706
|
}, i.onclick = () => {
|
|
701
707
|
e.addChild();
|
|
702
708
|
}, o.onclick = () => {
|
|
@@ -705,7 +711,7 @@ function nt(e, t) {
|
|
|
705
711
|
h || e.removeNode();
|
|
706
712
|
}, r.onclick = (d) => {
|
|
707
713
|
h || e.moveUpNode();
|
|
708
|
-
},
|
|
714
|
+
}, c.onclick = (d) => {
|
|
709
715
|
h || e.moveDownNode();
|
|
710
716
|
}, l.onclick = (d) => {
|
|
711
717
|
e.beginEdit();
|
|
@@ -739,23 +745,23 @@ function st(e) {
|
|
|
739
745
|
let t = null, n = null, i = null;
|
|
740
746
|
const o = ot(e), s = 12;
|
|
741
747
|
e.map.addEventListener("dragstart", (r) => {
|
|
742
|
-
var
|
|
743
|
-
t = r.target, t.parentElement.parentElement.style.opacity = "0.5", o.innerHTML = t.innerHTML, (
|
|
748
|
+
var c;
|
|
749
|
+
t = r.target, t.parentElement.parentElement.style.opacity = "0.5", o.innerHTML = t.innerHTML, (c = r.dataTransfer) == null || c.setDragImage(o, 0, 0), j.clear();
|
|
744
750
|
}), e.map.addEventListener("dragend", async (r) => {
|
|
745
751
|
if (!t)
|
|
746
752
|
return;
|
|
747
753
|
t.parentElement.parentElement.style.opacity = "1";
|
|
748
|
-
const
|
|
749
|
-
if (
|
|
754
|
+
const c = r.target;
|
|
755
|
+
if (c.style.opacity = "", !i)
|
|
750
756
|
return;
|
|
751
757
|
J(i);
|
|
752
758
|
const l = t.nodeObj;
|
|
753
759
|
switch (n) {
|
|
754
760
|
case "before":
|
|
755
|
-
e.moveNodeBefore(t, i), e.selectNode(
|
|
761
|
+
e.moveNodeBefore(t, i), e.selectNode(C(l.id));
|
|
756
762
|
break;
|
|
757
763
|
case "after":
|
|
758
|
-
e.moveNodeAfter(t, i), e.selectNode(
|
|
764
|
+
e.moveNodeAfter(t, i), e.selectNode(C(l.id));
|
|
759
765
|
break;
|
|
760
766
|
case "in":
|
|
761
767
|
e.moveNode(t, i);
|
|
@@ -768,11 +774,11 @@ function st(e) {
|
|
|
768
774
|
if (!t)
|
|
769
775
|
return;
|
|
770
776
|
J(i);
|
|
771
|
-
const
|
|
772
|
-
if (oe(
|
|
773
|
-
i =
|
|
774
|
-
const l =
|
|
775
|
-
r.clientY > l +
|
|
777
|
+
const c = K.elementFromPoint(r.clientX, r.clientY - s);
|
|
778
|
+
if (oe(c, t)) {
|
|
779
|
+
i = c;
|
|
780
|
+
const l = c.getBoundingClientRect().y;
|
|
781
|
+
r.clientY > l + c.clientHeight ? n = "after" : r.clientY > l + c.clientHeight / 2 && (n = "in");
|
|
776
782
|
} else {
|
|
777
783
|
const l = K.elementFromPoint(r.clientX, r.clientY + s);
|
|
778
784
|
if (oe(l, t)) {
|
|
@@ -797,13 +803,13 @@ function rt(e) {
|
|
|
797
803
|
}), e.undo = function() {
|
|
798
804
|
if (n > -1) {
|
|
799
805
|
const o = t[n];
|
|
800
|
-
i = o.prev, e.refresh(o.prev), e.selectNode(
|
|
806
|
+
i = o.prev, e.refresh(o.prev), e.selectNode(C(o.currentNodeId)), n--, console.log("current", i);
|
|
801
807
|
}
|
|
802
808
|
}, e.redo = function() {
|
|
803
809
|
if (n < t.length - 1) {
|
|
804
810
|
n++;
|
|
805
811
|
const o = t[n];
|
|
806
|
-
i = o.next, e.refresh(o.next), e.selectNode(
|
|
812
|
+
i = o.next, e.refresh(o.next), e.selectNode(C(o.currentNodeId));
|
|
807
813
|
}
|
|
808
814
|
}, e.map.addEventListener("keydown", (o) => {
|
|
809
815
|
(o.metaKey || o.ctrlKey) && o.shiftKey && o.key === "Z" ? e.redo() : (o.metaKey || o.ctrlKey) && o.key === "z" && e.undo();
|
|
@@ -860,7 +866,7 @@ function ge(e) {
|
|
|
860
866
|
const ht = function(e, t, n) {
|
|
861
867
|
if (e) {
|
|
862
868
|
if (console.time("selectNode"), typeof e == "string") {
|
|
863
|
-
const i =
|
|
869
|
+
const i = C(e);
|
|
864
870
|
return i ? this.selectNode(i) : void 0;
|
|
865
871
|
}
|
|
866
872
|
this.currentNode && (this.currentNode.className = ""), 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), console.timeEnd("selectNode");
|
|
@@ -999,6 +1005,7 @@ const ht = function(e, t, n) {
|
|
|
999
1005
|
origin: i
|
|
1000
1006
|
});
|
|
1001
1007
|
}, jt = function(e, t) {
|
|
1008
|
+
var u, a, h;
|
|
1002
1009
|
const n = e || this.currentNode;
|
|
1003
1010
|
if (!n)
|
|
1004
1011
|
return;
|
|
@@ -1006,13 +1013,16 @@ const ht = function(e, t, n) {
|
|
|
1006
1013
|
if (i.root === !0) {
|
|
1007
1014
|
this.addChild();
|
|
1008
1015
|
return;
|
|
1016
|
+
} else if (((u = i.parent) == null ? void 0 : u.root) === !0 && ((h = (a = i.parent) == null ? void 0 : a.children) == null ? void 0 : h.length) === 1) {
|
|
1017
|
+
this.addChild(C(i.parent.id));
|
|
1018
|
+
return;
|
|
1009
1019
|
}
|
|
1010
1020
|
const o = t || this.generateNewObj();
|
|
1011
1021
|
Le(i, o), L(this.nodeData);
|
|
1012
1022
|
const s = n.parentElement;
|
|
1013
1023
|
console.time("insertSibling_DOM");
|
|
1014
|
-
const { grp: r, top:
|
|
1015
|
-
s.parentNode.parentNode.insertBefore(r, s.parentNode.nextSibling), this.linkDiv(r.offsetParent), t || this.createInputDiv(
|
|
1024
|
+
const { grp: r, top: c } = this.createWrapper(o);
|
|
1025
|
+
s.parentNode.parentNode.insertBefore(r, s.parentNode.nextSibling), this.linkDiv(r.offsetParent), t || this.createInputDiv(c.firstChild), this.selectNode(c.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
|
|
1016
1026
|
name: "insertSibling",
|
|
1017
1027
|
obj: o
|
|
1018
1028
|
});
|
|
@@ -1029,8 +1039,8 @@ const ht = function(e, t, n) {
|
|
|
1029
1039
|
$e(i, o), L(this.nodeData);
|
|
1030
1040
|
const s = n.parentElement;
|
|
1031
1041
|
console.time("insertSibling_DOM");
|
|
1032
|
-
const { grp: r, top:
|
|
1033
|
-
s.parentNode.parentNode.insertBefore(r, s.parentNode), this.linkDiv(r.offsetParent), t || this.createInputDiv(
|
|
1042
|
+
const { grp: r, top: c } = this.createWrapper(o);
|
|
1043
|
+
s.parentNode.parentNode.insertBefore(r, s.parentNode), this.linkDiv(r.offsetParent), t || this.createInputDiv(c.firstChild), this.selectNode(c.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
|
|
1034
1044
|
name: "insertBefore",
|
|
1035
1045
|
obj: o
|
|
1036
1046
|
});
|
|
@@ -1046,19 +1056,19 @@ const ht = function(e, t, n) {
|
|
|
1046
1056
|
Se(i, o), L(this.nodeData);
|
|
1047
1057
|
const s = n.parentElement.parentElement;
|
|
1048
1058
|
console.time("insertParent_DOM");
|
|
1049
|
-
const { grp: r, top:
|
|
1050
|
-
|
|
1059
|
+
const { grp: r, top: c } = this.createWrapper(o, !0);
|
|
1060
|
+
c.appendChild(X(!0)), s.insertAdjacentElement("afterend", r);
|
|
1051
1061
|
const l = this.createChildren([s]);
|
|
1052
|
-
|
|
1062
|
+
c.insertAdjacentElement("afterend", l), this.linkDiv(), t || this.createInputDiv(c.firstChild), this.selectNode(c.firstChild, !0), console.timeEnd("insertParent_DOM"), this.bus.fire("operation", {
|
|
1053
1063
|
name: "insertParent",
|
|
1054
1064
|
obj: o
|
|
1055
1065
|
});
|
|
1056
1066
|
}, ve = function(e, t) {
|
|
1057
|
-
var
|
|
1067
|
+
var c, l;
|
|
1058
1068
|
if (!e)
|
|
1059
1069
|
return null;
|
|
1060
1070
|
const n = e.nodeObj;
|
|
1061
|
-
n.expanded === !1 && (this.expandNode(e, !0), e =
|
|
1071
|
+
n.expanded === !1 && (this.expandNode(e, !0), e = C(n.id));
|
|
1062
1072
|
const i = t || this.generateNewObj();
|
|
1063
1073
|
n.children ? n.children.push(i) : n.children = [i], L(this.nodeData);
|
|
1064
1074
|
const o = e.parentElement, { grp: s, top: r } = this.createWrapper(i);
|
|
@@ -1071,7 +1081,7 @@ const ht = function(e, t, n) {
|
|
|
1071
1081
|
}
|
|
1072
1082
|
this.linkDiv(s.offsetParent);
|
|
1073
1083
|
} else
|
|
1074
|
-
o.tagName === "ME-ROOT" && (be(this.direction, i) === x ? (
|
|
1084
|
+
o.tagName === "ME-ROOT" && (be(this.direction, i) === x ? (c = document.querySelector(".lhs")) == null || c.appendChild(s) : (l = document.querySelector(".rhs")) == null || l.appendChild(s), this.linkDiv());
|
|
1075
1085
|
return { newTop: r, newNodeObj: i };
|
|
1076
1086
|
}, _t = function(e, t) {
|
|
1077
1087
|
console.time("addChild");
|
|
@@ -1117,37 +1127,40 @@ const ht = function(e, t, n) {
|
|
|
1117
1127
|
obj: i
|
|
1118
1128
|
});
|
|
1119
1129
|
}, qt = function(e) {
|
|
1120
|
-
var
|
|
1130
|
+
var c;
|
|
1121
1131
|
const t = e || this.currentNode;
|
|
1122
1132
|
if (!t)
|
|
1123
1133
|
return;
|
|
1124
|
-
console.log("removeNode", t);
|
|
1125
1134
|
const n = t.nodeObj;
|
|
1126
1135
|
if (n.root === !0)
|
|
1127
1136
|
throw new Error("Can not remove root node");
|
|
1128
|
-
const i = n.parent.children, o = i.findIndex((
|
|
1129
|
-
if (
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1137
|
+
const i = n.parent.children, o = i.findIndex((l) => l === n), s = Y(n), r = t.parentNode;
|
|
1138
|
+
if (s === 0) {
|
|
1139
|
+
const l = r.parentNode.parentNode;
|
|
1140
|
+
l.tagName !== "ME-MAIN" && l.previousSibling.children[1].remove();
|
|
1141
|
+
}
|
|
1142
|
+
if (i.length !== 0) {
|
|
1143
|
+
const l = i[o] || i[o - 1];
|
|
1144
|
+
this.selectNode(C(l.id));
|
|
1132
1145
|
} else
|
|
1133
|
-
this.
|
|
1134
|
-
for (const
|
|
1135
|
-
const
|
|
1136
|
-
if (
|
|
1137
|
-
const
|
|
1138
|
-
this.removeLink(
|
|
1146
|
+
this.selectNode(C(n.parent.id));
|
|
1147
|
+
for (const l in this.linkData) {
|
|
1148
|
+
const u = this.linkData[l];
|
|
1149
|
+
if (u.from === n.id || u.to === n.id) {
|
|
1150
|
+
const a = this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[l].id}]`);
|
|
1151
|
+
this.removeLink(a);
|
|
1139
1152
|
}
|
|
1140
1153
|
}
|
|
1141
|
-
|
|
1154
|
+
r.parentNode.remove(), this.linkDiv(), this.bus.fire("operation", {
|
|
1142
1155
|
name: "removeNode",
|
|
1143
1156
|
obj: n,
|
|
1144
|
-
|
|
1145
|
-
originParentId: (
|
|
1157
|
+
originIndex: o,
|
|
1158
|
+
originParentId: (c = n == null ? void 0 : n.parent) == null ? void 0 : c.id
|
|
1146
1159
|
});
|
|
1147
1160
|
}, Rt = function(e, t) {
|
|
1148
|
-
var
|
|
1149
|
-
const n = e.nodeObj, i = t.nodeObj, o = (
|
|
1150
|
-
if (i.expanded === !1 && (this.expandNode(t, !0), e =
|
|
1161
|
+
var c;
|
|
1162
|
+
const n = e.nodeObj, i = t.nodeObj, o = (c = n == null ? void 0 : n.parent) == null ? void 0 : c.id;
|
|
1163
|
+
if (i.expanded === !1 && (this.expandNode(t, !0), e = C(n.id), t = C(i.id)), !xe(n, i)) {
|
|
1151
1164
|
console.warn("Invalid move");
|
|
1152
1165
|
return;
|
|
1153
1166
|
}
|
|
@@ -1250,35 +1263,35 @@ const ht = function(e, t, n) {
|
|
|
1250
1263
|
const o = this.map.getBoundingClientRect();
|
|
1251
1264
|
if (!e || !t)
|
|
1252
1265
|
return;
|
|
1253
|
-
const s = e.getBoundingClientRect(), r = t.getBoundingClientRect(),
|
|
1266
|
+
const s = e.getBoundingClientRect(), r = t.getBoundingClientRect(), c = (s.x + s.width / 2 - o.x) / this.scaleVal, l = (s.y + s.height / 2 - o.y) / this.scaleVal, u = (r.x + r.width / 2 - o.x) / this.scaleVal, a = (r.y + r.height / 2 - o.y) / this.scaleVal;
|
|
1254
1267
|
let h, d, p, g;
|
|
1255
|
-
n && i ? (h =
|
|
1268
|
+
n && i ? (h = c + i.delta1.x, d = l + i.delta1.y, p = u + i.delta2.x, g = a + i.delta2.y) : (l + a) / 2 - l <= s.height / 2 ? (h = (s.x + s.width - o.x) / this.scaleVal + 100, d = l, p = (r.x + r.width - o.x) / this.scaleVal + 100, g = a) : (h = (c + u) / 2, d = (l + a) / 2, p = (c + u) / 2, g = (l + a) / 2);
|
|
1256
1269
|
const f = {
|
|
1257
|
-
cx:
|
|
1270
|
+
cx: c,
|
|
1258
1271
|
cy: l,
|
|
1259
1272
|
w: s.width,
|
|
1260
1273
|
h: s.height
|
|
1261
1274
|
}, m = {
|
|
1262
1275
|
cx: u,
|
|
1263
|
-
cy:
|
|
1276
|
+
cy: a,
|
|
1264
1277
|
w: r.width,
|
|
1265
1278
|
h: r.height
|
|
1266
|
-
}, b = U(f, h, d), v = b.x, y = b.y, N = G(m, p, g),
|
|
1279
|
+
}, b = U(f, h, d), v = b.x, y = b.y, N = G(m, p, g), E = N.x, H = N.y, z = he(p, g, E, H), S = {
|
|
1267
1280
|
id: "",
|
|
1268
1281
|
label: "",
|
|
1269
1282
|
from: e.nodeObj.id,
|
|
1270
1283
|
to: t.nodeObj.id,
|
|
1271
1284
|
delta1: {
|
|
1272
|
-
x: h -
|
|
1285
|
+
x: h - c,
|
|
1273
1286
|
y: d - l
|
|
1274
1287
|
},
|
|
1275
1288
|
delta2: {
|
|
1276
1289
|
x: p - u,
|
|
1277
|
-
y: g -
|
|
1290
|
+
y: g - a
|
|
1278
1291
|
}
|
|
1279
1292
|
}, V = Xe(
|
|
1280
|
-
`M ${v} ${y} C ${h} ${d} ${p} ${g} ${
|
|
1281
|
-
`M ${z.x1} ${z.y1} L ${
|
|
1293
|
+
`M ${v} ${y} C ${h} ${d} ${p} ${g} ${E} ${H}`,
|
|
1294
|
+
`M ${z.x1} ${z.y1} L ${E} ${H} L ${z.x2} ${z.y2}`
|
|
1282
1295
|
);
|
|
1283
1296
|
n && i ? (S.id = i.id, this.linkData[i.id] = S) : (S.id = I(), this.linkData[S.id] = S, this.currentLink = V), V.linkObj = S, V.dataset.linkid = S.id, this.linkSvgGroup.appendChild(V), n || this.showLinkController(h, d, p, g, S, f, m);
|
|
1284
1297
|
}, Kt = function(e) {
|
|
@@ -1293,26 +1306,26 @@ const ht = function(e, t, n) {
|
|
|
1293
1306
|
const t = e.linkObj;
|
|
1294
1307
|
if (!t)
|
|
1295
1308
|
return;
|
|
1296
|
-
const n = t.from, i = t.to, o = this.map.getBoundingClientRect(), s =
|
|
1297
|
-
cx:
|
|
1309
|
+
const n = t.from, i = t.to, o = this.map.getBoundingClientRect(), s = C(n).getBoundingClientRect(), r = C(i).getBoundingClientRect(), c = (s.x + s.width / 2 - o.x) / this.scaleVal, l = (s.y + s.height / 2 - o.y) / this.scaleVal, u = (r.x + r.width / 2 - o.x) / this.scaleVal, a = (r.y + r.height / 2 - o.y) / this.scaleVal, h = {
|
|
1310
|
+
cx: c,
|
|
1298
1311
|
cy: l,
|
|
1299
1312
|
w: s.width,
|
|
1300
1313
|
h: s.height
|
|
1301
1314
|
}, d = {
|
|
1302
1315
|
cx: u,
|
|
1303
|
-
cy:
|
|
1316
|
+
cy: a,
|
|
1304
1317
|
w: r.width,
|
|
1305
1318
|
h: r.height
|
|
1306
|
-
}, p =
|
|
1319
|
+
}, p = c + t.delta1.x, g = l + t.delta1.y, f = u + t.delta2.x, m = a + t.delta2.y;
|
|
1307
1320
|
this.showLinkController(p, g, f, m, t, h, d);
|
|
1308
1321
|
}, Qt = function() {
|
|
1309
1322
|
this.linkController.style.display = "none", this.P2.style.display = "none", this.P3.style.display = "none";
|
|
1310
1323
|
}, Zt = function(e, t, n, i, o, s, r) {
|
|
1311
1324
|
this.linkController.style.display = "initial", this.P2.style.display = "initial", this.P3.style.display = "initial";
|
|
1312
|
-
const
|
|
1313
|
-
let l =
|
|
1314
|
-
const
|
|
1315
|
-
let h =
|
|
1325
|
+
const c = U(s, e, t);
|
|
1326
|
+
let l = c.x, u = c.y;
|
|
1327
|
+
const a = G(r, n, i);
|
|
1328
|
+
let h = a.x, d = a.y;
|
|
1316
1329
|
this.P2.style.cssText = `top:${t}px;left:${e}px;`, this.P3.style.cssText = `top:${i}px;left:${n}px;`, this.line1.setAttribute("x1", l), this.line1.setAttribute("y1", u), this.line1.setAttribute("x2", e), this.line1.setAttribute("y2", t), this.line2.setAttribute("x1", n), this.line2.setAttribute("y1", i), this.line2.setAttribute("x2", h), this.line2.setAttribute("y2", d), this.helper1 && (this.helper1.destory(this.map), this.helper2.destory(this.map)), this.helper1 = se.create(this.P2), this.helper2 = se.create(this.P3), this.helper1.init(this.map, (p, g) => {
|
|
1317
1330
|
var m;
|
|
1318
1331
|
e = e - p / this.scaleVal, t = t - g / this.scaleVal;
|
|
@@ -1355,7 +1368,7 @@ const nn = {
|
|
|
1355
1368
|
createParent: ze,
|
|
1356
1369
|
createChildren: Ve,
|
|
1357
1370
|
createTopic: Fe,
|
|
1358
|
-
findEle:
|
|
1371
|
+
findEle: C,
|
|
1359
1372
|
changeTheme: dt,
|
|
1360
1373
|
...At,
|
|
1361
1374
|
...Ne,
|
|
@@ -1374,10 +1387,10 @@ function $({
|
|
|
1374
1387
|
editable: o,
|
|
1375
1388
|
contextMenu: s,
|
|
1376
1389
|
contextMenuOption: r,
|
|
1377
|
-
toolBar:
|
|
1390
|
+
toolBar: c,
|
|
1378
1391
|
keypress: l,
|
|
1379
1392
|
before: u,
|
|
1380
|
-
newTopicName:
|
|
1393
|
+
newTopicName: a,
|
|
1381
1394
|
allowUndo: h,
|
|
1382
1395
|
mainLinkStyle: d,
|
|
1383
1396
|
subLinkStyle: p,
|
|
@@ -1390,7 +1403,7 @@ function $({
|
|
|
1390
1403
|
const v = Object.prototype.toString.call(e);
|
|
1391
1404
|
if (v === "[object HTMLDivElement]" ? b = e : v === "[object String]" && (b = document.querySelector(e)), !b)
|
|
1392
1405
|
throw new Error("MindElixir: el is not a valid element");
|
|
1393
|
-
b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", M + "px"), this.mindElixirBox = b, this.before = u || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar =
|
|
1406
|
+
b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", M + "px"), this.mindElixirBox = b, this.before = u || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = i === void 0 ? !0 : i, this.newTopicName = a || "new node", this.editable = o === void 0 ? !0 : o, this.allowUndo = h === void 0 ? !1 : h, this.currentNode = null, this.currentLink = null, this.inputDiv = null, this.scaleVal = 1, this.tempDirection = null, this.mainLinkStyle = d || 0, this.subLinkStyle = p || 0, this.overflowHidden = g || !1, this.bus = De.create(), this.container = B.createElement("div"), this.container.className = "map-container";
|
|
1394
1407
|
const y = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1395
1408
|
this.theme = m || (y.matches ? ce : le);
|
|
1396
1409
|
const N = B.createElement("div");
|
|
@@ -1402,8 +1415,8 @@ $.RIGHT = P;
|
|
|
1402
1415
|
$.SIDE = _;
|
|
1403
1416
|
$.THEME = le;
|
|
1404
1417
|
$.DARK_THEME = ce;
|
|
1405
|
-
$.version = "3.0.
|
|
1406
|
-
$.E =
|
|
1418
|
+
$.version = "3.0.4";
|
|
1419
|
+
$.E = C;
|
|
1407
1420
|
$.new = (e) => ({
|
|
1408
1421
|
nodeData: {
|
|
1409
1422
|
id: I(),
|