From 0097119fce6798074bc2100045124a8af963c94d Mon Sep 17 00:00:00 2001 From: hawk86104 Date: Thu, 9 Nov 2023 10:52:29 +0800 Subject: [PATCH] no message --- .fes.js | 3 ++- dist/index.html | 2 +- dist/static/index-3f28f1ce.js | 1 - dist/static/index-8b0a7255.js | 1 + dist/static/{menuA-f3f16681.js => menuA-bdee96ee.js} | 2 +- tsconfig.json | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 dist/static/index-3f28f1ce.js create mode 100644 dist/static/index-8b0a7255.js rename dist/static/{menuA-f3f16681.js => menuA-bdee96ee.js} (59%) diff --git a/.fes.js b/.fes.js index 1deba884..58d401ef 100644 --- a/.fes.js +++ b/.fes.js @@ -4,7 +4,7 @@ * @Autor: 地虎降天龙 * @Date: 2023-10-16 10:53:09 * @LastEditors: 地虎降天龙 - * @LastEditTime: 2023-11-05 10:15:03 + * @LastEditTime: 2023-11-09 10:50:53 */ // import { resolve } from 'path'; import { join } from 'path'; @@ -40,6 +40,7 @@ export default defineBuildConfig({ ...templateCompilerOptions, }, viteOption: { + base: "/icegl-three-vue-tres", plugins: [ UnoCSS({ /* options */ diff --git a/dist/index.html b/dist/index.html index 15170e1b..b017a976 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Fes.js
\ No newline at end of file +Fes.js
\ No newline at end of file diff --git a/dist/static/index-3f28f1ce.js b/dist/static/index-3f28f1ce.js deleted file mode 100644 index 4c1a5cc1..00000000 --- a/dist/static/index-3f28f1ce.js +++ /dev/null @@ -1 +0,0 @@ -var ge=Object.defineProperty,he=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var q=(t,n,e)=>n in t?ge(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,j=(t,n)=>{for(var e in n||(n={}))G.call(n,e)&&q(t,e,n[e]);if(K)for(var e of K(n))J.call(n,e)&&q(t,e,n[e]);return t},W=(t,n)=>he(t,ve(n));var Q=(t,n)=>{var e={};for(var a in t)G.call(t,a)&&n.indexOf(a)<0&&(e[a]=t[a]);if(t!=null&&K)for(var a of K(t))n.indexOf(a)<0&&J.call(t,a)&&(e[a]=t[a]);return e};import{_ as O,F as ye,r as x,o as r,c as f,a as i,u as $,t as S,d as be,b as ee,e as xe,p as k,A as B,f as N,i as we,g as Pe,h as te,j as F,k as Ee,l as Ae,m as z,n as H,q as L,w as ne,s as T,v as Se,x as Ce,y as Re,z as Te,R as ke,M as Oe,P as Le,B as c,C,D as I,E as R,G as Fe,H as Me,I as A,J as Ve,K as Ie,L as je,N as De,O as Ne,Q as Be,S as He,T as Ke,U as w,V as E,W as D,X as M,Y as V,Z as ae,$ as Ue,a0 as We,a1 as ze,a2 as qe,a3 as Ge,a4 as Je,a5 as Qe,a6 as Xe,a7 as Ye}from"./vendor-19b019cc.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function e(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(l){if(l.ep)return;l.ep=!0;const s=e(l);fetch(l.href,s)}})();const Ze="modulepreload",$e=function(t){return"/"+t},X={},v=function(n,e,a){if(!e||e.length===0)return n();const l=document.getElementsByTagName("link");return Promise.all(e.map(s=>{if(s=$e(s),s in X)return;X[s]=!0;const o=s.endsWith(".css"),_=o?'[rel="stylesheet"]':"";if(!!a)for(let p=l.length-1;p>=0;p--){const y=l[p];if(y.href===s&&(!o||y.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(s,'"]').concat(_)))return;const d=document.createElement("link");if(d.rel=o?"stylesheet":Ze,o||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),o)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error("Unable to preload CSS for ".concat(s))))})})).then(()=>n()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};const et={components:{FSpin:ye},setup(){return{}}},tt={class:"page-loading"};function nt(t,n,e,a,l,s){const o=x("f-spin");return r(),f("div",tt,[i(o,{size:"large",stroke:"#5384ff"})])}const at=O(et,[["render",nt]]);const lt={setup(){return{userModel:$("user")}}},st={class:"right"};function ot(t,n,e,a,l,s){return r(),f("div",st,S(a.userModel.user.userName),1)}const it=O(lt,[["render",ot]]);const rt=be({beforeRender:{loading:i(at,null,null),action(){const{signin:t}=$("user");t()}},layout:{renderCustom:()=>i(it,null,null),menus:[{name:"index"}]}});function ct({app:t}){t.use(ee)}const ut=t=>{const n=/plugins\/([^/]+)\/pages\//,e=t.match(n);return e&&e[1]?e[1]:null};function dt({routes:t}){const n=Object.assign({"./plugins/basic/pages/base/penetrateEvent.vue":()=>v(()=>import("./penetrateEvent-c8aba941.js"),["static/penetrateEvent-c8aba941.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/shaderParticles.vue":()=>v(()=>import("./shaderParticles-bf260534.js"),["static/shaderParticles-bf260534.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theBasic.vue":()=>v(()=>import("./theBasic-10b412f3.js"),["static/theBasic-10b412f3.js","static/three.module-d47ac97c.js","static/trescientos-214666d1.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theConditional.vue":()=>v(()=>import("./theConditional-9f47386e.js"),["static/theConditional-9f47386e.js","static/three.module-d47ac97c.js","static/trescientos-214666d1.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theEvents.vue":()=>v(()=>import("./theEvents-9baf97c6.js"),["static/theEvents-9baf97c6.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theGroups.vue":()=>v(()=>import("./theGroups-af29e92d.js"),["static/theGroups-af29e92d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/cameraControls.vue":()=>v(()=>import("./cameraControls-bd0ebd1d.js"),["static/cameraControls-bd0ebd1d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/firstPersonControls.vue":()=>v(()=>import("./firstPersonControls-c753461c.js"),["static/firstPersonControls-c753461c.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/mapControls.vue":()=>v(()=>import("./mapControls-16c542c6.js"),["static/mapControls-16c542c6.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/orbitControls.vue":()=>v(()=>import("./orbitControls-3d6270a7.js"),["static/orbitControls-3d6270a7.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/scrollControls.vue":()=>v(()=>import("./scrollControls-279f22e7.js"),["static/scrollControls-279f22e7.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/scrollControls-e984f4d2.css"]),"./plugins/basic/pages/controls/transformControls.vue":()=>v(()=>import("./transformControls-c7383cbb.js"),["static/transformControls-c7383cbb.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/htmls/htmls.vue":()=>v(()=>import("./htmls-862465e3.js"),["static/htmls-862465e3.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/htmls-c0c7ec5a.css"]),"./plugins/basic/pages/htmls/website.vue":()=>v(()=>import("./website-2615a9c8.js"),["static/website-2615a9c8.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/materials/glassMaterial.vue":()=>v(()=>import("./glassMaterial-de3f2353.js"),["static/glassMaterial-de3f2353.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/materials/wobbleMaterial.vue":()=>v(()=>import("./wobbleMaterial-2cea75d8.js"),["static/wobbleMaterial-2cea75d8.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/digitalCity/pages/buildings.vue":()=>v(()=>import("./buildings-e99c3ee5.js"),["static/buildings-e99c3ee5.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/digitalCity/pages/heatmap.vue":()=>v(()=>import("./heatmap-acf99651.js"),["static/heatmap-acf99651.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/heatmapJS.vue_vue_type_script_setup_true_lang-b311155c.js","static/heatmap-d02141de.js","static/_commonjsHelpers-725317a4.js","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js"]),"./plugins/digitalCity/pages/heatmap2.vue":()=>v(()=>import("./heatmap2-373e8c77.js"),["static/heatmap2-373e8c77.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js","static/heatmap-d02141de.js"]),"./plugins/digitalCity/pages/radars.vue":()=>v(()=>import("./radars-8c37bece.js"),["static/radars-8c37bece.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/digitalCity/pages/weather.vue":()=>v(()=>import("./weather-402858e3.js"),["static/weather-402858e3.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/earthA.vue":()=>v(()=>import("./earthA-cec6c90e.js"),["static/earthA-cec6c90e.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/lowpolyPlanet.vue":()=>v(()=>import("./lowpolyPlanet-6475bc7d.js"),["static/lowpolyPlanet-6475bc7d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/menuA.vue":()=>v(()=>import("./menuA-f3f16681.js"),["static/menuA-f3f16681.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/menuA-ddaff78a.css"]),"./plugins/heatMap/pages/heatmapExample.vue":()=>v(()=>import("./heatmapExample-e76ed94f.js"),["static/heatmapExample-e76ed94f.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/heatmapJS.vue_vue_type_script_setup_true_lang-b311155c.js","static/heatmap-d02141de.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/heatMap/pages/simpleExample.vue":()=>v(()=>import("./simpleExample-9afbd622.js"),["static/simpleExample-9afbd622.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/vantaJS/pages/loadingA.vue":()=>v(()=>import("./loadingA-92eda2c4.js"),["static/loadingA-92eda2c4.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/three.module-d47ac97c.js","static/_commonjsHelpers-725317a4.js","static/loadingA-ef980813.css"])}),e={path:"/plugins",component:()=>v(()=>import("./suspenseLayout-8ddda27b.js"),["static/suspenseLayout-8ddda27b.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),children:[]};for(const[a,l]of Object.entries(n)){const s=ut(a),o=a.match(/\.\/(.+)\.vue$/)[1].split("/");if(o.length===4)e.children.unshift({path:"/plugins/".concat(s,"/").concat(o[3]),component:l});else if(o.length===5)e.children.unshift({path:"/plugins/".concat(s,"/").concat(o[3],"/").concat(o[4]),component:l});else return}t.unshift(e)}const ft=Object.freeze(Object.defineProperty({__proto__:null,default:rt,onAppCreated:ct,patchRoutes:dt},Symbol.toStringTag,{value:"Module"}));function pt({app:t,routes:n}){const e=xe(n);t.use(e)}const _t=Object.freeze(Object.defineProperty({__proto__:null,onAppCreated:pt},Symbol.toStringTag,{value:"Module"}));function mt({router:t}){t.beforeEach(async(n,e,a)=>{const l=k.applyPlugins({key:"access",type:B.modify,initialValue:{}});if(n.matched.length===0)return l.noFoundHandler&&typeof l.noFoundHandler=="function"?l.noFoundHandler({router:t,to:n,from:e,next:a}):a(!1);if(Array.isArray(l.ignoreAccess)&&await N.match(n.matched[n.matched.length-1].path,l.ignoreAccess)||await N.hasAccess(n.matched[n.matched.length-1].path))return a();if(l.unAccessHandler&&typeof l.unAccessHandler=="function")return l.unAccessHandler({router:t,to:n,from:e,next:a});a(!1)})}function gt({app:t}){we(t)}const ht=Object.freeze(Object.defineProperty({__proto__:null,onAppCreated:gt,onRouterCreated:mt},Symbol.toStringTag,{value:"Module"})),le=()=>{const t={title:"Icegl",footer:null,navigation:"top",multiTabs:!1,isFixedHeader:!0,logo:"logo.png",menus:[]};return k.applyPlugins({key:"layout",type:B.modify,initialValue:t,args:{initialState:Pe}})};if(!N)throw new Error("[plugin-layout]: plugin-layout depends on plugin-access,please install plugin-access first!");const vt=t=>{const n=le(),e=N.getAccess();return e.includes("/403")||N.setAccess(e.concat("/403")),e.includes("/404")||N.setAccess(e.concat("/404")),j({unAccessHandler({router:a,to:l,from:s,next:o}){if(n.unAccessHandler&&typeof n.unAccessHandler=="function")return n.unAccessHandler({router:a,to:l,from:s,next:o});o("/403")},noFoundHandler({router:a,to:l,from:s,next:o}){if(n.noFoundHandler&&typeof n.noFoundHandler=="function")return n.noFoundHandler({router:a,to:l,from:s,next:o});o("/404")}},t)},yt=Object.freeze(Object.defineProperty({__proto__:null,access:vt},Symbol.toStringTag,{value:"Module"}));function U(t){if(t["default"]){const e=t,{default:a}=e,l=Q(e,["default"]);return j(j({},a),l)}return t}k.register({apply:U(ft),path:"/Volumes/L-SSD/ice.GL/OpenSourceLib/icegl/icegl-three-vue-tres/src/app.jsx"});k.register({apply:U(_t),path:"@@/core/routes/runtime.js"});k.register({apply:U(ht),path:"@@/plugin-access/runtime.js"});k.register({apply:U(yt),path:"@@/plugin-layout/runtime.js"});const se=(t,n)=>{let e={};if(Array.isArray(t))for(let a=0;a0&&(e=se(l.children,n),e.path))break}return e},oe=(t,n,e=0)=>{e+=1,e>3&&console.warn("[plugin-layout]: 菜单层级最好不要超出三层!");const a=[];return Array.isArray(t)&&Array.isArray(n)&&t.forEach(l=>{const s={};l.name&&Object.assign(s,se(n,l.name)),Object.keys(s).forEach(o=>{(l[o]===void 0||l[o]===null||l[o]==="")&&(l[o]=s[o])}),l.children&&l.children.length>0&&(l.children=oe(l.children,n,e)),a.push(l)}),a},bt="/static/logo-fad90dd5.png";if(!te)throw new Error("[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!");const ie=t=>{const n=t.children&&t.children.length;return t.path&&!n?te(t.path):n?t.children.some(e=>ie(e)):!0},re=t=>t.map(n=>ie(n)?(n.children&&(n.children=re(n.children)),n):!1).filter(Boolean),ce=t=>{if(!/^\$\S+$/.test(t))return t;const n=k.getShared("locale");if(n){const{t:e}=n.locale;return e(t.slice(1))}return t},ue=t=>t.map(n=>{const e=W(j({},n),{label:ce(n.label)});return n.children&&(e.children=ue(n.children)),e}),de=(t=[])=>t.reduce((n,e)=>(n.push(e),e.children&&(n=n.concat(de(e.children))),n),[]),xt={},wt=function(t){return typeof t=="string"},fe=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let n=0;n{const n=document.createElement("div");n.innerHTML=t;for(let a=n.childNodes.length-1;a>=0;a--)n.childNodes[a].nodeName.toLowerCase()!=="svg"&&n.removeChild(n.childNodes[a]);const e=n.firstElementChild;return e&&e.nodeName.toLowerCase()==="svg"&&fe(e)?n.innerHTML:""},Et=/^((https?|ftp|file):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/,At=t=>Et.test(t)||t.includes(".svg"),St={props:{icon:[String,Object]},setup(t){const n=F(null),e=F(null);return Ee(()=>{typeof t.icon=="string"&&(At(t.icon)?fetch(t.icon).then(a=>{if(a.ok)return a.text().then(l=>{e.value=Pt(l)})}):n.value=xt[t.icon])}),()=>Ae(t.icon)?t.icon:n.value?i(n.value,null,null):e.value?i("span",{class:"fes-layout-icon",innerHTML:e.value},null):null}};const pe=(t,n=1)=>t.map((e,a)=>{const l=W(j({},e),{label:e.title,value:e.path||"".concat(n,"_").concat(a)});return e.icon&&(l.icon=()=>Se(St,{icon:e.icon})),e.children&&(l.children=pe(e.children,n+1)),l}),Ct={components:{FMenu:ee},props:{menus:{type:Array,default(){return[]}},mode:{type:String,default:"vertical"},inverted:{type:Boolean,default:!1},expandedKeys:{type:Array,default(){return[]}},defaultExpandAll:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1}},setup(t){const n=z(),e=H(),a=L(()=>ue(re(pe(t.menus)))),l=L(()=>de(a.value)),s=L(()=>{const h=l.value.filter(d=>{const p=d.match;return!p||!Array.isArray(p)?!1:p.some(y=>new RegExp(y).test(n.path))});return h.length===0?n.path:h[0].path}),o=F(t.expandedKeys);return ne([l,s],()=>{var y;let h=l.value.findIndex(g=>g.value===s.value);if(h===-1)return;const d=l.value[h],p=(y=d.children)!=null&&y.length?[d]:[];for(;h>0;){h=h-1;const g=l.value[h];g.children&&g.children.indexOf(p[p.length-1])!==-1&&p.push(g)}o.value=o.value.concat(p.filter(g=>!o.value.includes(g.value)).map(g=>g.value))},{immediate:!0}),{activePath:s,expandedKeysRef:o,transformedMenus:a,onMenuClick:h=>{const d=h.value;/^https?:\/\//.test(d)?window.open(d,"_blank"):/^\//.test(d)?e.push(d):console.warn("[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址")}}}};function Rt(t,n,e,a,l,s){const o=x("f-menu");return r(),T(o,{expandedKeys:a.expandedKeysRef,"onUpdate:expandedKeys":n[0]||(n[0]=_=>a.expandedKeysRef=_),modelValue:a.activePath,inverted:e.inverted,mode:e.mode,options:a.transformedMenus,defaultExpandAll:e.defaultExpandAll,accordion:e.accordion,onSelect:a.onMenuClick},null,8,["expandedKeys","modelValue","inverted","mode","options","defaultExpandAll","accordion","onSelect"])}const Tt=O(Ct,[["render",Rt]]);let kt=0;const Y=()=>++kt,Ot={components:{FTabs:Ce,FTabPane:Re,FDropdown:Te,ReloadOutlined:ke,MoreOutlined:Oe,Page:Le},props:{multiTabs:Boolean},setup(){const t=F(),n=z(),e=H(),a=m=>{var b;const u=L(()=>{const P=A(Ve(m.path));return P!=null?P:ce(m.meta.title)});return{path:m.path,route:m,name:(b=m.meta.name)!=null?b:m.name,title:u,key:Y()}},l=F([a(e.currentRoute.value)]),s=[{value:"closeOtherPage",label:"关闭其他页签"},{value:"reloadPage",label:"刷新当前页签"}],o=m=>l.value.find(u=>A(u.path)===A(m));e.beforeEach(m=>{const u=o(m.path);return u?u.route=m:l.value=[...l.value,a(m)],!0});const _=async m=>{const u=o(m);u&&await e.push({path:m,query:u.route.query,params:u.route.params})},h=async m=>{const u=o(m),b=[...l.value],P=b.indexOf(u);n.path===u.path&&b.length>1&&(b.length-1===P?await _(b[P-1].path):await _(b[P+1].path)),b.splice(P,1),l.value=b,t.value.removeKeepAlive(u.name),Ie(u.path)},d=m=>{const u=o(m||A(n.path));u&&(u.key=Y())},p=m=>{const u=o(m||A(n.path));l.value=[u],t.value.removeAllAndSaveKeepAlive(u.name)};return{pageRef:t,route:n,pageList:l,getPageKey:m=>{const u=o(m.path);return u?u.key:""},reloadPage:d,switchPage:_,handlerMore:m=>{switch(m){case"closeOtherPage":p();break;case"reloadPage":d();break}},handleCloseTab:h,actions:s}}};function Lt(t,n,e,a,l,s){const o=x("ReloadOutlined"),_=x("FTabPane"),h=x("MoreOutlined"),d=x("FDropdown"),p=x("FTabs"),y=x("Page");return e.multiTabs?(r(),f(C,{key:0},[i(p,{modelValue:a.route.path,closable:"",tabsPadding:24,type:"card",class:"layout-content-tabs",onClose:a.handleCloseTab,"onUpdate:modelValue":a.switchPage},{suffix:c(()=>[i(d,{arrow:"",options:a.actions,onClick:a.handlerMore},{default:c(()=>[i(h)]),_:1},8,["options","onClick"])]),default:c(()=>[(r(!0),f(C,null,I(a.pageList,g=>(r(),T(_,{key:g.path,value:g.path,closable:a.pageList.length>1},{tab:c(()=>[R(S(g.title)+" ",1),Fe(i(o,{class:"layout-tabs-close-icon",onClick:m=>a.reloadPage(g.path)},null,8,["onClick"]),[[Me,a.route.path===g.path]])]),_:2},1032,["value","closable"]))),128))]),_:1},8,["modelValue","onClose","onUpdate:modelValue"]),i(y,{ref:"pageRef",pageKey:a.getPageKey,isAllKeepAlive:""},null,8,["pageKey"])],64)):(r(),T(y,{key:1}))}const Ft=O(Ot,[["render",Lt]]);const Mt={components:{FLayout:je,FAside:De,FMain:Ne,FFooter:Be,FHeader:He,Menu:Tt,MultiTabProvider:Ft},props:{menus:{type:Array,default(){return[]}},locale:{type:Boolean,default:!1},title:{type:String,default:""},logo:{type:String,default:bt},theme:{type:String,default:"dark"},navigation:{type:String,default:"side"},isFixedHeader:{type:Boolean,default:!1},isFixedSidebar:{type:Boolean,default:!0},multiTabs:{type:Boolean,default:!1},sideWidth:{type:Number,default:200},footer:String,menuProps:{type:Object}},setup(t){const n=F(),e=F(0),a=F(!1),l=z(),s=H(),o=L(()=>l.meta.layout&&l.meta.layout.navigation!==void 0?l.meta.layout.navigation:t.navigation),_=L(()=>t.isFixedHeader||t.navigation==="mixin"),h=L(()=>_.value?{top:"".concat(e.value,"px")}:null),d=L(()=>{const p=a.value?"48px":"".concat(t.sideWidth,"px");return t.isFixedSidebar?{left:p}:null});return ne(s.currentRoute,()=>{Ke(()=>{n.value&&(e.value=n.value.$el.offsetHeight)})},{immediate:!0}),{headerRef:n,headerHeightRef:e,route:l,collapsedRef:a,currentFixedHeaderRef:_,headerStyleRef:h,sideStyleRef:d,currentNavigation:o}}},Vt={class:"layout-logo"},It=["src"],jt={key:1,class:"logo-name"},Dt={class:"layout-header-custom"},Nt={class:"flex-between"},Bt={class:"layout-logo"},Ht=["src"],Kt={key:1,class:"logo-name"},Ut={class:"layout-aside-custom"},Wt={key:0,class:"layout-aside-locale"},zt={class:"layout-logo"},qt=["src"],Gt={key:1,class:"logo-name"},Jt={class:"layout-header-custom"},Qt={class:"layout-logo"},Xt=["src"],Yt={key:1,class:"logo-name"},Zt={class:"layout-header-custom"};function $t(t,n,e,a,l,s){const o=x("Menu"),_=x("f-aside"),h=x("f-header"),d=x("MultiTabProvider"),p=x("f-main"),y=x("f-footer"),g=x("f-layout"),m=x("router-view");return r(),T(g,{class:"main-layout"},{default:c(()=>[a.currentNavigation==="side"?(r(),f(C,{key:0},[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[0]||(n[0]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),class:"layout-aside",collapsible:"",inverted:e.theme==="dark"},{default:c(()=>{var u,b,P;return[w("div",Vt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,It)):E("",!0),e.title?(r(),f("div",jt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","inverted","expandedKeys","defaultExpandAll","accordion"])]}),_:1},8,["collapsed","fixed","width","inverted"]),i(g,{fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(h,{ref:"headerRef",class:"layout-header",fixed:a.currentFixedHeaderRef},{default:c(()=>[w("div",Dt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]),_:3},8,["fixed"]),i(g,{embedded:!e.multiTabs,fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])]),_:3},8,["fixed","style"])],64)):a.currentNavigation==="left-right"?(r(),f(C,{key:1},[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[1]||(n[1]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),class:"layout-aside",collapsible:"",inverted:e.theme==="dark"},{default:c(()=>{var u,b,P;return[w("div",Nt,[w("div",null,[w("div",Bt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,Ht)):E("",!0),e.title?(r(),f("div",Kt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","inverted","expandedKeys","defaultExpandAll","accordion"])]),w("div",null,[w("div",Ut,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?(r(),f("div",Wt,[M(t.$slots,"locale",{},void 0,!0)])):E("",!0)])])]}),_:3},8,["collapsed","fixed","width","inverted"]),i(g,{fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(g,{embedded:!e.multiTabs},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded"])]),_:1},8,["fixed","style"])],64)):a.currentNavigation==="top"?(r(),f(C,{key:2},[i(h,{ref:"headerRef",class:"layout-header",inverted:e.theme==="dark",fixed:a.currentFixedHeaderRef},{default:c(()=>{var u,b,P;return[w("div",zt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,qt)):E("",!0),e.title?(r(),f("div",Gt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,mode:"horizontal",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","inverted","expandedKeys","defaultExpandAll","accordion"]),w("div",Jt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]}),_:3},8,["inverted","fixed"]),i(g,{embedded:!e.multiTabs,fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])],64)):a.currentNavigation==="mixin"?(r(),f(C,{key:3},[i(h,{ref:"headerRef",class:"layout-header",fixed:a.currentFixedHeaderRef,inverted:e.theme==="dark"},{default:c(()=>[w("div",Qt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,Xt)):E("",!0),e.title?(r(),f("div",Yt,S(e.title),1)):E("",!0)]),w("div",Zt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]),_:3},8,["fixed","inverted"]),i(g,{fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[2]||(n[2]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),collapsible:"",class:"layout-aside"},{default:c(()=>{var u,b,P;return[i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","expandedKeys","defaultExpandAll","accordion"])]}),_:1},8,["collapsed","fixed","width"]),i(g,{embedded:!e.multiTabs,fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])]),_:1},8,["fixed","style"])],64)):(r(),T(p,{key:4,class:"layout-main"},{default:c(()=>[i(m)]),_:1}))]),_:3})}const en=O(Mt,[["render",$t],["__scopeId","data-v-69422c84"]]),tn=V({name:"Layout",setup(){const t=le(),n=typeof t.menus=="function"?t.menus():t.menus,e=me(),a=L(()=>{var s;return oe((s=A(n))!=null?s:[],e)}),l=k.getShared("locale");return()=>{const s={renderCustom:t.renderCustom,locale:()=>l?i(l.SelectLang,null,null):null};return i(en,{menus:a.value,locale:!!l,title:t.title,logo:t.logo,theme:t.theme,navigation:t.navigation,isFixedHeader:t.isFixedHeader,isFixedSidebar:t.isFixedSidebar,multiTabs:t.multiTabs,sideWidth:t.sideWidth,footer:t.footer,menuProps:t.menuProps},s)}}}),nn={},an={class:"flex h-full"};function ln(t,n){return r(),f("div",an)}const sn=O(nn,[["render",ln]]),on={name:"basic",title:"原生功能展示",intro:"",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],child:[{name:"base",title:"基础",intro:"基础功能展示",pNode:"basic",preview:[{src:"plugins/basic/base/preview/theGroups.png",type:"img",name:"theGroups",title:"组合Group"},{src:"plugins/basic/base/preview/theConditional.png",type:"img",name:"theConditional",title:"显隐v-if"},{src:"plugins/basic/base/preview/theBasic.png",type:"img",name:"theBasic",title:"基本"},{src:"plugins/basic/base/preview/theEvents.png",type:"img",name:"theEvents",title:"事件"},{src:"plugins/basic/base/preview/shaderParticles.png",type:"img",name:"shaderParticles",title:"着色器实践"},{src:"plugins/basic/base/preview/penetrateEvent.png",type:"img",name:"penetrateEvent",title:"穿透事件"}]},{name:"materials",title:"材质",intro:"各种衍生材质展示",pNode:"basic",preview:[{src:"plugins/basic/materials/preview/glassMaterial.png",type:"img",name:"glassMaterial",title:"玻璃材质"},{src:"plugins/basic/materials/preview/wobbleMaterial.png",type:"img",name:"wobbleMaterial",title:"流体波动"}]},{name:"controls",title:"控制器",intro:"各种控制器",pNode:"basic",preview:[{src:"plugins/basic/controls/preview/cameraControls.png",type:"img",name:"cameraControls",title:"摄像头控制"},{src:"plugins/basic/controls/preview/orbitControls.png",type:"img",name:"orbitControls",title:"orbitControls"},{src:"plugins/basic/controls/preview/transformControls.png",type:"img",name:"transformControls",title:"变换控制器"},{src:"与OrbitControls类似,该控件用于从鸟瞰视角在地图上变换相机,但使用鼠标/触摸交互的特定预设,并在默认情况下禁用屏幕空间平移。",type:"text",name:"mapControls",title:"地图控制器"},{src:"第一人称视角,键盘控制视角。W、S、A、D:前后左右;空格:跳起;ESC:退出控制。",type:"text",name:"firstPersonControls",title:"第一人称键盘控制"},{src:"plugins/basic/controls/preview/scrollControls.png",type:"img",name:"scrollControls",title:"滚轮控制器"}]},{name:"htmls",title:"内嵌dom",intro:"内嵌网页元素",pNode:"basic",preview:[{src:"plugins/basic/htmls/preview/htmls.png",type:"img",name:"htmls",title:"简单dom"},{src:"plugins/basic/htmls/preview/website.png",type:"img",name:"website",title:"内嵌网页"}]}]},rn=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),cn={name:"digitalCity",title:"数字城市",intro:"基于城市场景的可视化展示插件",version:"0.0.1",author:"地虎降天龙",state:"active",require:["cannon-es"],preview:[{src:"plugins/digitalCity/preview/buildings.mp4",type:"video",name:"buildings",title:"建筑物"},{src:"plugins/digitalCity/preview/radars.png",type:"img",name:"radars",title:"雷达"},{src:"plugins/digitalCity/preview/weather.png",type:"img",name:"weather",title:"天气"},{src:"plugins/digitalCity/preview/heatmap.png",type:"img",name:"heatmap",title:"热力图"},{src:"plugins/digitalCity/preview/heatmap2.png",type:"img",name:"heatmap2",title:"建筑物-热力图"}]},un=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"})),dn={name:"earthSample",title:"地球的简单例子",intro:"基于threeJS简单地球的例子",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/earthSample/preview/earthA.png",type:"img",name:"earthA",title:"样式A"},{src:"plugins/earthSample/preview/menuA.png",type:"img",name:"menuA",title:"菜单A"},{src:"plugins/earthSample/preview/lowpolyPlanet.png",type:"img",name:"lowpolyPlanet",title:"低像素多边形"}]},fn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),pn={name:"heatMap",title:"热流图实例",intro:"基于threeJS的热力图例子",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/heatMap/preview/simpleExample.png",type:"img",name:"simpleExample",title:"简单例子"},{src:"plugins/heatMap/preview/heatmapExample.png",type:"img",name:"heatmapExample",title:"heatmap.js例子"}]},_n=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"})),mn={name:"vantaJS",title:"vantaJS",intro:"基于threeJS的炫酷背景墙",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/vantaJS/preview/loadingA.png",type:"img",name:"loadingA",title:"载入中A"}]},gn=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"})),hn=t=>{const n=/\/([^/]+)(?=\/[^/]*$)/,e=t.match(n);return e&&e[1]?e[1]:null},vn=()=>{const t=Object.assign({"/src/plugins/basic/config.js":rn,"/src/plugins/digitalCity/config.js":un,"/src/plugins/earthSample/config.js":fn,"/src/plugins/heatMap/config.js":_n,"/src/plugins/vantaJS/config.js":gn}),n={};for(const e of Object.keys(t)){const a=hn(e);a&&(n[a]=t[e].default)}return n},yn={class:"flex flex-wrap flex-justify-start content-start mt-6 pl-6"},bn={key:0,controls:"",class:"w-full max-h-70"},xn=["src"],wn=["src"],Pn={key:2,class:"w-full h-48 text-3 text-left mb-2",style:{"background-color":"rgb(55 56 61)",overflow:"hidden","border-radius":"10px"}},En={class:"p-2",style:{color:"white"}},An=["onClick"],Z=V({__name:"cardList",props:{onePlugin:{}},setup(t){const n=t;let e="/";const a=H(),l=(s,o)=>{let _="/plugins/".concat(s.name,"/").concat(o);s.pNode&&(_="/plugins/".concat(s.pNode,"/").concat(s.name,"/").concat(o));let h=a.resolve({path:_});window.open(h.href,"_blank")};return(s,o)=>(r(),f(C,null,[i(A(ae),{titlePlacement:"left"},{default:c(()=>[R(S(n.onePlugin.title+" - "+n.onePlugin.name),1)]),_:1}),i(A(Ue),{class:"ml-13",tag:"i",size:"small"},{default:c(()=>[R(S(n.onePlugin.intro),1)]),_:1}),w("div",yn,[(r(!0),f(C,null,I(s.onePlugin.preview,(_,h)=>(r(),f("div",{class:"w-80 mr-10 mb-10 overflow-hidden",key:h},[i(A(We),{header:_.title,shadow:"hover"},{default:c(()=>[_.type==="video"?(r(),f("video",bn,[w("source",{src:A(e)+_.src,type:"video/mp4",autoplay:"true",loop:"true"},null,8,xn)])):_.type==="img"?(r(),f("img",{key:1,class:"w-full max-h-70",src:A(e)+_.src},null,8,wn)):_.type==="text"?(r(),f("div",Pn,[w("div",En,S(_.src),1)])):E("",!0),w("div",{class:"cursor-pointer",onClick:d=>l(n.onePlugin,_.name)},"点击查看详情",8,An)]),_:2},1032,["header"])]))),128))])],64))}});const Sn=ze('

欢迎来到 ICEImage、Community、Education」图形学社区,围绕 webgl 的交流学习社区,这里是国内最全的 Web 图形学知识库,同时也是一个致力于打造全新图形学生态体系的社区。

我们的使命是通过开源协作和知识分享,促进图形学技术的不断进步。我们相信图形学是一个无限创新的领域,可以应用于游戏开发、虚拟现实、增强现实、计算机辅助设计等多个领域。

🤔 问题反馈

在使用中有任何问题,请使用以下联系方式联系我们 图形学社区icegl.cn

🧑‍💻 联系我们

欢迎大家也加入微信群,已有几个群已满,一起学习讨论webgl。加微信我拉进群

',1),Cn=V({__name:"aboutUs",setup(t){return(n,e)=>(r(),f(C,null,[i(A(ae),{titlePlacement:"left"},{default:c(()=>[R("关于我们 - ICEGL")]),_:1}),Sn],64))}});const Rn=O(Cn,[["__scopeId","data-v-513cf3f8"]]),Tn={class:"flex h-full"},kn={class:"w-50",style:{"background-color":"black"}},On={class:"flex-1 overflow-scroll",style:{height:"calc(100vh - 54px)"}},Ln=V({__name:"index",setup(t){const n=F([]);let e=vn();const a=l=>{var s;(s=n.value[l.value])==null||s.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};return(l,s)=>{const o=x("f-menu-item"),_=x("f-sub-menu"),h=x("f-menu");return r(),f("div",Tn,[w("div",kn,[i(h,{mode:"vertical",defaultExpandAll:!0,inverted:!0,onSelect:a},{default:c(()=>[i(_,{value:"1"},{icon:c(()=>[i(A(qe))]),label:c(()=>[R("原生功能展示")]),default:c(()=>[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,null,[p==="basic"?(r(!0),f(C,{key:0},I(d.child,(y,g)=>(r(),T(o,{value:y.name},{label:c(()=>[R(S(y.title),1)]),_:2},1032,["value"]))),256)):E("",!0)],64))),256))]),_:1}),i(_,{value:"2"},{icon:c(()=>[i(A(Ge))]),label:c(()=>[R("插件中心")]),default:c(()=>[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,null,[p!=="basic"?(r(),T(o,{key:0,value:p},{label:c(()=>[R(S(d.title),1)]),_:2},1032,["value"])):E("",!0)],64))),256))]),_:1}),i(_,{value:"8"},{icon:c(()=>[i(A(Je))]),label:c(()=>[R("aboutUs")]),default:c(()=>[i(o,{value:"abus"},{label:c(()=>[R("关于我们")]),_:1})]),_:1})]),_:1})]),w("div",On,[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,{key:p},[p!=="basic"?(r(),f("div",{key:0,style:{"background-color":"#f1f1f2"},ref_for:!0,ref:y=>n.value[p]=y},[i(Z,{onePlugin:d},null,8,["onePlugin"])],512)):(r(!0),f(C,{key:1},I(d.child,(y,g)=>(r(),f("div",{style:{"background-color":"#f1f1f2"},key:g,ref_for:!0,ref:m=>n.value[y.name]=m},[i(Z,{onePlugin:y},null,8,["onePlugin"])]))),128))],64))),128)),w("div",{style:{"background-color":"rgb(255 255 255)"},ref:d=>n.value.abus=d},[i(Rn)],512)])])}}});const Fn="/static/403-c37bd830.png";const Mn=V({components:{FButton:Qe},props:{iconSrc:{required:!0},title:{type:String,required:!0},subTitle:{type:String}},setup(){const t=H();return{click:()=>{t.back()}}}}),Vn={class:"wrapper"},In=["src"],jn={class:"title"},Dn={key:0,class:"sub-title"},Nn={class:"btn-wrapper"};function Bn(t,n,e,a,l,s){const o=x("FButton");return r(),f("div",Vn,[w("img",{src:t.iconSrc,class:"icon"},null,8,In),w("div",jn,S(t.title),1),t.subTitle?(r(),f("div",Dn,S(t.subTitle),1)):E("",!0),w("div",Nn,[i(o,{type:"primary",onClick:t.click},{default:c(()=>[R(" 返回上一页 ")]),_:1},8,["onClick"])])])}const _e=O(Mn,[["render",Bn],["__scopeId","data-v-25581ede"]]),Hn=V({components:{Wrapper:_e},setup(){return{img403:Fn}}});function Kn(t,n,e,a,l,s){const o=x("Wrapper");return r(),T(o,{iconSrc:t.img403,title:"没有访问权限,请联系管理人员",subTitle:""},null,8,["iconSrc"])}const Un=O(Hn,[["render",Kn]]),Wn="/static/404-ec600539.png",zn=V({components:{Wrapper:_e},setup(){return{img404:Wn}}});function qn(t,n,e,a,l,s){const o=x("Wrapper");return r(),T(o,{iconSrc:t.img404,title:"哎呀!这个页面找不到了",subTitle:""},null,8,["iconSrc"])}const Gn=O(zn,[["render",qn]]);function me(){return[{path:"/",component:tn,children:[{path:"/preview",component:sn,name:"preview",meta:{},count:7},{path:"/",component:Ln,name:"index",meta:{name:"index",title:"开源框架展示"},count:5},{path:"/403",name:"Exception403",component:Un,meta:{title:"403"}},{path:"/404",name:"Exception404",component:Gn,meta:{title:"404"}}]}]}const Jn=V(()=>()=>i(Xe,null,null));const Qn=(t={})=>{const{plugin:n,routes:e,rootElement:a}=t,l=n.applyPlugins({type:B.modify,key:"rootContainer",initialValue:Jn,args:{routes:e,plugin:n}}),s=Ye(l);return n.applyPlugins({key:"onAppCreated",type:B.event,args:{app:s,routes:e}}),a&&s.mount(a),s},Xn=(t={})=>k.applyPlugins({key:"render",type:B.compose,initialValue:()=>{const n=k.applyPlugins({key:"modifyClientRenderOpts",type:B.modify,initialValue:{routes:t.routes||me(),plugin:k,rootElement:"#app",defaultTitle:"fes.js"}});return Qn(n)},args:t}),Yn=Xn();Yn(); diff --git a/dist/static/index-8b0a7255.js b/dist/static/index-8b0a7255.js new file mode 100644 index 00000000..b4996dbe --- /dev/null +++ b/dist/static/index-8b0a7255.js @@ -0,0 +1 @@ +var ge=Object.defineProperty,he=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var q=(t,n,e)=>n in t?ge(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,j=(t,n)=>{for(var e in n||(n={}))G.call(n,e)&&q(t,e,n[e]);if(K)for(var e of K(n))J.call(n,e)&&q(t,e,n[e]);return t},W=(t,n)=>he(t,ve(n));var Q=(t,n)=>{var e={};for(var a in t)G.call(t,a)&&n.indexOf(a)<0&&(e[a]=t[a]);if(t!=null&&K)for(var a of K(t))n.indexOf(a)<0&&J.call(t,a)&&(e[a]=t[a]);return e};import{_ as O,F as ye,r as x,o as r,c as f,a as i,u as $,t as S,d as be,b as ee,e as xe,p as k,A as B,f as N,i as we,g as Pe,h as te,j as F,k as Ee,l as Ae,m as z,n as H,q as L,w as ne,s as T,v as Se,x as Ce,y as Re,z as Te,R as ke,M as Oe,P as Le,B as c,C,D as I,E as R,G as Fe,H as Me,I as A,J as Ve,K as Ie,L as je,N as De,O as Ne,Q as Be,S as He,T as Ke,U as w,V as E,W as D,X as M,Y as V,Z as ae,$ as Ue,a0 as We,a1 as ze,a2 as qe,a3 as Ge,a4 as Je,a5 as Qe,a6 as Xe,a7 as Ye}from"./vendor-19b019cc.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function e(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(l){if(l.ep)return;l.ep=!0;const s=e(l);fetch(l.href,s)}})();const Ze="modulepreload",$e=function(t){return"/icegl-three-vue-tres/"+t},X={},v=function(n,e,a){if(!e||e.length===0)return n();const l=document.getElementsByTagName("link");return Promise.all(e.map(s=>{if(s=$e(s),s in X)return;X[s]=!0;const o=s.endsWith(".css"),_=o?'[rel="stylesheet"]':"";if(!!a)for(let p=l.length-1;p>=0;p--){const y=l[p];if(y.href===s&&(!o||y.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(s,'"]').concat(_)))return;const d=document.createElement("link");if(d.rel=o?"stylesheet":Ze,o||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),o)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error("Unable to preload CSS for ".concat(s))))})})).then(()=>n()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};const et={components:{FSpin:ye},setup(){return{}}},tt={class:"page-loading"};function nt(t,n,e,a,l,s){const o=x("f-spin");return r(),f("div",tt,[i(o,{size:"large",stroke:"#5384ff"})])}const at=O(et,[["render",nt]]);const lt={setup(){return{userModel:$("user")}}},st={class:"right"};function ot(t,n,e,a,l,s){return r(),f("div",st,S(a.userModel.user.userName),1)}const it=O(lt,[["render",ot]]);const rt=be({beforeRender:{loading:i(at,null,null),action(){const{signin:t}=$("user");t()}},layout:{renderCustom:()=>i(it,null,null),menus:[{name:"index"}]}});function ct({app:t}){t.use(ee)}const ut=t=>{const n=/plugins\/([^/]+)\/pages\//,e=t.match(n);return e&&e[1]?e[1]:null};function dt({routes:t}){const n=Object.assign({"./plugins/basic/pages/base/penetrateEvent.vue":()=>v(()=>import("./penetrateEvent-c8aba941.js"),["static/penetrateEvent-c8aba941.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/shaderParticles.vue":()=>v(()=>import("./shaderParticles-bf260534.js"),["static/shaderParticles-bf260534.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theBasic.vue":()=>v(()=>import("./theBasic-10b412f3.js"),["static/theBasic-10b412f3.js","static/three.module-d47ac97c.js","static/trescientos-214666d1.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theConditional.vue":()=>v(()=>import("./theConditional-9f47386e.js"),["static/theConditional-9f47386e.js","static/three.module-d47ac97c.js","static/trescientos-214666d1.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theEvents.vue":()=>v(()=>import("./theEvents-9baf97c6.js"),["static/theEvents-9baf97c6.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/base/theGroups.vue":()=>v(()=>import("./theGroups-af29e92d.js"),["static/theGroups-af29e92d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/cameraControls.vue":()=>v(()=>import("./cameraControls-bd0ebd1d.js"),["static/cameraControls-bd0ebd1d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/firstPersonControls.vue":()=>v(()=>import("./firstPersonControls-c753461c.js"),["static/firstPersonControls-c753461c.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/mapControls.vue":()=>v(()=>import("./mapControls-16c542c6.js"),["static/mapControls-16c542c6.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/orbitControls.vue":()=>v(()=>import("./orbitControls-3d6270a7.js"),["static/orbitControls-3d6270a7.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/controls/scrollControls.vue":()=>v(()=>import("./scrollControls-279f22e7.js"),["static/scrollControls-279f22e7.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/scrollControls-e984f4d2.css"]),"./plugins/basic/pages/controls/transformControls.vue":()=>v(()=>import("./transformControls-c7383cbb.js"),["static/transformControls-c7383cbb.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/htmls/htmls.vue":()=>v(()=>import("./htmls-862465e3.js"),["static/htmls-862465e3.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/htmls-c0c7ec5a.css"]),"./plugins/basic/pages/htmls/website.vue":()=>v(()=>import("./website-2615a9c8.js"),["static/website-2615a9c8.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/materials/glassMaterial.vue":()=>v(()=>import("./glassMaterial-de3f2353.js"),["static/glassMaterial-de3f2353.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/basic/pages/materials/wobbleMaterial.vue":()=>v(()=>import("./wobbleMaterial-2cea75d8.js"),["static/wobbleMaterial-2cea75d8.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/digitalCity/pages/buildings.vue":()=>v(()=>import("./buildings-e99c3ee5.js"),["static/buildings-e99c3ee5.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/digitalCity/pages/heatmap.vue":()=>v(()=>import("./heatmap-acf99651.js"),["static/heatmap-acf99651.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/heatmapJS.vue_vue_type_script_setup_true_lang-b311155c.js","static/heatmap-d02141de.js","static/_commonjsHelpers-725317a4.js","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js"]),"./plugins/digitalCity/pages/heatmap2.vue":()=>v(()=>import("./heatmap2-373e8c77.js"),["static/heatmap2-373e8c77.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js","static/heatmap-d02141de.js"]),"./plugins/digitalCity/pages/radars.vue":()=>v(()=>import("./radars-8c37bece.js"),["static/radars-8c37bece.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/digitalCity/pages/weather.vue":()=>v(()=>import("./weather-402858e3.js"),["static/weather-402858e3.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/pagesShow.vue_vue_type_style_index_0_lang-fb388db3.js","static/_commonjsHelpers-725317a4.js","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/earthA.vue":()=>v(()=>import("./earthA-cec6c90e.js"),["static/earthA-cec6c90e.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/lowpolyPlanet.vue":()=>v(()=>import("./lowpolyPlanet-6475bc7d.js"),["static/lowpolyPlanet-6475bc7d.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/loading.vue_vue_type_script_setup_true_lang-85b12253.js"]),"./plugins/earthSample/pages/menuA.vue":()=>v(()=>import("./menuA-bdee96ee.js"),["static/menuA-bdee96ee.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/menuA-ddaff78a.css"]),"./plugins/heatMap/pages/heatmapExample.vue":()=>v(()=>import("./heatmapExample-e76ed94f.js"),["static/heatmapExample-e76ed94f.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/heatmapJS.vue_vue_type_script_setup_true_lang-b311155c.js","static/heatmap-d02141de.js","static/_commonjsHelpers-725317a4.js"]),"./plugins/heatMap/pages/simpleExample.vue":()=>v(()=>import("./simpleExample-9afbd622.js"),["static/simpleExample-9afbd622.js","static/trescientos-214666d1.js","static/three.module-d47ac97c.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),"./plugins/vantaJS/pages/loadingA.vue":()=>v(()=>import("./loadingA-92eda2c4.js"),["static/loadingA-92eda2c4.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css","static/three.module-d47ac97c.js","static/_commonjsHelpers-725317a4.js","static/loadingA-ef980813.css"])}),e={path:"/plugins",component:()=>v(()=>import("./suspenseLayout-8ddda27b.js"),["static/suspenseLayout-8ddda27b.js","static/vendor-19b019cc.js","static/vendor-28ba1523.css"]),children:[]};for(const[a,l]of Object.entries(n)){const s=ut(a),o=a.match(/\.\/(.+)\.vue$/)[1].split("/");if(o.length===4)e.children.unshift({path:"/plugins/".concat(s,"/").concat(o[3]),component:l});else if(o.length===5)e.children.unshift({path:"/plugins/".concat(s,"/").concat(o[3],"/").concat(o[4]),component:l});else return}t.unshift(e)}const ft=Object.freeze(Object.defineProperty({__proto__:null,default:rt,onAppCreated:ct,patchRoutes:dt},Symbol.toStringTag,{value:"Module"}));function pt({app:t,routes:n}){const e=xe(n);t.use(e)}const _t=Object.freeze(Object.defineProperty({__proto__:null,onAppCreated:pt},Symbol.toStringTag,{value:"Module"}));function mt({router:t}){t.beforeEach(async(n,e,a)=>{const l=k.applyPlugins({key:"access",type:B.modify,initialValue:{}});if(n.matched.length===0)return l.noFoundHandler&&typeof l.noFoundHandler=="function"?l.noFoundHandler({router:t,to:n,from:e,next:a}):a(!1);if(Array.isArray(l.ignoreAccess)&&await N.match(n.matched[n.matched.length-1].path,l.ignoreAccess)||await N.hasAccess(n.matched[n.matched.length-1].path))return a();if(l.unAccessHandler&&typeof l.unAccessHandler=="function")return l.unAccessHandler({router:t,to:n,from:e,next:a});a(!1)})}function gt({app:t}){we(t)}const ht=Object.freeze(Object.defineProperty({__proto__:null,onAppCreated:gt,onRouterCreated:mt},Symbol.toStringTag,{value:"Module"})),le=()=>{const t={title:"Icegl",footer:null,navigation:"top",multiTabs:!1,isFixedHeader:!0,logo:"logo.png",menus:[]};return k.applyPlugins({key:"layout",type:B.modify,initialValue:t,args:{initialState:Pe}})};if(!N)throw new Error("[plugin-layout]: plugin-layout depends on plugin-access,please install plugin-access first!");const vt=t=>{const n=le(),e=N.getAccess();return e.includes("/403")||N.setAccess(e.concat("/403")),e.includes("/404")||N.setAccess(e.concat("/404")),j({unAccessHandler({router:a,to:l,from:s,next:o}){if(n.unAccessHandler&&typeof n.unAccessHandler=="function")return n.unAccessHandler({router:a,to:l,from:s,next:o});o("/403")},noFoundHandler({router:a,to:l,from:s,next:o}){if(n.noFoundHandler&&typeof n.noFoundHandler=="function")return n.noFoundHandler({router:a,to:l,from:s,next:o});o("/404")}},t)},yt=Object.freeze(Object.defineProperty({__proto__:null,access:vt},Symbol.toStringTag,{value:"Module"}));function U(t){if(t["default"]){const e=t,{default:a}=e,l=Q(e,["default"]);return j(j({},a),l)}return t}k.register({apply:U(ft),path:"/Volumes/L-SSD/ice.GL/OpenSourceLib/icegl/icegl-three-vue-tres/src/app.jsx"});k.register({apply:U(_t),path:"@@/core/routes/runtime.js"});k.register({apply:U(ht),path:"@@/plugin-access/runtime.js"});k.register({apply:U(yt),path:"@@/plugin-layout/runtime.js"});const se=(t,n)=>{let e={};if(Array.isArray(t))for(let a=0;a0&&(e=se(l.children,n),e.path))break}return e},oe=(t,n,e=0)=>{e+=1,e>3&&console.warn("[plugin-layout]: 菜单层级最好不要超出三层!");const a=[];return Array.isArray(t)&&Array.isArray(n)&&t.forEach(l=>{const s={};l.name&&Object.assign(s,se(n,l.name)),Object.keys(s).forEach(o=>{(l[o]===void 0||l[o]===null||l[o]==="")&&(l[o]=s[o])}),l.children&&l.children.length>0&&(l.children=oe(l.children,n,e)),a.push(l)}),a},bt="/icegl-three-vue-tres/static/logo-fad90dd5.png";if(!te)throw new Error("[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!");const ie=t=>{const n=t.children&&t.children.length;return t.path&&!n?te(t.path):n?t.children.some(e=>ie(e)):!0},re=t=>t.map(n=>ie(n)?(n.children&&(n.children=re(n.children)),n):!1).filter(Boolean),ce=t=>{if(!/^\$\S+$/.test(t))return t;const n=k.getShared("locale");if(n){const{t:e}=n.locale;return e(t.slice(1))}return t},ue=t=>t.map(n=>{const e=W(j({},n),{label:ce(n.label)});return n.children&&(e.children=ue(n.children)),e}),de=(t=[])=>t.reduce((n,e)=>(n.push(e),e.children&&(n=n.concat(de(e.children))),n),[]),xt={},wt=function(t){return typeof t=="string"},fe=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let n=0;n{const n=document.createElement("div");n.innerHTML=t;for(let a=n.childNodes.length-1;a>=0;a--)n.childNodes[a].nodeName.toLowerCase()!=="svg"&&n.removeChild(n.childNodes[a]);const e=n.firstElementChild;return e&&e.nodeName.toLowerCase()==="svg"&&fe(e)?n.innerHTML:""},Et=/^((https?|ftp|file):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/,At=t=>Et.test(t)||t.includes(".svg"),St={props:{icon:[String,Object]},setup(t){const n=F(null),e=F(null);return Ee(()=>{typeof t.icon=="string"&&(At(t.icon)?fetch(t.icon).then(a=>{if(a.ok)return a.text().then(l=>{e.value=Pt(l)})}):n.value=xt[t.icon])}),()=>Ae(t.icon)?t.icon:n.value?i(n.value,null,null):e.value?i("span",{class:"fes-layout-icon",innerHTML:e.value},null):null}};const pe=(t,n=1)=>t.map((e,a)=>{const l=W(j({},e),{label:e.title,value:e.path||"".concat(n,"_").concat(a)});return e.icon&&(l.icon=()=>Se(St,{icon:e.icon})),e.children&&(l.children=pe(e.children,n+1)),l}),Ct={components:{FMenu:ee},props:{menus:{type:Array,default(){return[]}},mode:{type:String,default:"vertical"},inverted:{type:Boolean,default:!1},expandedKeys:{type:Array,default(){return[]}},defaultExpandAll:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1}},setup(t){const n=z(),e=H(),a=L(()=>ue(re(pe(t.menus)))),l=L(()=>de(a.value)),s=L(()=>{const h=l.value.filter(d=>{const p=d.match;return!p||!Array.isArray(p)?!1:p.some(y=>new RegExp(y).test(n.path))});return h.length===0?n.path:h[0].path}),o=F(t.expandedKeys);return ne([l,s],()=>{var y;let h=l.value.findIndex(g=>g.value===s.value);if(h===-1)return;const d=l.value[h],p=(y=d.children)!=null&&y.length?[d]:[];for(;h>0;){h=h-1;const g=l.value[h];g.children&&g.children.indexOf(p[p.length-1])!==-1&&p.push(g)}o.value=o.value.concat(p.filter(g=>!o.value.includes(g.value)).map(g=>g.value))},{immediate:!0}),{activePath:s,expandedKeysRef:o,transformedMenus:a,onMenuClick:h=>{const d=h.value;/^https?:\/\//.test(d)?window.open(d,"_blank"):/^\//.test(d)?e.push(d):console.warn("[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址")}}}};function Rt(t,n,e,a,l,s){const o=x("f-menu");return r(),T(o,{expandedKeys:a.expandedKeysRef,"onUpdate:expandedKeys":n[0]||(n[0]=_=>a.expandedKeysRef=_),modelValue:a.activePath,inverted:e.inverted,mode:e.mode,options:a.transformedMenus,defaultExpandAll:e.defaultExpandAll,accordion:e.accordion,onSelect:a.onMenuClick},null,8,["expandedKeys","modelValue","inverted","mode","options","defaultExpandAll","accordion","onSelect"])}const Tt=O(Ct,[["render",Rt]]);let kt=0;const Y=()=>++kt,Ot={components:{FTabs:Ce,FTabPane:Re,FDropdown:Te,ReloadOutlined:ke,MoreOutlined:Oe,Page:Le},props:{multiTabs:Boolean},setup(){const t=F(),n=z(),e=H(),a=m=>{var b;const u=L(()=>{const P=A(Ve(m.path));return P!=null?P:ce(m.meta.title)});return{path:m.path,route:m,name:(b=m.meta.name)!=null?b:m.name,title:u,key:Y()}},l=F([a(e.currentRoute.value)]),s=[{value:"closeOtherPage",label:"关闭其他页签"},{value:"reloadPage",label:"刷新当前页签"}],o=m=>l.value.find(u=>A(u.path)===A(m));e.beforeEach(m=>{const u=o(m.path);return u?u.route=m:l.value=[...l.value,a(m)],!0});const _=async m=>{const u=o(m);u&&await e.push({path:m,query:u.route.query,params:u.route.params})},h=async m=>{const u=o(m),b=[...l.value],P=b.indexOf(u);n.path===u.path&&b.length>1&&(b.length-1===P?await _(b[P-1].path):await _(b[P+1].path)),b.splice(P,1),l.value=b,t.value.removeKeepAlive(u.name),Ie(u.path)},d=m=>{const u=o(m||A(n.path));u&&(u.key=Y())},p=m=>{const u=o(m||A(n.path));l.value=[u],t.value.removeAllAndSaveKeepAlive(u.name)};return{pageRef:t,route:n,pageList:l,getPageKey:m=>{const u=o(m.path);return u?u.key:""},reloadPage:d,switchPage:_,handlerMore:m=>{switch(m){case"closeOtherPage":p();break;case"reloadPage":d();break}},handleCloseTab:h,actions:s}}};function Lt(t,n,e,a,l,s){const o=x("ReloadOutlined"),_=x("FTabPane"),h=x("MoreOutlined"),d=x("FDropdown"),p=x("FTabs"),y=x("Page");return e.multiTabs?(r(),f(C,{key:0},[i(p,{modelValue:a.route.path,closable:"",tabsPadding:24,type:"card",class:"layout-content-tabs",onClose:a.handleCloseTab,"onUpdate:modelValue":a.switchPage},{suffix:c(()=>[i(d,{arrow:"",options:a.actions,onClick:a.handlerMore},{default:c(()=>[i(h)]),_:1},8,["options","onClick"])]),default:c(()=>[(r(!0),f(C,null,I(a.pageList,g=>(r(),T(_,{key:g.path,value:g.path,closable:a.pageList.length>1},{tab:c(()=>[R(S(g.title)+" ",1),Fe(i(o,{class:"layout-tabs-close-icon",onClick:m=>a.reloadPage(g.path)},null,8,["onClick"]),[[Me,a.route.path===g.path]])]),_:2},1032,["value","closable"]))),128))]),_:1},8,["modelValue","onClose","onUpdate:modelValue"]),i(y,{ref:"pageRef",pageKey:a.getPageKey,isAllKeepAlive:""},null,8,["pageKey"])],64)):(r(),T(y,{key:1}))}const Ft=O(Ot,[["render",Lt]]);const Mt={components:{FLayout:je,FAside:De,FMain:Ne,FFooter:Be,FHeader:He,Menu:Tt,MultiTabProvider:Ft},props:{menus:{type:Array,default(){return[]}},locale:{type:Boolean,default:!1},title:{type:String,default:""},logo:{type:String,default:bt},theme:{type:String,default:"dark"},navigation:{type:String,default:"side"},isFixedHeader:{type:Boolean,default:!1},isFixedSidebar:{type:Boolean,default:!0},multiTabs:{type:Boolean,default:!1},sideWidth:{type:Number,default:200},footer:String,menuProps:{type:Object}},setup(t){const n=F(),e=F(0),a=F(!1),l=z(),s=H(),o=L(()=>l.meta.layout&&l.meta.layout.navigation!==void 0?l.meta.layout.navigation:t.navigation),_=L(()=>t.isFixedHeader||t.navigation==="mixin"),h=L(()=>_.value?{top:"".concat(e.value,"px")}:null),d=L(()=>{const p=a.value?"48px":"".concat(t.sideWidth,"px");return t.isFixedSidebar?{left:p}:null});return ne(s.currentRoute,()=>{Ke(()=>{n.value&&(e.value=n.value.$el.offsetHeight)})},{immediate:!0}),{headerRef:n,headerHeightRef:e,route:l,collapsedRef:a,currentFixedHeaderRef:_,headerStyleRef:h,sideStyleRef:d,currentNavigation:o}}},Vt={class:"layout-logo"},It=["src"],jt={key:1,class:"logo-name"},Dt={class:"layout-header-custom"},Nt={class:"flex-between"},Bt={class:"layout-logo"},Ht=["src"],Kt={key:1,class:"logo-name"},Ut={class:"layout-aside-custom"},Wt={key:0,class:"layout-aside-locale"},zt={class:"layout-logo"},qt=["src"],Gt={key:1,class:"logo-name"},Jt={class:"layout-header-custom"},Qt={class:"layout-logo"},Xt=["src"],Yt={key:1,class:"logo-name"},Zt={class:"layout-header-custom"};function $t(t,n,e,a,l,s){const o=x("Menu"),_=x("f-aside"),h=x("f-header"),d=x("MultiTabProvider"),p=x("f-main"),y=x("f-footer"),g=x("f-layout"),m=x("router-view");return r(),T(g,{class:"main-layout"},{default:c(()=>[a.currentNavigation==="side"?(r(),f(C,{key:0},[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[0]||(n[0]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),class:"layout-aside",collapsible:"",inverted:e.theme==="dark"},{default:c(()=>{var u,b,P;return[w("div",Vt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,It)):E("",!0),e.title?(r(),f("div",jt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","inverted","expandedKeys","defaultExpandAll","accordion"])]}),_:1},8,["collapsed","fixed","width","inverted"]),i(g,{fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(h,{ref:"headerRef",class:"layout-header",fixed:a.currentFixedHeaderRef},{default:c(()=>[w("div",Dt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]),_:3},8,["fixed"]),i(g,{embedded:!e.multiTabs,fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])]),_:3},8,["fixed","style"])],64)):a.currentNavigation==="left-right"?(r(),f(C,{key:1},[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[1]||(n[1]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),class:"layout-aside",collapsible:"",inverted:e.theme==="dark"},{default:c(()=>{var u,b,P;return[w("div",Nt,[w("div",null,[w("div",Bt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,Ht)):E("",!0),e.title?(r(),f("div",Kt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","inverted","expandedKeys","defaultExpandAll","accordion"])]),w("div",null,[w("div",Ut,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?(r(),f("div",Wt,[M(t.$slots,"locale",{},void 0,!0)])):E("",!0)])])]}),_:3},8,["collapsed","fixed","width","inverted"]),i(g,{fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(g,{embedded:!e.multiTabs},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded"])]),_:1},8,["fixed","style"])],64)):a.currentNavigation==="top"?(r(),f(C,{key:2},[i(h,{ref:"headerRef",class:"layout-header",inverted:e.theme==="dark",fixed:a.currentFixedHeaderRef},{default:c(()=>{var u,b,P;return[w("div",zt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,qt)):E("",!0),e.title?(r(),f("div",Gt,S(e.title),1)):E("",!0)]),i(o,{class:"layout-menu",menus:e.menus,mode:"horizontal",inverted:e.theme==="dark",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","inverted","expandedKeys","defaultExpandAll","accordion"]),w("div",Jt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]}),_:3},8,["inverted","fixed"]),i(g,{embedded:!e.multiTabs,fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])],64)):a.currentNavigation==="mixin"?(r(),f(C,{key:3},[i(h,{ref:"headerRef",class:"layout-header",fixed:a.currentFixedHeaderRef,inverted:e.theme==="dark"},{default:c(()=>[w("div",Qt,[e.logo?(r(),f("img",{key:0,src:e.logo,class:"logo-img"},null,8,Xt)):E("",!0),e.title?(r(),f("div",Yt,S(e.title),1)):E("",!0)]),w("div",Zt,[M(t.$slots,"renderCustom",{menus:e.menus},void 0,!0)]),e.locale?M(t.$slots,"locale",{key:0},void 0,!0):E("",!0)]),_:3},8,["fixed","inverted"]),i(g,{fixed:a.currentFixedHeaderRef,style:D(a.headerStyleRef)},{default:c(()=>[i(_,{collapsed:a.collapsedRef,"onUpdate:collapsed":n[2]||(n[2]=u=>a.collapsedRef=u),fixed:e.isFixedSidebar,width:"".concat(e.sideWidth,"px"),collapsible:"",class:"layout-aside"},{default:c(()=>{var u,b,P;return[i(o,{class:"layout-menu",menus:e.menus,collapsed:a.collapsedRef,mode:"vertical",expandedKeys:(u=e.menuProps)==null?void 0:u.expandedKeys,defaultExpandAll:(b=e.menuProps)==null?void 0:b.defaultExpandAll,accordion:(P=e.menuProps)==null?void 0:P.accordion},null,8,["menus","collapsed","expandedKeys","defaultExpandAll","accordion"])]}),_:1},8,["collapsed","fixed","width"]),i(g,{embedded:!e.multiTabs,fixed:e.isFixedSidebar,style:D(a.sideStyleRef)},{default:c(()=>[i(p,{class:"layout-main"},{default:c(()=>[i(d,{multiTabs:e.multiTabs},null,8,["multiTabs"])]),_:1}),e.footer?(r(),T(y,{key:0,class:"layout-footer"},{default:c(()=>[R(S(e.footer),1)]),_:1})):E("",!0)]),_:1},8,["embedded","fixed","style"])]),_:1},8,["fixed","style"])],64)):(r(),T(p,{key:4,class:"layout-main"},{default:c(()=>[i(m)]),_:1}))]),_:3})}const en=O(Mt,[["render",$t],["__scopeId","data-v-69422c84"]]),tn=V({name:"Layout",setup(){const t=le(),n=typeof t.menus=="function"?t.menus():t.menus,e=me(),a=L(()=>{var s;return oe((s=A(n))!=null?s:[],e)}),l=k.getShared("locale");return()=>{const s={renderCustom:t.renderCustom,locale:()=>l?i(l.SelectLang,null,null):null};return i(en,{menus:a.value,locale:!!l,title:t.title,logo:t.logo,theme:t.theme,navigation:t.navigation,isFixedHeader:t.isFixedHeader,isFixedSidebar:t.isFixedSidebar,multiTabs:t.multiTabs,sideWidth:t.sideWidth,footer:t.footer,menuProps:t.menuProps},s)}}}),nn={},an={class:"flex h-full"};function ln(t,n){return r(),f("div",an)}const sn=O(nn,[["render",ln]]),on={name:"basic",title:"原生功能展示",intro:"",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],child:[{name:"base",title:"基础",intro:"基础功能展示",pNode:"basic",preview:[{src:"plugins/basic/base/preview/theGroups.png",type:"img",name:"theGroups",title:"组合Group"},{src:"plugins/basic/base/preview/theConditional.png",type:"img",name:"theConditional",title:"显隐v-if"},{src:"plugins/basic/base/preview/theBasic.png",type:"img",name:"theBasic",title:"基本"},{src:"plugins/basic/base/preview/theEvents.png",type:"img",name:"theEvents",title:"事件"},{src:"plugins/basic/base/preview/shaderParticles.png",type:"img",name:"shaderParticles",title:"着色器实践"},{src:"plugins/basic/base/preview/penetrateEvent.png",type:"img",name:"penetrateEvent",title:"穿透事件"}]},{name:"materials",title:"材质",intro:"各种衍生材质展示",pNode:"basic",preview:[{src:"plugins/basic/materials/preview/glassMaterial.png",type:"img",name:"glassMaterial",title:"玻璃材质"},{src:"plugins/basic/materials/preview/wobbleMaterial.png",type:"img",name:"wobbleMaterial",title:"流体波动"}]},{name:"controls",title:"控制器",intro:"各种控制器",pNode:"basic",preview:[{src:"plugins/basic/controls/preview/cameraControls.png",type:"img",name:"cameraControls",title:"摄像头控制"},{src:"plugins/basic/controls/preview/orbitControls.png",type:"img",name:"orbitControls",title:"orbitControls"},{src:"plugins/basic/controls/preview/transformControls.png",type:"img",name:"transformControls",title:"变换控制器"},{src:"与OrbitControls类似,该控件用于从鸟瞰视角在地图上变换相机,但使用鼠标/触摸交互的特定预设,并在默认情况下禁用屏幕空间平移。",type:"text",name:"mapControls",title:"地图控制器"},{src:"第一人称视角,键盘控制视角。W、S、A、D:前后左右;空格:跳起;ESC:退出控制。",type:"text",name:"firstPersonControls",title:"第一人称键盘控制"},{src:"plugins/basic/controls/preview/scrollControls.png",type:"img",name:"scrollControls",title:"滚轮控制器"}]},{name:"htmls",title:"内嵌dom",intro:"内嵌网页元素",pNode:"basic",preview:[{src:"plugins/basic/htmls/preview/htmls.png",type:"img",name:"htmls",title:"简单dom"},{src:"plugins/basic/htmls/preview/website.png",type:"img",name:"website",title:"内嵌网页"}]}]},rn=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),cn={name:"digitalCity",title:"数字城市",intro:"基于城市场景的可视化展示插件",version:"0.0.1",author:"地虎降天龙",state:"active",require:["cannon-es"],preview:[{src:"plugins/digitalCity/preview/buildings.mp4",type:"video",name:"buildings",title:"建筑物"},{src:"plugins/digitalCity/preview/radars.png",type:"img",name:"radars",title:"雷达"},{src:"plugins/digitalCity/preview/weather.png",type:"img",name:"weather",title:"天气"},{src:"plugins/digitalCity/preview/heatmap.png",type:"img",name:"heatmap",title:"热力图"},{src:"plugins/digitalCity/preview/heatmap2.png",type:"img",name:"heatmap2",title:"建筑物-热力图"}]},un=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"})),dn={name:"earthSample",title:"地球的简单例子",intro:"基于threeJS简单地球的例子",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/earthSample/preview/earthA.png",type:"img",name:"earthA",title:"样式A"},{src:"plugins/earthSample/preview/menuA.png",type:"img",name:"menuA",title:"菜单A"},{src:"plugins/earthSample/preview/lowpolyPlanet.png",type:"img",name:"lowpolyPlanet",title:"低像素多边形"}]},fn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),pn={name:"heatMap",title:"热流图实例",intro:"基于threeJS的热力图例子",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/heatMap/preview/simpleExample.png",type:"img",name:"simpleExample",title:"简单例子"},{src:"plugins/heatMap/preview/heatmapExample.png",type:"img",name:"heatmapExample",title:"heatmap.js例子"}]},_n=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"})),mn={name:"vantaJS",title:"vantaJS",intro:"基于threeJS的炫酷背景墙",version:"0.0.1",author:"地虎降天龙",website:"www.icegl.cn",state:"active",require:[],preview:[{src:"plugins/vantaJS/preview/loadingA.png",type:"img",name:"loadingA",title:"载入中A"}]},gn=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"})),hn=t=>{const n=/\/([^/]+)(?=\/[^/]*$)/,e=t.match(n);return e&&e[1]?e[1]:null},vn=()=>{const t=Object.assign({"/src/plugins/basic/config.js":rn,"/src/plugins/digitalCity/config.js":un,"/src/plugins/earthSample/config.js":fn,"/src/plugins/heatMap/config.js":_n,"/src/plugins/vantaJS/config.js":gn}),n={};for(const e of Object.keys(t)){const a=hn(e);a&&(n[a]=t[e].default)}return n},yn={class:"flex flex-wrap flex-justify-start content-start mt-6 pl-6"},bn={key:0,controls:"",class:"w-full max-h-70"},xn=["src"],wn=["src"],Pn={key:2,class:"w-full h-48 text-3 text-left mb-2",style:{"background-color":"rgb(55 56 61)",overflow:"hidden","border-radius":"10px"}},En={class:"p-2",style:{color:"white"}},An=["onClick"],Z=V({__name:"cardList",props:{onePlugin:{}},setup(t){const n=t;let e="/icegl-three-vue-tres";const a=H(),l=(s,o)=>{let _="/plugins/".concat(s.name,"/").concat(o);s.pNode&&(_="/plugins/".concat(s.pNode,"/").concat(s.name,"/").concat(o));let h=a.resolve({path:_});window.open(h.href,"_blank")};return(s,o)=>(r(),f(C,null,[i(A(ae),{titlePlacement:"left"},{default:c(()=>[R(S(n.onePlugin.title+" - "+n.onePlugin.name),1)]),_:1}),i(A(Ue),{class:"ml-13",tag:"i",size:"small"},{default:c(()=>[R(S(n.onePlugin.intro),1)]),_:1}),w("div",yn,[(r(!0),f(C,null,I(s.onePlugin.preview,(_,h)=>(r(),f("div",{class:"w-80 mr-10 mb-10 overflow-hidden",key:h},[i(A(We),{header:_.title,shadow:"hover"},{default:c(()=>[_.type==="video"?(r(),f("video",bn,[w("source",{src:A(e)+_.src,type:"video/mp4",autoplay:"true",loop:"true"},null,8,xn)])):_.type==="img"?(r(),f("img",{key:1,class:"w-full max-h-70",src:A(e)+_.src},null,8,wn)):_.type==="text"?(r(),f("div",Pn,[w("div",En,S(_.src),1)])):E("",!0),w("div",{class:"cursor-pointer",onClick:d=>l(n.onePlugin,_.name)},"点击查看详情",8,An)]),_:2},1032,["header"])]))),128))])],64))}});const Sn=ze('

欢迎来到 ICEImage、Community、Education」图形学社区,围绕 webgl 的交流学习社区,这里是国内最全的 Web 图形学知识库,同时也是一个致力于打造全新图形学生态体系的社区。

我们的使命是通过开源协作和知识分享,促进图形学技术的不断进步。我们相信图形学是一个无限创新的领域,可以应用于游戏开发、虚拟现实、增强现实、计算机辅助设计等多个领域。

🤔 问题反馈

在使用中有任何问题,请使用以下联系方式联系我们 图形学社区icegl.cn

🧑‍💻 联系我们

欢迎大家也加入微信群,已有几个群已满,一起学习讨论webgl。加微信我拉进群

',1),Cn=V({__name:"aboutUs",setup(t){return(n,e)=>(r(),f(C,null,[i(A(ae),{titlePlacement:"left"},{default:c(()=>[R("关于我们 - ICEGL")]),_:1}),Sn],64))}});const Rn=O(Cn,[["__scopeId","data-v-513cf3f8"]]),Tn={class:"flex h-full"},kn={class:"w-50",style:{"background-color":"black"}},On={class:"flex-1 overflow-scroll",style:{height:"calc(100vh - 54px)"}},Ln=V({__name:"index",setup(t){const n=F([]);let e=vn();const a=l=>{var s;(s=n.value[l.value])==null||s.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};return(l,s)=>{const o=x("f-menu-item"),_=x("f-sub-menu"),h=x("f-menu");return r(),f("div",Tn,[w("div",kn,[i(h,{mode:"vertical",defaultExpandAll:!0,inverted:!0,onSelect:a},{default:c(()=>[i(_,{value:"1"},{icon:c(()=>[i(A(qe))]),label:c(()=>[R("原生功能展示")]),default:c(()=>[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,null,[p==="basic"?(r(!0),f(C,{key:0},I(d.child,(y,g)=>(r(),T(o,{value:y.name},{label:c(()=>[R(S(y.title),1)]),_:2},1032,["value"]))),256)):E("",!0)],64))),256))]),_:1}),i(_,{value:"2"},{icon:c(()=>[i(A(Ge))]),label:c(()=>[R("插件中心")]),default:c(()=>[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,null,[p!=="basic"?(r(),T(o,{key:0,value:p},{label:c(()=>[R(S(d.title),1)]),_:2},1032,["value"])):E("",!0)],64))),256))]),_:1}),i(_,{value:"8"},{icon:c(()=>[i(A(Je))]),label:c(()=>[R("aboutUs")]),default:c(()=>[i(o,{value:"abus"},{label:c(()=>[R("关于我们")]),_:1})]),_:1})]),_:1})]),w("div",On,[(r(!0),f(C,null,I(A(e),(d,p)=>(r(),f(C,{key:p},[p!=="basic"?(r(),f("div",{key:0,style:{"background-color":"#f1f1f2"},ref_for:!0,ref:y=>n.value[p]=y},[i(Z,{onePlugin:d},null,8,["onePlugin"])],512)):(r(!0),f(C,{key:1},I(d.child,(y,g)=>(r(),f("div",{style:{"background-color":"#f1f1f2"},key:g,ref_for:!0,ref:m=>n.value[y.name]=m},[i(Z,{onePlugin:y},null,8,["onePlugin"])]))),128))],64))),128)),w("div",{style:{"background-color":"rgb(255 255 255)"},ref:d=>n.value.abus=d},[i(Rn)],512)])])}}});const Fn="/icegl-three-vue-tres/static/403-c37bd830.png";const Mn=V({components:{FButton:Qe},props:{iconSrc:{required:!0},title:{type:String,required:!0},subTitle:{type:String}},setup(){const t=H();return{click:()=>{t.back()}}}}),Vn={class:"wrapper"},In=["src"],jn={class:"title"},Dn={key:0,class:"sub-title"},Nn={class:"btn-wrapper"};function Bn(t,n,e,a,l,s){const o=x("FButton");return r(),f("div",Vn,[w("img",{src:t.iconSrc,class:"icon"},null,8,In),w("div",jn,S(t.title),1),t.subTitle?(r(),f("div",Dn,S(t.subTitle),1)):E("",!0),w("div",Nn,[i(o,{type:"primary",onClick:t.click},{default:c(()=>[R(" 返回上一页 ")]),_:1},8,["onClick"])])])}const _e=O(Mn,[["render",Bn],["__scopeId","data-v-25581ede"]]),Hn=V({components:{Wrapper:_e},setup(){return{img403:Fn}}});function Kn(t,n,e,a,l,s){const o=x("Wrapper");return r(),T(o,{iconSrc:t.img403,title:"没有访问权限,请联系管理人员",subTitle:""},null,8,["iconSrc"])}const Un=O(Hn,[["render",Kn]]),Wn="/icegl-three-vue-tres/static/404-ec600539.png",zn=V({components:{Wrapper:_e},setup(){return{img404:Wn}}});function qn(t,n,e,a,l,s){const o=x("Wrapper");return r(),T(o,{iconSrc:t.img404,title:"哎呀!这个页面找不到了",subTitle:""},null,8,["iconSrc"])}const Gn=O(zn,[["render",qn]]);function me(){return[{path:"/",component:tn,children:[{path:"/preview",component:sn,name:"preview",meta:{},count:7},{path:"/",component:Ln,name:"index",meta:{name:"index",title:"开源框架展示"},count:5},{path:"/403",name:"Exception403",component:Un,meta:{title:"403"}},{path:"/404",name:"Exception404",component:Gn,meta:{title:"404"}}]}]}const Jn=V(()=>()=>i(Xe,null,null));const Qn=(t={})=>{const{plugin:n,routes:e,rootElement:a}=t,l=n.applyPlugins({type:B.modify,key:"rootContainer",initialValue:Jn,args:{routes:e,plugin:n}}),s=Ye(l);return n.applyPlugins({key:"onAppCreated",type:B.event,args:{app:s,routes:e}}),a&&s.mount(a),s},Xn=(t={})=>k.applyPlugins({key:"render",type:B.compose,initialValue:()=>{const n=k.applyPlugins({key:"modifyClientRenderOpts",type:B.modify,initialValue:{routes:t.routes||me(),plugin:k,rootElement:"#app",defaultTitle:"fes.js"}});return Qn(n)},args:t}),Yn=Xn();Yn(); diff --git a/dist/static/menuA-f3f16681.js b/dist/static/menuA-bdee96ee.js similarity index 59% rename from dist/static/menuA-f3f16681.js rename to dist/static/menuA-bdee96ee.js index 5b3e0ea6..7832e7ba 100644 --- a/dist/static/menuA-f3f16681.js +++ b/dist/static/menuA-bdee96ee.js @@ -1 +1 @@ -import{a as E,l as L,y as K,x as G,g as Q}from"./trescientos-214666d1.js";import{p as oo,A as C,D as x,C as y,q as j,r as eo,s as B,t as D,o as I,O as z,u as X,V as M,v as O,w as R,x as W,b as T,y as no,z as to,c as io,G as ao,H as so,J as po,T as ro,m as mo,l as lo}from"./three.module-d47ac97c.js";import{Y as k,j as b,ae as $,o as g,s as S,B as P,aa as U,I as h,U as d,ak as co,c as V,a as w,ai as q,aj as H,_ as Y,al as F}from"./vendor-19b019cc.js";const uo=d("TresPerspectiveCamera",{position:[0,50,300],fov:40,far:800,plane:1},null,-1),fo=["position"],ho=d("TresPointsMaterial",{color:"#66ffff",size:1.1,transparency:!0,opacity:.8},null,-1),_o=k({__name:"starts",setup(s){const e={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0},o=b();let n,a=null;$(()=>{o.value&&(o.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),o.value.context.renderer.value.autoClear=!1,o.value.context.renderer.value.setClearColor(0,0),a=o.value.context.scene.value,n=o.value.context.camera.value,a.fog=new oo(1776411,1e-4),n.position.z=800/2)});const r=window.innerWidth/2,i=window.innerHeight/2;let m=0,t=0;function p(l){m=l.clientX-r,t=l.clientY-i}document.addEventListener("mousemove",p,!1);const c=new Float32Array(45e3*3);for(let l=0;l<45e3;l++)c[l*3+0]=Math.random()*2e3-1e3,c[l*3+1]=Math.random()*2e3-1e3,c[l*3+2]=Math.random()*2e3-1e3;const{onLoop:_}=E();return _(()=>{n&&(n.position.x+=(m-n.position.x)*.005,n.position.y+=(-t-n.position.y)*.005,n.lookAt(a.position))}),(l,f)=>(g(),S(h(L),U({ref_key:"TresCanvasRef",ref:o},e,{"window-size":""}),{default:P(()=>[uo,d("TresPoints",null,[d("TresBufferGeometry",{args:[1e3,100,50],position:[h(c),3]},null,8,fo),ho])]),_:1},16))}}),J=s=>(q("data-v-b13303a3"),s=s(),H(),s),vo={class:"position-absolute w-full h-full"},wo=J(()=>d("TresPerspectiveCamera",{position:[0,100,420],fov:50,aspect:1,near:1,far:1e4},null,-1)),go=["rotation-x"],xo=J(()=>d("TresPlaneGeometry",{args:[400,400]},null,-1)),yo=["map","alphaMap","blending","side"],Mo=k({__name:"circle",async setup(s){let e,o;const n={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0,logarithmicDepthBuffer:!0,precision:"highp",premultipliedAlpha:!1},a=([e,o]=co(()=>K({map:"./plugins/earthSample/image/menuA/quan_01.png"})),e=await e,o(),e),{onLoop:r}=E();r(({delta:t})=>{m.value&&(m.value.rotation.z-=.005)});const i=b(),m=b();return $(()=>{if(i.value&&i.value.context){i.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),i.value.context.renderer.value.autoClear=!0,i.value.context.renderer.value.autoClearColor=new y(1,0,0,0),i.value.context.renderer.value.setClearColor(0,0);const t=i.value.context.scene.value;i.value.context.camera.value,t.fog=new j(4095,100,1e3)}m.value}),(t,p)=>(g(),V("div",vo,[w(h(L),U({class:"TresCanvasNoPointerEvents",ref_key:"TresCanvasRef",ref:i},n),{default:P(()=>[wo,w(h(G),{autoRotate:!1}),d("TresMesh",{ref_key:"quanMeshRef",ref:m,position:[0,0,0],"rotation-x":2*Math.PI/360*100},[xo,d("TresMeshBasicMaterial",{color:"#ffffff",map:h(a).map,alphaMap:h(a).map,blending:h(C),side:h(x),depthTest:.2,opacity:1,depthWrite:!1,transparent:!0,alphaTest:0},null,8,yo)],8,go)]),_:1},16)]))}});const Po=Y(Mo,[["__scopeId","data-v-b13303a3"]]),N=[{name:"中国",position:[116.2,39.55]},{name:"中非共和国",position:[18.35,4.23]},{name:"智利",position:[-70.4,-33.24]},{name:"乍得",position:[14.59,12.1]},{name:"赞比亚",position:[28.16,-15.28]},{name:"越南",position:[105.55,21.05]},{name:"约旦",position:[35.52,31.57]},{name:"英属维尔京群岛",position:[-64.37,18.27]},{name:"英国",position:[-.05,51.36]},{name:"印度尼西亚",position:[106.49,-6.09]},{name:"印度",position:[77.13,28.37]},{name:"意大利",position:[12.29,41.54]},{name:"以色列",position:[35.12,31.47]},{name:"伊朗",position:[51.3,35.44]},{name:"伊拉克",position:[44.3,33.2]},{name:"亚美尼亚",position:[44.31,40.1]},{name:"牙买加",position:[-76.5,18]},{name:"匈牙利",position:[19.05,47.29]},{name:"新西兰",position:[174.46,-41.19]},{name:"新喀里多尼亚",position:[166.3,-22.17]},{name:"希腊",position:[23.46,37.58]},{name:"西班牙",position:[-3.45,40.25]},{name:"乌兹别克斯坦",position:[69.1,41.2]},{name:"乌拉圭",position:[-56.11,-34.5]},{name:"乌克兰",position:[30.28,50.3]},{name:"乌干达",position:[32.3,.2]},{name:"文莱",position:[115,4.52]},{name:"委内瑞拉",position:[-66.55,10.3]},{name:"危地马拉",position:[-90.22,14.4]},{name:"瓦努阿图",position:[168.18,-17.45]},{name:"土库曼斯坦",position:[57.5,38]},{name:"土耳其",position:[32.54,39.57]},{name:"图瓦卢",position:[179.13,-8.31]},{name:"突尼斯",position:[10.11,36.5]},{name:"汤加",position:[-174,-21.1]},{name:"坦桑尼亚",position:[35.45,-6.08]},{name:"泰国",position:[100.35,13.45]},{name:"塔吉克斯坦",position:[68.48,38.33]},{name:"索马里",position:[45.25,2.02]},{name:"所罗门群岛",position:[159.57,-9.27]},{name:"苏里南",position:[-55.1,5.5]},{name:"苏丹",position:[32.35,15.31]},{name:"斯威士兰",position:[31.06,-26.18]},{name:"斯洛文尼亚",position:[14.33,46.04]},{name:"斯洛伐克",position:[17.07,48.1]},{name:"圣文森特和格林纳丁斯",position:[-61.1,13.1]},{name:"圣皮埃尔和密克隆",position:[-56.12,46.46]},{name:"圣马力诺",position:[12.3,43.55]},{name:"圣卢西亚",position:[-60.58,14.02]},{name:"圣基茨和尼维斯",position:[-62.43,17.17]},{name:"圣多美和普林西比",position:[6.39,.1]},{name:"沙特阿拉伯",position:[46.42,24.41]},{name:"塞浦路斯",position:[33.25,35.1]},{name:"塞内加尔",position:[-17.29,14.34]},{name:"塞拉利昂",position:[-13.17,8.3]},{name:"萨摩亚",position:[-171.5,-13.5]},{name:"萨尔瓦多",position:[-89.1,13.4]},{name:"瑞士",position:[7.28,46.57]},{name:"瑞典",position:[18.03,59.2]},{name:"葡萄牙",position:[-9.1,38.42]},{name:"帕劳",position:[134.28,7.2]},{name:"诺福克岛",position:[168.43,-45.2]},{name:"挪威",position:[10.45,59.55]},{name:"尼日利亚",position:[7.32,9.05]},{name:"尼日尔",position:[2.06,13.27]},{name:"尼加拉瓜",position:[-86.2,12.06]},{name:"尼泊尔",position:[85.2,27.45]},{name:"南斯拉夫",position:[20.37,44.5]},{name:"纳米比亚",position:[17.04,-22.35]},{name:"墨西哥",position:[-99.1,19.2]},{name:"莫桑比克",position:[32.32,-25.58]},{name:"摩尔多瓦共和国",position:[28.5,47.02]},{name:"缅甸",position:[96.2,16.45]},{name:"秘鲁",position:[-77,-12]},{name:"孟加拉国",position:[90.26,23.43]},{name:"美属维尔京群岛",position:[-64.56,18.21]},{name:"美属萨摩亚",position:[-170.43,-14.16]},{name:"美国",position:[-77.02,39.91]},{name:"毛里塔尼亚",position:[57.3,-20.1]},{name:"马约特岛",position:[45.14,-12.48]},{name:"马提尼克岛",position:[-61.02,14.36]},{name:"马其顿",position:[21.26,42.01]},{name:"马里",position:[-7.55,12.34]},{name:"马来西亚",position:[101.41,3.09]},{name:"马拉维",position:[33.48,-14]},{name:"马耳他",position:[14.31,35.54]},{name:"马尔代夫",position:[73.28,4]},{name:"马达加斯加",position:[47.31,-18.55]},{name:"罗马尼亚",position:[26.1,44.27]},{name:"卢旺达",position:[30.04,-1.59]},{name:"卢森堡",position:[6.09,49.37]},{name:"列支敦士登",position:[9.31,47.08]},{name:"利比里亚",position:[-10.47,6.18]},{name:"立陶宛",position:[25.19,54.38]},{name:"黎巴嫩",position:[35.31,33.53]},{name:"老挝",position:[102.36,17.58]},{name:"莱索托",position:[27.3,-29.18]},{name:"拉脱维亚",position:[24.08,56.53]},{name:"肯尼亚",position:[36.48,-1.17]},{name:"克罗地亚",position:[15.58,45.5]},{name:"科威特",position:[48,29.3]},{name:"科特迪瓦",position:[-5.17,6.49]},{name:"科摩罗",position:[43.16,-11.4]},{name:"开曼群岛",position:[-81.24,19.2]},{name:"卡塔尔",position:[51.35,25.15]},{name:"喀麦隆",position:[11.35,3.5]},{name:"津巴布韦",position:[31.02,-17.43]},{name:"捷克共和国",position:[14.22,50.05]},{name:"柬埔寨",position:[104.55,11.33]},{name:"加蓬",position:[9.26,.25]},{name:"加纳",position:[-.06,5.35]},{name:"加拿大",position:[-75.42,45.27]},{name:"几内亚比绍",position:[-15.45,11.45]},{name:"几内亚",position:[-13.49,9.29]},{name:"吉尔吉斯斯坦",position:[74.46,42.54]},{name:"吉布提",position:[42.2,11.08]},{name:"基里巴斯",position:[173,1.3]},{name:"洪都拉斯",position:[-87.14,14.05]},{name:"赫德岛和麦当劳群岛",position:[74,-53]},{name:"荷属安的列斯",position:[-69,12.05]},{name:"荷兰",position:[4.54,52.23]},{name:"韩国",position:[126.58,37.31]},{name:"海地",position:[-72.2,18.4]},{name:"哈萨克斯坦",position:[71.3,51.1]},{name:"圭亚那",position:[-58.12,6.5]},{name:"瓜德罗普岛",position:[-61.44,16]},{name:"古巴",position:[-82.22,23.08]},{name:"根西岛",position:[-2.33,49.26]},{name:"格鲁吉亚",position:[44.5,41.43]},{name:"格陵兰",position:[-51.35,64.1]},{name:"哥斯达黎加",position:[-84.02,9.55]},{name:"哥伦比亚",position:[-74,4.34]},{name:"刚果",position:[15.12,-4.09]},{name:"刚果(扎伊尔)",position:[15.15,-4.2]},{name:"冈比亚",position:[-16.4,13.28]},{name:"福克兰群岛(马尔维纳斯群岛)",position:[-59.51,-51.4]},{name:"佛得角",position:[-23.34,15.02]},{name:"芬兰",position:[25.03,60.15]},{name:"斐济",position:[178.3,-18.06]},{name:"菲律宾",position:[121.03,14.4]},{name:"法属圭亚那",position:[-52.18,5.05]},{name:"法属波利尼西亚",position:[-149.34,-17.32]},{name:"法罗群岛",position:[-6.56,62.05]},{name:"法国",position:[2.2,48.5]},{name:"厄立特里亚",position:[38.55,15.19]},{name:"厄瓜多尔",position:[-78.35,-.15]},{name:"俄罗斯",position:[37.35,55.45]},{name:"多米尼加共和国",position:[-69.59,18.3]},{name:"多米尼加",position:[-61.24,15.2]},{name:"多哥",position:[1.2,6.09]},{name:"东帝汶",position:[125.34,-8.29]},{name:"德国",position:[13.25,52.3]},{name:"丹麦",position:[12.34,55.41]},{name:"赤道几内亚",position:[8.5,3.45]},{name:"朝鲜",position:[125.3,39.09]},{name:"布隆迪",position:[29.18,-3.16]},{name:"布基纳法索",position:[-1.3,12.15]},{name:"不丹",position:[89.45,27.31]},{name:"博茨瓦纳",position:[25.57,-24.45]},{name:"伯利兹",position:[-88.3,17.18]},{name:"玻利维亚",position:[-68.1,-16.2]},{name:"波斯尼亚和黑塞哥维那",position:[18.26,43.52]},{name:"波兰",position:[21,52.13]},{name:"波多黎各",position:[-66.07,18.28]},{name:"冰岛",position:[-21.57,64.1]},{name:"比利时",position:[4.21,50.51]},{name:"比勒陀利亚",position:[28.12,-25.44]},{name:"贝宁",position:[2.42,6.23]},{name:"北马里亚纳群岛",position:[145.45,15.12]},{name:"保加利亚",position:[23.2,42.45]},{name:"白俄罗斯",position:[27.3,53.52]},{name:"巴西",position:[-47.55,-15.47]},{name:"巴拿马",position:[-79.25,9]},{name:"巴林",position:[50.3,26.1]},{name:"巴拉圭",position:[-57.3,-25.1]},{name:"巴基斯坦",position:[73.1,33.4]},{name:"巴哈马",position:[-77.2,25.05]},{name:"巴布亚新几内亚",position:[147.08,-9.24]},{name:"巴巴多斯",position:[-59.3,13.05]},{name:"澳大利亚",position:[149.08,-35.15]},{name:"奥地利",position:[16.22,48.12]},{name:"安提瓜和巴布达",position:[-61.48,17.2]},{name:"安哥拉",position:[13.15,-8.5]},{name:"安道尔",position:[1.32,42.31]},{name:"爱沙尼亚",position:[24.48,59.22]},{name:"爱尔兰",position:[-6.15,53.21]},{name:"埃塞俄比亚",position:[38.42,9.02]},{name:"埃及",position:[31.14,30.01]},{name:"阿塞拜疆",position:[49.56,40.29]},{name:"阿曼",position:[58.36,23.37]},{name:"阿鲁巴",position:[-70.02,12.32]},{name:"阿联酋",position:[54.22,24.28]},{name:"阿拉伯叙利亚共和国",position:[36.18,33.3]},{name:"阿拉伯利比亚民众国",position:[13.07,32.49]},{name:"阿根廷",position:[-60,-36.3]},{name:"阿富汗",position:[69.11,34.28]},{name:"阿尔及利亚",position:[3.08,36.42]},{name:"阿尔巴尼亚",position:[19.49,41.18]}],Co=s=>{const e=new X;e.radius=100;const o=s[0],n=s[1],a=(o+90)*(Math.PI/180),r=(90-n)*(Math.PI/180);e.phi=r,e.theta=a;const i=new M;return i.setFromSpherical(e),i},bo=(s,e)=>{const o=new z,a=["#66ffff","#66aaaa"][e],r=new O(2,6),i=new R({color:a,side:x,transparent:!0,opacity:1}),t=new O(3,6).getAttribute("position"),p=new Float32Array(t.count*3-3);for(let v=3;v{const e=new B().load("./plugins/earthSample/image/menuA/lightray.jpg"),o=new R({map:e,alphaMap:e,transparent:!0,depthTest:!0,depthWrite:!0,alphaTest:.3,opacity:.9,side:x,color:16777215,blending:C}),n=50*Math.random(),a=new to(6,n),r=new io,i=new I(a,o);r.makeRotationX(Math.PI/2),r.setPosition(new M(0,0,n/-2)),a.applyMatrix4(r);const m=i.clone();return m.rotation.z=Math.PI/2,i.add(m),i.position.copy(s),i.lookAt(0,0,0),i},Ro=s=>{for(let e=0;e{const a=Math.trunc(n.width*s),r=Math.trunc(n.height*e);return o.data[4*(r*o.width+a)]===0},So=(s,e,o)=>{const n=[],a=[],r=[];for(let t=0;t<2;t++){n[t]={positions:[]},r[t]={sizes:[]};const p=new ao;p.size=5,p.color=new y(10092543),p.map=new B().load("/plugins/earthSample/image/menuA/circle.png"),p.depthWrite=!1,p.transparent=!0,p.opacity=.2,p.side=so,p.blending=C;const c=t/2;p.t_=c*Math.PI*2,p.speed_=.05,p.min_=.2*Math.random()+.5,p.delta_=.1*Math.random()+.1,p.opacity_coef_=1,a.push(p)}const i=new X;i.radius=100;for(let t=200,p=0;p{const e=document.createElement("img");e.src="/plugins/earthSample/image/menuA/earth.jpg",e.onload=function(){const o=document.createElement("canvas"),n=o.getContext("2d");o.width=e.width,o.height=e.height,n.drawImage(e,0,0,e.width,e.height);const a=n.getImageData(0,0,e.width,e.height);So(s,a,e)}},Lo=s=>{const e=function(m){const t={uTex:{type:"t",value:m.map||new ro},offsetRepeat:{value:new mo(0,0,1,1)},alphaProportion:{type:"1f",value:m.alphaProportion||.5},diffuse:{value:m.color||new y(16777215)},opacity:{value:m.opacity||1},gridOffset:{value:0}};return new lo({uniforms:t,vertexShader:" \nvarying float _alpha;\nvarying vec2 vUv;\nuniform vec4 offsetRepeat;\nuniform float alphaProportion;\nvoid main() {\ngl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\nvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\nvec4 worldPosition = modelMatrix * vec4( vec3( position ), 1.0 );\nvec3 cameraToVertex = normalize( cameraPosition - worldPosition.xyz);\n_alpha = 1.0 - max( 0.0, dot( normal, cameraToVertex ) );\n_alpha = max( 0.0, (_alpha - alphaProportion) / (1.0 - alphaProportion) );\n}",fragmentShader:"\nuniform sampler2D uTex;\nuniform vec3 diffuse;\nuniform float opacity;\nuniform float gridOffset;\nvarying float _alpha;\nvarying vec2 vUv;\nvoid main() {\nvec4 texColor = texture2D( uTex, vUv );\nfloat _a = _alpha * opacity;\nif( _a <= 0.0 ) discard;\n_a = _a * ( sin( vUv.y * 1.0 + gridOffset ) * .5 + .5 );\ngl_FragColor = vec4( texColor.rgb * diffuse, _a );\n}",transparent:!0,blending:C,depthTest:!1,side:x})},o=new eo(110.00000000000001,120,144),n=new B().load("/plugins/earthSample/image/menuA/clouds.png");n.wrapT=D,n.wrapS=D;const a=new e({map:n,alphaProportion:.35,color:new y(6723993),opacity:1,gridOffsetSpeed:.6}),r=new I(o,a);r.matrixAutoUpdate=!1;const i=new z;return i.name="cloudsEearth",i.add(r),s.add(i),i},Bo={class:"w-full h-full"},Io=d("TresPerspectiveCamera",{position:[0,0,365],fov:45,near:1,far:1e4},null,-1),zo={__name:"earth",setup(s){const e={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0,logarithmicDepthBuffer:!0},o=b();let n=null;const a=[],{seek:r}=Q();$(()=>{o.value&&o.value.context&&(o.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),o.value.context.renderer.value.autoClear=!1,o.value.context.renderer.value.autoClearColor=new y(1,0,0,0),n=o.value.context.scene.value,n.fog=new j(4095,100,1e3),Ro(n),Eo(n),a[1]=Lo(n))});const{onLoop:i}=E();return i(({delta:m})=>{if(a[0]===void 0){const t=r(n,"name","pointsEearth");t&&(a[0]=t)}a.length&&a[1]&&a[0]&&(a[1].rotation.z+=.002,a[0].rotation.y+=.002)}),(m,t)=>(g(),V("div",Bo,[w(h(L),U({ref_key:"TresCanvasRef",ref:o},e),{default:P(()=>[Io,w(h(G),{autoRotate:!0,autoRotateSpeed:2,enableZoom:!1,enablePan:!1})]),_:1},16)]))}},ko=s=>(q("data-v-7ab41dcf"),s=s(),H(),s),$o={class:"bg-img flex justify-center flex-items-center"},Uo={class:"w-120 h-120 pos-relative"},Vo=ko(()=>d("div",{class:"css_globe_halo1"},null,-1)),Do=k({__name:"menuA",setup(s){return(e,o)=>(g(),V("div",$o,[w(_o),d("div",Uo,[(g(),S(F,null,{default:P(()=>[w(Po)]),_:1})),Vo,(g(),S(F,null,{default:P(()=>[w(zo)]),_:1}))])]))}});const Go=Y(Do,[["__scopeId","data-v-7ab41dcf"]]);export{Go as default}; +import{a as E,l as L,y as K,x as G,g as Q}from"./trescientos-214666d1.js";import{p as ee,A as C,D as x,C as y,q as j,r as oe,s as B,t as D,o as I,O as z,u as X,V as M,v as O,w as R,x as W,b as T,y as ne,z as te,c as ie,G as ae,H as se,J as pe,T as re,m as me,l as le}from"./three.module-d47ac97c.js";import{Y as k,j as b,ae as $,o as g,s as S,B as P,aa as U,I as h,U as d,ak as ce,c as V,a as w,ai as q,aj as H,_ as Y,al as F}from"./vendor-19b019cc.js";const ue=d("TresPerspectiveCamera",{position:[0,50,300],fov:40,far:800,plane:1},null,-1),de=["position"],fe=d("TresPointsMaterial",{color:"#66ffff",size:1.1,transparency:!0,opacity:.8},null,-1),he=k({__name:"starts",setup(s){const o={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0},e=b();let n,a=null;$(()=>{e.value&&(e.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),e.value.context.renderer.value.autoClear=!1,e.value.context.renderer.value.setClearColor(0,0),a=e.value.context.scene.value,n=e.value.context.camera.value,a.fog=new ee(1776411,1e-4),n.position.z=800/2)});const r=window.innerWidth/2,i=window.innerHeight/2;let m=0,t=0;function p(l){m=l.clientX-r,t=l.clientY-i}document.addEventListener("mousemove",p,!1);const c=new Float32Array(45e3*3);for(let l=0;l<45e3;l++)c[l*3+0]=Math.random()*2e3-1e3,c[l*3+1]=Math.random()*2e3-1e3,c[l*3+2]=Math.random()*2e3-1e3;const{onLoop:_}=E();return _(()=>{n&&(n.position.x+=(m-n.position.x)*.005,n.position.y+=(-t-n.position.y)*.005,n.lookAt(a.position))}),(l,f)=>(g(),S(h(L),U({ref_key:"TresCanvasRef",ref:e},o,{"window-size":""}),{default:P(()=>[ue,d("TresPoints",null,[d("TresBufferGeometry",{args:[1e3,100,50],position:[h(c),3]},null,8,de),fe])]),_:1},16))}}),J=s=>(q("data-v-b13303a3"),s=s(),H(),s),_e={class:"position-absolute w-full h-full"},ve=J(()=>d("TresPerspectiveCamera",{position:[0,100,420],fov:50,aspect:1,near:1,far:1e4},null,-1)),we=["rotation-x"],ge=J(()=>d("TresPlaneGeometry",{args:[400,400]},null,-1)),xe=["map","alphaMap","blending","side"],ye=k({__name:"circle",async setup(s){let o,e;const n={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0,logarithmicDepthBuffer:!0,precision:"highp",premultipliedAlpha:!1},a=([o,e]=ce(()=>K({map:"./plugins/earthSample/image/menuA/quan_01.png"})),o=await o,e(),o),{onLoop:r}=E();r(({delta:t})=>{m.value&&(m.value.rotation.z-=.005)});const i=b(),m=b();return $(()=>{if(i.value&&i.value.context){i.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),i.value.context.renderer.value.autoClear=!0,i.value.context.renderer.value.autoClearColor=new y(1,0,0,0),i.value.context.renderer.value.setClearColor(0,0);const t=i.value.context.scene.value;i.value.context.camera.value,t.fog=new j(4095,100,1e3)}m.value}),(t,p)=>(g(),V("div",_e,[w(h(L),U({class:"TresCanvasNoPointerEvents",ref_key:"TresCanvasRef",ref:i},n),{default:P(()=>[ve,w(h(G),{autoRotate:!1}),d("TresMesh",{ref_key:"quanMeshRef",ref:m,position:[0,0,0],"rotation-x":2*Math.PI/360*100},[ge,d("TresMeshBasicMaterial",{color:"#ffffff",map:h(a).map,alphaMap:h(a).map,blending:h(C),side:h(x),depthTest:.2,opacity:1,depthWrite:!1,transparent:!0,alphaTest:0},null,8,xe)],8,we)]),_:1},16)]))}});const Me=Y(ye,[["__scopeId","data-v-b13303a3"]]),N=[{name:"中国",position:[116.2,39.55]},{name:"中非共和国",position:[18.35,4.23]},{name:"智利",position:[-70.4,-33.24]},{name:"乍得",position:[14.59,12.1]},{name:"赞比亚",position:[28.16,-15.28]},{name:"越南",position:[105.55,21.05]},{name:"约旦",position:[35.52,31.57]},{name:"英属维尔京群岛",position:[-64.37,18.27]},{name:"英国",position:[-.05,51.36]},{name:"印度尼西亚",position:[106.49,-6.09]},{name:"印度",position:[77.13,28.37]},{name:"意大利",position:[12.29,41.54]},{name:"以色列",position:[35.12,31.47]},{name:"伊朗",position:[51.3,35.44]},{name:"伊拉克",position:[44.3,33.2]},{name:"亚美尼亚",position:[44.31,40.1]},{name:"牙买加",position:[-76.5,18]},{name:"匈牙利",position:[19.05,47.29]},{name:"新西兰",position:[174.46,-41.19]},{name:"新喀里多尼亚",position:[166.3,-22.17]},{name:"希腊",position:[23.46,37.58]},{name:"西班牙",position:[-3.45,40.25]},{name:"乌兹别克斯坦",position:[69.1,41.2]},{name:"乌拉圭",position:[-56.11,-34.5]},{name:"乌克兰",position:[30.28,50.3]},{name:"乌干达",position:[32.3,.2]},{name:"文莱",position:[115,4.52]},{name:"委内瑞拉",position:[-66.55,10.3]},{name:"危地马拉",position:[-90.22,14.4]},{name:"瓦努阿图",position:[168.18,-17.45]},{name:"土库曼斯坦",position:[57.5,38]},{name:"土耳其",position:[32.54,39.57]},{name:"图瓦卢",position:[179.13,-8.31]},{name:"突尼斯",position:[10.11,36.5]},{name:"汤加",position:[-174,-21.1]},{name:"坦桑尼亚",position:[35.45,-6.08]},{name:"泰国",position:[100.35,13.45]},{name:"塔吉克斯坦",position:[68.48,38.33]},{name:"索马里",position:[45.25,2.02]},{name:"所罗门群岛",position:[159.57,-9.27]},{name:"苏里南",position:[-55.1,5.5]},{name:"苏丹",position:[32.35,15.31]},{name:"斯威士兰",position:[31.06,-26.18]},{name:"斯洛文尼亚",position:[14.33,46.04]},{name:"斯洛伐克",position:[17.07,48.1]},{name:"圣文森特和格林纳丁斯",position:[-61.1,13.1]},{name:"圣皮埃尔和密克隆",position:[-56.12,46.46]},{name:"圣马力诺",position:[12.3,43.55]},{name:"圣卢西亚",position:[-60.58,14.02]},{name:"圣基茨和尼维斯",position:[-62.43,17.17]},{name:"圣多美和普林西比",position:[6.39,.1]},{name:"沙特阿拉伯",position:[46.42,24.41]},{name:"塞浦路斯",position:[33.25,35.1]},{name:"塞内加尔",position:[-17.29,14.34]},{name:"塞拉利昂",position:[-13.17,8.3]},{name:"萨摩亚",position:[-171.5,-13.5]},{name:"萨尔瓦多",position:[-89.1,13.4]},{name:"瑞士",position:[7.28,46.57]},{name:"瑞典",position:[18.03,59.2]},{name:"葡萄牙",position:[-9.1,38.42]},{name:"帕劳",position:[134.28,7.2]},{name:"诺福克岛",position:[168.43,-45.2]},{name:"挪威",position:[10.45,59.55]},{name:"尼日利亚",position:[7.32,9.05]},{name:"尼日尔",position:[2.06,13.27]},{name:"尼加拉瓜",position:[-86.2,12.06]},{name:"尼泊尔",position:[85.2,27.45]},{name:"南斯拉夫",position:[20.37,44.5]},{name:"纳米比亚",position:[17.04,-22.35]},{name:"墨西哥",position:[-99.1,19.2]},{name:"莫桑比克",position:[32.32,-25.58]},{name:"摩尔多瓦共和国",position:[28.5,47.02]},{name:"缅甸",position:[96.2,16.45]},{name:"秘鲁",position:[-77,-12]},{name:"孟加拉国",position:[90.26,23.43]},{name:"美属维尔京群岛",position:[-64.56,18.21]},{name:"美属萨摩亚",position:[-170.43,-14.16]},{name:"美国",position:[-77.02,39.91]},{name:"毛里塔尼亚",position:[57.3,-20.1]},{name:"马约特岛",position:[45.14,-12.48]},{name:"马提尼克岛",position:[-61.02,14.36]},{name:"马其顿",position:[21.26,42.01]},{name:"马里",position:[-7.55,12.34]},{name:"马来西亚",position:[101.41,3.09]},{name:"马拉维",position:[33.48,-14]},{name:"马耳他",position:[14.31,35.54]},{name:"马尔代夫",position:[73.28,4]},{name:"马达加斯加",position:[47.31,-18.55]},{name:"罗马尼亚",position:[26.1,44.27]},{name:"卢旺达",position:[30.04,-1.59]},{name:"卢森堡",position:[6.09,49.37]},{name:"列支敦士登",position:[9.31,47.08]},{name:"利比里亚",position:[-10.47,6.18]},{name:"立陶宛",position:[25.19,54.38]},{name:"黎巴嫩",position:[35.31,33.53]},{name:"老挝",position:[102.36,17.58]},{name:"莱索托",position:[27.3,-29.18]},{name:"拉脱维亚",position:[24.08,56.53]},{name:"肯尼亚",position:[36.48,-1.17]},{name:"克罗地亚",position:[15.58,45.5]},{name:"科威特",position:[48,29.3]},{name:"科特迪瓦",position:[-5.17,6.49]},{name:"科摩罗",position:[43.16,-11.4]},{name:"开曼群岛",position:[-81.24,19.2]},{name:"卡塔尔",position:[51.35,25.15]},{name:"喀麦隆",position:[11.35,3.5]},{name:"津巴布韦",position:[31.02,-17.43]},{name:"捷克共和国",position:[14.22,50.05]},{name:"柬埔寨",position:[104.55,11.33]},{name:"加蓬",position:[9.26,.25]},{name:"加纳",position:[-.06,5.35]},{name:"加拿大",position:[-75.42,45.27]},{name:"几内亚比绍",position:[-15.45,11.45]},{name:"几内亚",position:[-13.49,9.29]},{name:"吉尔吉斯斯坦",position:[74.46,42.54]},{name:"吉布提",position:[42.2,11.08]},{name:"基里巴斯",position:[173,1.3]},{name:"洪都拉斯",position:[-87.14,14.05]},{name:"赫德岛和麦当劳群岛",position:[74,-53]},{name:"荷属安的列斯",position:[-69,12.05]},{name:"荷兰",position:[4.54,52.23]},{name:"韩国",position:[126.58,37.31]},{name:"海地",position:[-72.2,18.4]},{name:"哈萨克斯坦",position:[71.3,51.1]},{name:"圭亚那",position:[-58.12,6.5]},{name:"瓜德罗普岛",position:[-61.44,16]},{name:"古巴",position:[-82.22,23.08]},{name:"根西岛",position:[-2.33,49.26]},{name:"格鲁吉亚",position:[44.5,41.43]},{name:"格陵兰",position:[-51.35,64.1]},{name:"哥斯达黎加",position:[-84.02,9.55]},{name:"哥伦比亚",position:[-74,4.34]},{name:"刚果",position:[15.12,-4.09]},{name:"刚果(扎伊尔)",position:[15.15,-4.2]},{name:"冈比亚",position:[-16.4,13.28]},{name:"福克兰群岛(马尔维纳斯群岛)",position:[-59.51,-51.4]},{name:"佛得角",position:[-23.34,15.02]},{name:"芬兰",position:[25.03,60.15]},{name:"斐济",position:[178.3,-18.06]},{name:"菲律宾",position:[121.03,14.4]},{name:"法属圭亚那",position:[-52.18,5.05]},{name:"法属波利尼西亚",position:[-149.34,-17.32]},{name:"法罗群岛",position:[-6.56,62.05]},{name:"法国",position:[2.2,48.5]},{name:"厄立特里亚",position:[38.55,15.19]},{name:"厄瓜多尔",position:[-78.35,-.15]},{name:"俄罗斯",position:[37.35,55.45]},{name:"多米尼加共和国",position:[-69.59,18.3]},{name:"多米尼加",position:[-61.24,15.2]},{name:"多哥",position:[1.2,6.09]},{name:"东帝汶",position:[125.34,-8.29]},{name:"德国",position:[13.25,52.3]},{name:"丹麦",position:[12.34,55.41]},{name:"赤道几内亚",position:[8.5,3.45]},{name:"朝鲜",position:[125.3,39.09]},{name:"布隆迪",position:[29.18,-3.16]},{name:"布基纳法索",position:[-1.3,12.15]},{name:"不丹",position:[89.45,27.31]},{name:"博茨瓦纳",position:[25.57,-24.45]},{name:"伯利兹",position:[-88.3,17.18]},{name:"玻利维亚",position:[-68.1,-16.2]},{name:"波斯尼亚和黑塞哥维那",position:[18.26,43.52]},{name:"波兰",position:[21,52.13]},{name:"波多黎各",position:[-66.07,18.28]},{name:"冰岛",position:[-21.57,64.1]},{name:"比利时",position:[4.21,50.51]},{name:"比勒陀利亚",position:[28.12,-25.44]},{name:"贝宁",position:[2.42,6.23]},{name:"北马里亚纳群岛",position:[145.45,15.12]},{name:"保加利亚",position:[23.2,42.45]},{name:"白俄罗斯",position:[27.3,53.52]},{name:"巴西",position:[-47.55,-15.47]},{name:"巴拿马",position:[-79.25,9]},{name:"巴林",position:[50.3,26.1]},{name:"巴拉圭",position:[-57.3,-25.1]},{name:"巴基斯坦",position:[73.1,33.4]},{name:"巴哈马",position:[-77.2,25.05]},{name:"巴布亚新几内亚",position:[147.08,-9.24]},{name:"巴巴多斯",position:[-59.3,13.05]},{name:"澳大利亚",position:[149.08,-35.15]},{name:"奥地利",position:[16.22,48.12]},{name:"安提瓜和巴布达",position:[-61.48,17.2]},{name:"安哥拉",position:[13.15,-8.5]},{name:"安道尔",position:[1.32,42.31]},{name:"爱沙尼亚",position:[24.48,59.22]},{name:"爱尔兰",position:[-6.15,53.21]},{name:"埃塞俄比亚",position:[38.42,9.02]},{name:"埃及",position:[31.14,30.01]},{name:"阿塞拜疆",position:[49.56,40.29]},{name:"阿曼",position:[58.36,23.37]},{name:"阿鲁巴",position:[-70.02,12.32]},{name:"阿联酋",position:[54.22,24.28]},{name:"阿拉伯叙利亚共和国",position:[36.18,33.3]},{name:"阿拉伯利比亚民众国",position:[13.07,32.49]},{name:"阿根廷",position:[-60,-36.3]},{name:"阿富汗",position:[69.11,34.28]},{name:"阿尔及利亚",position:[3.08,36.42]},{name:"阿尔巴尼亚",position:[19.49,41.18]}],Pe=s=>{const o=new X;o.radius=100;const e=s[0],n=s[1],a=(e+90)*(Math.PI/180),r=(90-n)*(Math.PI/180);o.phi=r,o.theta=a;const i=new M;return i.setFromSpherical(o),i},Ce=(s,o)=>{const e=new z,a=["#66ffff","#66aaaa"][o],r=new O(2,6),i=new R({color:a,side:x,transparent:!0,opacity:1}),t=new O(3,6).getAttribute("position"),p=new Float32Array(t.count*3-3);for(let v=3;v{const o=new B().load("./plugins/earthSample/image/menuA/lightray.jpg"),e=new R({map:o,alphaMap:o,transparent:!0,depthTest:!0,depthWrite:!0,alphaTest:.3,opacity:.9,side:x,color:16777215,blending:C}),n=50*Math.random(),a=new te(6,n),r=new ie,i=new I(a,e);r.makeRotationX(Math.PI/2),r.setPosition(new M(0,0,n/-2)),a.applyMatrix4(r);const m=i.clone();return m.rotation.z=Math.PI/2,i.add(m),i.position.copy(s),i.lookAt(0,0,0),i},Ae=s=>{for(let o=0;o{const a=Math.trunc(n.width*s),r=Math.trunc(n.height*o);return e.data[4*(r*e.width+a)]===0},Te=(s,o,e)=>{const n=[],a=[],r=[];for(let t=0;t<2;t++){n[t]={positions:[]},r[t]={sizes:[]};const p=new ae;p.size=5,p.color=new y(10092543),p.map=new B().load("/icegl-three-vue-tresplugins/earthSample/image/menuA/circle.png"),p.depthWrite=!1,p.transparent=!0,p.opacity=.2,p.side=se,p.blending=C;const c=t/2;p.t_=c*Math.PI*2,p.speed_=.05,p.min_=.2*Math.random()+.5,p.delta_=.1*Math.random()+.1,p.opacity_coef_=1,a.push(p)}const i=new X;i.radius=100;for(let t=200,p=0;p{const o=document.createElement("img");o.src="/icegl-three-vue-tresplugins/earthSample/image/menuA/earth.jpg",o.onload=function(){const e=document.createElement("canvas"),n=e.getContext("2d");e.width=o.width,e.height=o.height,n.drawImage(o,0,0,o.width,o.height);const a=n.getImageData(0,0,o.width,o.height);Te(s,a,o)}},Ee=s=>{const o=function(m){const t={uTex:{type:"t",value:m.map||new re},offsetRepeat:{value:new me(0,0,1,1)},alphaProportion:{type:"1f",value:m.alphaProportion||.5},diffuse:{value:m.color||new y(16777215)},opacity:{value:m.opacity||1},gridOffset:{value:0}};return new le({uniforms:t,vertexShader:" \nvarying float _alpha;\nvarying vec2 vUv;\nuniform vec4 offsetRepeat;\nuniform float alphaProportion;\nvoid main() {\ngl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\nvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\nvec4 worldPosition = modelMatrix * vec4( vec3( position ), 1.0 );\nvec3 cameraToVertex = normalize( cameraPosition - worldPosition.xyz);\n_alpha = 1.0 - max( 0.0, dot( normal, cameraToVertex ) );\n_alpha = max( 0.0, (_alpha - alphaProportion) / (1.0 - alphaProportion) );\n}",fragmentShader:"\nuniform sampler2D uTex;\nuniform vec3 diffuse;\nuniform float opacity;\nuniform float gridOffset;\nvarying float _alpha;\nvarying vec2 vUv;\nvoid main() {\nvec4 texColor = texture2D( uTex, vUv );\nfloat _a = _alpha * opacity;\nif( _a <= 0.0 ) discard;\n_a = _a * ( sin( vUv.y * 1.0 + gridOffset ) * .5 + .5 );\ngl_FragColor = vec4( texColor.rgb * diffuse, _a );\n}",transparent:!0,blending:C,depthTest:!1,side:x})},e=new oe(110.00000000000001,120,144),n=new B().load("/icegl-three-vue-tresplugins/earthSample/image/menuA/clouds.png");n.wrapT=D,n.wrapS=D;const a=new o({map:n,alphaProportion:.35,color:new y(6723993),opacity:1,gridOffsetSpeed:.6}),r=new I(e,a);r.matrixAutoUpdate=!1;const i=new z;return i.name="cloudsEearth",i.add(r),s.add(i),i},Le={class:"w-full h-full"},Be=d("TresPerspectiveCamera",{position:[0,0,365],fov:45,near:1,far:1e4},null,-1),Ie={__name:"earth",setup(s){const o={clearColor:"#000000",alpha:!0,useLegacyLights:!0,antialias:!0,logarithmicDepthBuffer:!0},e=b();let n=null;const a=[],{seek:r}=Q();$(()=>{e.value&&e.value.context&&(e.value.context.renderer.value.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),e.value.context.renderer.value.autoClear=!1,e.value.context.renderer.value.autoClearColor=new y(1,0,0,0),n=e.value.context.scene.value,n.fog=new j(4095,100,1e3),Ae(n),Se(n),a[1]=Ee(n))});const{onLoop:i}=E();return i(({delta:m})=>{if(a[0]===void 0){const t=r(n,"name","pointsEearth");t&&(a[0]=t)}a.length&&a[1]&&a[0]&&(a[1].rotation.z+=.002,a[0].rotation.y+=.002)}),(m,t)=>(g(),V("div",Le,[w(h(L),U({ref_key:"TresCanvasRef",ref:e},o),{default:P(()=>[Be,w(h(G),{autoRotate:!0,autoRotateSpeed:2,enableZoom:!1,enablePan:!1})]),_:1},16)]))}},ze=s=>(q("data-v-7ab41dcf"),s=s(),H(),s),ke={class:"bg-img flex justify-center flex-items-center"},$e={class:"w-120 h-120 pos-relative"},Ue=ze(()=>d("div",{class:"css_globe_halo1"},null,-1)),Ve=k({__name:"menuA",setup(s){return(o,e)=>(g(),V("div",ke,[w(he),d("div",$e,[(g(),S(F,null,{default:P(()=>[w(Me)]),_:1})),Ue,(g(),S(F,null,{default:P(()=>[w(Ie)]),_:1}))])]))}});const Ne=Y(Ve,[["__scopeId","data-v-7ab41dcf"]]);export{Ne as default}; diff --git a/tsconfig.json b/tsconfig.json index 810f84dc..f57797c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "dom" ], "sourceMap": true, - "baseUrl": "/icegl-three-vue-tres", + "baseUrl": ".", "jsx": "preserve", "allowSyntheticDefaultImports": true, "moduleResolution": "node",