@toolmain/components 1.2.24 → 1.2.25
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/index.js +390 -388
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ep-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-delete{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-info-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296c-44.096 0-108.992 44.736-148.48 101.504c0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04c67.84 0 107.904-43.648 147.456-100.416z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-loading{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-search{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m795.904 750.72l124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ic-baseline-content-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ic-outline-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}[i-ep-info-filled~="default:"]:default{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296c-44.096 0-108.992 44.736-148.48 101.504c0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04c67.84 0 107.904-43.648 147.456-100.416z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}[line-clamp~="1"]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}.z-100{z-index:100}.grid{display:grid}[rows~="4"]{grid-template-rows:repeat(4,minmax(0,1fr))}.mt-20px{margin-top:20px}.contents{display:contents}.hidden{display:none}.h-100\\%,.h-full{height:100%}.max-h-500px{max-height:500px}.w-100\\%,.w100\\%{width:100%}.w-50\\%{width:50%}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.resize,[resize=""]{resize:both}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10px,.gap10px{gap:10px}.gap-1rem{gap:1rem}.gap-5px,.gap5px{gap:5px}.gap3px{gap:3px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.border,[border=""]{border-width:1px}.hover\\:border-color-\\#1c8bd4:hover{--un-border-opacity:1;border-color:rgb(28 139 212 / var(--un-border-opacity))}.hover\\:border-dashed:hover{border-style:dashed}.hover\\:bg-gray-500:hover{--un-bg-opacity:1;background-color:rgb(107 114 128 / var(--un-bg-opacity))}[stroke-width~="18"]{stroke-width:18px}[stroke-width~="27"]{stroke-width:27px}.p-\\[var\\(--dialog-scroll-view-padding\\)\\]{padding:var(--dialog-scroll-view-padding)}.p0\\!{padding:0!important}.px,[px=""]{padding-left:1rem;padding-right:1rem}.px-10px{padding-left:10px;padding-right:10px}.px-20px{padding-left:20px;padding-right:20px}.py-10px{padding-top:10px;padding-bottom:10px}.text-12px{font-size:12px}.text-16px{font-size:16px}.text-30px{font-size:30px}.c-\\#000{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-\\#fff{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.c-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.hover\\:c-\\#1c8bd4:hover{--un-text-opacity:1;color:rgb(28 139 212 / var(--un-text-opacity))}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[duration~="20"]{transition-duration:20ms}.comp-affix .comp-affix-inner[data-v-083f3b76]{transition:box-shadow .3s;border-radius:1rem}.comp-affix .comp-affix-inner.fix[data-v-083f3b76]{position:fixed;box-shadow:var(--el-box-shadow);background-color:var(--el-card-bg-color)}.p-t[data-v-a741011d],.p-r[data-v-a741011d],.p-b[data-v-a741011d],.p-l[data-v-a741011d],.p-lt[data-v-a741011d],.p-rt[data-v-a741011d],.p-lb[data-v-a741011d],.p-rb[data-v-a741011d]{z-index:var(--v4f09a435);position:absolute}.p-b[data-v-a741011d],.p-t[data-v-a741011d],.p-r[data-v-a741011d],.p-l[data-v-a741011d]{background-color:transparent;border-radius:4px}.p-b[data-v-a741011d],.p-t[data-v-a741011d]{height:4px;left:4px;right:4px}.p-r[data-v-a741011d],.p-l[data-v-a741011d]{width:4px;top:4px;bottom:4px}.p-lt[data-v-a741011d],.p-rt[data-v-a741011d],.p-lb[data-v-a741011d],.p-rb[data-v-a741011d]{width:0;height:0}.p-b[data-v-a741011d]{bottom:0;cursor:ns-resize}.p-t[data-v-a741011d]{top:0;cursor:ns-resize}.p-r[data-v-a741011d]{right:0;cursor:ew-resize}.p-l[data-v-a741011d]{left:0;cursor:ew-resize}.p-lt[data-v-a741011d]{left:0;top:0;cursor:nwse-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-rt[data-v-a741011d]{right:0;top:0;cursor:nesw-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-lb[data-v-a741011d]{left:0;bottom:0;cursor:nesw-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-rb[data-v-a741011d]{right:0;bottom:0;cursor:nwse-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.dragContainer[data-v-bfb069f0]{display:flex;flex-direction:column;transform-origin:0 0}.dragContainer>.dragHeader[data-v-bfb069f0]{flex-shrink:0;display:flex}.dragContainer>.scaleContent[data-v-bfb069f0]{flex:1;overflow:hidden;position:relative;display:flex}.dragMask[data-v-bfb069f0]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}[data-v-73acf5a1] .el-input-number,[data-v-c08698cc] .el-input-number{width:100%}.wrap[data-v-3be83448]{background-size:100% 100%;background-repeat:no-repeat}[data-v-3be83448] .el-progress-bar__innerText{height:100%}[data-v-3be83448] .el-progress-bar__outer{border:solid 2px #fff}.close[data-v-95fc889d]{position:absolute;right:0;top:0;border-top-right-radius:8px;background:red;width:20px;height:20px;border-bottom-left-radius:8px}.tipWrap[data-v-95fc889d]{color:#fff;position:absolute;right:10px;top:10px;width:330px;padding:3px 6px;border-radius:8px;box-sizing:border-box;border:1px solid #707070;position:fixed;background-color:#0000001f;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow-wrap:break-word;overflow:hidden;z-index:101}.tipWrap .oneline[data-v-95fc889d]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-95fc889d] .el-progress-bar__innerText{height:100%}[data-v-95fc889d] .el-progress-bar__outer{border:solid 2px #fff}.name[data-v-29cba2b4]{background:linear-gradient(313deg,#3525d6,#5072ff);box-shadow:0 .25rem 1.25rem #0000001c,0 .25rem 1.25rem #3930dc4d;border-radius:1.5rem;filter:blur(0px);padding:10px 20px}.threeWrap[data-v-dad10b5b]{position:relative;flex:1;flex-shrink:0;width:100%;height:100%}.dialog-panel[data-v-8cd5dd50]{--dialog-padding: 1rem;--dialog-scroll-view-padding: 10px;--el-card-padding: var(--dialog-padding);flex:1;display:flex;flex-direction:column;overflow:hidden}.spin-element[data-v-677c9a47]{--load-visible-color: transparent;animation:spin-677c9a47 2s linear infinite;transform-origin:center;transition:color .25s;color:var(--load-visible-color)}.spin-element.show[data-v-677c9a47]{--load-visible-color: var(--el-color-primary)}@keyframes spin-677c9a47{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.components-wrapper[data-v-6f102d2b]{cursor:pointer;display:grid;grid-template-columns:repeat(var(--v5a0a7f12),1fr);gap:5px}.components-wrapper .el-card[data-v-6f102d2b]{--el-card-padding: 5px}.resize-handler[data-v-2d27d0cf]{--resize-bg: transparent;--resize-hover-bg: var(--el-color-primary);--resize-active-bg: var(--el-color-primary);position:absolute;display:flex;align-items:center;justify-content:center}.resize-handler[data-v-2d27d0cf]:before{content:"";position:absolute;width:var(--v00fae9cf);height:var(--v0493563e);left:var(--v5ae84abe);top:var(--v6dc028c4);bottom:var(--v0a2f417c);right:var(--v00b47e25);background-color:var(--resize-bg)}.resize-handler[data-v-2d27d0cf]:hover:before{background-color:var(--resize-hover-bg)}.resize-handler[data-v-2d27d0cf]:active:before{background-color:var(--resize-active-bg)}`)),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { shallowRef as qe, reactive as je, onBeforeUnmount as Dt, defineComponent as we, useTemplateRef as Et, onMounted as Xe, createElementBlock as P, openBlock as T, normalizeStyle as kt, normalizeClass as Bn, unref as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ep-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-delete{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-info-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296c-44.096 0-108.992 44.736-148.48 101.504c0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04c67.84 0 107.904-43.648 147.456-100.416z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-loading{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ep-search{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m795.904 750.72l124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ic-baseline-content-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.i-ic-outline-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}[i-ep-info-filled~="default:"]:default{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296c-44.096 0-108.992 44.736-148.48 101.504c0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04c67.84 0 107.904-43.648 147.456-100.416z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;width:1em;height:1em}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}[line-clamp~="1"]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}.z-100{z-index:100}.grid{display:grid}[rows~="4"]{grid-template-rows:repeat(4,minmax(0,1fr))}.mt-20px{margin-top:20px}.contents{display:contents}.hidden{display:none}.h-100\\%,.h-full{height:100%}.max-h-500px{max-height:500px}.w-100\\%,.w100\\%{width:100%}.w-50\\%{width:50%}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.resize,[resize=""]{resize:both}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10px,.gap10px{gap:10px}.gap-1rem{gap:1rem}.gap-5px,.gap5px{gap:5px}.gap3px{gap:3px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.border,[border=""]{border-width:1px}.hover\\:border-color-\\#1c8bd4:hover{--un-border-opacity:1;border-color:rgb(28 139 212 / var(--un-border-opacity))}.hover\\:border-dashed:hover{border-style:dashed}.hover\\:bg-gray-500:hover{--un-bg-opacity:1;background-color:rgb(107 114 128 / var(--un-bg-opacity))}[stroke-width~="18"]{stroke-width:18px}[stroke-width~="27"]{stroke-width:27px}.p-\\[var\\(--dialog-scroll-view-padding\\)\\]{padding:var(--dialog-scroll-view-padding)}.p0\\!{padding:0!important}.px,[px=""]{padding-left:1rem;padding-right:1rem}.px-10px{padding-left:10px;padding-right:10px}.px-20px{padding-left:20px;padding-right:20px}.py-10px{padding-top:10px;padding-bottom:10px}.text-12px{font-size:12px}.text-16px{font-size:16px}.text-30px{font-size:30px}.c-\\#000{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-\\#fff{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.c-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.hover\\:c-\\#1c8bd4:hover{--un-text-opacity:1;color:rgb(28 139 212 / var(--un-text-opacity))}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[duration~="20"]{transition-duration:20ms}.comp-affix[data-v-1ad5a343]{--affix-fix-shadow: var(--el-box-shadow);--affix-fix-bg-color: var(--el-card-bg-color)}.comp-affix .comp-affix-inner[data-v-1ad5a343]{transition:box-shadow .3s;border-radius:1rem}.comp-affix .comp-affix-inner.fix[data-v-1ad5a343]{position:fixed;box-shadow:var(--affix-shadow);background-color:var(--affix-fix-bg-color)}.p-t[data-v-a741011d],.p-r[data-v-a741011d],.p-b[data-v-a741011d],.p-l[data-v-a741011d],.p-lt[data-v-a741011d],.p-rt[data-v-a741011d],.p-lb[data-v-a741011d],.p-rb[data-v-a741011d]{z-index:var(--v4f09a435);position:absolute}.p-b[data-v-a741011d],.p-t[data-v-a741011d],.p-r[data-v-a741011d],.p-l[data-v-a741011d]{background-color:transparent;border-radius:4px}.p-b[data-v-a741011d],.p-t[data-v-a741011d]{height:4px;left:4px;right:4px}.p-r[data-v-a741011d],.p-l[data-v-a741011d]{width:4px;top:4px;bottom:4px}.p-lt[data-v-a741011d],.p-rt[data-v-a741011d],.p-lb[data-v-a741011d],.p-rb[data-v-a741011d]{width:0;height:0}.p-b[data-v-a741011d]{bottom:0;cursor:ns-resize}.p-t[data-v-a741011d]{top:0;cursor:ns-resize}.p-r[data-v-a741011d]{right:0;cursor:ew-resize}.p-l[data-v-a741011d]{left:0;cursor:ew-resize}.p-lt[data-v-a741011d]{left:0;top:0;cursor:nwse-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-rt[data-v-a741011d]{right:0;top:0;cursor:nesw-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-lb[data-v-a741011d]{left:0;bottom:0;cursor:nesw-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.p-rb[data-v-a741011d]{right:0;bottom:0;cursor:nwse-resize;border-top:.4rem solid transparent;border-left:.4rem solid transparent;border-right:.4rem solid transparent;border-bottom:.4rem solid transparent}.dragContainer[data-v-bfb069f0]{display:flex;flex-direction:column;transform-origin:0 0}.dragContainer>.dragHeader[data-v-bfb069f0]{flex-shrink:0;display:flex}.dragContainer>.scaleContent[data-v-bfb069f0]{flex:1;overflow:hidden;position:relative;display:flex}.dragMask[data-v-bfb069f0]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}[data-v-73acf5a1] .el-input-number,[data-v-c08698cc] .el-input-number{width:100%}.wrap[data-v-3be83448]{background-size:100% 100%;background-repeat:no-repeat}[data-v-3be83448] .el-progress-bar__innerText{height:100%}[data-v-3be83448] .el-progress-bar__outer{border:solid 2px #fff}.close[data-v-95fc889d]{position:absolute;right:0;top:0;border-top-right-radius:8px;background:red;width:20px;height:20px;border-bottom-left-radius:8px}.tipWrap[data-v-95fc889d]{color:#fff;position:absolute;right:10px;top:10px;width:330px;padding:3px 6px;border-radius:8px;box-sizing:border-box;border:1px solid #707070;position:fixed;background-color:#0000001f;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow-wrap:break-word;overflow:hidden;z-index:101}.tipWrap .oneline[data-v-95fc889d]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-95fc889d] .el-progress-bar__innerText{height:100%}[data-v-95fc889d] .el-progress-bar__outer{border:solid 2px #fff}.name[data-v-29cba2b4]{background:linear-gradient(313deg,#3525d6,#5072ff);box-shadow:0 .25rem 1.25rem #0000001c,0 .25rem 1.25rem #3930dc4d;border-radius:1.5rem;filter:blur(0px);padding:10px 20px}.threeWrap[data-v-dad10b5b]{position:relative;flex:1;flex-shrink:0;width:100%;height:100%}.dialog-panel[data-v-8cd5dd50]{--dialog-padding: 1rem;--dialog-scroll-view-padding: 10px;--el-card-padding: var(--dialog-padding);flex:1;display:flex;flex-direction:column;overflow:hidden}.spin-element[data-v-677c9a47]{--load-visible-color: transparent;animation:spin-677c9a47 2s linear infinite;transform-origin:center;transition:color .25s;color:var(--load-visible-color)}.spin-element.show[data-v-677c9a47]{--load-visible-color: var(--el-color-primary)}@keyframes spin-677c9a47{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.components-wrapper[data-v-6f102d2b]{cursor:pointer;display:grid;grid-template-columns:repeat(var(--v5a0a7f12),1fr);gap:5px}.components-wrapper .el-card[data-v-6f102d2b]{--el-card-padding: 5px}.resize-handler[data-v-2d27d0cf]{--resize-bg: transparent;--resize-hover-bg: var(--el-color-primary);--resize-active-bg: var(--el-color-primary);position:absolute;display:flex;align-items:center;justify-content:center}.resize-handler[data-v-2d27d0cf]:before{content:"";position:absolute;width:var(--v00fae9cf);height:var(--v0493563e);left:var(--v5ae84abe);top:var(--v6dc028c4);bottom:var(--v0a2f417c);right:var(--v00b47e25);background-color:var(--resize-bg)}.resize-handler[data-v-2d27d0cf]:hover:before{background-color:var(--resize-hover-bg)}.resize-handler[data-v-2d27d0cf]:active:before{background-color:var(--resize-active-bg)}`)),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { shallowRef as qe, reactive as je, onBeforeUnmount as Dt, defineComponent as we, useTemplateRef as Et, onMounted as Xe, createElementBlock as P, openBlock as T, normalizeStyle as kt, normalizeClass as Bn, unref as y, createElementVNode as E, renderSlot as gt, useCssVars as Mo, computed as Q, createCommentVNode as rt, Fragment as it, renderList as Qe, withDirectives as jn, vShow as Fn, ref as Ve, toValue as un, watch as $e, toRef as In, createBlock as de, Teleport as Sr, withCtx as x, createVNode as v, Transition as Er, resolveDynamicComponent as bn, cloneVNode as Tr, h as k, isVNode as Rs, render as Lr, mergeProps as Xn, resolveComponent as ks, createTextVNode as Se, toDisplayString as Pe, shallowReactive as Bo, toRaw as Po, withModifiers as jo, toHandlers as Ns, isRef as dn, watchEffect as Cr, markRaw as H, createSlots as Ao, normalizeProps as Mr, guardReactiveProps as Pr, effectScope as Ar, isReactive as Ir } from "vue";
|
|
3
3
|
import { px as fe, useEvent as ft, z as Or, getStyleValue as pn, isBoolean as Fo, isNumber as St, toNumber as re, useFlip as Rr, merge as kr, isUndefined as at, resolvePath as Uo, useDialog as Nr, msg as Dr, uniqueId as vn, isString as fn, useCopy as Vr, cloneDeep as Tt } from "@toolmain/shared";
|
|
4
4
|
import { useElementBounding as Gn, useIntersectionObserver as Ho, useThrottleFn as Ds, useDebounceFn as Vs } from "@vueuse/core";
|
|
5
5
|
import { RouterView as zr } from "vue-router";
|
|
@@ -40,22 +40,22 @@ function Ta(a, e) {
|
|
|
40
40
|
directions: []
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
function d(g,
|
|
43
|
+
function d(g, b) {
|
|
44
44
|
const { boundingClientRect: w, intersectionRect: S, rootBounds: L } = g;
|
|
45
45
|
if (!L) {
|
|
46
46
|
console.warn("[getIntersectDirection] no root bounds", g);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
g.isIntersecting && (
|
|
49
|
+
g.isIntersecting && (b.length = 0, S.y - w.y > 2 && b.push(
|
|
50
50
|
"top"
|
|
51
51
|
/* Top */
|
|
52
|
-
), w.y - S.y > 2 &&
|
|
52
|
+
), w.y - S.y > 2 && b.push(
|
|
53
53
|
"bottom"
|
|
54
54
|
/* Bottom */
|
|
55
|
-
), S.x - w.x > 2 &&
|
|
55
|
+
), S.x - w.x > 2 && b.push(
|
|
56
56
|
"left"
|
|
57
57
|
/* Left */
|
|
58
|
-
), w.x + w.width - (S.x + S.width) > 2 &&
|
|
58
|
+
), w.x + w.width - (S.x + S.width) > 2 && b.push(
|
|
59
59
|
"right"
|
|
60
60
|
/* Right */
|
|
61
61
|
));
|
|
@@ -63,8 +63,9 @@ function Ta(a, e) {
|
|
|
63
63
|
const f = Ho(
|
|
64
64
|
a,
|
|
65
65
|
(g) => {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
g.forEach((b) => {
|
|
67
|
+
p.affix.isIntersecting = b.isIntersecting, d(b, p.affix.directions), p.affix.intersectionRatio = b.intersectionRatio, u.value?.();
|
|
68
|
+
});
|
|
68
69
|
},
|
|
69
70
|
{
|
|
70
71
|
root: window.document.documentElement,
|
|
@@ -73,8 +74,9 @@ function Ta(a, e) {
|
|
|
73
74
|
), m = Ho(
|
|
74
75
|
e,
|
|
75
76
|
(g) => {
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
g.forEach((b) => {
|
|
78
|
+
p.target.isIntersecting = b.isIntersecting, d(b, p.target.directions), p.target.intersectionRatio = b.intersectionRatio, u.value?.();
|
|
79
|
+
});
|
|
78
80
|
},
|
|
79
81
|
{
|
|
80
82
|
root: window.document.documentElement,
|
|
@@ -104,7 +106,7 @@ const La = /* @__PURE__ */ we({
|
|
|
104
106
|
offset: { default: 0 }
|
|
105
107
|
},
|
|
106
108
|
setup(a, { expose: e }) {
|
|
107
|
-
const t = Et("affix"), n = Et("affixInner"), o = qe(null), s = qe(), { width: r, height: l } = Gn(s), { affixX: c, affixY: u, onUpdate: p, affixHeight: d, event: f, updateAffixBounding: m } = Ta(t, o), h = qe({}), g = qe({}),
|
|
109
|
+
const t = Et("affix"), n = Et("affixInner"), o = qe(null), s = qe(), { width: r, height: l } = Gn(s), { affixX: c, affixY: u, onUpdate: p, affixHeight: d, event: f, updateAffixBounding: m } = Ta(t, o), h = qe({}), g = qe({}), b = () => {
|
|
108
110
|
if (o.value) {
|
|
109
111
|
if (f.target.isIntersecting && (!f.affix.isIntersecting || f.affix.intersectionRatio < 0.5))
|
|
110
112
|
return !0;
|
|
@@ -114,7 +116,7 @@ const La = /* @__PURE__ */ we({
|
|
|
114
116
|
}, w = () => {
|
|
115
117
|
if (m(), f.affix.needFloat = !1, f.affix.directions.includes(It.Left) || f.affix.directions.includes(It.Right) || f.target.directions.includes(It.Left) || f.target.directions.includes(It.Right))
|
|
116
118
|
f.affix.needFloat = !1;
|
|
117
|
-
else if (
|
|
119
|
+
else if (b()) {
|
|
118
120
|
const R = u.value + d.value / 2 <= window.innerHeight / 2;
|
|
119
121
|
f.affix.needFloat = a.position === It.Top ? R : !R;
|
|
120
122
|
}
|
|
@@ -137,10 +139,10 @@ const La = /* @__PURE__ */ we({
|
|
|
137
139
|
window.removeEventListener("resize", L);
|
|
138
140
|
}), e({
|
|
139
141
|
update: () => {
|
|
140
|
-
|
|
142
|
+
b() && w();
|
|
141
143
|
}
|
|
142
144
|
}), (R, V) => (T(), P("div", {
|
|
143
|
-
class: Bn(["comp-affix", { fix:
|
|
145
|
+
class: Bn(["comp-affix", { fix: y(f).affix.needFloat }]),
|
|
144
146
|
style: kt(g.value),
|
|
145
147
|
ref: "affix"
|
|
146
148
|
}, [
|
|
@@ -148,7 +150,7 @@ const La = /* @__PURE__ */ we({
|
|
|
148
150
|
ref_key: "affixInner",
|
|
149
151
|
ref: n,
|
|
150
152
|
style: kt([h.value, g.value]),
|
|
151
|
-
class: Bn(["comp-affix-inner", { fix:
|
|
153
|
+
class: Bn(["comp-affix-inner", { fix: y(f).affix.needFloat }])
|
|
152
154
|
}, [
|
|
153
155
|
gt(R.$slots, "default", {}, void 0, !0)
|
|
154
156
|
], 6)
|
|
@@ -159,7 +161,7 @@ const La = /* @__PURE__ */ we({
|
|
|
159
161
|
for (const [n, o] of e)
|
|
160
162
|
t[n] = o;
|
|
161
163
|
return t;
|
|
162
|
-
}, P0 = /* @__PURE__ */ Ge(La, [["__scopeId", "data-v-
|
|
164
|
+
}, P0 = /* @__PURE__ */ Ge(La, [["__scopeId", "data-v-1ad5a343"]]);
|
|
163
165
|
function Ko() {
|
|
164
166
|
return {
|
|
165
167
|
x: 0,
|
|
@@ -256,11 +258,11 @@ function Ma() {
|
|
|
256
258
|
let e = !1;
|
|
257
259
|
const t = {
|
|
258
260
|
direction: "any"
|
|
259
|
-
}, n = Ca(), o = (
|
|
260
|
-
t.direction === "horizontal" ? (
|
|
261
|
+
}, n = Ca(), o = (b) => {
|
|
262
|
+
t.direction === "horizontal" ? (b.clientY = 0, b.y = 0) : t.direction === "vertical" && (b.clientX = 0, b.x = 0);
|
|
261
263
|
};
|
|
262
|
-
function s(
|
|
263
|
-
e = !1, n.setTarget(
|
|
264
|
+
function s(b) {
|
|
265
|
+
e = !1, n.setTarget(b), n.on("beforemove", (w) => {
|
|
264
266
|
o(w), e = !1, l("beforemove", w);
|
|
265
267
|
}), n.on("moving", (w) => {
|
|
266
268
|
o(w), e = !0, l("moving", w);
|
|
@@ -271,23 +273,23 @@ function Ma() {
|
|
|
271
273
|
function r() {
|
|
272
274
|
return n.ele;
|
|
273
275
|
}
|
|
274
|
-
function l(
|
|
275
|
-
a.emit(
|
|
276
|
+
function l(b, w) {
|
|
277
|
+
a.emit(b, w);
|
|
276
278
|
}
|
|
277
|
-
function c(
|
|
278
|
-
t.direction =
|
|
279
|
+
function c(b) {
|
|
280
|
+
t.direction = b;
|
|
279
281
|
}
|
|
280
|
-
function u(
|
|
281
|
-
a.on(
|
|
282
|
+
function u(b, w) {
|
|
283
|
+
a.on(b, w);
|
|
282
284
|
}
|
|
283
|
-
function p(
|
|
284
|
-
a.once(
|
|
285
|
+
function p(b, w) {
|
|
286
|
+
a.once(b, w);
|
|
285
287
|
}
|
|
286
|
-
function d(
|
|
287
|
-
a.removeAllListeners(
|
|
288
|
+
function d(b, w) {
|
|
289
|
+
a.removeAllListeners(b), a.on(b, w);
|
|
288
290
|
}
|
|
289
|
-
function f(
|
|
290
|
-
|
|
291
|
+
function f(b) {
|
|
292
|
+
b && Object.assign(t, b);
|
|
291
293
|
}
|
|
292
294
|
function m() {
|
|
293
295
|
n.enable();
|
|
@@ -425,9 +427,9 @@ function Oa(a, e, t, n, o, s, r) {
|
|
|
425
427
|
e.value && e.value.setTarget(un(s) ?? r.value ?? null);
|
|
426
428
|
}
|
|
427
429
|
function g() {
|
|
428
|
-
t.value?.setStatus(nr.NORMAL), w(a.value.movable), L(a.value.moveConfig), R(a.value.x, a.value.y), S(a.value.normal), Fo(a.value.visible) ?
|
|
430
|
+
t.value?.setStatus(nr.NORMAL), w(a.value.movable), L(a.value.moveConfig), R(a.value.x, a.value.y), S(a.value.normal), Fo(a.value.visible) ? b(a.value.visible, !1) : t.value?.hideTo("self", !1);
|
|
429
431
|
}
|
|
430
|
-
function
|
|
432
|
+
function b(V, _) {
|
|
431
433
|
if (!Fo(V)) return;
|
|
432
434
|
const M = St(a.value.x) || St(a.value.y);
|
|
433
435
|
V ? t.value?.show(_, M ? { x: a.value.x, y: a.value.y } : "self") : t.value?.hideTo(M ? { x: a.value.x, y: a.value.y } : "self", _);
|
|
@@ -449,7 +451,7 @@ function Oa(a, e, t, n, o, s, r) {
|
|
|
449
451
|
}
|
|
450
452
|
return $e(() => a.value.movable, w), $e(() => a.value.normal, S), $e(() => a.value.moveConfig, L, { deep: !0 }), $e(
|
|
451
453
|
() => a.value.visible,
|
|
452
|
-
(V) =>
|
|
454
|
+
(V) => b(V, !0)
|
|
453
455
|
), $e([() => a.value.x, () => a.value.y], ([V, _]) => R(V, _)), $e(s, () => {
|
|
454
456
|
a.value.normal || h();
|
|
455
457
|
}), {
|
|
@@ -460,7 +462,7 @@ function Oa(a, e, t, n, o, s, r) {
|
|
|
460
462
|
};
|
|
461
463
|
}
|
|
462
464
|
function Jo(a, e) {
|
|
463
|
-
const t =
|
|
465
|
+
const t = y(a);
|
|
464
466
|
return t ? window.getComputedStyle(t).getPropertyValue(e) : pn(e, void 0);
|
|
465
467
|
}
|
|
466
468
|
var nr = /* @__PURE__ */ ((a) => (a.NORMAL = "NORMAL", a.HIDDEN = "HIDDEN", a))(nr || {}), kn = /* @__PURE__ */ ((a) => (a.AFTER_SHOW = "after_show", a.AFTER_HIDE = "after_hide", a.AFTER_STICK = "after_stick", a))(kn || {});
|
|
@@ -480,7 +482,7 @@ const Ra = (a) => {
|
|
|
480
482
|
const { translateX: C, translateY: $ } = e();
|
|
481
483
|
d.transX.old = C, d.transX.final = C, d.transY.old = $, d.transY.final = $;
|
|
482
484
|
}
|
|
483
|
-
const { x: g, y, width: w, left: S } = Gn(a.targetEle);
|
|
485
|
+
const { x: g, y: b, width: w, left: S } = Gn(a.targetEle);
|
|
484
486
|
function L(C, $) {
|
|
485
487
|
const z = {
|
|
486
488
|
width: window.innerWidth,
|
|
@@ -514,7 +516,7 @@ const Ra = (a) => {
|
|
|
514
516
|
const oe = re(ce.width), le = re(ce.height);
|
|
515
517
|
z.w = oe, z.h = le;
|
|
516
518
|
const { translateX: be, translateY: Me } = e();
|
|
517
|
-
if (ce.position === "fixed" ? (ue = re(ce.left), ge = re(ce.top)) : ie ? (ue = re(g.value - be), ge = re(
|
|
519
|
+
if (ce.position === "fixed" ? (ue = re(ce.left), ge = re(ce.top)) : ie ? (ue = re(g.value - be), ge = re(b.value - Me)) : (ue = re(ce.left), ge = re(ce.top)), typeof C == "string")
|
|
518
520
|
switch (C) {
|
|
519
521
|
case "left": {
|
|
520
522
|
z.x = J.x(be, -re(ue), oe, le), z.y = J.y(Me, Me, oe, le);
|
|
@@ -743,7 +745,7 @@ const ka = (a) => {
|
|
|
743
745
|
function g(_) {
|
|
744
746
|
_.preventDefault();
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function b(_) {
|
|
747
749
|
const M = m.top + _.clientY - m.clientY, K = m.left + _.clientX - m.clientX, te = r.startsWith("r") ? _.clientX - m.x : m.width + m.clientX - _.clientX, q = r.endsWith("t") ? m.height + m.clientY - _.clientY : _.clientY - m.y;
|
|
748
750
|
f[r](_, {
|
|
749
751
|
l: K,
|
|
@@ -756,13 +758,13 @@ const ka = (a) => {
|
|
|
756
758
|
);
|
|
757
759
|
}
|
|
758
760
|
function w() {
|
|
759
|
-
document.removeEventListener("mouseup", w), document.removeEventListener("mousemove",
|
|
761
|
+
document.removeEventListener("mouseup", w), document.removeEventListener("mousemove", b), document.removeEventListener("selectstart", g), o.emit(
|
|
760
762
|
"after_scale"
|
|
761
763
|
/* AFTER_SCALE */
|
|
762
764
|
);
|
|
763
765
|
}
|
|
764
766
|
function S(_, M) {
|
|
765
|
-
document.addEventListener("selectstart", g), r = h(M), _.stopPropagation(), _.preventDefault(), d(), m.x = l.value, m.y = c.value, m.clientX = _.clientX, m.clientY = _.clientY, m.left = re(a.config.value.containerStyle?.left), m.top = re(a.config.value.containerStyle?.top) || re(a.targetEle.value?.offsetTop), m.width = u.value, m.height = p.value, document.addEventListener("mousemove",
|
|
767
|
+
document.addEventListener("selectstart", g), r = h(M), _.stopPropagation(), _.preventDefault(), d(), m.x = l.value, m.y = c.value, m.clientX = _.clientX, m.clientY = _.clientY, m.left = re(a.config.value.containerStyle?.left), m.top = re(a.config.value.containerStyle?.top) || re(a.targetEle.value?.offsetTop), m.width = u.value, m.height = p.value, document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
|
|
766
768
|
}
|
|
767
769
|
function L(_, M) {
|
|
768
770
|
o.on(_, M);
|
|
@@ -799,11 +801,11 @@ const ka = (a) => {
|
|
|
799
801
|
translateX: 0,
|
|
800
802
|
translateY: 0,
|
|
801
803
|
scale: [0, 0]
|
|
802
|
-
}), { getScale:
|
|
804
|
+
}), { getScale: b, getTranslate: w, setTranslate: S, setPrevClientPos: L, getPrevClientPos: R, setPrevTranslate: V, getPrevTranslate: _ } = Ro(g), M = ka({
|
|
803
805
|
config: r,
|
|
804
806
|
targetEle: u
|
|
805
807
|
}), K = Q(() => un(o.dragTarget)), te = Q(() => !!r.value.header), q = Q(() => Sn(f.value)), F = Q(() => Sn(m.value)), Ce = Q(() => Sn(d.value)), Ee = Q(() => {
|
|
806
|
-
const { scaleX: C, scaleY: $ } =
|
|
808
|
+
const { scaleX: C, scaleY: $ } = b(), { translateX: z, translateY: J } = w(), ie = h("width") ?? Jo(u, "width"), ce = h("height") ?? Jo(u, "height");
|
|
807
809
|
return {
|
|
808
810
|
transform: `scale(${C},${$}) translate(${fe(z)},${fe(J)})`,
|
|
809
811
|
zIndex: r.value.normal ? void 0 : pn("zIndex", h("zIndex")),
|
|
@@ -897,7 +899,7 @@ const ka = (a) => {
|
|
|
897
899
|
r.value.scalable ? (T(), de(Ia, {
|
|
898
900
|
key: 1,
|
|
899
901
|
config: r.value,
|
|
900
|
-
scale:
|
|
902
|
+
scale: y(M),
|
|
901
903
|
move: p.value
|
|
902
904
|
}, null, 8, ["config", "scale", "move"])) : rt("", !0),
|
|
903
905
|
E("div", {
|
|
@@ -923,7 +925,7 @@ const ka = (a) => {
|
|
|
923
925
|
}), A0 = /* @__PURE__ */ Ge(Na, [["__scopeId", "data-v-bfb069f0"]]), I0 = /* @__PURE__ */ we({
|
|
924
926
|
__name: "index",
|
|
925
927
|
setup(a) {
|
|
926
|
-
return (e, t) => (T(), de(
|
|
928
|
+
return (e, t) => (T(), de(y(zr), null, {
|
|
927
929
|
default: x(({ Component: n }) => [
|
|
928
930
|
v(Er, {
|
|
929
931
|
mode: "out-in",
|
|
@@ -1467,8 +1469,8 @@ class Za extends zs {
|
|
|
1467
1469
|
}), r[L] = R, s[L] = R, o[L] = R;
|
|
1468
1470
|
}
|
|
1469
1471
|
l("camera", e), l("object", void 0), l("enabled", !0), l("axis", null), l("mode", "translate"), l("translationSnap", null), l("rotationSnap", null), l("scaleSnap", null), l("space", "world"), l("size", 1), l("dragging", !1), l("showX", !0), l("showY", !0), l("showZ", !0), l("minX", -1 / 0), l("maxX", 1 / 0), l("minY", -1 / 0), l("maxY", 1 / 0), l("minZ", -1 / 0), l("maxZ", 1 / 0);
|
|
1470
|
-
const c = new j(), u = new j(), p = new xe(), d = new xe(), f = new j(), m = new xe(), h = new j(), g = new j(),
|
|
1471
|
-
l("worldPosition", c), l("worldPositionStart", u), l("worldQuaternion", p), l("worldQuaternionStart", d), l("cameraPosition", f), l("cameraQuaternion", m), l("pointStart", h), l("pointEnd", g), l("rotationAxis",
|
|
1472
|
+
const c = new j(), u = new j(), p = new xe(), d = new xe(), f = new j(), m = new xe(), h = new j(), g = new j(), b = new j(), w = 0, S = new j();
|
|
1473
|
+
l("worldPosition", c), l("worldPositionStart", u), l("worldQuaternion", p), l("worldQuaternionStart", d), l("cameraPosition", f), l("cameraQuaternion", m), l("pointStart", h), l("pointEnd", g), l("rotationAxis", b), l("rotationAngle", w), l("eye", S), this._offset = new j(), this._startNorm = new j(), this._endNorm = new j(), this._cameraScale = new j(), this._parentPosition = new j(), this._parentQuaternion = new xe(), this._parentQuaternionInv = new xe(), this._parentScale = new j(), this._worldScaleStart = new j(), this._worldQuaternionInv = new xe(), this._worldScale = new j(), this._positionStart = new j(), this._quaternionStart = new xe(), this._scaleStart = new j(), this._getPointer = qa.bind(this), this._onPointerDown = ei.bind(this), this._onPointerHover = Qa.bind(this), this._onPointerMove = ti.bind(this), this._onPointerUp = ni.bind(this), t !== null && this.connect(t);
|
|
1472
1474
|
}
|
|
1473
1475
|
connect(e) {
|
|
1474
1476
|
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointermove", this._onPointerHover), this.domElement.addEventListener("pointerup", this._onPointerUp), this.domElement.style.touchAction = "none";
|
|
@@ -1737,8 +1739,8 @@ class si extends dt {
|
|
|
1737
1739
|
};
|
|
1738
1740
|
const g = new Fe(0, 0.04, 0.1, 12);
|
|
1739
1741
|
g.translate(0, 0.05, 0);
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1742
|
+
const b = new ke(0.08, 0.08, 0.08);
|
|
1743
|
+
b.translate(0, 0.04, 0);
|
|
1742
1744
|
const w = new yt();
|
|
1743
1745
|
w.setAttribute("position", new He([0, 0, 0, 1, 0, 0], 3));
|
|
1744
1746
|
const S = new Fe(75e-4, 75e-4, 0.5, 3);
|
|
@@ -1861,19 +1863,19 @@ class si extends dt {
|
|
|
1861
1863
|
]
|
|
1862
1864
|
}, F = {
|
|
1863
1865
|
X: [
|
|
1864
|
-
[new X(
|
|
1866
|
+
[new X(b, s), [0.5, 0, 0], [0, 0, -Math.PI / 2]],
|
|
1865
1867
|
[new X(S, s), [0, 0, 0], [0, 0, -Math.PI / 2]],
|
|
1866
|
-
[new X(
|
|
1868
|
+
[new X(b, s), [-0.5, 0, 0], [0, 0, Math.PI / 2]]
|
|
1867
1869
|
],
|
|
1868
1870
|
Y: [
|
|
1869
|
-
[new X(
|
|
1871
|
+
[new X(b, r), [0, 0.5, 0]],
|
|
1870
1872
|
[new X(S, r)],
|
|
1871
|
-
[new X(
|
|
1873
|
+
[new X(b, r), [0, -0.5, 0], [0, 0, Math.PI]]
|
|
1872
1874
|
],
|
|
1873
1875
|
Z: [
|
|
1874
|
-
[new X(
|
|
1876
|
+
[new X(b, l), [0, 0, 0.5], [Math.PI / 2, 0, 0]],
|
|
1875
1877
|
[new X(S, l), [0, 0, 0], [Math.PI / 2, 0, 0]],
|
|
1876
|
-
[new X(
|
|
1878
|
+
[new X(b, l), [0, 0, -0.5], [-Math.PI / 2, 0, 0]]
|
|
1877
1879
|
],
|
|
1878
1880
|
XY: [
|
|
1879
1881
|
[new X(new ke(0.15, 0.15, 0.01), p), [0.15, 0.15, 0]]
|
|
@@ -2051,8 +2053,8 @@ function li(a, e, t, n, o) {
|
|
|
2051
2053
|
for (let m = 0; m < d; ++m) {
|
|
2052
2054
|
const h = u[m + 1], g = c[d - m];
|
|
2053
2055
|
l[d][m] = h + g;
|
|
2054
|
-
const
|
|
2055
|
-
l[m][d] = f + h *
|
|
2056
|
+
const b = l[m][d - 1] / l[d][m];
|
|
2057
|
+
l[m][d] = f + h * b, f = g * b;
|
|
2056
2058
|
}
|
|
2057
2059
|
l[d][d] = f;
|
|
2058
2060
|
}
|
|
@@ -2065,13 +2067,13 @@ function li(a, e, t, n, o) {
|
|
|
2065
2067
|
h[g] = s.slice(0);
|
|
2066
2068
|
h[0][0] = 1;
|
|
2067
2069
|
for (let g = 1; g <= n; ++g) {
|
|
2068
|
-
let
|
|
2070
|
+
let b = 0;
|
|
2069
2071
|
const w = d - g, S = t - g;
|
|
2070
|
-
d >= g && (h[m][0] = h[f][0] / l[S + 1][w],
|
|
2072
|
+
d >= g && (h[m][0] = h[f][0] / l[S + 1][w], b = h[m][0] * l[w][S]);
|
|
2071
2073
|
const L = w >= -1 ? 1 : -w, R = d - 1 <= S ? g - 1 : t - d;
|
|
2072
2074
|
for (let _ = L; _ <= R; ++_)
|
|
2073
|
-
h[m][_] = (h[f][_] - h[f][_ - 1]) / l[S + 1][w + _],
|
|
2074
|
-
d <= S && (h[m][g] = -h[f][g - 1] / l[S + 1][d],
|
|
2075
|
+
h[m][_] = (h[f][_] - h[f][_ - 1]) / l[S + 1][w + _], b += h[m][_] * l[w + _][S];
|
|
2076
|
+
d <= S && (h[m][g] = -h[f][g - 1] / l[S + 1][d], b += h[m][g] * l[d][S]), r[g][d] = b;
|
|
2075
2077
|
const V = f;
|
|
2076
2078
|
f = m, m = V;
|
|
2077
2079
|
}
|
|
@@ -2339,14 +2341,14 @@ var vi = /* @__PURE__ */ an(wn, 9, 1), wi = /* @__PURE__ */ an(dr, 5, 1), qn = f
|
|
|
2339
2341
|
var le = new Ze(Math.max(oe * 2, ge));
|
|
2340
2342
|
le.set(t), t = le;
|
|
2341
2343
|
}
|
|
2342
|
-
}, p = e.f || 0, d = e.p || 0, f = e.b || 0, m = e.l, h = e.d, g = e.m,
|
|
2344
|
+
}, p = e.f || 0, d = e.p || 0, f = e.b || 0, m = e.l, h = e.d, g = e.m, b = e.n, w = o * 8;
|
|
2343
2345
|
do {
|
|
2344
2346
|
if (!m) {
|
|
2345
2347
|
p = et(a, d, 1);
|
|
2346
2348
|
var S = et(a, d + 1, 3);
|
|
2347
2349
|
if (d += 3, S)
|
|
2348
2350
|
if (S == 1)
|
|
2349
|
-
m = vi, h = wi, g = 9,
|
|
2351
|
+
m = vi, h = wi, g = 9, b = 5;
|
|
2350
2352
|
else if (S == 2) {
|
|
2351
2353
|
var _ = et(a, d, 31) + 257, M = et(a, d + 10, 15) + 4, K = _ + et(a, d + 5, 31) + 1;
|
|
2352
2354
|
d += 14;
|
|
@@ -2366,7 +2368,7 @@ var vi = /* @__PURE__ */ an(wn, 9, 1), wi = /* @__PURE__ */ an(dr, 5, 1), qn = f
|
|
|
2366
2368
|
}
|
|
2367
2369
|
}
|
|
2368
2370
|
var N = te.subarray(0, _), B = te.subarray(_);
|
|
2369
|
-
g = qn(N),
|
|
2371
|
+
g = qn(N), b = qn(B), m = an(N, g, 1), h = an(B, b, 1);
|
|
2370
2372
|
} else
|
|
2371
2373
|
tt(1);
|
|
2372
2374
|
else {
|
|
@@ -2384,7 +2386,7 @@ var vi = /* @__PURE__ */ an(wn, 9, 1), wi = /* @__PURE__ */ an(dr, 5, 1), qn = f
|
|
|
2384
2386
|
}
|
|
2385
2387
|
}
|
|
2386
2388
|
l && u(f + 131072);
|
|
2387
|
-
for (var W = (1 << g) - 1, ne = (1 <<
|
|
2389
|
+
for (var W = (1 << g) - 1, ne = (1 << b) - 1, ae = d; ; ae = d) {
|
|
2388
2390
|
var I = m[Qn(a, d) & W], C = I >> 4;
|
|
2389
2391
|
if (d += I & 15, d > w) {
|
|
2390
2392
|
c && tt(0);
|
|
@@ -2423,7 +2425,7 @@ var vi = /* @__PURE__ */ an(wn, 9, 1), wi = /* @__PURE__ */ an(dr, 5, 1), qn = f
|
|
|
2423
2425
|
t[f] = t[f - B];
|
|
2424
2426
|
}
|
|
2425
2427
|
}
|
|
2426
|
-
e.l = m, e.p = ae, e.b = f, e.f = p, m && (p = 1, e.m = g, e.d = h, e.n =
|
|
2428
|
+
e.l = m, e.p = ae, e.b = f, e.f = p, m && (p = 1, e.m = g, e.d = h, e.n = b);
|
|
2427
2429
|
} while (!p);
|
|
2428
2430
|
return f != t.length && r ? xi(t, 0, f) : t.subarray(0, f);
|
|
2429
2431
|
}, Ti = /* @__PURE__ */ new Ze(0), Li = function(a, e) {
|
|
@@ -2465,9 +2467,9 @@ class Do extends ke {
|
|
|
2465
2467
|
}, r === 1) return;
|
|
2466
2468
|
const l = this.toNonIndexed();
|
|
2467
2469
|
this.index = null, this.attributes.position = l.attributes.position, this.attributes.normal = l.attributes.normal, this.attributes.uv = l.attributes.uv;
|
|
2468
|
-
const c = new j(), u = new j(), p = new j(e, t, n).divideScalar(2).subScalar(s), d = this.attributes.position.array, f = this.attributes.normal.array, m = this.attributes.uv.array, h = d.length / 6, g = new j(),
|
|
2470
|
+
const c = new j(), u = new j(), p = new j(e, t, n).divideScalar(2).subScalar(s), d = this.attributes.position.array, f = this.attributes.normal.array, m = this.attributes.uv.array, h = d.length / 6, g = new j(), b = 0.5 / r;
|
|
2469
2471
|
for (let w = 0, S = 0; w < d.length; w += 3, S += 2)
|
|
2470
|
-
switch (c.fromArray(d, w), u.copy(c), u.x -= Math.sign(u.x) *
|
|
2472
|
+
switch (c.fromArray(d, w), u.copy(c), u.x -= Math.sign(u.x) * b, u.y -= Math.sign(u.y) * b, u.z -= Math.sign(u.z) * b, u.normalize(), d[w + 0] = p.x * Math.sign(c.x) + u.x * s, d[w + 1] = p.y * Math.sign(c.y) + u.y * s, d[w + 2] = p.z * Math.sign(c.z) + u.z * s, f[w + 0] = u.x, f[w + 1] = u.y, f[w + 2] = u.z, Math.floor(w / h)) {
|
|
2471
2473
|
case 0:
|
|
2472
2474
|
g.set(1, 0, 0), m[S + 0] = Ye(g, u, "z", "y", s, n), m[S + 1] = 1 - Ye(g, u, "y", "z", s, t);
|
|
2473
2475
|
break;
|
|
@@ -2758,17 +2760,17 @@ function Ii() {
|
|
|
2758
2760
|
if (!m.ok() || f.ptr === 0)
|
|
2759
2761
|
throw new Error("THREE.DRACOLoader: Decoding failed: " + m.error_msg());
|
|
2760
2762
|
const g = { index: null, attributes: [] };
|
|
2761
|
-
for (const
|
|
2762
|
-
const w = self[d[
|
|
2763
|
+
for (const b in p) {
|
|
2764
|
+
const w = self[d[b]];
|
|
2763
2765
|
let S, L;
|
|
2764
2766
|
if (u.useUniqueIDs)
|
|
2765
|
-
L = p[
|
|
2767
|
+
L = p[b], S = l.GetAttributeByUniqueId(f, L);
|
|
2766
2768
|
else {
|
|
2767
|
-
if (L = l.GetAttributeId(f, r[p[
|
|
2769
|
+
if (L = l.GetAttributeId(f, r[p[b]]), L === -1) continue;
|
|
2768
2770
|
S = l.GetAttribute(f, L);
|
|
2769
2771
|
}
|
|
2770
|
-
const R = o(r, l, f,
|
|
2771
|
-
|
|
2772
|
+
const R = o(r, l, f, b, w, S);
|
|
2773
|
+
b === "color" && (R.vertexColorSpace = u.vertexColorSpace), g.attributes.push(R);
|
|
2772
2774
|
}
|
|
2773
2775
|
return h === r.TRIANGULAR_MESH && (g.index = n(r, l, f)), r.destroy(f), g;
|
|
2774
2776
|
}
|
|
@@ -2779,8 +2781,8 @@ function Ii() {
|
|
|
2779
2781
|
return r._free(f), { array: m, itemSize: 1 };
|
|
2780
2782
|
}
|
|
2781
2783
|
function o(r, l, c, u, p, d) {
|
|
2782
|
-
const f = d.num_components(), h = c.num_points() * f, g = h * p.BYTES_PER_ELEMENT,
|
|
2783
|
-
l.GetAttributeDataArrayForAllPoints(c, d,
|
|
2784
|
+
const f = d.num_components(), h = c.num_points() * f, g = h * p.BYTES_PER_ELEMENT, b = s(r, p), w = r._malloc(g);
|
|
2785
|
+
l.GetAttributeDataArrayForAllPoints(c, d, b, g, w);
|
|
2784
2786
|
const S = new p(r.HEAPF32.buffer, w, h).slice();
|
|
2785
2787
|
return r._free(w), {
|
|
2786
2788
|
name: u,
|
|
@@ -3464,8 +3466,8 @@ class ki {
|
|
|
3464
3466
|
let n = 0, o = 0, s = !1, r = [], l = [], c = [], u = [], p = [], d = [];
|
|
3465
3467
|
const f = this;
|
|
3466
3468
|
return e.vertexIndices.forEach(function(m, h) {
|
|
3467
|
-
let g,
|
|
3468
|
-
m < 0 && (m = m ^ -1,
|
|
3469
|
+
let g, b = !1;
|
|
3470
|
+
m < 0 && (m = m ^ -1, b = !0);
|
|
3469
3471
|
let w = [], S = [];
|
|
3470
3472
|
if (r.push(m * 3, m * 3 + 1, m * 3 + 2), e.color) {
|
|
3471
3473
|
const L = Mn(h, n, m, e.color);
|
|
@@ -3500,7 +3502,7 @@ class ki {
|
|
|
3500
3502
|
e.material && e.material.mappingType !== "AllSame" && (g = Mn(h, n, m, e.material)[0], g < 0 && (f.negativeMaterialIndices = !0, g = 0)), e.uv && e.uv.forEach(function(L, R) {
|
|
3501
3503
|
const V = Mn(h, n, m, L);
|
|
3502
3504
|
u[R] === void 0 && (u[R] = []), u[R].push(V[0]), u[R].push(V[1]);
|
|
3503
|
-
}), o++,
|
|
3505
|
+
}), o++, b && (f.genFace(t, e, r, g, l, c, u, p, d, o), n++, o = 0, r = [], l = [], c = [], u = [], p = [], d = []);
|
|
3504
3506
|
}), t;
|
|
3505
3507
|
}
|
|
3506
3508
|
// See https://www.khronos.org/opengl/wiki/Calculating_a_Surface_Normal
|
|
@@ -3539,15 +3541,15 @@ class ki {
|
|
|
3539
3541
|
m[n[w + 2]]
|
|
3540
3542
|
)
|
|
3541
3543
|
);
|
|
3542
|
-
const { tangent: h, bitangent: g } = this.getNormalTangentAndBitangent(f),
|
|
3544
|
+
const { tangent: h, bitangent: g } = this.getNormalTangentAndBitangent(f), b = [];
|
|
3543
3545
|
for (const w of f)
|
|
3544
|
-
|
|
3545
|
-
d = Qr.triangulateShape(
|
|
3546
|
+
b.push(this.flattenVertex(w, h, g));
|
|
3547
|
+
d = Qr.triangulateShape(b, []);
|
|
3546
3548
|
} else
|
|
3547
3549
|
d = [[0, 1, 2]];
|
|
3548
3550
|
for (const [f, m, h] of d)
|
|
3549
|
-
e.vertex.push(t.vertexPositions[n[f * 3]]), e.vertex.push(t.vertexPositions[n[f * 3 + 1]]), e.vertex.push(t.vertexPositions[n[f * 3 + 2]]), e.vertex.push(t.vertexPositions[n[m * 3]]), e.vertex.push(t.vertexPositions[n[m * 3 + 1]]), e.vertex.push(t.vertexPositions[n[m * 3 + 2]]), e.vertex.push(t.vertexPositions[n[h * 3]]), e.vertex.push(t.vertexPositions[n[h * 3 + 1]]), e.vertex.push(t.vertexPositions[n[h * 3 + 2]]), t.skeleton && (e.vertexWeights.push(c[f * 4]), e.vertexWeights.push(c[f * 4 + 1]), e.vertexWeights.push(c[f * 4 + 2]), e.vertexWeights.push(c[f * 4 + 3]), e.vertexWeights.push(c[m * 4]), e.vertexWeights.push(c[m * 4 + 1]), e.vertexWeights.push(c[m * 4 + 2]), e.vertexWeights.push(c[m * 4 + 3]), e.vertexWeights.push(c[h * 4]), e.vertexWeights.push(c[h * 4 + 1]), e.vertexWeights.push(c[h * 4 + 2]), e.vertexWeights.push(c[h * 4 + 3]), e.weightsIndices.push(u[f * 4]), e.weightsIndices.push(u[f * 4 + 1]), e.weightsIndices.push(u[f * 4 + 2]), e.weightsIndices.push(u[f * 4 + 3]), e.weightsIndices.push(u[m * 4]), e.weightsIndices.push(u[m * 4 + 1]), e.weightsIndices.push(u[m * 4 + 2]), e.weightsIndices.push(u[m * 4 + 3]), e.weightsIndices.push(u[h * 4]), e.weightsIndices.push(u[h * 4 + 1]), e.weightsIndices.push(u[h * 4 + 2]), e.weightsIndices.push(u[h * 4 + 3])), t.color && (e.colors.push(r[f * 3]), e.colors.push(r[f * 3 + 1]), e.colors.push(r[f * 3 + 2]), e.colors.push(r[m * 3]), e.colors.push(r[m * 3 + 1]), e.colors.push(r[m * 3 + 2]), e.colors.push(r[h * 3]), e.colors.push(r[h * 3 + 1]), e.colors.push(r[h * 3 + 2])), t.material && t.material.mappingType !== "AllSame" && (e.materialIndex.push(o), e.materialIndex.push(o), e.materialIndex.push(o)), t.normal && (e.normal.push(s[f * 3]), e.normal.push(s[f * 3 + 1]), e.normal.push(s[f * 3 + 2]), e.normal.push(s[m * 3]), e.normal.push(s[m * 3 + 1]), e.normal.push(s[m * 3 + 2]), e.normal.push(s[h * 3]), e.normal.push(s[h * 3 + 1]), e.normal.push(s[h * 3 + 2])), t.uv && t.uv.forEach(function(g,
|
|
3550
|
-
e.uvs[
|
|
3551
|
+
e.vertex.push(t.vertexPositions[n[f * 3]]), e.vertex.push(t.vertexPositions[n[f * 3 + 1]]), e.vertex.push(t.vertexPositions[n[f * 3 + 2]]), e.vertex.push(t.vertexPositions[n[m * 3]]), e.vertex.push(t.vertexPositions[n[m * 3 + 1]]), e.vertex.push(t.vertexPositions[n[m * 3 + 2]]), e.vertex.push(t.vertexPositions[n[h * 3]]), e.vertex.push(t.vertexPositions[n[h * 3 + 1]]), e.vertex.push(t.vertexPositions[n[h * 3 + 2]]), t.skeleton && (e.vertexWeights.push(c[f * 4]), e.vertexWeights.push(c[f * 4 + 1]), e.vertexWeights.push(c[f * 4 + 2]), e.vertexWeights.push(c[f * 4 + 3]), e.vertexWeights.push(c[m * 4]), e.vertexWeights.push(c[m * 4 + 1]), e.vertexWeights.push(c[m * 4 + 2]), e.vertexWeights.push(c[m * 4 + 3]), e.vertexWeights.push(c[h * 4]), e.vertexWeights.push(c[h * 4 + 1]), e.vertexWeights.push(c[h * 4 + 2]), e.vertexWeights.push(c[h * 4 + 3]), e.weightsIndices.push(u[f * 4]), e.weightsIndices.push(u[f * 4 + 1]), e.weightsIndices.push(u[f * 4 + 2]), e.weightsIndices.push(u[f * 4 + 3]), e.weightsIndices.push(u[m * 4]), e.weightsIndices.push(u[m * 4 + 1]), e.weightsIndices.push(u[m * 4 + 2]), e.weightsIndices.push(u[m * 4 + 3]), e.weightsIndices.push(u[h * 4]), e.weightsIndices.push(u[h * 4 + 1]), e.weightsIndices.push(u[h * 4 + 2]), e.weightsIndices.push(u[h * 4 + 3])), t.color && (e.colors.push(r[f * 3]), e.colors.push(r[f * 3 + 1]), e.colors.push(r[f * 3 + 2]), e.colors.push(r[m * 3]), e.colors.push(r[m * 3 + 1]), e.colors.push(r[m * 3 + 2]), e.colors.push(r[h * 3]), e.colors.push(r[h * 3 + 1]), e.colors.push(r[h * 3 + 2])), t.material && t.material.mappingType !== "AllSame" && (e.materialIndex.push(o), e.materialIndex.push(o), e.materialIndex.push(o)), t.normal && (e.normal.push(s[f * 3]), e.normal.push(s[f * 3 + 1]), e.normal.push(s[f * 3 + 2]), e.normal.push(s[m * 3]), e.normal.push(s[m * 3 + 1]), e.normal.push(s[m * 3 + 2]), e.normal.push(s[h * 3]), e.normal.push(s[h * 3 + 1]), e.normal.push(s[h * 3 + 2])), t.uv && t.uv.forEach(function(g, b) {
|
|
3552
|
+
e.uvs[b] === void 0 && (e.uvs[b] = []), e.uvs[b].push(l[b][f * 2]), e.uvs[b].push(l[b][f * 2 + 1]), e.uvs[b].push(l[b][m * 2]), e.uvs[b].push(l[b][m * 2 + 1]), e.uvs[b].push(l[b][h * 2]), e.uvs[b].push(l[b][h * 2 + 1]);
|
|
3551
3553
|
});
|
|
3552
3554
|
}
|
|
3553
3555
|
addMorphTargets(e, t, n, o) {
|
|
@@ -3568,8 +3570,8 @@ class ki {
|
|
|
3568
3570
|
genMorphGeometry(e, t, n, o, s) {
|
|
3569
3571
|
const r = t.Vertices !== void 0 ? t.Vertices.a : [], l = t.PolygonVertexIndex !== void 0 ? t.PolygonVertexIndex.a : [], c = n.Vertices !== void 0 ? n.Vertices.a : [], u = n.Indexes !== void 0 ? n.Indexes.a : [], p = e.attributes.position.count * 3, d = new Float32Array(p);
|
|
3570
3572
|
for (let g = 0; g < u.length; g++) {
|
|
3571
|
-
const
|
|
3572
|
-
d[
|
|
3573
|
+
const b = u[g] * 3;
|
|
3574
|
+
d[b] = c[g * 3], d[b + 1] = c[g * 3 + 1], d[b + 2] = c[g * 3 + 2];
|
|
3573
3575
|
}
|
|
3574
3576
|
const f = {
|
|
3575
3577
|
vertexIndices: l,
|
|
@@ -3750,11 +3752,11 @@ class Ni {
|
|
|
3750
3752
|
if (s[u] === void 0) {
|
|
3751
3753
|
const d = Le.get(c.ID).parents.filter(function(w) {
|
|
3752
3754
|
return w.relationship !== void 0;
|
|
3753
|
-
})[0].ID, f = Le.get(d).parents[0].ID, m = Le.get(f).parents[0].ID, h = Le.get(m).parents[0].ID, g = ee.Objects.Model[h],
|
|
3755
|
+
})[0].ID, f = Le.get(d).parents[0].ID, m = Le.get(f).parents[0].ID, h = Le.get(m).parents[0].ID, g = ee.Objects.Model[h], b = {
|
|
3754
3756
|
modelName: g.attrName ? gn.sanitizeNodeName(g.attrName) : "",
|
|
3755
3757
|
morphName: ee.Objects.Deformer[d].attrName
|
|
3756
3758
|
};
|
|
3757
|
-
s[u] =
|
|
3759
|
+
s[u] = b;
|
|
3758
3760
|
}
|
|
3759
3761
|
s[u][p.attr] = p;
|
|
3760
3762
|
}
|
|
@@ -3901,7 +3903,7 @@ class Ni {
|
|
|
3901
3903
|
Math.abs(f[2])
|
|
3902
3904
|
];
|
|
3903
3905
|
if (m[0] >= 180 || m[1] >= 180 || m[2] >= 180) {
|
|
3904
|
-
const g = Math.max(...m) / 180,
|
|
3906
|
+
const g = Math.max(...m) / 180, b = new xt(...u, o), w = new xt(...d, o), S = new xe().setFromEuler(b), L = new xe().setFromEuler(w);
|
|
3905
3907
|
S.dot(L) && L.set(-L.x, -L.y, -L.z, -L.w);
|
|
3906
3908
|
const R = e.times[l - 1], V = e.times[l] - R, _ = new xe(), M = new xt();
|
|
3907
3909
|
for (let K = 0; K < 1; K += 1 / g)
|
|
@@ -4302,18 +4304,18 @@ function fr(a) {
|
|
|
4302
4304
|
F.push(h), o.makeRotationFromEuler(to.fromArray(F)), o.invert();
|
|
4303
4305
|
}
|
|
4304
4306
|
a.scale && s.scale(Vt.fromArray(a.scale)), a.scalingOffset && l.setPosition(Vt.fromArray(a.scalingOffset)), a.scalingPivot && r.setPosition(Vt.fromArray(a.scalingPivot)), a.rotationOffset && c.setPosition(Vt.fromArray(a.rotationOffset)), a.rotationPivot && u.setPosition(Vt.fromArray(a.rotationPivot)), a.parentMatrixWorld && (d.copy(a.parentMatrix), p.copy(a.parentMatrixWorld));
|
|
4305
|
-
const g = t.clone().multiply(n).multiply(o),
|
|
4306
|
-
|
|
4307
|
+
const g = t.clone().multiply(n).multiply(o), b = new pe();
|
|
4308
|
+
b.extractRotation(p);
|
|
4307
4309
|
const w = new pe();
|
|
4308
4310
|
w.copyPosition(p);
|
|
4309
|
-
const S = w.clone().invert().multiply(p), L =
|
|
4311
|
+
const S = w.clone().invert().multiply(p), L = b.clone().invert().multiply(S), R = s, V = new pe();
|
|
4310
4312
|
if (m === 0)
|
|
4311
|
-
V.copy(
|
|
4313
|
+
V.copy(b).multiply(g).multiply(L).multiply(R);
|
|
4312
4314
|
else if (m === 1)
|
|
4313
|
-
V.copy(
|
|
4315
|
+
V.copy(b).multiply(L).multiply(g).multiply(R);
|
|
4314
4316
|
else {
|
|
4315
4317
|
const Ce = new pe().scale(new j().setFromMatrixScale(d)).clone().invert(), Ee = L.clone().multiply(Ce);
|
|
4316
|
-
V.copy(
|
|
4318
|
+
V.copy(b).multiply(g).multiply(Ee).multiply(R);
|
|
4317
4319
|
}
|
|
4318
4320
|
const _ = u.clone().invert(), M = r.clone().invert();
|
|
4319
4321
|
let K = e.clone().multiply(c).multiply(u).multiply(t).multiply(n).multiply(o).multiply(_).multiply(l).multiply(r).multiply(s).multiply(M);
|
|
@@ -4951,9 +4953,9 @@ class cl {
|
|
|
4951
4953
|
return l.length < 1 ? null : (l.push(this.parser.createNodeMesh(e)), Promise.all(l).then((u) => {
|
|
4952
4954
|
const p = u.pop(), d = p.isGroup ? p.children : [p], f = u[0].count, m = [];
|
|
4953
4955
|
for (const h of d) {
|
|
4954
|
-
const g = new pe(),
|
|
4956
|
+
const g = new pe(), b = new j(), w = new xe(), S = new j(1, 1, 1), L = new ea(h.geometry, h.material, f);
|
|
4955
4957
|
for (let R = 0; R < f; R++)
|
|
4956
|
-
c.TRANSLATION &&
|
|
4958
|
+
c.TRANSLATION && b.fromBufferAttribute(c.TRANSLATION, R), c.ROTATION && w.fromBufferAttribute(c.ROTATION, R), c.SCALE && S.fromBufferAttribute(c.SCALE, R), L.setMatrixAt(R, g.compose(b, w, S));
|
|
4957
4959
|
for (const R in c)
|
|
4958
4960
|
if (R === "_COLOR_0") {
|
|
4959
4961
|
const V = c[R];
|
|
@@ -5020,8 +5022,8 @@ class dl {
|
|
|
5020
5022
|
return new Promise(function(d, f) {
|
|
5021
5023
|
o.decodeDracoFile(p, function(m) {
|
|
5022
5024
|
for (const h in m.attributes) {
|
|
5023
|
-
const g = m.attributes[h],
|
|
5024
|
-
|
|
5025
|
+
const g = m.attributes[h], b = c[h];
|
|
5026
|
+
b !== void 0 && (g.normalized = b);
|
|
5025
5027
|
}
|
|
5026
5028
|
d(m);
|
|
5027
5029
|
}, l, u, pt, f);
|
|
@@ -5053,10 +5055,10 @@ class gr extends fa {
|
|
|
5053
5055
|
return t;
|
|
5054
5056
|
}
|
|
5055
5057
|
interpolate_(e, t, n, o) {
|
|
5056
|
-
const s = this.resultBuffer, r = this.sampleValues, l = this.valueSize, c = l * 2, u = l * 3, p = o - t, d = (n - t) / p, f = d * d, m = f * d, h = e * u, g = h - u,
|
|
5058
|
+
const s = this.resultBuffer, r = this.sampleValues, l = this.valueSize, c = l * 2, u = l * 3, p = o - t, d = (n - t) / p, f = d * d, m = f * d, h = e * u, g = h - u, b = -2 * m + 3 * f, w = m - f, S = 1 - b, L = w - f + d;
|
|
5057
5059
|
for (let R = 0; R !== l; R++) {
|
|
5058
5060
|
const V = r[g + R + l], _ = r[g + R + c] * p, M = r[h + R + l], K = r[h + R] * p;
|
|
5059
|
-
s[R] = S * V + L * _ +
|
|
5061
|
+
s[R] = S * V + L * _ + b * M + w * K;
|
|
5060
5062
|
}
|
|
5061
5063
|
return s;
|
|
5062
5064
|
}
|
|
@@ -5482,23 +5484,23 @@ class Sl {
|
|
|
5482
5484
|
const s = [];
|
|
5483
5485
|
return o.bufferView !== void 0 ? s.push(this.getDependency("bufferView", o.bufferView)) : s.push(null), o.sparse !== void 0 && (s.push(this.getDependency("bufferView", o.sparse.indices.bufferView)), s.push(this.getDependency("bufferView", o.sparse.values.bufferView))), Promise.all(s).then(function(r) {
|
|
5484
5486
|
const l = r[0], c = oo[o.type], u = Xt[o.componentType], p = u.BYTES_PER_ELEMENT, d = p * c, f = o.byteOffset || 0, m = o.bufferView !== void 0 ? n.bufferViews[o.bufferView].byteStride : void 0, h = o.normalized === !0;
|
|
5485
|
-
let g,
|
|
5487
|
+
let g, b;
|
|
5486
5488
|
if (m && m !== d) {
|
|
5487
5489
|
const w = Math.floor(f / m), S = "InterleavedBuffer:" + o.bufferView + ":" + o.componentType + ":" + w + ":" + o.count;
|
|
5488
5490
|
let L = t.cache.get(S);
|
|
5489
|
-
L || (g = new u(l, w * m, o.count * m / p), L = new oa(g, m / p), t.cache.add(S, L)),
|
|
5491
|
+
L || (g = new u(l, w * m, o.count * m / p), L = new oa(g, m / p), t.cache.add(S, L)), b = new sa(L, c, f % m / p, h);
|
|
5490
5492
|
} else
|
|
5491
|
-
l === null ? g = new u(o.count * c) : g = new u(l, f, o.count * c),
|
|
5493
|
+
l === null ? g = new u(o.count * c) : g = new u(l, f, o.count * c), b = new sn(g, c, h);
|
|
5492
5494
|
if (o.sparse !== void 0) {
|
|
5493
5495
|
const w = oo.SCALAR, S = Xt[o.sparse.indices.componentType], L = o.sparse.indices.byteOffset || 0, R = o.sparse.values.byteOffset || 0, V = new S(r[1], L, o.sparse.count * w), _ = new u(r[2], R, o.sparse.count * c);
|
|
5494
|
-
l !== null && (
|
|
5496
|
+
l !== null && (b = new sn(b.array.slice(), b.itemSize, b.normalized)), b.normalized = !1;
|
|
5495
5497
|
for (let M = 0, K = V.length; M < K; M++) {
|
|
5496
5498
|
const te = V[M];
|
|
5497
|
-
if (
|
|
5499
|
+
if (b.setX(te, _[M * c]), c >= 2 && b.setY(te, _[M * c + 1]), c >= 3 && b.setZ(te, _[M * c + 2]), c >= 4 && b.setW(te, _[M * c + 3]), c >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
5498
5500
|
}
|
|
5499
|
-
|
|
5501
|
+
b.normalized = h;
|
|
5500
5502
|
}
|
|
5501
|
-
return
|
|
5503
|
+
return b;
|
|
5502
5504
|
});
|
|
5503
5505
|
}
|
|
5504
5506
|
/**
|
|
@@ -5548,8 +5550,8 @@ class Sl {
|
|
|
5548
5550
|
return new Promise(function(f, m) {
|
|
5549
5551
|
let h = f;
|
|
5550
5552
|
t.isImageBitmapLoader === !0 && (h = function(g) {
|
|
5551
|
-
const
|
|
5552
|
-
|
|
5553
|
+
const b = new ho(g);
|
|
5554
|
+
b.needsUpdate = !0, f(b);
|
|
5553
5555
|
}), t.load(Ht.resolveURL(d, s.path), h, void 0, m);
|
|
5554
5556
|
});
|
|
5555
5557
|
}).then(function(d) {
|
|
@@ -5713,22 +5715,22 @@ class Sl {
|
|
|
5713
5715
|
return l.push(t.loadGeometries(r)), Promise.all(l).then(function(c) {
|
|
5714
5716
|
const u = c.slice(0, c.length - 1), p = c[c.length - 1], d = [];
|
|
5715
5717
|
for (let m = 0, h = p.length; m < h; m++) {
|
|
5716
|
-
const g = p[m],
|
|
5718
|
+
const g = p[m], b = r[m];
|
|
5717
5719
|
let w;
|
|
5718
5720
|
const S = u[m];
|
|
5719
|
-
if (
|
|
5720
|
-
w = s.isSkinnedMesh === !0 ? new Xs(g, S) : new X(g, S), w.isSkinnedMesh === !0 && w.normalizeSkinWeights(),
|
|
5721
|
-
else if (
|
|
5721
|
+
if (b.mode === We.TRIANGLES || b.mode === We.TRIANGLE_STRIP || b.mode === We.TRIANGLE_FAN || b.mode === void 0)
|
|
5722
|
+
w = s.isSkinnedMesh === !0 ? new Xs(g, S) : new X(g, S), w.isSkinnedMesh === !0 && w.normalizeSkinWeights(), b.mode === We.TRIANGLE_STRIP ? w.geometry = as(w.geometry, js) : b.mode === We.TRIANGLE_FAN && (w.geometry = as(w.geometry, po));
|
|
5723
|
+
else if (b.mode === We.LINES)
|
|
5722
5724
|
w = new wo(g, S);
|
|
5723
|
-
else if (
|
|
5725
|
+
else if (b.mode === We.LINE_STRIP)
|
|
5724
5726
|
w = new ct(g, S);
|
|
5725
|
-
else if (
|
|
5727
|
+
else if (b.mode === We.LINE_LOOP)
|
|
5726
5728
|
w = new ca(g, S);
|
|
5727
|
-
else if (
|
|
5729
|
+
else if (b.mode === We.POINTS)
|
|
5728
5730
|
w = new On(g, S);
|
|
5729
5731
|
else
|
|
5730
|
-
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " +
|
|
5731
|
-
Object.keys(w.geometry.morphAttributes).length > 0 && vl(w, s), w.name = t.createUniqueName(s.name || "mesh_" + e), ut(w, s),
|
|
5732
|
+
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + b.mode);
|
|
5733
|
+
Object.keys(w.geometry.morphAttributes).length > 0 && vl(w, s), w.name = t.createUniqueName(s.name || "mesh_" + e), ut(w, s), b.extensions && Pt(o, w, b), t.assignFinalMaterial(w), d.push(w);
|
|
5732
5734
|
}
|
|
5733
5735
|
for (let m = 0, h = d.length; m < h; m++)
|
|
5734
5736
|
t.associations.set(d[m], {
|
|
@@ -5795,8 +5797,8 @@ class Sl {
|
|
|
5795
5797
|
loadAnimation(e) {
|
|
5796
5798
|
const t = this.json, n = this, o = t.animations[e], s = o.name ? o.name : "animation_" + e, r = [], l = [], c = [], u = [], p = [];
|
|
5797
5799
|
for (let d = 0, f = o.channels.length; d < f; d++) {
|
|
5798
|
-
const m = o.channels[d], h = o.samplers[m.sampler], g = m.target,
|
|
5799
|
-
g.node !== void 0 && (r.push(this.getDependency("node",
|
|
5800
|
+
const m = o.channels[d], h = o.samplers[m.sampler], g = m.target, b = g.node, w = o.parameters !== void 0 ? o.parameters[h.input] : h.input, S = o.parameters !== void 0 ? o.parameters[h.output] : h.output;
|
|
5801
|
+
g.node !== void 0 && (r.push(this.getDependency("node", b)), l.push(this.getDependency("accessor", w)), c.push(this.getDependency("accessor", S)), u.push(h), p.push(g));
|
|
5800
5802
|
}
|
|
5801
5803
|
return Promise.all([
|
|
5802
5804
|
Promise.all(r),
|
|
@@ -5805,9 +5807,9 @@ class Sl {
|
|
|
5805
5807
|
Promise.all(u),
|
|
5806
5808
|
Promise.all(p)
|
|
5807
5809
|
]).then(function(d) {
|
|
5808
|
-
const f = d[0], m = d[1], h = d[2], g = d[3],
|
|
5810
|
+
const f = d[0], m = d[1], h = d[2], g = d[3], b = d[4], w = [];
|
|
5809
5811
|
for (let L = 0, R = f.length; L < R; L++) {
|
|
5810
|
-
const V = f[L], _ = m[L], M = h[L], K = g[L], te =
|
|
5812
|
+
const V = f[L], _ = m[L], M = h[L], K = g[L], te = b[L];
|
|
5811
5813
|
if (V === void 0) continue;
|
|
5812
5814
|
V.updateMatrix && V.updateMatrix();
|
|
5813
5815
|
const q = n._createAnimationTracks(V, _, M, K, te);
|
|
@@ -6279,7 +6281,7 @@ class Al extends Gt {
|
|
|
6279
6281
|
}
|
|
6280
6282
|
} else if (p === "f") {
|
|
6281
6283
|
const f = u.slice(1).trim().split(fs), m = [];
|
|
6282
|
-
for (let g = 0,
|
|
6284
|
+
for (let g = 0, b = f.length; g < b; g++) {
|
|
6283
6285
|
const w = f[g];
|
|
6284
6286
|
if (w.length > 0) {
|
|
6285
6287
|
const S = w.split("/");
|
|
@@ -6287,7 +6289,7 @@ class Al extends Gt {
|
|
|
6287
6289
|
}
|
|
6288
6290
|
}
|
|
6289
6291
|
const h = m[0];
|
|
6290
|
-
for (let g = 1,
|
|
6292
|
+
for (let g = 1, b = m.length - 1; g < b; g++) {
|
|
6291
6293
|
const w = m[g], S = m[g + 1];
|
|
6292
6294
|
t.addFace(
|
|
6293
6295
|
h[0],
|
|
@@ -6309,8 +6311,8 @@ class Al extends Gt {
|
|
|
6309
6311
|
f = d;
|
|
6310
6312
|
else
|
|
6311
6313
|
for (let h = 0, g = d.length; h < g; h++) {
|
|
6312
|
-
const
|
|
6313
|
-
|
|
6314
|
+
const b = d[h].split("/");
|
|
6315
|
+
b[0] !== "" && f.push(b[0]), b[1] !== "" && m.push(b[1]);
|
|
6314
6316
|
}
|
|
6315
6317
|
t.addLineGeometry(f, m);
|
|
6316
6318
|
} else if (p === "p") {
|
|
@@ -6347,7 +6349,7 @@ class Al extends Gt {
|
|
|
6347
6349
|
if (p.vertices.length === 0) continue;
|
|
6348
6350
|
const g = new yt();
|
|
6349
6351
|
g.setAttribute("position", new He(p.vertices, 3)), p.normals.length > 0 && g.setAttribute("normal", new He(p.normals, 3)), p.colors.length > 0 && (h = !0, g.setAttribute("color", new He(p.colors, 3))), p.hasUVIndices === !0 && g.setAttribute("uv", new He(p.uvs, 2));
|
|
6350
|
-
const
|
|
6352
|
+
const b = [];
|
|
6351
6353
|
for (let S = 0, L = d.length; S < L; S++) {
|
|
6352
6354
|
const R = d[S], V = R.name + "_" + R.smooth + "_" + h;
|
|
6353
6355
|
let _ = t.materials[V];
|
|
@@ -6360,17 +6362,17 @@ class Al extends Gt {
|
|
|
6360
6362
|
rn.prototype.copy.call(M, _), M.color.copy(_.color), M.map = _.map, _ = M;
|
|
6361
6363
|
}
|
|
6362
6364
|
}
|
|
6363
|
-
_ === void 0 && (f ? _ = new Ut() : m ? _ = new tn({ size: 1, sizeAttenuation: !1 }) : _ = new en(), _.name = R.name, _.flatShading = !R.smooth, _.vertexColors = h, t.materials[V] = _),
|
|
6365
|
+
_ === void 0 && (f ? _ = new Ut() : m ? _ = new tn({ size: 1, sizeAttenuation: !1 }) : _ = new en(), _.name = R.name, _.flatShading = !R.smooth, _.vertexColors = h, t.materials[V] = _), b.push(_);
|
|
6364
6366
|
}
|
|
6365
6367
|
let w;
|
|
6366
|
-
if (
|
|
6368
|
+
if (b.length > 1) {
|
|
6367
6369
|
for (let S = 0, L = d.length; S < L; S++) {
|
|
6368
6370
|
const R = d[S];
|
|
6369
6371
|
g.addGroup(R.groupStart, R.groupCount, S);
|
|
6370
6372
|
}
|
|
6371
|
-
f ? w = new wo(g,
|
|
6373
|
+
f ? w = new wo(g, b) : m ? w = new On(g, b) : w = new X(g, b);
|
|
6372
6374
|
} else
|
|
6373
|
-
f ? w = new wo(g,
|
|
6375
|
+
f ? w = new wo(g, b[0]) : m ? w = new On(g, b[0]) : w = new X(g, b[0]);
|
|
6374
6376
|
w.name = u.name, s.add(w);
|
|
6375
6377
|
}
|
|
6376
6378
|
else if (t.vertices.length > 0) {
|
|
@@ -6424,33 +6426,33 @@ class Ol {
|
|
|
6424
6426
|
};
|
|
6425
6427
|
function u(h) {
|
|
6426
6428
|
h.isCSS2DObject && (h.element.style.display = "none");
|
|
6427
|
-
for (let g = 0,
|
|
6429
|
+
for (let g = 0, b = h.children.length; g < b; g++)
|
|
6428
6430
|
u(h.children[g]);
|
|
6429
6431
|
}
|
|
6430
|
-
function p(h, g,
|
|
6432
|
+
function p(h, g, b) {
|
|
6431
6433
|
if (h.visible === !1) {
|
|
6432
6434
|
u(h);
|
|
6433
6435
|
return;
|
|
6434
6436
|
}
|
|
6435
6437
|
if (h.isCSS2DObject) {
|
|
6436
6438
|
zt.setFromMatrixPosition(h.matrixWorld), zt.applyMatrix4(bs);
|
|
6437
|
-
const w = zt.z >= -1 && zt.z <= 1 && h.layers.test(
|
|
6438
|
-
S.style.display = w === !0 ? "" : "none", w === !0 && (h.onBeforeRender(t, g,
|
|
6439
|
+
const w = zt.z >= -1 && zt.z <= 1 && h.layers.test(b.layers) === !0, S = h.element;
|
|
6440
|
+
S.style.display = w === !0 ? "" : "none", w === !0 && (h.onBeforeRender(t, g, b), S.style.transform = "translate(" + -100 * h.center.x + "%," + -100 * h.center.y + "%)translate(" + (zt.x * s + s) + "px," + (-zt.y * r + r) + "px)", S.parentNode !== c && c.appendChild(S), h.onAfterRender(t, g, b));
|
|
6439
6441
|
const L = {
|
|
6440
|
-
distanceToCameraSquared: d(
|
|
6442
|
+
distanceToCameraSquared: d(b, h)
|
|
6441
6443
|
};
|
|
6442
6444
|
l.objects.set(h, L);
|
|
6443
6445
|
}
|
|
6444
6446
|
for (let w = 0, S = h.children.length; w < S; w++)
|
|
6445
|
-
p(h.children[w], g,
|
|
6447
|
+
p(h.children[w], g, b);
|
|
6446
6448
|
}
|
|
6447
6449
|
function d(h, g) {
|
|
6448
6450
|
return vs.setFromMatrixPosition(h.matrixWorld), ws.setFromMatrixPosition(g.matrixWorld), vs.distanceToSquared(ws);
|
|
6449
6451
|
}
|
|
6450
6452
|
function f(h) {
|
|
6451
6453
|
const g = [];
|
|
6452
|
-
return h.traverseVisible(function(
|
|
6453
|
-
|
|
6454
|
+
return h.traverseVisible(function(b) {
|
|
6455
|
+
b.isCSS2DObject && g.push(b);
|
|
6454
6456
|
}), g;
|
|
6455
6457
|
}
|
|
6456
6458
|
function m(h) {
|
|
@@ -6459,9 +6461,9 @@ class Ol {
|
|
|
6459
6461
|
return S.renderOrder - w.renderOrder;
|
|
6460
6462
|
const L = l.objects.get(w).distanceToCameraSquared, R = l.objects.get(S).distanceToCameraSquared;
|
|
6461
6463
|
return L - R;
|
|
6462
|
-
}),
|
|
6464
|
+
}), b = g.length;
|
|
6463
6465
|
for (let w = 0, S = g.length; w < S; w++)
|
|
6464
|
-
g[w].element.style.zIndex =
|
|
6466
|
+
g[w].element.style.zIndex = b - w;
|
|
6465
6467
|
}
|
|
6466
6468
|
}
|
|
6467
6469
|
}
|
|
@@ -6580,7 +6582,7 @@ function Rl(a) {
|
|
|
6580
6582
|
function g(K, te, q) {
|
|
6581
6583
|
p.position.set(K, te + 1.5, q);
|
|
6582
6584
|
}
|
|
6583
|
-
function
|
|
6585
|
+
function b() {
|
|
6584
6586
|
return p;
|
|
6585
6587
|
}
|
|
6586
6588
|
function w() {
|
|
@@ -6612,7 +6614,7 @@ function Rl(a) {
|
|
|
6612
6614
|
}
|
|
6613
6615
|
return {
|
|
6614
6616
|
teleport: g,
|
|
6615
|
-
getPlayer:
|
|
6617
|
+
getPlayer: b,
|
|
6616
6618
|
update: h,
|
|
6617
6619
|
init: m,
|
|
6618
6620
|
jump: S,
|
|
@@ -6839,11 +6841,11 @@ var cn = function() {
|
|
|
6839
6841
|
cn.Panel = function(a, e, t) {
|
|
6840
6842
|
var n = 1 / 0, o = 0, s = Math.round, r = s(window.devicePixelRatio || 1), l = 80 * r, c = 48 * r, u = 3 * r, p = 2 * r, d = 3 * r, f = 15 * r, m = 74 * r, h = 30 * r, g = document.createElement("canvas");
|
|
6841
6843
|
g.width = l, g.height = c, g.style.cssText = "width:80px;height:48px";
|
|
6842
|
-
var
|
|
6843
|
-
return
|
|
6844
|
+
var b = g.getContext("2d");
|
|
6845
|
+
return b.font = "bold " + 9 * r + "px Helvetica,Arial,sans-serif", b.textBaseline = "top", b.fillStyle = t, b.fillRect(0, 0, l, c), b.fillStyle = e, b.fillText(a, u, p), b.fillRect(d, f, m, h), b.fillStyle = t, b.globalAlpha = 0.9, b.fillRect(d, f, m, h), {
|
|
6844
6846
|
dom: g,
|
|
6845
6847
|
update: function(w, S) {
|
|
6846
|
-
n = Math.min(n, w), o = Math.max(o, w),
|
|
6848
|
+
n = Math.min(n, w), o = Math.max(o, w), b.fillStyle = t, b.globalAlpha = 1, b.fillRect(0, 0, l, f), b.fillStyle = e, b.fillText(s(w) + " " + a + " (" + s(n) + "-" + s(o) + ")", u, p), b.drawImage(g, d + r, f, m - r, h, d, f, m - r, h), b.fillRect(d + m - r, f, r, h), b.fillStyle = t, b.globalAlpha = 0.9, b.fillRect(d + m - r, f, r, s((1 - w / S) * h));
|
|
6847
6849
|
}
|
|
6848
6850
|
};
|
|
6849
6851
|
};
|
|
@@ -7308,8 +7310,8 @@ const k0 = () => {
|
|
|
7308
7310
|
function D0(a, e, t) {
|
|
7309
7311
|
const n = _s(a), o = n[0], s = n[1], r = n[2], l = _s(e), c = l[0], u = l[1], p = l[2], d = (c - o) / t, f = (u - s) / t, m = (p - r) / t, h = Array();
|
|
7310
7312
|
for (let g = 0; g < t; g++) {
|
|
7311
|
-
const
|
|
7312
|
-
h.push(
|
|
7313
|
+
const b = `rgba(${Math.floor(d * g + o)},${Math.floor(f * g + s)},${Math.floor(m * g + r)},1)`;
|
|
7314
|
+
h.push(b);
|
|
7313
7315
|
}
|
|
7314
7316
|
return h;
|
|
7315
7317
|
}
|
|
@@ -7450,19 +7452,19 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7450
7452
|
return Xe(s), (r, l) => {
|
|
7451
7453
|
const c = ks("el-tag");
|
|
7452
7454
|
return T(), P("div", Yl, [
|
|
7453
|
-
v(
|
|
7455
|
+
v(y(ot), {
|
|
7454
7456
|
title: "日志操作",
|
|
7455
7457
|
column: 3,
|
|
7456
7458
|
border: ""
|
|
7457
7459
|
}, {
|
|
7458
7460
|
default: x(() => [
|
|
7459
|
-
v(
|
|
7461
|
+
v(y(U), {
|
|
7460
7462
|
label: "日志",
|
|
7461
7463
|
span: 3
|
|
7462
7464
|
}, {
|
|
7463
7465
|
default: x(() => [
|
|
7464
7466
|
E("div", Kl, [
|
|
7465
|
-
v(
|
|
7467
|
+
v(y(Yn), { style: { "--el-card-padding": "5px" } }, {
|
|
7466
7468
|
default: x(() => [
|
|
7467
7469
|
E("div", Wl, [
|
|
7468
7470
|
(T(!0), P(it, null, Qe(t.log, (u, p) => (T(), P("div", {
|
|
@@ -7518,13 +7520,13 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7518
7520
|
}, 1024))
|
|
7519
7521
|
]),
|
|
7520
7522
|
u.data?.type === "RendererClick" ? (T(), P("div", Ql, [
|
|
7521
|
-
v(
|
|
7523
|
+
v(y(st), {
|
|
7522
7524
|
type: "primary",
|
|
7523
7525
|
size: "small",
|
|
7524
7526
|
onClick: (d) => n.onTeleport(u.data, "point")
|
|
7525
7527
|
}, {
|
|
7526
7528
|
icon: x(() => [
|
|
7527
|
-
v(
|
|
7529
|
+
v(y(Xo), {
|
|
7528
7530
|
content: "移动到鼠标指向的点",
|
|
7529
7531
|
placement: "top-start"
|
|
7530
7532
|
}, {
|
|
@@ -7539,13 +7541,13 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7539
7541
|
]),
|
|
7540
7542
|
_: 1
|
|
7541
7543
|
}, 8, ["onClick"]),
|
|
7542
|
-
v(
|
|
7544
|
+
v(y(st), {
|
|
7543
7545
|
type: "primary",
|
|
7544
7546
|
size: "small",
|
|
7545
7547
|
onClick: (d) => n.onTeleport(u.data, "position")
|
|
7546
7548
|
}, {
|
|
7547
7549
|
icon: x(() => [
|
|
7548
|
-
v(
|
|
7550
|
+
v(y(Xo), {
|
|
7549
7551
|
content: "移动到对象position位置",
|
|
7550
7552
|
placement: "top-start"
|
|
7551
7553
|
}, {
|
|
@@ -7562,7 +7564,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7562
7564
|
}, 8, ["onClick"])
|
|
7563
7565
|
])) : rt("", !0)
|
|
7564
7566
|
]),
|
|
7565
|
-
v(
|
|
7567
|
+
v(y(Io), {
|
|
7566
7568
|
"model-value": u.msg,
|
|
7567
7569
|
class: "flex-1",
|
|
7568
7570
|
rows: 4,
|
|
@@ -7606,31 +7608,31 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7606
7608
|
});
|
|
7607
7609
|
}
|
|
7608
7610
|
return Xe(n), (o, s) => (T(), P("div", tc, [
|
|
7609
|
-
v(
|
|
7611
|
+
v(y(ot), {
|
|
7610
7612
|
title: "基础信息",
|
|
7611
7613
|
column: 3,
|
|
7612
7614
|
border: ""
|
|
7613
7615
|
}, {
|
|
7614
7616
|
default: x(() => [
|
|
7615
|
-
v(
|
|
7617
|
+
v(y(U), {
|
|
7616
7618
|
label: "快捷键",
|
|
7617
7619
|
span: 3
|
|
7618
7620
|
}, {
|
|
7619
7621
|
default: x(() => [
|
|
7620
7622
|
E("div", nc, [
|
|
7621
|
-
v(
|
|
7623
|
+
v(y(Kn), null, {
|
|
7622
7624
|
default: x(() => [...s[0] || (s[0] = [
|
|
7623
7625
|
Se("m: toggle控制面板", -1)
|
|
7624
7626
|
])]),
|
|
7625
7627
|
_: 1
|
|
7626
7628
|
}),
|
|
7627
|
-
v(
|
|
7629
|
+
v(y(Kn), null, {
|
|
7628
7630
|
default: x(() => [...s[1] || (s[1] = [
|
|
7629
7631
|
Se("w/a/s/d: 人物移动", -1)
|
|
7630
7632
|
])]),
|
|
7631
7633
|
_: 1
|
|
7632
7634
|
}),
|
|
7633
|
-
v(
|
|
7635
|
+
v(y(Kn), null, {
|
|
7634
7636
|
default: x(() => [...s[2] || (s[2] = [
|
|
7635
7637
|
Se("shift: 人物跑步", -1)
|
|
7636
7638
|
])]),
|
|
@@ -7747,15 +7749,15 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7747
7749
|
);
|
|
7748
7750
|
}
|
|
7749
7751
|
return Xe(r), (l, c) => (T(), P("div", sc, [
|
|
7750
|
-
v(
|
|
7752
|
+
v(y(ot), {
|
|
7751
7753
|
title: "资源",
|
|
7752
7754
|
column: 1,
|
|
7753
7755
|
border: ""
|
|
7754
7756
|
}, {
|
|
7755
7757
|
default: x(() => [
|
|
7756
|
-
v(
|
|
7758
|
+
v(y(U), { label: "上传模型" }, {
|
|
7757
7759
|
default: x(() => [
|
|
7758
|
-
v(
|
|
7760
|
+
v(y(ya), {
|
|
7759
7761
|
action: "",
|
|
7760
7762
|
accept: ".glb,.gltf",
|
|
7761
7763
|
"show-file-list": !1,
|
|
@@ -7763,7 +7765,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7763
7765
|
"on-change": s.onFileChange
|
|
7764
7766
|
}, {
|
|
7765
7767
|
default: x(() => [
|
|
7766
|
-
v(
|
|
7768
|
+
v(y(st), { type: "primary" }, {
|
|
7767
7769
|
default: x(() => [...c[21] || (c[21] = [
|
|
7768
7770
|
Se(" 上传GLB/GLTF模型 ", -1)
|
|
7769
7771
|
])]),
|
|
@@ -7778,29 +7780,29 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7778
7780
|
]),
|
|
7779
7781
|
_: 1
|
|
7780
7782
|
}),
|
|
7781
|
-
v(
|
|
7783
|
+
v(y(ot), {
|
|
7782
7784
|
title: "人物配置",
|
|
7783
7785
|
column: 2,
|
|
7784
7786
|
border: ""
|
|
7785
7787
|
}, {
|
|
7786
7788
|
default: x(() => [
|
|
7787
|
-
v(
|
|
7789
|
+
v(y(U), { label: "人物行走" }, {
|
|
7788
7790
|
default: x(() => [
|
|
7789
|
-
v(
|
|
7791
|
+
v(y(qs), {
|
|
7790
7792
|
modelValue: n.status,
|
|
7791
7793
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.status = u),
|
|
7792
7794
|
onChange: o.onStatusChange
|
|
7793
7795
|
}, {
|
|
7794
7796
|
default: x(() => [
|
|
7795
|
-
v(
|
|
7797
|
+
v(y(Rn), {
|
|
7796
7798
|
label: "空闲",
|
|
7797
7799
|
value: "idle"
|
|
7798
7800
|
}),
|
|
7799
|
-
v(
|
|
7801
|
+
v(y(Rn), {
|
|
7800
7802
|
label: "跑",
|
|
7801
7803
|
value: "run"
|
|
7802
7804
|
}),
|
|
7803
|
-
v(
|
|
7805
|
+
v(y(Rn), {
|
|
7804
7806
|
label: "走",
|
|
7805
7807
|
value: "walk"
|
|
7806
7808
|
})
|
|
@@ -7810,11 +7812,11 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7810
7812
|
]),
|
|
7811
7813
|
_: 1
|
|
7812
7814
|
}),
|
|
7813
|
-
v(
|
|
7815
|
+
v(y(U), { label: "人物瞬移(x,y,z)" }, {
|
|
7814
7816
|
default: x(() => [
|
|
7815
7817
|
E("div", rc, [
|
|
7816
7818
|
E("div", ac, [
|
|
7817
|
-
v(
|
|
7819
|
+
v(y(Z), {
|
|
7818
7820
|
modelValue: n.position.x,
|
|
7819
7821
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => n.position.x = u),
|
|
7820
7822
|
style: { width: "70px" },
|
|
@@ -7822,7 +7824,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7822
7824
|
step: 0.01,
|
|
7823
7825
|
controls: !1
|
|
7824
7826
|
}, null, 8, ["modelValue"]),
|
|
7825
|
-
v(
|
|
7827
|
+
v(y(Z), {
|
|
7826
7828
|
modelValue: n.position.y,
|
|
7827
7829
|
"onUpdate:modelValue": c[2] || (c[2] = (u) => n.position.y = u),
|
|
7828
7830
|
style: { width: "70px" },
|
|
@@ -7830,7 +7832,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7830
7832
|
step: 0.01,
|
|
7831
7833
|
controls: !1
|
|
7832
7834
|
}, null, 8, ["modelValue"]),
|
|
7833
|
-
v(
|
|
7835
|
+
v(y(Z), {
|
|
7834
7836
|
modelValue: n.position.z,
|
|
7835
7837
|
"onUpdate:modelValue": c[3] || (c[3] = (u) => n.position.z = u),
|
|
7836
7838
|
style: { width: "70px" },
|
|
@@ -7839,7 +7841,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7839
7841
|
controls: !1
|
|
7840
7842
|
}, null, 8, ["modelValue"])
|
|
7841
7843
|
]),
|
|
7842
|
-
v(
|
|
7844
|
+
v(y(st), {
|
|
7843
7845
|
type: "warning",
|
|
7844
7846
|
onClick: o.onTeleport
|
|
7845
7847
|
}, {
|
|
@@ -7852,14 +7854,14 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7852
7854
|
]),
|
|
7853
7855
|
_: 1
|
|
7854
7856
|
}),
|
|
7855
|
-
v(
|
|
7857
|
+
v(y(U), {
|
|
7856
7858
|
label: "initPos",
|
|
7857
7859
|
span: 2
|
|
7858
7860
|
}, {
|
|
7859
7861
|
default: x(() => [
|
|
7860
7862
|
E("div", ic, [
|
|
7861
7863
|
E("div", lc, [
|
|
7862
|
-
v(
|
|
7864
|
+
v(y(Z), {
|
|
7863
7865
|
modelValue: n.initPosition.x,
|
|
7864
7866
|
"onUpdate:modelValue": c[4] || (c[4] = (u) => n.initPosition.x = u),
|
|
7865
7867
|
precision: 2,
|
|
@@ -7868,7 +7870,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7868
7870
|
controls: !1,
|
|
7869
7871
|
onChange: o.onInitPosChanged
|
|
7870
7872
|
}, null, 8, ["modelValue", "onChange"]),
|
|
7871
|
-
v(
|
|
7873
|
+
v(y(Z), {
|
|
7872
7874
|
modelValue: n.initPosition.y,
|
|
7873
7875
|
"onUpdate:modelValue": c[5] || (c[5] = (u) => n.initPosition.y = u),
|
|
7874
7876
|
precision: 2,
|
|
@@ -7877,7 +7879,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7877
7879
|
controls: !1,
|
|
7878
7880
|
onChange: o.onInitPosChanged
|
|
7879
7881
|
}, null, 8, ["modelValue", "onChange"]),
|
|
7880
|
-
v(
|
|
7882
|
+
v(y(Z), {
|
|
7881
7883
|
modelValue: n.initPosition.z,
|
|
7882
7884
|
"onUpdate:modelValue": c[6] || (c[6] = (u) => n.initPosition.z = u),
|
|
7883
7885
|
precision: 2,
|
|
@@ -7887,7 +7889,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7887
7889
|
onChange: o.onInitPosChanged
|
|
7888
7890
|
}, null, 8, ["modelValue", "onChange"])
|
|
7889
7891
|
]),
|
|
7890
|
-
v(
|
|
7892
|
+
v(y(st), {
|
|
7891
7893
|
type: "warning",
|
|
7892
7894
|
onClick: o.onResetPos
|
|
7893
7895
|
}, {
|
|
@@ -7900,19 +7902,19 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7900
7902
|
]),
|
|
7901
7903
|
_: 1
|
|
7902
7904
|
}),
|
|
7903
|
-
v(
|
|
7905
|
+
v(y(U), {
|
|
7904
7906
|
label: "虚拟胶囊体",
|
|
7905
7907
|
span: 2
|
|
7906
7908
|
}, {
|
|
7907
7909
|
default: x(() => [
|
|
7908
|
-
v(
|
|
7910
|
+
v(y(ot), {
|
|
7909
7911
|
border: "",
|
|
7910
7912
|
column: 2
|
|
7911
7913
|
}, {
|
|
7912
7914
|
default: x(() => [
|
|
7913
|
-
v(
|
|
7915
|
+
v(y(U), { label: "boxVisible" }, {
|
|
7914
7916
|
default: x(() => [
|
|
7915
|
-
v(
|
|
7917
|
+
v(y(De), {
|
|
7916
7918
|
modelValue: n.virtual.boxVisible,
|
|
7917
7919
|
"onUpdate:modelValue": c[7] || (c[7] = (u) => n.virtual.boxVisible = u),
|
|
7918
7920
|
onChange: o.onBoxVisible
|
|
@@ -7920,9 +7922,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7920
7922
|
]),
|
|
7921
7923
|
_: 1
|
|
7922
7924
|
}),
|
|
7923
|
-
v(
|
|
7925
|
+
v(y(U), { label: "capsuleVisible" }, {
|
|
7924
7926
|
default: x(() => [
|
|
7925
|
-
v(
|
|
7927
|
+
v(y(De), {
|
|
7926
7928
|
modelValue: n.virtual.capsuleVisible,
|
|
7927
7929
|
"onUpdate:modelValue": c[8] || (c[8] = (u) => n.virtual.capsuleVisible = u),
|
|
7928
7930
|
onChange: o.onCapsuleVisible
|
|
@@ -7930,9 +7932,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7930
7932
|
]),
|
|
7931
7933
|
_: 1
|
|
7932
7934
|
}),
|
|
7933
|
-
v(
|
|
7935
|
+
v(y(U), { label: "gravity" }, {
|
|
7934
7936
|
default: x(() => [
|
|
7935
|
-
v(
|
|
7937
|
+
v(y(Z), {
|
|
7936
7938
|
modelValue: n.virtual.gravity,
|
|
7937
7939
|
"onUpdate:modelValue": c[9] || (c[9] = (u) => n.virtual.gravity = u),
|
|
7938
7940
|
onChange: o.onG
|
|
@@ -7940,9 +7942,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7940
7942
|
]),
|
|
7941
7943
|
_: 1
|
|
7942
7944
|
}),
|
|
7943
|
-
v(
|
|
7945
|
+
v(y(U), { label: "radius" }, {
|
|
7944
7946
|
default: x(() => [
|
|
7945
|
-
v(
|
|
7947
|
+
v(y(Z), {
|
|
7946
7948
|
modelValue: n.virtual.radius,
|
|
7947
7949
|
"onUpdate:modelValue": c[10] || (c[10] = (u) => n.virtual.radius = u),
|
|
7948
7950
|
precision: 2,
|
|
@@ -7952,11 +7954,11 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7952
7954
|
]),
|
|
7953
7955
|
_: 1
|
|
7954
7956
|
}),
|
|
7955
|
-
v(
|
|
7957
|
+
v(y(U), { label: "start" }, {
|
|
7956
7958
|
default: x(() => [
|
|
7957
7959
|
E("div", cc, [
|
|
7958
7960
|
E("div", uc, [
|
|
7959
|
-
v(
|
|
7961
|
+
v(y(Z), {
|
|
7960
7962
|
modelValue: n.virtual.start.x,
|
|
7961
7963
|
"onUpdate:modelValue": c[11] || (c[11] = (u) => n.virtual.start.x = u),
|
|
7962
7964
|
precision: 2,
|
|
@@ -7965,7 +7967,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7965
7967
|
controls: !1,
|
|
7966
7968
|
onChange: o.onCapsule
|
|
7967
7969
|
}, null, 8, ["modelValue", "onChange"]),
|
|
7968
|
-
v(
|
|
7970
|
+
v(y(Z), {
|
|
7969
7971
|
modelValue: n.virtual.start.y,
|
|
7970
7972
|
"onUpdate:modelValue": c[12] || (c[12] = (u) => n.virtual.start.y = u),
|
|
7971
7973
|
precision: 2,
|
|
@@ -7974,7 +7976,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7974
7976
|
controls: !1,
|
|
7975
7977
|
onChange: o.onCapsule
|
|
7976
7978
|
}, null, 8, ["modelValue", "onChange"]),
|
|
7977
|
-
v(
|
|
7979
|
+
v(y(Z), {
|
|
7978
7980
|
modelValue: n.virtual.start.z,
|
|
7979
7981
|
"onUpdate:modelValue": c[13] || (c[13] = (u) => n.virtual.start.z = u),
|
|
7980
7982
|
precision: 2,
|
|
@@ -7988,11 +7990,11 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
7988
7990
|
]),
|
|
7989
7991
|
_: 1
|
|
7990
7992
|
}),
|
|
7991
|
-
v(
|
|
7993
|
+
v(y(U), { label: "end" }, {
|
|
7992
7994
|
default: x(() => [
|
|
7993
7995
|
E("div", dc, [
|
|
7994
7996
|
E("div", pc, [
|
|
7995
|
-
v(
|
|
7997
|
+
v(y(Z), {
|
|
7996
7998
|
modelValue: n.virtual.end.x,
|
|
7997
7999
|
"onUpdate:modelValue": c[14] || (c[14] = (u) => n.virtual.end.x = u),
|
|
7998
8000
|
precision: 2,
|
|
@@ -8001,7 +8003,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8001
8003
|
controls: !1,
|
|
8002
8004
|
onChange: o.onCapsule
|
|
8003
8005
|
}, null, 8, ["modelValue", "onChange"]),
|
|
8004
|
-
v(
|
|
8006
|
+
v(y(Z), {
|
|
8005
8007
|
modelValue: n.virtual.end.y,
|
|
8006
8008
|
"onUpdate:modelValue": c[15] || (c[15] = (u) => n.virtual.end.y = u),
|
|
8007
8009
|
precision: 2,
|
|
@@ -8010,7 +8012,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8010
8012
|
controls: !1,
|
|
8011
8013
|
onChange: o.onCapsule
|
|
8012
8014
|
}, null, 8, ["modelValue", "onChange"]),
|
|
8013
|
-
v(
|
|
8015
|
+
v(y(Z), {
|
|
8014
8016
|
modelValue: n.virtual.end.z,
|
|
8015
8017
|
"onUpdate:modelValue": c[16] || (c[16] = (u) => n.virtual.end.z = u),
|
|
8016
8018
|
precision: 2,
|
|
@@ -8030,42 +8032,42 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8030
8032
|
]),
|
|
8031
8033
|
_: 1
|
|
8032
8034
|
}),
|
|
8033
|
-
v(
|
|
8035
|
+
v(y(U), {
|
|
8034
8036
|
label: "move",
|
|
8035
8037
|
span: 2
|
|
8036
8038
|
}, {
|
|
8037
8039
|
default: x(() => [
|
|
8038
|
-
v(
|
|
8040
|
+
v(y(Yn), { class: "w100%" }, {
|
|
8039
8041
|
default: x(() => [
|
|
8040
|
-
v(
|
|
8042
|
+
v(y(ot), { border: "" }, {
|
|
8041
8043
|
default: x(() => [
|
|
8042
|
-
v(
|
|
8044
|
+
v(y(U), { label: "forward" }, {
|
|
8043
8045
|
default: x(() => [
|
|
8044
8046
|
E("span", null, Pe(n.move.forward), 1)
|
|
8045
8047
|
]),
|
|
8046
8048
|
_: 1
|
|
8047
8049
|
}),
|
|
8048
|
-
v(
|
|
8050
|
+
v(y(U), { label: "backward" }, {
|
|
8049
8051
|
default: x(() => [
|
|
8050
8052
|
E("span", null, Pe(n.move.backward), 1)
|
|
8051
8053
|
]),
|
|
8052
8054
|
_: 1
|
|
8053
8055
|
}),
|
|
8054
|
-
v(
|
|
8056
|
+
v(y(U), { label: "left" }, {
|
|
8055
8057
|
default: x(() => [
|
|
8056
8058
|
E("span", null, Pe(n.move.left), 1)
|
|
8057
8059
|
]),
|
|
8058
8060
|
_: 1
|
|
8059
8061
|
}),
|
|
8060
|
-
v(
|
|
8062
|
+
v(y(U), { label: "right" }, {
|
|
8061
8063
|
default: x(() => [
|
|
8062
8064
|
E("span", null, Pe(n.move.right), 1)
|
|
8063
8065
|
]),
|
|
8064
8066
|
_: 1
|
|
8065
8067
|
}),
|
|
8066
|
-
v(
|
|
8068
|
+
v(y(U), { label: "speed" }, {
|
|
8067
8069
|
default: x(() => [
|
|
8068
|
-
v(
|
|
8070
|
+
v(y(Z), {
|
|
8069
8071
|
modelValue: n.move.speed,
|
|
8070
8072
|
"onUpdate:modelValue": c[17] || (c[17] = (u) => n.move.speed = u),
|
|
8071
8073
|
style: { width: "100%" },
|
|
@@ -8075,25 +8077,25 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8075
8077
|
]),
|
|
8076
8078
|
_: 1
|
|
8077
8079
|
}),
|
|
8078
|
-
v(
|
|
8080
|
+
v(y(U), { label: "jumpHeight" }, {
|
|
8079
8081
|
default: x(() => [
|
|
8080
8082
|
E("span", null, Pe(n.move.jumpHeight), 1)
|
|
8081
8083
|
]),
|
|
8082
8084
|
_: 1
|
|
8083
8085
|
}),
|
|
8084
|
-
v(
|
|
8086
|
+
v(y(U), { label: "canJump" }, {
|
|
8085
8087
|
default: x(() => [
|
|
8086
8088
|
E("span", null, Pe(n.move.canJump), 1)
|
|
8087
8089
|
]),
|
|
8088
8090
|
_: 1
|
|
8089
8091
|
}),
|
|
8090
|
-
v(
|
|
8092
|
+
v(y(U), { label: "jumping" }, {
|
|
8091
8093
|
default: x(() => [
|
|
8092
8094
|
E("span", null, Pe(n.move.jumping), 1)
|
|
8093
8095
|
]),
|
|
8094
8096
|
_: 1
|
|
8095
8097
|
}),
|
|
8096
|
-
v(
|
|
8098
|
+
v(y(U), { label: "onFloor" }, {
|
|
8097
8099
|
default: x(() => [
|
|
8098
8100
|
E("span", null, Pe(n.move.onFloor), 1)
|
|
8099
8101
|
]),
|
|
@@ -8111,15 +8113,15 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8111
8113
|
]),
|
|
8112
8114
|
_: 1
|
|
8113
8115
|
}),
|
|
8114
|
-
v(
|
|
8116
|
+
v(y(ot), {
|
|
8115
8117
|
title: "场景配置",
|
|
8116
8118
|
column: 3,
|
|
8117
8119
|
border: ""
|
|
8118
8120
|
}, {
|
|
8119
8121
|
default: x(() => [
|
|
8120
|
-
v(
|
|
8122
|
+
v(y(U), { label: "RendererClick事件日志" }, {
|
|
8121
8123
|
default: x(() => [
|
|
8122
|
-
v(
|
|
8124
|
+
v(y(De), {
|
|
8123
8125
|
modelValue: n.clickNotify,
|
|
8124
8126
|
"onUpdate:modelValue": c[18] || (c[18] = (u) => n.clickNotify = u),
|
|
8125
8127
|
onChange: s.onRendererClickEvChange
|
|
@@ -8127,9 +8129,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8127
8129
|
]),
|
|
8128
8130
|
_: 1
|
|
8129
8131
|
}),
|
|
8130
|
-
v(
|
|
8132
|
+
v(y(U), { label: "显示bvh" }, {
|
|
8131
8133
|
default: x(() => [
|
|
8132
|
-
v(
|
|
8134
|
+
v(y(De), {
|
|
8133
8135
|
modelValue: n.bvhVisible,
|
|
8134
8136
|
"onUpdate:modelValue": c[19] || (c[19] = (u) => n.bvhVisible = u),
|
|
8135
8137
|
onChange: s.onBvhVisible
|
|
@@ -8137,9 +8139,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8137
8139
|
]),
|
|
8138
8140
|
_: 1
|
|
8139
8141
|
}),
|
|
8140
|
-
v(
|
|
8142
|
+
v(y(U), { label: "显示bvh helper" }, {
|
|
8141
8143
|
default: x(() => [
|
|
8142
|
-
v(
|
|
8144
|
+
v(y(De), {
|
|
8143
8145
|
modelValue: n.bvhHelperVisible,
|
|
8144
8146
|
"onUpdate:modelValue": c[20] || (c[20] = (u) => n.bvhHelperVisible = u),
|
|
8145
8147
|
onChange: s.onBvhHelperVisible
|
|
@@ -8229,15 +8231,15 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8229
8231
|
o.initCamera(), o.initOrbitControls();
|
|
8230
8232
|
}
|
|
8231
8233
|
return Xe(s), (r, l) => (T(), P("div", hc, [
|
|
8232
|
-
v(
|
|
8234
|
+
v(y(ot), {
|
|
8233
8235
|
title: "相机初始化参数",
|
|
8234
8236
|
column: 2,
|
|
8235
8237
|
border: ""
|
|
8236
8238
|
}, {
|
|
8237
8239
|
default: x(() => [
|
|
8238
|
-
v(
|
|
8240
|
+
v(y(U), { label: "fov" }, {
|
|
8239
8241
|
default: x(() => [
|
|
8240
|
-
v(
|
|
8242
|
+
v(y(Z), {
|
|
8241
8243
|
modelValue: n.camera.fov,
|
|
8242
8244
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.camera.fov = c),
|
|
8243
8245
|
onChange: o.setInitParams
|
|
@@ -8245,9 +8247,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8245
8247
|
]),
|
|
8246
8248
|
_: 1
|
|
8247
8249
|
}),
|
|
8248
|
-
v(
|
|
8250
|
+
v(y(U), { label: "aspect" }, {
|
|
8249
8251
|
default: x(() => [
|
|
8250
|
-
v(
|
|
8252
|
+
v(y(Z), {
|
|
8251
8253
|
readonly: "",
|
|
8252
8254
|
modelValue: n.camera.aspect,
|
|
8253
8255
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => n.camera.aspect = c),
|
|
@@ -8258,9 +8260,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8258
8260
|
]),
|
|
8259
8261
|
_: 1
|
|
8260
8262
|
}),
|
|
8261
|
-
v(
|
|
8263
|
+
v(y(U), { label: "near" }, {
|
|
8262
8264
|
default: x(() => [
|
|
8263
|
-
v(
|
|
8265
|
+
v(y(Z), {
|
|
8264
8266
|
modelValue: n.camera.near,
|
|
8265
8267
|
"onUpdate:modelValue": l[2] || (l[2] = (c) => n.camera.near = c),
|
|
8266
8268
|
precision: 3,
|
|
@@ -8270,9 +8272,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8270
8272
|
]),
|
|
8271
8273
|
_: 1
|
|
8272
8274
|
}),
|
|
8273
|
-
v(
|
|
8275
|
+
v(y(U), { label: "far" }, {
|
|
8274
8276
|
default: x(() => [
|
|
8275
|
-
v(
|
|
8277
|
+
v(y(Z), {
|
|
8276
8278
|
modelValue: n.camera.far,
|
|
8277
8279
|
"onUpdate:modelValue": l[3] || (l[3] = (c) => n.camera.far = c),
|
|
8278
8280
|
onChange: o.setInitParams
|
|
@@ -8280,27 +8282,27 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8280
8282
|
]),
|
|
8281
8283
|
_: 1
|
|
8282
8284
|
}),
|
|
8283
|
-
v(
|
|
8285
|
+
v(y(U), {
|
|
8284
8286
|
label: "相机位置",
|
|
8285
8287
|
span: 2
|
|
8286
8288
|
}, {
|
|
8287
8289
|
default: x(() => [
|
|
8288
8290
|
E("div", mc, [
|
|
8289
|
-
v(
|
|
8291
|
+
v(y(Z), {
|
|
8290
8292
|
modelValue: n.camera.position.x,
|
|
8291
8293
|
"onUpdate:modelValue": l[4] || (l[4] = (c) => n.camera.position.x = c),
|
|
8292
8294
|
precision: 2,
|
|
8293
8295
|
step: 1,
|
|
8294
8296
|
onChange: o.onPositionChange
|
|
8295
8297
|
}, null, 8, ["modelValue", "onChange"]),
|
|
8296
|
-
v(
|
|
8298
|
+
v(y(Z), {
|
|
8297
8299
|
modelValue: n.camera.position.y,
|
|
8298
8300
|
"onUpdate:modelValue": l[5] || (l[5] = (c) => n.camera.position.y = c),
|
|
8299
8301
|
precision: 2,
|
|
8300
8302
|
step: 1,
|
|
8301
8303
|
onChange: o.onPositionChange
|
|
8302
8304
|
}, null, 8, ["modelValue", "onChange"]),
|
|
8303
|
-
v(
|
|
8305
|
+
v(y(Z), {
|
|
8304
8306
|
modelValue: n.camera.position.z,
|
|
8305
8307
|
"onUpdate:modelValue": l[6] || (l[6] = (c) => n.camera.position.z = c),
|
|
8306
8308
|
precision: 2,
|
|
@@ -8314,15 +8316,15 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8314
8316
|
]),
|
|
8315
8317
|
_: 1
|
|
8316
8318
|
}),
|
|
8317
|
-
v(
|
|
8319
|
+
v(y(ot), {
|
|
8318
8320
|
title: "OrbitControls",
|
|
8319
8321
|
column: 3,
|
|
8320
8322
|
border: ""
|
|
8321
8323
|
}, {
|
|
8322
8324
|
default: x(() => [
|
|
8323
|
-
v(
|
|
8325
|
+
v(y(U), { label: "enabled" }, {
|
|
8324
8326
|
default: x(() => [
|
|
8325
|
-
v(
|
|
8327
|
+
v(y(De), {
|
|
8326
8328
|
modelValue: n.orbit.enabled,
|
|
8327
8329
|
"onUpdate:modelValue": l[7] || (l[7] = (c) => n.orbit.enabled = c),
|
|
8328
8330
|
onChange: o.orbitUpdate
|
|
@@ -8330,9 +8332,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8330
8332
|
]),
|
|
8331
8333
|
_: 1
|
|
8332
8334
|
}),
|
|
8333
|
-
v(
|
|
8335
|
+
v(y(U), { label: "minDistance" }, {
|
|
8334
8336
|
default: x(() => [
|
|
8335
|
-
v(
|
|
8337
|
+
v(y(Z), {
|
|
8336
8338
|
modelValue: n.orbit.minDistance,
|
|
8337
8339
|
"onUpdate:modelValue": l[8] || (l[8] = (c) => n.orbit.minDistance = c),
|
|
8338
8340
|
controls: !1,
|
|
@@ -8343,9 +8345,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8343
8345
|
]),
|
|
8344
8346
|
_: 1
|
|
8345
8347
|
}),
|
|
8346
|
-
v(
|
|
8348
|
+
v(y(U), { label: "maxDistance" }, {
|
|
8347
8349
|
default: x(() => [
|
|
8348
|
-
v(
|
|
8350
|
+
v(y(Z), {
|
|
8349
8351
|
modelValue: n.orbit.maxDistance,
|
|
8350
8352
|
"onUpdate:modelValue": l[9] || (l[9] = (c) => n.orbit.maxDistance = c),
|
|
8351
8353
|
controls: !1,
|
|
@@ -8356,9 +8358,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8356
8358
|
]),
|
|
8357
8359
|
_: 1
|
|
8358
8360
|
}),
|
|
8359
|
-
v(
|
|
8361
|
+
v(y(U), { label: "minZoom" }, {
|
|
8360
8362
|
default: x(() => [
|
|
8361
|
-
v(
|
|
8363
|
+
v(y(Z), {
|
|
8362
8364
|
modelValue: n.orbit.minZoom,
|
|
8363
8365
|
"onUpdate:modelValue": l[10] || (l[10] = (c) => n.orbit.minZoom = c),
|
|
8364
8366
|
controls: !1,
|
|
@@ -8369,9 +8371,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8369
8371
|
]),
|
|
8370
8372
|
_: 1
|
|
8371
8373
|
}),
|
|
8372
|
-
v(
|
|
8374
|
+
v(y(U), { label: "maxZoom" }, {
|
|
8373
8375
|
default: x(() => [
|
|
8374
|
-
v(
|
|
8376
|
+
v(y(Z), {
|
|
8375
8377
|
modelValue: n.orbit.maxZoom,
|
|
8376
8378
|
"onUpdate:modelValue": l[11] || (l[11] = (c) => n.orbit.maxZoom = c),
|
|
8377
8379
|
controls: !1,
|
|
@@ -8382,9 +8384,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8382
8384
|
]),
|
|
8383
8385
|
_: 1
|
|
8384
8386
|
}),
|
|
8385
|
-
v(
|
|
8387
|
+
v(y(U), { label: "minTargetRadius" }, {
|
|
8386
8388
|
default: x(() => [
|
|
8387
|
-
v(
|
|
8389
|
+
v(y(Z), {
|
|
8388
8390
|
modelValue: n.orbit.minTargetRadius,
|
|
8389
8391
|
"onUpdate:modelValue": l[12] || (l[12] = (c) => n.orbit.minTargetRadius = c),
|
|
8390
8392
|
controls: !1,
|
|
@@ -8395,9 +8397,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8395
8397
|
]),
|
|
8396
8398
|
_: 1
|
|
8397
8399
|
}),
|
|
8398
|
-
v(
|
|
8400
|
+
v(y(U), { label: "maxTargetRadius" }, {
|
|
8399
8401
|
default: x(() => [
|
|
8400
|
-
v(
|
|
8402
|
+
v(y(Z), {
|
|
8401
8403
|
modelValue: n.orbit.maxTargetRadius,
|
|
8402
8404
|
"onUpdate:modelValue": l[13] || (l[13] = (c) => n.orbit.maxTargetRadius = c),
|
|
8403
8405
|
controls: !1,
|
|
@@ -8408,9 +8410,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8408
8410
|
]),
|
|
8409
8411
|
_: 1
|
|
8410
8412
|
}),
|
|
8411
|
-
v(
|
|
8413
|
+
v(y(U), { label: "minPolarAngle" }, {
|
|
8412
8414
|
default: x(() => [
|
|
8413
|
-
v(
|
|
8415
|
+
v(y(Z), {
|
|
8414
8416
|
modelValue: n.orbit.minPolarAngle,
|
|
8415
8417
|
"onUpdate:modelValue": l[14] || (l[14] = (c) => n.orbit.minPolarAngle = c),
|
|
8416
8418
|
min: 0,
|
|
@@ -8423,9 +8425,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8423
8425
|
]),
|
|
8424
8426
|
_: 1
|
|
8425
8427
|
}),
|
|
8426
|
-
v(
|
|
8428
|
+
v(y(U), { label: "maxPolarAngle" }, {
|
|
8427
8429
|
default: x(() => [
|
|
8428
|
-
v(
|
|
8430
|
+
v(y(Z), {
|
|
8429
8431
|
modelValue: n.orbit.maxPolarAngle,
|
|
8430
8432
|
"onUpdate:modelValue": l[15] || (l[15] = (c) => n.orbit.maxPolarAngle = c),
|
|
8431
8433
|
min: 0,
|
|
@@ -8438,9 +8440,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8438
8440
|
]),
|
|
8439
8441
|
_: 1
|
|
8440
8442
|
}),
|
|
8441
|
-
v(
|
|
8443
|
+
v(y(U), { label: "minAzimuthAngle" }, {
|
|
8442
8444
|
default: x(() => [
|
|
8443
|
-
v(
|
|
8445
|
+
v(y(Z), {
|
|
8444
8446
|
modelValue: n.orbit.minAzimuthAngle,
|
|
8445
8447
|
"onUpdate:modelValue": l[16] || (l[16] = (c) => n.orbit.minAzimuthAngle = c),
|
|
8446
8448
|
controls: !1,
|
|
@@ -8451,9 +8453,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8451
8453
|
]),
|
|
8452
8454
|
_: 1
|
|
8453
8455
|
}),
|
|
8454
|
-
v(
|
|
8456
|
+
v(y(U), { label: "maxAzimuthAngle" }, {
|
|
8455
8457
|
default: x(() => [
|
|
8456
|
-
v(
|
|
8458
|
+
v(y(Z), {
|
|
8457
8459
|
modelValue: n.orbit.maxAzimuthAngle,
|
|
8458
8460
|
"onUpdate:modelValue": l[17] || (l[17] = (c) => n.orbit.maxAzimuthAngle = c),
|
|
8459
8461
|
controls: !1,
|
|
@@ -8464,9 +8466,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8464
8466
|
]),
|
|
8465
8467
|
_: 1
|
|
8466
8468
|
}),
|
|
8467
|
-
v(
|
|
8469
|
+
v(y(U), { label: "enableDamping" }, {
|
|
8468
8470
|
default: x(() => [
|
|
8469
|
-
v(
|
|
8471
|
+
v(y(De), {
|
|
8470
8472
|
modelValue: n.orbit.enableDamping,
|
|
8471
8473
|
"onUpdate:modelValue": l[18] || (l[18] = (c) => n.orbit.enableDamping = c),
|
|
8472
8474
|
onChange: o.orbitUpdate
|
|
@@ -8474,9 +8476,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8474
8476
|
]),
|
|
8475
8477
|
_: 1
|
|
8476
8478
|
}),
|
|
8477
|
-
v(
|
|
8479
|
+
v(y(U), { label: "dampingFactor" }, {
|
|
8478
8480
|
default: x(() => [
|
|
8479
|
-
v(
|
|
8481
|
+
v(y(Z), {
|
|
8480
8482
|
modelValue: n.orbit.dampingFactor,
|
|
8481
8483
|
"onUpdate:modelValue": l[19] || (l[19] = (c) => n.orbit.dampingFactor = c),
|
|
8482
8484
|
controls: !1,
|
|
@@ -8487,9 +8489,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8487
8489
|
]),
|
|
8488
8490
|
_: 1
|
|
8489
8491
|
}),
|
|
8490
|
-
v(
|
|
8492
|
+
v(y(U), { label: "enableZoom" }, {
|
|
8491
8493
|
default: x(() => [
|
|
8492
|
-
v(
|
|
8494
|
+
v(y(De), {
|
|
8493
8495
|
modelValue: n.orbit.enableZoom,
|
|
8494
8496
|
"onUpdate:modelValue": l[20] || (l[20] = (c) => n.orbit.enableZoom = c),
|
|
8495
8497
|
onChange: o.orbitUpdate
|
|
@@ -8497,9 +8499,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8497
8499
|
]),
|
|
8498
8500
|
_: 1
|
|
8499
8501
|
}),
|
|
8500
|
-
v(
|
|
8502
|
+
v(y(U), { label: "zoomSpeed" }, {
|
|
8501
8503
|
default: x(() => [
|
|
8502
|
-
v(
|
|
8504
|
+
v(y(Z), {
|
|
8503
8505
|
modelValue: n.orbit.zoomSpeed,
|
|
8504
8506
|
"onUpdate:modelValue": l[21] || (l[21] = (c) => n.orbit.zoomSpeed = c),
|
|
8505
8507
|
controls: !1,
|
|
@@ -8510,9 +8512,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8510
8512
|
]),
|
|
8511
8513
|
_: 1
|
|
8512
8514
|
}),
|
|
8513
|
-
v(
|
|
8515
|
+
v(y(U), { label: "zoomToCursor" }, {
|
|
8514
8516
|
default: x(() => [
|
|
8515
|
-
v(
|
|
8517
|
+
v(y(De), {
|
|
8516
8518
|
modelValue: n.orbit.zoomToCursor,
|
|
8517
8519
|
"onUpdate:modelValue": l[22] || (l[22] = (c) => n.orbit.zoomToCursor = c),
|
|
8518
8520
|
onChange: o.orbitUpdate
|
|
@@ -8520,9 +8522,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8520
8522
|
]),
|
|
8521
8523
|
_: 1
|
|
8522
8524
|
}),
|
|
8523
|
-
v(
|
|
8525
|
+
v(y(U), { label: "enableRotate" }, {
|
|
8524
8526
|
default: x(() => [
|
|
8525
|
-
v(
|
|
8527
|
+
v(y(De), {
|
|
8526
8528
|
modelValue: n.orbit.enableRotate,
|
|
8527
8529
|
"onUpdate:modelValue": l[23] || (l[23] = (c) => n.orbit.enableRotate = c),
|
|
8528
8530
|
onChange: o.orbitUpdate
|
|
@@ -8530,9 +8532,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8530
8532
|
]),
|
|
8531
8533
|
_: 1
|
|
8532
8534
|
}),
|
|
8533
|
-
v(
|
|
8535
|
+
v(y(U), { label: "rotateSpeed" }, {
|
|
8534
8536
|
default: x(() => [
|
|
8535
|
-
v(
|
|
8537
|
+
v(y(Z), {
|
|
8536
8538
|
modelValue: n.orbit.rotateSpeed,
|
|
8537
8539
|
"onUpdate:modelValue": l[24] || (l[24] = (c) => n.orbit.rotateSpeed = c),
|
|
8538
8540
|
controls: !1,
|
|
@@ -8543,9 +8545,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8543
8545
|
]),
|
|
8544
8546
|
_: 1
|
|
8545
8547
|
}),
|
|
8546
|
-
v(
|
|
8548
|
+
v(y(U), { label: "enablePan" }, {
|
|
8547
8549
|
default: x(() => [
|
|
8548
|
-
v(
|
|
8550
|
+
v(y(De), {
|
|
8549
8551
|
modelValue: n.orbit.enablePan,
|
|
8550
8552
|
"onUpdate:modelValue": l[25] || (l[25] = (c) => n.orbit.enablePan = c),
|
|
8551
8553
|
onChange: o.orbitUpdate
|
|
@@ -8553,9 +8555,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8553
8555
|
]),
|
|
8554
8556
|
_: 1
|
|
8555
8557
|
}),
|
|
8556
|
-
v(
|
|
8558
|
+
v(y(U), { label: "panSpeed" }, {
|
|
8557
8559
|
default: x(() => [
|
|
8558
|
-
v(
|
|
8560
|
+
v(y(Z), {
|
|
8559
8561
|
modelValue: n.orbit.panSpeed,
|
|
8560
8562
|
"onUpdate:modelValue": l[26] || (l[26] = (c) => n.orbit.panSpeed = c),
|
|
8561
8563
|
controls: !1,
|
|
@@ -8566,9 +8568,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8566
8568
|
]),
|
|
8567
8569
|
_: 1
|
|
8568
8570
|
}),
|
|
8569
|
-
v(
|
|
8571
|
+
v(y(U), { label: "screenSpacePanning" }, {
|
|
8570
8572
|
default: x(() => [
|
|
8571
|
-
v(
|
|
8573
|
+
v(y(De), {
|
|
8572
8574
|
modelValue: n.orbit.screenSpacePanning,
|
|
8573
8575
|
"onUpdate:modelValue": l[27] || (l[27] = (c) => n.orbit.screenSpacePanning = c),
|
|
8574
8576
|
onChange: o.orbitUpdate
|
|
@@ -8576,9 +8578,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8576
8578
|
]),
|
|
8577
8579
|
_: 1
|
|
8578
8580
|
}),
|
|
8579
|
-
v(
|
|
8581
|
+
v(y(U), { label: "keyPanSpeed" }, {
|
|
8580
8582
|
default: x(() => [
|
|
8581
|
-
v(
|
|
8583
|
+
v(y(Z), {
|
|
8582
8584
|
modelValue: n.orbit.keyPanSpeed,
|
|
8583
8585
|
"onUpdate:modelValue": l[28] || (l[28] = (c) => n.orbit.keyPanSpeed = c),
|
|
8584
8586
|
controls: !1,
|
|
@@ -8589,9 +8591,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8589
8591
|
]),
|
|
8590
8592
|
_: 1
|
|
8591
8593
|
}),
|
|
8592
|
-
v(
|
|
8594
|
+
v(y(U), { label: "autoRotate" }, {
|
|
8593
8595
|
default: x(() => [
|
|
8594
|
-
v(
|
|
8596
|
+
v(y(De), {
|
|
8595
8597
|
modelValue: n.orbit.autoRotate,
|
|
8596
8598
|
"onUpdate:modelValue": l[29] || (l[29] = (c) => n.orbit.autoRotate = c),
|
|
8597
8599
|
onChange: o.orbitUpdate
|
|
@@ -8599,9 +8601,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8599
8601
|
]),
|
|
8600
8602
|
_: 1
|
|
8601
8603
|
}),
|
|
8602
|
-
v(
|
|
8604
|
+
v(y(U), { label: "autoRotateSpeed" }, {
|
|
8603
8605
|
default: x(() => [
|
|
8604
|
-
v(
|
|
8606
|
+
v(y(Z), {
|
|
8605
8607
|
modelValue: n.orbit.autoRotateSpeed,
|
|
8606
8608
|
"onUpdate:modelValue": l[30] || (l[30] = (c) => n.orbit.autoRotateSpeed = c),
|
|
8607
8609
|
controls: !1,
|
|
@@ -8673,9 +8675,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8673
8675
|
}
|
|
8674
8676
|
return Xe(d), (f, m) => (T(), P("div", bc, [
|
|
8675
8677
|
E("div", null, [
|
|
8676
|
-
v(
|
|
8678
|
+
v(y(st), {
|
|
8677
8679
|
type: "primary",
|
|
8678
|
-
onClick:
|
|
8680
|
+
onClick: y(o)
|
|
8679
8681
|
}, {
|
|
8680
8682
|
default: x(() => [...m[2] || (m[2] = [
|
|
8681
8683
|
Se("新增", -1)
|
|
@@ -8683,32 +8685,32 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8683
8685
|
_: 1
|
|
8684
8686
|
}, 8, ["onClick"])
|
|
8685
8687
|
]),
|
|
8686
|
-
v(
|
|
8688
|
+
v(y(Oo), {
|
|
8687
8689
|
"expand-icon-position": "left",
|
|
8688
|
-
modelValue:
|
|
8689
|
-
"onUpdate:modelValue": m[0] || (m[0] = (h) =>
|
|
8690
|
+
modelValue: y(r).collapse,
|
|
8691
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => y(r).collapse = h)
|
|
8690
8692
|
}, {
|
|
8691
8693
|
default: x(() => [
|
|
8692
|
-
(T(!0), P(it, null, Qe(c.value, (h) => (T(), de(
|
|
8694
|
+
(T(!0), P(it, null, Qe(c.value, (h) => (T(), de(y(Hn), {
|
|
8693
8695
|
key: h.id,
|
|
8694
8696
|
name: h.id
|
|
8695
8697
|
}, {
|
|
8696
8698
|
title: x(() => [
|
|
8697
8699
|
E("div", vc, [
|
|
8698
|
-
v(
|
|
8699
|
-
type: h.id ===
|
|
8700
|
-
onClick: jo((g) =>
|
|
8700
|
+
v(y(st), {
|
|
8701
|
+
type: h.id === y(r).current ? "primary" : "default",
|
|
8702
|
+
onClick: jo((g) => y(r).setCurrent(h.id), ["stop"])
|
|
8701
8703
|
}, {
|
|
8702
8704
|
default: x(() => [
|
|
8703
8705
|
Se(Pe(h.name), 1)
|
|
8704
8706
|
]),
|
|
8705
8707
|
_: 2
|
|
8706
8708
|
}, 1032, ["type", "onClick"]),
|
|
8707
|
-
v(
|
|
8709
|
+
v(y(st), {
|
|
8708
8710
|
type: "danger",
|
|
8709
8711
|
size: "small",
|
|
8710
8712
|
plain: "",
|
|
8711
|
-
onClick: jo((g) =>
|
|
8713
|
+
onClick: jo((g) => y(r).delete(h.id), ["stop"])
|
|
8712
8714
|
}, {
|
|
8713
8715
|
default: x(() => [...m[3] || (m[3] = [
|
|
8714
8716
|
Se(" 删除 ", -1)
|
|
@@ -8719,14 +8721,14 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8719
8721
|
]),
|
|
8720
8722
|
default: x(() => [
|
|
8721
8723
|
E("div", wc, [
|
|
8722
|
-
v(
|
|
8724
|
+
v(y(ot), {
|
|
8723
8725
|
column: 2,
|
|
8724
8726
|
border: ""
|
|
8725
8727
|
}, {
|
|
8726
8728
|
default: x(() => [
|
|
8727
|
-
v(
|
|
8729
|
+
v(y(U), { label: "类型" }, {
|
|
8728
8730
|
default: x(() => [
|
|
8729
|
-
v(
|
|
8731
|
+
v(y($n), { type: "primary" }, {
|
|
8730
8732
|
default: x(() => [
|
|
8731
8733
|
Se(Pe(h.type), 1)
|
|
8732
8734
|
]),
|
|
@@ -8735,9 +8737,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8735
8737
|
]),
|
|
8736
8738
|
_: 2
|
|
8737
8739
|
}, 1024),
|
|
8738
|
-
v(
|
|
8740
|
+
v(y(U), { label: "id" }, {
|
|
8739
8741
|
default: x(() => [
|
|
8740
|
-
v(
|
|
8742
|
+
v(y($n), { type: "primary" }, {
|
|
8741
8743
|
default: x(() => [
|
|
8742
8744
|
Se(Pe(h.id), 1)
|
|
8743
8745
|
]),
|
|
@@ -8746,14 +8748,14 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8746
8748
|
]),
|
|
8747
8749
|
_: 2
|
|
8748
8750
|
}, 1024),
|
|
8749
|
-
h.position ? (T(), de(
|
|
8751
|
+
h.position ? (T(), de(y(U), {
|
|
8750
8752
|
key: 0,
|
|
8751
8753
|
label: "位置偏移(x,y,z)",
|
|
8752
8754
|
span: 2
|
|
8753
8755
|
}, {
|
|
8754
8756
|
default: x(() => [
|
|
8755
8757
|
E("div", _c, [
|
|
8756
|
-
v(
|
|
8758
|
+
v(y(Z), {
|
|
8757
8759
|
modelValue: h.position.x,
|
|
8758
8760
|
"onUpdate:modelValue": (g) => h.position.x = g,
|
|
8759
8761
|
size: "small",
|
|
@@ -8762,7 +8764,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8762
8764
|
onChange: (g) => p(h),
|
|
8763
8765
|
onInput: (g) => p(h)
|
|
8764
8766
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onInput"]),
|
|
8765
|
-
v(
|
|
8767
|
+
v(y(Z), {
|
|
8766
8768
|
modelValue: h.position.y,
|
|
8767
8769
|
"onUpdate:modelValue": (g) => h.position.y = g,
|
|
8768
8770
|
size: "small",
|
|
@@ -8771,7 +8773,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8771
8773
|
onChange: (g) => p(h),
|
|
8772
8774
|
onInput: (g) => p(h)
|
|
8773
8775
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onInput"]),
|
|
8774
|
-
v(
|
|
8776
|
+
v(y(Z), {
|
|
8775
8777
|
modelValue: h.position.z,
|
|
8776
8778
|
"onUpdate:modelValue": (g) => h.position.z = g,
|
|
8777
8779
|
size: "small",
|
|
@@ -8784,14 +8786,14 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8784
8786
|
]),
|
|
8785
8787
|
_: 2
|
|
8786
8788
|
}, 1024)) : rt("", !0),
|
|
8787
|
-
h.rotate ? (T(), de(
|
|
8789
|
+
h.rotate ? (T(), de(y(U), {
|
|
8788
8790
|
key: 1,
|
|
8789
8791
|
label: "角度偏移(x,y,z)",
|
|
8790
8792
|
span: 2
|
|
8791
8793
|
}, {
|
|
8792
8794
|
default: x(() => [
|
|
8793
8795
|
E("div", xc, [
|
|
8794
|
-
v(
|
|
8796
|
+
v(y(Z), {
|
|
8795
8797
|
modelValue: h.rotate.x,
|
|
8796
8798
|
"onUpdate:modelValue": (g) => h.rotate.x = g,
|
|
8797
8799
|
size: "small",
|
|
@@ -8800,7 +8802,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8800
8802
|
onChange: (g) => p(h),
|
|
8801
8803
|
onInput: (g) => p(h)
|
|
8802
8804
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onInput"]),
|
|
8803
|
-
v(
|
|
8805
|
+
v(y(Z), {
|
|
8804
8806
|
modelValue: h.rotate.y,
|
|
8805
8807
|
"onUpdate:modelValue": (g) => h.rotate.y = g,
|
|
8806
8808
|
size: "small",
|
|
@@ -8809,7 +8811,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8809
8811
|
onChange: (g) => p(h),
|
|
8810
8812
|
onInput: (g) => p(h)
|
|
8811
8813
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onInput"]),
|
|
8812
|
-
v(
|
|
8814
|
+
v(y(Z), {
|
|
8813
8815
|
modelValue: h.rotate.z,
|
|
8814
8816
|
"onUpdate:modelValue": (g) => h.rotate.z = g,
|
|
8815
8817
|
size: "small",
|
|
@@ -8822,9 +8824,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8822
8824
|
]),
|
|
8823
8825
|
_: 2
|
|
8824
8826
|
}, 1024)) : rt("", !0),
|
|
8825
|
-
v(
|
|
8827
|
+
v(y(U), { label: "是否可见" }, {
|
|
8826
8828
|
default: x(() => [
|
|
8827
|
-
v(
|
|
8829
|
+
v(y(De), {
|
|
8828
8830
|
modelValue: h.visible,
|
|
8829
8831
|
"onUpdate:modelValue": (g) => h.visible = g,
|
|
8830
8832
|
onChange: (g) => p(h)
|
|
@@ -8832,9 +8834,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8832
8834
|
]),
|
|
8833
8835
|
_: 2
|
|
8834
8836
|
}, 1024),
|
|
8835
|
-
v(
|
|
8837
|
+
v(y(U), { label: "辅助线" }, {
|
|
8836
8838
|
default: x(() => [
|
|
8837
|
-
v(
|
|
8839
|
+
v(y(De), {
|
|
8838
8840
|
modelValue: h.helper,
|
|
8839
8841
|
"onUpdate:modelValue": (g) => h.helper = g,
|
|
8840
8842
|
onChange: (g) => p(h)
|
|
@@ -8842,9 +8844,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8842
8844
|
]),
|
|
8843
8845
|
_: 2
|
|
8844
8846
|
}, 1024),
|
|
8845
|
-
v(
|
|
8847
|
+
v(y(U), { label: "阴影" }, {
|
|
8846
8848
|
default: x(() => [
|
|
8847
|
-
v(
|
|
8849
|
+
v(y(De), {
|
|
8848
8850
|
modelValue: h.castShadow,
|
|
8849
8851
|
"onUpdate:modelValue": (g) => h.castShadow = g,
|
|
8850
8852
|
onChange: (g) => p(h)
|
|
@@ -8852,29 +8854,29 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8852
8854
|
]),
|
|
8853
8855
|
_: 2
|
|
8854
8856
|
}, 1024),
|
|
8855
|
-
v(
|
|
8857
|
+
v(y(U), { label: "颜色color" }, {
|
|
8856
8858
|
default: x(() => [
|
|
8857
|
-
v(
|
|
8858
|
-
"model-value":
|
|
8859
|
+
v(y(xo), {
|
|
8860
|
+
"model-value": y(fn)(h.color) ? h.color : `#${h.color.getHex().toString(16).padStart(6, "0")}`,
|
|
8859
8861
|
"onUpdate:modelValue": (g) => h.color = g ?? "#ffffff",
|
|
8860
8862
|
onChange: (g) => p(h)
|
|
8861
8863
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onChange"])
|
|
8862
8864
|
]),
|
|
8863
8865
|
_: 2
|
|
8864
8866
|
}, 1024),
|
|
8865
|
-
v(
|
|
8867
|
+
v(y(U), { label: "颜色groundColor" }, {
|
|
8866
8868
|
default: x(() => [
|
|
8867
|
-
v(
|
|
8868
|
-
"model-value": h.groundColor ?
|
|
8869
|
+
v(y(xo), {
|
|
8870
|
+
"model-value": h.groundColor ? y(fn)(h.groundColor) ? h.groundColor : `#${h.groundColor.getHex().toString(16).padStart(6, "0")}` : "#ffffff",
|
|
8869
8871
|
"onUpdate:modelValue": (g) => h.groundColor = g ?? "#ffffff",
|
|
8870
8872
|
onChange: (g) => p(h)
|
|
8871
8873
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onChange"])
|
|
8872
8874
|
]),
|
|
8873
8875
|
_: 2
|
|
8874
8876
|
}, 1024),
|
|
8875
|
-
v(
|
|
8877
|
+
v(y(U), { label: "强度intensity" }, {
|
|
8876
8878
|
default: x(() => [
|
|
8877
|
-
v(
|
|
8879
|
+
v(y(Z), {
|
|
8878
8880
|
modelValue: h.intensity,
|
|
8879
8881
|
"onUpdate:modelValue": (g) => h.intensity = g,
|
|
8880
8882
|
precision: 1,
|
|
@@ -8885,9 +8887,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8885
8887
|
]),
|
|
8886
8888
|
_: 2
|
|
8887
8889
|
}, 1024),
|
|
8888
|
-
v(
|
|
8890
|
+
v(y(U), { label: "衰减decay" }, {
|
|
8889
8891
|
default: x(() => [
|
|
8890
|
-
v(
|
|
8892
|
+
v(y(Z), {
|
|
8891
8893
|
modelValue: h.decay,
|
|
8892
8894
|
"onUpdate:modelValue": (g) => h.decay = g,
|
|
8893
8895
|
precision: 1,
|
|
@@ -8898,9 +8900,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8898
8900
|
]),
|
|
8899
8901
|
_: 2
|
|
8900
8902
|
}, 1024),
|
|
8901
|
-
v(
|
|
8903
|
+
v(y(U), { label: "光线距离distance" }, {
|
|
8902
8904
|
default: x(() => [
|
|
8903
|
-
v(
|
|
8905
|
+
v(y(Z), {
|
|
8904
8906
|
modelValue: h.distance,
|
|
8905
8907
|
"onUpdate:modelValue": (g) => h.distance = g,
|
|
8906
8908
|
precision: 2,
|
|
@@ -8911,9 +8913,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8911
8913
|
]),
|
|
8912
8914
|
_: 2
|
|
8913
8915
|
}, 1024),
|
|
8914
|
-
v(
|
|
8916
|
+
v(y(U), { label: "angle" }, {
|
|
8915
8917
|
default: x(() => [
|
|
8916
|
-
v(
|
|
8918
|
+
v(y(Z), {
|
|
8917
8919
|
modelValue: h.angle,
|
|
8918
8920
|
"onUpdate:modelValue": (g) => h.angle = g,
|
|
8919
8921
|
precision: 2,
|
|
@@ -8924,9 +8926,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8924
8926
|
]),
|
|
8925
8927
|
_: 2
|
|
8926
8928
|
}, 1024),
|
|
8927
|
-
v(
|
|
8929
|
+
v(y(U), { label: "penumbra" }, {
|
|
8928
8930
|
default: x(() => [
|
|
8929
|
-
v(
|
|
8931
|
+
v(y(Z), {
|
|
8930
8932
|
modelValue: h.penumbra,
|
|
8931
8933
|
"onUpdate:modelValue": (g) => h.penumbra = g,
|
|
8932
8934
|
precision: 1,
|
|
@@ -8937,9 +8939,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8937
8939
|
]),
|
|
8938
8940
|
_: 2
|
|
8939
8941
|
}, 1024),
|
|
8940
|
-
v(
|
|
8942
|
+
v(y(U), { label: "helperSize" }, {
|
|
8941
8943
|
default: x(() => [
|
|
8942
|
-
v(
|
|
8944
|
+
v(y(Z), {
|
|
8943
8945
|
modelValue: h.helperSize,
|
|
8944
8946
|
"onUpdate:modelValue": (g) => h.helperSize = g,
|
|
8945
8947
|
precision: 1,
|
|
@@ -8960,9 +8962,9 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8960
8962
|
]),
|
|
8961
8963
|
_: 1
|
|
8962
8964
|
}, 8, ["modelValue"]),
|
|
8963
|
-
v(
|
|
8965
|
+
v(y(ba), Xn(Ns(y(n)), y(t)), {
|
|
8964
8966
|
footer: x(() => [
|
|
8965
|
-
v(
|
|
8967
|
+
v(y(st), {
|
|
8966
8968
|
type: "primary",
|
|
8967
8969
|
onClick: l.confirm
|
|
8968
8970
|
}, {
|
|
@@ -8971,7 +8973,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8971
8973
|
])]),
|
|
8972
8974
|
_: 1
|
|
8973
8975
|
}, 8, ["onClick"]),
|
|
8974
|
-
v(
|
|
8976
|
+
v(y(st), { onClick: y(s) }, {
|
|
8975
8977
|
default: x(() => [...m[5] || (m[5] = [
|
|
8976
8978
|
Se("取消", -1)
|
|
8977
8979
|
])]),
|
|
@@ -8979,18 +8981,18 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
8979
8981
|
}, 8, ["onClick"])
|
|
8980
8982
|
]),
|
|
8981
8983
|
default: x(() => [
|
|
8982
|
-
v(
|
|
8984
|
+
v(y(va), {
|
|
8983
8985
|
model: l.data
|
|
8984
8986
|
}, {
|
|
8985
8987
|
default: x(() => [
|
|
8986
|
-
v(
|
|
8988
|
+
v(y(Qs), { label: "类型" }, {
|
|
8987
8989
|
default: x(() => [
|
|
8988
|
-
v(
|
|
8990
|
+
v(y(qs), {
|
|
8989
8991
|
modelValue: l.data.type,
|
|
8990
8992
|
"onUpdate:modelValue": m[1] || (m[1] = (h) => l.data.type = h)
|
|
8991
8993
|
}, {
|
|
8992
8994
|
default: x(() => [
|
|
8993
|
-
(T(!0), P(it, null, Qe(
|
|
8995
|
+
(T(!0), P(it, null, Qe(y(r).type, (h) => (T(), de(y(Rn), {
|
|
8994
8996
|
key: h.value,
|
|
8995
8997
|
label: h.label,
|
|
8996
8998
|
value: h.value
|
|
@@ -9024,11 +9026,11 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9024
9026
|
function o() {
|
|
9025
9027
|
}
|
|
9026
9028
|
return Xe(o), (s, r) => (T(), P("div", Tc, [
|
|
9027
|
-
v(
|
|
9029
|
+
v(y(wa), null, {
|
|
9028
9030
|
default: x(() => [
|
|
9029
|
-
v(
|
|
9031
|
+
v(y(Qs), { label: "clearColor" }, {
|
|
9030
9032
|
default: x(() => [
|
|
9031
|
-
v(
|
|
9033
|
+
v(y(xo), {
|
|
9032
9034
|
modelValue: t.clearColor,
|
|
9033
9035
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => t.clearColor = l),
|
|
9034
9036
|
onChange: n
|
|
@@ -9058,15 +9060,15 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9058
9060
|
c && (n.value.visible ? o.value?.hideTo("right", !0) : o.value?.show(!0, "right"));
|
|
9059
9061
|
});
|
|
9060
9062
|
}
|
|
9061
|
-
return Xe(l), (c, u) => (T(), de(
|
|
9063
|
+
return Xe(l), (c, u) => (T(), de(y(xa), {
|
|
9062
9064
|
ref_key: "scaleRef",
|
|
9063
9065
|
ref: o,
|
|
9064
|
-
modelValue:
|
|
9066
|
+
modelValue: y(n),
|
|
9065
9067
|
"onUpdate:modelValue": u[3] || (u[3] = (p) => dn(n) ? n.value = p : null)
|
|
9066
9068
|
}, {
|
|
9067
9069
|
header: x(() => [
|
|
9068
9070
|
E("div", Cc, [
|
|
9069
|
-
v(
|
|
9071
|
+
v(y($n), { type: "primary" }, {
|
|
9070
9072
|
default: x(() => [...u[4] || (u[4] = [
|
|
9071
9073
|
Se("threejs 调试控制台,用于本地开发和测试v2.0", -1)
|
|
9072
9074
|
])]),
|
|
@@ -9076,22 +9078,22 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9076
9078
|
]),
|
|
9077
9079
|
default: x(() => [
|
|
9078
9080
|
E("div", Mc, [
|
|
9079
|
-
v(
|
|
9081
|
+
v(y(Oo), {
|
|
9080
9082
|
modelValue: r.collapseActive,
|
|
9081
9083
|
"onUpdate:modelValue": u[2] || (u[2] = (p) => r.collapseActive = p)
|
|
9082
9084
|
}, {
|
|
9083
9085
|
default: x(() => [
|
|
9084
|
-
v(
|
|
9086
|
+
v(y(Hn), {
|
|
9085
9087
|
title: "基础配置",
|
|
9086
9088
|
name: 1
|
|
9087
9089
|
}, {
|
|
9088
9090
|
default: x(() => [
|
|
9089
|
-
v(
|
|
9091
|
+
v(y(Go), {
|
|
9090
9092
|
modelValue: r.tabBase,
|
|
9091
9093
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => r.tabBase = p)
|
|
9092
9094
|
}, {
|
|
9093
9095
|
default: x(() => [
|
|
9094
|
-
v(
|
|
9096
|
+
v(y(Ct), {
|
|
9095
9097
|
label: "模型",
|
|
9096
9098
|
name: 0
|
|
9097
9099
|
}, {
|
|
@@ -9100,7 +9102,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9100
9102
|
]),
|
|
9101
9103
|
_: 1
|
|
9102
9104
|
}),
|
|
9103
|
-
v(
|
|
9105
|
+
v(y(Ct), {
|
|
9104
9106
|
label: "光源",
|
|
9105
9107
|
name: 1
|
|
9106
9108
|
}, {
|
|
@@ -9113,7 +9115,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9113
9115
|
]),
|
|
9114
9116
|
_: 1
|
|
9115
9117
|
}),
|
|
9116
|
-
v(
|
|
9118
|
+
v(y(Ct), {
|
|
9117
9119
|
label: "相机",
|
|
9118
9120
|
name: 2
|
|
9119
9121
|
}, {
|
|
@@ -9122,7 +9124,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9122
9124
|
]),
|
|
9123
9125
|
_: 1
|
|
9124
9126
|
}),
|
|
9125
|
-
v(
|
|
9127
|
+
v(y(Ct), {
|
|
9126
9128
|
label: "请求日志",
|
|
9127
9129
|
name: 3
|
|
9128
9130
|
}, {
|
|
@@ -9131,7 +9133,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9131
9133
|
]),
|
|
9132
9134
|
_: 1
|
|
9133
9135
|
}),
|
|
9134
|
-
v(
|
|
9136
|
+
v(y(Ct), {
|
|
9135
9137
|
label: "渲染器",
|
|
9136
9138
|
name: 4
|
|
9137
9139
|
}, {
|
|
@@ -9140,7 +9142,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9140
9142
|
]),
|
|
9141
9143
|
_: 1
|
|
9142
9144
|
}),
|
|
9143
|
-
v(
|
|
9145
|
+
v(y(Ct), {
|
|
9144
9146
|
label: "基础信息",
|
|
9145
9147
|
name: 5
|
|
9146
9148
|
}, {
|
|
@@ -9155,17 +9157,17 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9155
9157
|
]),
|
|
9156
9158
|
_: 1
|
|
9157
9159
|
}),
|
|
9158
|
-
v(
|
|
9160
|
+
v(y(Hn), {
|
|
9159
9161
|
title: "额外配置",
|
|
9160
9162
|
name: 2
|
|
9161
9163
|
}, {
|
|
9162
9164
|
default: x(() => [
|
|
9163
|
-
v(
|
|
9165
|
+
v(y(Go), {
|
|
9164
9166
|
modelValue: r.tabExtra,
|
|
9165
9167
|
"onUpdate:modelValue": u[1] || (u[1] = (p) => r.tabExtra = p)
|
|
9166
9168
|
}, {
|
|
9167
9169
|
default: x(() => [
|
|
9168
|
-
(T(!0), P(it, null, Qe(
|
|
9170
|
+
(T(!0), P(it, null, Qe(y(t), (p, d) => (T(), de(y(Ct), {
|
|
9169
9171
|
key: p.id,
|
|
9170
9172
|
label: p.label,
|
|
9171
9173
|
name: d + 1
|
|
@@ -9212,7 +9214,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9212
9214
|
{ immediate: !0 }
|
|
9213
9215
|
), (r, l) => jn((T(), P("div", Ac, [
|
|
9214
9216
|
E("div", Ic, [
|
|
9215
|
-
v(
|
|
9217
|
+
v(y(er), {
|
|
9216
9218
|
style: { "--el-color-danger": "#005ed8" },
|
|
9217
9219
|
class: "w-100%",
|
|
9218
9220
|
"text-inside": !0,
|
|
@@ -9252,7 +9254,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9252
9254
|
])
|
|
9253
9255
|
]),
|
|
9254
9256
|
E("div", null, [
|
|
9255
|
-
v(
|
|
9257
|
+
v(y(er), {
|
|
9256
9258
|
style: { "--el-color-danger": "#fc0024" },
|
|
9257
9259
|
class: "w-100%",
|
|
9258
9260
|
"text-inside": !0,
|
|
@@ -9383,7 +9385,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9383
9385
|
),
|
|
9384
9386
|
lights: H(new $l(h))
|
|
9385
9387
|
};
|
|
9386
|
-
function
|
|
9388
|
+
function b() {
|
|
9387
9389
|
try {
|
|
9388
9390
|
if (!m.value) return;
|
|
9389
9391
|
h.init(m.value), h.world = g, g.core.on("TargetClick", (_) => {
|
|
@@ -9443,7 +9445,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9443
9445
|
g.lights?.add(M);
|
|
9444
9446
|
}));
|
|
9445
9447
|
}
|
|
9446
|
-
return $e(l, w), $e(c, S), $e(u, L), $e(p, R), $e(d, V), Xe(
|
|
9448
|
+
return $e(l, w), $e(c, S), $e(u, L), $e(p, R), $e(d, V), Xe(b), Dt(() => {
|
|
9447
9449
|
g.scene?.dispose(), g.lights?.dispose(), g.core.dispose();
|
|
9448
9450
|
}), e({
|
|
9449
9451
|
world: g
|
|
@@ -9464,7 +9466,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9464
9466
|
}), j0 = /* @__PURE__ */ Ge(Xc, [["__scopeId", "data-v-dad10b5b"]]), Gc = /* @__PURE__ */ we({
|
|
9465
9467
|
__name: "index",
|
|
9466
9468
|
setup(a) {
|
|
9467
|
-
return (e, t) => (T(), de(
|
|
9469
|
+
return (e, t) => (T(), de(y(Yn), {
|
|
9468
9470
|
class: "dialog-panel",
|
|
9469
9471
|
"header-class": "flex-shrink-0",
|
|
9470
9472
|
"footer-class": "flex-shrink-0",
|
|
@@ -9472,7 +9474,7 @@ const Yl = { class: "flex flex-col gap10px" }, Kl = { class: "flex flex-col gap-
|
|
|
9472
9474
|
shadow: "never"
|
|
9473
9475
|
}, Ao({
|
|
9474
9476
|
default: x(() => [
|
|
9475
|
-
v(
|
|
9477
|
+
v(y(tr), {
|
|
9476
9478
|
class: "flex-1",
|
|
9477
9479
|
"view-class": "h-full p-[var(--dialog-scroll-view-padding)]"
|
|
9478
9480
|
}, {
|
|
@@ -9535,9 +9537,9 @@ const qc = H({ name: "ic-outline-check", render: Zc }), U0 = /* @__PURE__ */ we(
|
|
|
9535
9537
|
const { copied: e, onCopy: t } = Vr();
|
|
9536
9538
|
return (n, o) => {
|
|
9537
9539
|
const s = qc, r = Wc;
|
|
9538
|
-
return T(), de(
|
|
9540
|
+
return T(), de(y(st), {
|
|
9539
9541
|
type: "primary",
|
|
9540
|
-
onClick: o[0] || (o[0] = (l) =>
|
|
9542
|
+
onClick: o[0] || (o[0] = (l) => y(t)(a.text)),
|
|
9541
9543
|
size: "small",
|
|
9542
9544
|
round: "",
|
|
9543
9545
|
plain: "",
|
|
@@ -9546,9 +9548,9 @@ const qc = H({ name: "ic-outline-check", render: Zc }), U0 = /* @__PURE__ */ we(
|
|
|
9546
9548
|
default: x(() => [
|
|
9547
9549
|
gt(n.$slots, "default", {
|
|
9548
9550
|
text: a.text,
|
|
9549
|
-
copied:
|
|
9551
|
+
copied: y(e)
|
|
9550
9552
|
}, () => [
|
|
9551
|
-
|
|
9553
|
+
y(e) ? (T(), de(s, { key: 0 })) : (T(), de(r, { key: 1 }))
|
|
9552
9554
|
])
|
|
9553
9555
|
]),
|
|
9554
9556
|
_: 3
|
|
@@ -9931,7 +9933,7 @@ function vu() {
|
|
|
9931
9933
|
(function(t, n) {
|
|
9932
9934
|
a.exports = n();
|
|
9933
9935
|
})(bu, (function() {
|
|
9934
|
-
var t = 1e3, n = 6e4, o = 36e5, s = "millisecond", r = "second", l = "minute", c = "hour", u = "day", p = "week", d = "month", f = "quarter", m = "year", h = "date", g = "Invalid Date",
|
|
9936
|
+
var t = 1e3, n = 6e4, o = 36e5, s = "millisecond", r = "second", l = "minute", c = "hour", u = "day", p = "week", d = "month", f = "quarter", m = "year", h = "date", g = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(G) {
|
|
9935
9937
|
var O = ["th", "st", "nd", "rd"], I = G % 100;
|
|
9936
9938
|
return "[" + G + (O[(I - 20) % 10] || O[I] || O[0]) + "]";
|
|
9937
9939
|
} }, L = function(G, O, I) {
|
|
@@ -9987,7 +9989,7 @@ function vu() {
|
|
|
9987
9989
|
if (F.u(N)) return /* @__PURE__ */ new Date();
|
|
9988
9990
|
if (N instanceof Date) return new Date(N);
|
|
9989
9991
|
if (typeof N == "string" && !/Z$/i.test(N)) {
|
|
9990
|
-
var W = N.match(
|
|
9992
|
+
var W = N.match(b);
|
|
9991
9993
|
if (W) {
|
|
9992
9994
|
var ne = W[2] - 1 || 0, ae = (W[7] || "0").substring(0, 3);
|
|
9993
9995
|
return B ? new Date(Date.UTC(W[1], ne, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, ae)) : new Date(W[1], ne, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, ae);
|
|
@@ -10446,8 +10448,8 @@ const Au = {
|
|
|
10446
10448
|
"data-component-id": o.id,
|
|
10447
10449
|
provider: a.provider
|
|
10448
10450
|
}, Ns(o.events), { ref_for: !0 }, o.props, {
|
|
10449
|
-
"model-value":
|
|
10450
|
-
"onUpdate:modelValue": (s) =>
|
|
10451
|
+
"model-value": y(Mu)(o, a.provider),
|
|
10452
|
+
"onUpdate:modelValue": (s) => y(Pu)(s, o, a.provider)
|
|
10451
10453
|
}), Ao({ _: 2 }, [
|
|
10452
10454
|
Qe(o.children, (s) => ({
|
|
10453
10455
|
name: s.slotname,
|
|
@@ -15363,7 +15365,7 @@ const zu = {
|
|
|
15363
15365
|
)), c = Q(() => Object.entries(e.typeMaps).map(([m, h]) => ({
|
|
15364
15366
|
label: h.label,
|
|
15365
15367
|
value: m,
|
|
15366
|
-
list: h.list.filter((g) => r.value.findIndex((
|
|
15368
|
+
list: h.list.filter((g) => r.value.findIndex((b) => b.label === g.label) > -1).map((g) => ({
|
|
15367
15369
|
icon: g.icon,
|
|
15368
15370
|
raw: l.value[g.label]
|
|
15369
15371
|
}))
|
|
@@ -15388,7 +15390,7 @@ const zu = {
|
|
|
15388
15390
|
}
|
|
15389
15391
|
return (m, h) => (T(), P("div", Kp, [
|
|
15390
15392
|
E("div", null, [
|
|
15391
|
-
v(
|
|
15393
|
+
v(y(Io), {
|
|
15392
15394
|
modelValue: s.value,
|
|
15393
15395
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => s.value = g),
|
|
15394
15396
|
placeholder: "搜索"
|
|
@@ -15398,7 +15400,7 @@ const zu = {
|
|
|
15398
15400
|
])]),
|
|
15399
15401
|
_: 1
|
|
15400
15402
|
}, 8, ["modelValue"]),
|
|
15401
|
-
v(
|
|
15403
|
+
v(y(_a), {
|
|
15402
15404
|
modelValue: o.value,
|
|
15403
15405
|
"onUpdate:modelValue": h[1] || (h[1] = (g) => o.value = g),
|
|
15404
15406
|
step: 1,
|
|
@@ -15407,35 +15409,35 @@ const zu = {
|
|
|
15407
15409
|
"show-stops": ""
|
|
15408
15410
|
}, null, 8, ["modelValue"])
|
|
15409
15411
|
]),
|
|
15410
|
-
v(
|
|
15412
|
+
v(y(tr), null, {
|
|
15411
15413
|
default: x(() => [
|
|
15412
|
-
v(
|
|
15414
|
+
v(y(Oo), {
|
|
15413
15415
|
modelValue: n.value,
|
|
15414
15416
|
"onUpdate:modelValue": h[2] || (h[2] = (g) => n.value = g)
|
|
15415
15417
|
}, {
|
|
15416
15418
|
default: x(() => [
|
|
15417
|
-
(T(!0), P(it, null, Qe(c.value, (g) => (T(), de(
|
|
15419
|
+
(T(!0), P(it, null, Qe(c.value, (g) => (T(), de(y(Hn), {
|
|
15418
15420
|
key: g.value,
|
|
15419
15421
|
title: `${g.label} ${g.value}`,
|
|
15420
15422
|
name: g.value
|
|
15421
15423
|
}, {
|
|
15422
15424
|
default: x(() => [
|
|
15423
15425
|
E("div", Wp, [
|
|
15424
|
-
(T(!0), P(it, null, Qe(g.list, (
|
|
15425
|
-
key:
|
|
15426
|
+
(T(!0), P(it, null, Qe(g.list, (b) => (T(), de(y(Yn), {
|
|
15427
|
+
key: b.raw.label,
|
|
15426
15428
|
draggable: !0,
|
|
15427
15429
|
class: "hover:border-dashed hover:border-color-#1c8bd4 hover:c-#1c8bd4",
|
|
15428
15430
|
shadow: "hover",
|
|
15429
|
-
onDblclick: (w) => f(w,
|
|
15430
|
-
onDragend: (w) => d(w,
|
|
15431
|
-
onDragstart: (w) => p(w,
|
|
15431
|
+
onDblclick: (w) => f(w, b.raw),
|
|
15432
|
+
onDragend: (w) => d(w, b.raw),
|
|
15433
|
+
onDragstart: (w) => p(w, b.raw)
|
|
15432
15434
|
}, {
|
|
15433
15435
|
default: x(() => [
|
|
15434
15436
|
E("div", Jp, [
|
|
15435
|
-
(T(), de(bn(
|
|
15436
|
-
v(
|
|
15437
|
+
(T(), de(bn(b.icon), { class: "text-16px" })),
|
|
15438
|
+
v(y($n), { "line-clamp": 1 }, {
|
|
15437
15439
|
default: x(() => [
|
|
15438
|
-
Se(Pe(
|
|
15440
|
+
Se(Pe(b.raw.label), 1)
|
|
15439
15441
|
]),
|
|
15440
15442
|
_: 2
|
|
15441
15443
|
}, 1024)
|
|
@@ -16458,7 +16460,7 @@ const f0 = H({ name: "ep-watermelon", render: p0 }), Z0 = /* @__PURE__ */ we({
|
|
|
16458
16460
|
return (o, s) => (T(), de(qp, {
|
|
16459
16461
|
lib: a.lib,
|
|
16460
16462
|
provider: a.provider,
|
|
16461
|
-
configs:
|
|
16463
|
+
configs: y(t),
|
|
16462
16464
|
"type-maps": n
|
|
16463
16465
|
}, null, 8, ["lib", "provider", "configs"]));
|
|
16464
16466
|
}
|
|
@@ -16976,7 +16978,7 @@ const v0 = /* @__PURE__ */ we({
|
|
|
16976
16978
|
v5ae84abe: S.value,
|
|
16977
16979
|
v6dc028c4: w.value,
|
|
16978
16980
|
v0a2f417c: L.value,
|
|
16979
|
-
v00b47e25:
|
|
16981
|
+
v00b47e25: b.value
|
|
16980
16982
|
}));
|
|
16981
16983
|
const t = a, n = e, o = Et("self"), s = Ve({
|
|
16982
16984
|
containerStyle: t.modelValue
|
|
@@ -16996,7 +16998,7 @@ const v0 = /* @__PURE__ */ we({
|
|
|
16996
16998
|
default:
|
|
16997
16999
|
return {};
|
|
16998
17000
|
}
|
|
16999
|
-
}), p = Q(() => t.direction == "right"), d = Q(() => t.direction == "left"), f = Q(() => t.direction == "top"), m = Q(() => t.direction == "bottom"), h = Q(() => p.value || d.value ? "2px" : "100%"), g = Q(() => p.value || d.value ? "100%" : "2px"),
|
|
17001
|
+
}), p = Q(() => t.direction == "right"), d = Q(() => t.direction == "left"), f = Q(() => t.direction == "top"), m = Q(() => t.direction == "bottom"), h = Q(() => p.value || d.value ? "2px" : "100%"), g = Q(() => p.value || d.value ? "100%" : "2px"), b = Q(() => p.value ? "0" : "unset"), w = Q(() => f.value ? "0" : "unset"), S = Q(() => d.value ? "0" : "unset"), L = Q(() => m.value ? "0" : "unset");
|
|
17000
17002
|
return l(Yo.SCALING, () => {
|
|
17001
17003
|
n("update:modelValue", {
|
|
17002
17004
|
width: pn("width", s.value.containerStyle?.width),
|
|
@@ -17008,7 +17010,7 @@ const v0 = /* @__PURE__ */ we({
|
|
|
17008
17010
|
ref: "self",
|
|
17009
17011
|
class: "resize-handler",
|
|
17010
17012
|
style: kt(u.value),
|
|
17011
|
-
onMousedown: V[0] || (V[0] = (_) =>
|
|
17013
|
+
onMousedown: V[0] || (V[0] = (_) => y(r)(_, t.direction))
|
|
17012
17014
|
}, null, 36));
|
|
17013
17015
|
}
|
|
17014
17016
|
}), eg = /* @__PURE__ */ Ge(v0, [["__scopeId", "data-v-2d27d0cf"]]);
|