上传预览版
2
.gitignore
vendored
@ -10,4 +10,4 @@
|
||||
/src/.fes-production
|
||||
/src/.fes-test
|
||||
.env.local
|
||||
dist
|
||||
# dist
|
||||
|
1
dist/index.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang="en"><head><script type="module" crossorigin src="/static/polyfills-5f5adbe1.js"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Fes.js</title><link rel="shortcut icon" type="image/x-icon" href="./logo.png"><script type="module" crossorigin src="/static/index-436621b5.js"></script><link rel="modulepreload" crossorigin href="/static/vendor-4c6c5ef6.js"><link rel="stylesheet" href="/static/vendor-28ba1523.css"><link rel="stylesheet" href="/static/index-381023be.css"></head><body><div id="app"></div></body></html>
|
BIN
dist/logo.png
vendored
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
dist/plugins/basic/base/preview/penetrateEvent.png
vendored
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
dist/plugins/basic/base/preview/shaderParticles.png
vendored
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
dist/plugins/basic/base/preview/theBasic.png
vendored
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
dist/plugins/basic/base/preview/theConditional.png
vendored
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
dist/plugins/basic/base/preview/theEvents.png
vendored
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
dist/plugins/basic/base/preview/theGroups.png
vendored
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
dist/plugins/basic/controls/preview/cameraControls.png
vendored
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
dist/plugins/basic/controls/preview/orbitControls.png
vendored
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
dist/plugins/basic/controls/preview/scrollControls.png
vendored
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
dist/plugins/basic/controls/preview/transformControls.png
vendored
Normal file
After Width: | Height: | Size: 87 KiB |
1
dist/plugins/basic/htmls/model/model.gltf
vendored
Normal file
BIN
dist/plugins/basic/htmls/preview/htmls.png
vendored
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
dist/plugins/basic/htmls/preview/website.png
vendored
Normal file
After Width: | Height: | Size: 189 KiB |
BIN
dist/plugins/basic/materials/preview/glassMaterial.png
vendored
Normal file
After Width: | Height: | Size: 121 KiB |
BIN
dist/plugins/basic/materials/preview/wobbleMaterial.png
vendored
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
dist/plugins/digitalCity/image/cilcle.png
vendored
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
dist/plugins/digitalCity/image/defaultCloud.png
vendored
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
dist/plugins/digitalCity/image/rain.png
vendored
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
dist/plugins/digitalCity/image/snow.png
vendored
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
dist/plugins/digitalCity/model/shanghai.FBX
vendored
Normal file
BIN
dist/plugins/digitalCity/preview/buildings.mp4
vendored
Normal file
BIN
dist/plugins/digitalCity/preview/radars.png
vendored
Normal file
After Width: | Height: | Size: 230 KiB |
BIN
dist/plugins/digitalCity/preview/weather.png
vendored
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
dist/plugins/earthSample/image/earthA/earth.jpg
vendored
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
dist/plugins/earthSample/image/earthA/glow.png
vendored
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
dist/plugins/earthSample/image/earthA/innerGlow.png
vendored
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
dist/plugins/earthSample/image/earthA/label.png
vendored
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
dist/plugins/earthSample/image/earthA/light_column.png
vendored
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
dist/plugins/earthSample/image/earthA/map.jpg
vendored
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
dist/plugins/earthSample/image/earthA/moon.jpg
vendored
Normal file
After Width: | Height: | Size: 458 KiB |
BIN
dist/plugins/earthSample/image/earthA/moon_ring.png
vendored
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
dist/plugins/earthSample/image/menuA/bg-img.png
vendored
Normal file
After Width: | Height: | Size: 464 KiB |
BIN
dist/plugins/earthSample/image/menuA/circle.png
vendored
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
dist/plugins/earthSample/image/menuA/clouds.png
vendored
Normal file
After Width: | Height: | Size: 212 KiB |
BIN
dist/plugins/earthSample/image/menuA/css_globe_halo1.png
vendored
Normal file
After Width: | Height: | Size: 303 KiB |
BIN
dist/plugins/earthSample/image/menuA/earth.jpg
vendored
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
dist/plugins/earthSample/image/menuA/lightray.jpg
vendored
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
dist/plugins/earthSample/image/menuA/quan_01.png
vendored
Normal file
After Width: | Height: | Size: 54 KiB |
321
dist/plugins/earthSample/model/lowpolyPlanet/airplane.gltf
vendored
Normal file
136
dist/plugins/earthSample/model/lowpolyPlanet/cloud.gltf
vendored
Normal file
13277
dist/plugins/earthSample/model/lowpolyPlanet/planet.gltf
vendored
Normal file
BIN
dist/plugins/earthSample/preview/earthA.png
vendored
Normal file
After Width: | Height: | Size: 135 KiB |
BIN
dist/plugins/earthSample/preview/lowpolyPlanet.png
vendored
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
dist/plugins/earthSample/preview/menuA.png
vendored
Normal file
After Width: | Height: | Size: 326 KiB |
BIN
dist/plugins/heatMap/preview/heatmapExample.png
vendored
Normal file
After Width: | Height: | Size: 314 KiB |
BIN
dist/plugins/heatMap/preview/simpleExample.png
vendored
Normal file
After Width: | Height: | Size: 157 KiB |
BIN
dist/plugins/vantaJS/preview/loadingA.png
vendored
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
dist/static/403-c37bd830.png
vendored
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
dist/static/404-ec600539.png
vendored
Normal file
After Width: | Height: | Size: 22 KiB |
1
dist/static/_commonjsHelpers-725317a4.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{o as c,l as g};
|
1
dist/static/buildings-f1efd394.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{P as m}from"./trescientos-01522e33.js";import{_ as b,l as _,a as y,b as w}from"./pagesShow.vue_vue_type_style_index_0_lang-a8487244.js";import{Y as C,j as h,ai as f,ad as B,a7 as u,o as d,s,B as x,I as p,V as g}from"./vendor-4c6c5ef6.js";import"./three.module-eabffd14.js";const P=C({__name:"buildings",async setup(k){let n,r;const e=h(!1),c=([n,r]=f(()=>_()),n=await n,r(),n);e.value=!0,B(()=>{const l=new m({title:"建筑效果",expanded:!0}),o=l.addFolder({title:"线条"});o.addBinding(i,"show",{label:"显示"}),o.addBinding(i,"color",{label:"颜色"}),o.addBinding(i,"width",{label:"宽度",min:0,max:10,step:1}),o.addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1});const t=l.addFolder({title:"建筑物"});t.addBinding(a,"show",{label:"显示"}),t.addBinding(a,"bulidingsColor",{label:"楼宇颜色"}),t.addBinding(a,"gradient",{label:"渐变"}),t.addBinding(a,"opacity",{label:"透明度",min:0,max:1,step:.1}),t.addBinding(a,"landColor",{label:"地面颜色"})});const i=u({width:1,color:"#000",opacity:1,show:!0}),a=u({bulidingsColor:"#d88de2",landColor:"#112233",opacity:.9,show:!0,gradient:!0});return(l,o)=>(d(),s(b,{showBuildings:!1},{ability:x(()=>[a.show&&e.value?(d(),s(y,{key:0,model:p(c),bulidingsColor:a.bulidingsColor,landColor:a.landColor,gradient:a.gradient,opacity:a.opacity},null,8,["model","bulidingsColor","landColor","gradient","opacity"])):g("",!0),i.show&&e.value?(d(),s(w,{key:1,builds:p(c).city,width:i.width,color:i.color,opacity:i.opacity},null,8,["builds","width","color","opacity"])):g("",!0)]),_:1}))}});export{P as default};
|
1
dist/static/cameraControls-99ea3945.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{F as g,l as x,d as D}from"./trescientos-01522e33.js";import{a as i,B as k,S as f,N as F}from"./three.module-eabffd14.js";import{Y as M,a7 as C,ab as u,o as T,s as b,B as w,a8 as p,I as m,a as y,U as o}from"./vendor-4c6c5ef6.js";const G=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),S=o("TresGridHelper",{position:[0,-1,0]},null,-1),A=o("TresBoxGeometry",{args:[2,2,2]},null,-1),E=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),N=[A,E],P=o("TresAmbientLight",{intensity:1},null,-1),L=M({__name:"cameraControls",setup(U){const h={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:f,toneMapping:F},l=C({distance:5,minDistance:0,maxDistance:100}),e=u(),r=u(),{pane:n}=g(),d=n.addFolder({title:"距离参数"});d.addBinding(l,"distance",{label:"设置距离",step:.01,min:0,max:100}),d.addBinding(l,"minDistance",{label:"最小距离",step:.01,min:0,max:10}),d.addBinding(l,"maxDistance",{label:"最大距离",step:.01,min:0,max:100});const c=n.addFolder({title:"远近"});c.addButton({title:"(+1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(1,!0)}),c.addButton({title:"(-1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(-1,!0)});const s=n.addFolder({title:"旋转"});s.addButton({title:"Rotate theta 45°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(45*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta -90°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(-90*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta 360°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(360*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate phi 20°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(0,20*i.DEG2RAD,!0)}),n.addFolder({title:"移动"}).addButton({title:"对焦到 box of the mesh"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.fitToBox(r.value,!0)});function _(){console.log("change")}function B(){console.log("start")}function v(){console.log("end")}return(t,a)=>(T(),b(m(x),p(h,{"window-size":""}),{default:w(()=>[G,y(m(D),p(l,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:_,onStart:B,onEnd:v}),null,16),S,o("TresMesh",{ref_key:"boxMeshRef",ref:r},N,512),P]),_:1},16))}});export{L as default};
|
17
dist/static/earthA-454e5c88.js
vendored
Normal file
1
dist/static/firstPersonControls-b5a05d7c.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{l,U as p,c,a as d}from"./trescientos-01522e33.js";import{B as m,N as _}from"./three.module-eabffd14.js";import{Y as f,o as u,s as h,B as g,a8 as B,I as e,a as s,U as o}from"./vendor-4c6c5ef6.js";const w=o("TresPerspectiveCamera",{position:[0,3,10]},null,-1),C=o("TresGridHelper",{args:[100,100]},null,-1),T=o("TresAmbientLight",{intensity:1},null,-1),x=f({__name:"firstPersonControls",setup(b){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:m,toneMapping:_},r=a=>console.log(a);return(a,t)=>(u(),h(e(l),B(n,{"window-size":""}),{default:g(()=>[s(e(p)),w,s(e(c),{"make-default":"",onIsLock:t[0]||(t[0]=i=>r(i))}),s(e(d),{"head-bobbing":""}),C,T]),_:1},16))}});export{x as default};
|
1
dist/static/glassMaterial-8bb2ee28.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{l as p,f as l,b as d,m as u,r as f}from"./trescientos-01522e33.js";import{B as h,S as m,N as M,D as g}from"./three.module-eabffd14.js";import{Y as T,j as w,ab as i,w as x,o as B,s as y,B as n,a8 as C,I as s,U as e,a}from"./vendor-4c6c5ef6.js";const b=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),R={"position-x":3},S=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),k={position:[0,0,-1]},v=e("TresPlaneGeometry",{args:[3,3]},null,-1),G=["side"],D=e("TresGridHelper",{args:[10,10]},null,-1),N=e("TresAmbientLight",{intensity:1},null,-1),P=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),H=T({__name:"glassMaterial",setup(L){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,outputColorSpace:m,toneMapping:M},_=w(),t=i(),o=i();return x(t,r=>{o.value.value.material.dispose(),o.value.value.material=r.MeshGlassMaterialClass}),(r,V)=>(B(),y(s(p),C(c,{ref_key:"context",ref:_,"window-size":""}),{default:n(()=>[b,e("TresMesh",R,[S,a(s(l),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(d),{scale:.5},{default:n(()=>[a(s(l))]),_:1}),a(s(u),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",k,[v,e("TresMeshBasicMaterial",{side:s(g),color:16716049},null,8,G)]),D,N,P,a(s(f))]),_:1},16))}});export{H as default};
|
1
dist/static/heatmapExample-3f648675.js
vendored
Normal file
1
dist/static/htmls-0b6a5e35.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{l as h,r as u,z as c}from"./trescientos-01522e33.js";import{B as f,S as m,N as T}from"./three.module-eabffd14.js";import{Y as M,j as p,a7 as w,o as x,s as B,B as a,a8 as r,I as t,a as l,U as e,ag as S,ah as g,_ as y}from"./vendor-4c6c5ef6.js";const s=o=>(S("data-v-f4d85785"),o=o(),g(),o),v=s(()=>e("TresPerspectiveCamera",{position:[3,0,8]},null,-1)),C={position:[1,1,1]},I=s(()=>e("TresBoxGeometry",null,null,-1)),N=s(()=>e("TresMeshNormalMaterial",null,null,-1)),R=s(()=>e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Box 📦 ",-1)),k=s(()=>e("TresSphereGeometry",null,null,-1)),G=s(()=>e("TresMeshNormalMaterial",null,null,-1)),b=s(()=>e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Sphere ⭕️ ",-1)),z=s(()=>e("TresTorusGeometry",null,null,-1)),P=s(()=>e("TresMeshNormalMaterial",null,null,-1)),V=[z,P],j=s(()=>e("TresAmbientLight",{intensity:1},null,-1)),A=M({__name:"htmls",setup(o){const i={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:m,toneMapping:T},n=p(null),d=p(null),_=w({wrapperClass:"wrapper",as:"div",center:!0});return(D,L)=>(x(),B(t(h),r(i,{"window-size":""}),{default:a(()=>[v,l(t(u)),e("TresMesh",C,[I,N,l(t(c),r(_,{transform:"",occlude:[n.value]}),{default:a(()=>[R]),_:1},16,["occlude"])]),e("TresMesh",{ref_key:"sphereRef",ref:n,position:[4,1,1]},[k,G,l(t(c),r(_,{transform:""}),{default:a(()=>[b]),_:1},16)],512),e("TresMesh",{ref_key:"torusRef",ref:d,position:[7,1,1]},V,512),j]),_:1},16))}});const E=y(A,[["__scopeId","data-v-f4d85785"]]);export{E as default};
|
1
dist/static/htmls-c0c7ec5a.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.web[data-v-f4d85785]{width:600px;height:400px;border-radius:10px}
|
1
dist/static/index-381023be.css
vendored
Normal file
1
dist/static/index-436621b5.js
vendored
Normal file
1
dist/static/loading.vue_vue_type_script_setup_true_lang-2affd703.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{Y as r,ai as l,w as d,o as _,s as p,B as u,al as y,G as f,H as h,I as t,U as n,E as m,t as w,a as x,am as g}from"./vendor-4c6c5ef6.js";import{i as v}from"./trescientos-01522e33.js";const b={style:{"background-color":"black"},class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-20 flex justify-center items-center text-black font-mono"},k={class:"w-200px text-white"},V=r({__name:"loading",async setup(B){let a,e;const{hasFinishLoading:c,progress:s}=([a,e]=l(()=>v()),a=await a,e(),a);return d(()=>s.value,async(o,i)=>{console.log(o,i)}),(o,i)=>(_(),p(y,{name:"fade-overlay","enter-active-class":"opacity-1 transition-opacity duration-100","leave-active-class":"opacity-0 transition-opacity duration-200"},{default:u(()=>[f(n("div",b,[n("div",k,[m(" 载入中... "+w(t(s))+" % ",1),x(t(g),{class:"text-yellow"})])],512),[[h,!t(c)]])]),_:1}))}});export{V as _};
|
1
dist/static/loadingA-061f7217.js
vendored
Normal file
1
dist/static/loadingA-ef980813.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.bgc{background-color:#23153c}
|
BIN
dist/static/logo-fad90dd5.png
vendored
Normal file
After Width: | Height: | Size: 50 KiB |
1
dist/static/lowpolyPlanet-b4b56336.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{t as x,n as M,l as B,r as C,O as j}from"./trescientos-01522e33.js";import{S as k,P as $}from"./three.module-eabffd14.js";import{_ as W}from"./loading.vue_vue_type_script_setup_true_lang-2affd703.js";import{Y as y,ai as b,w as z,o as h,c as f,I as p,ab as v,U as w,a as u,C as S,D as A,B as P,a8 as F,s as I,aj as T}from"./vendor-4c6c5ef6.js";const N=["object"],R=.2,D=y({__name:"airplane",props:{planet:{}},async setup(_){let e,i;const n=_,{scene:a}=([e,i]=b(()=>x("./plugins/earthSample/model/lowpolyPlanet/airplane.gltf")),e=await e,i(),e),t=a;t.rotation.set(0,Math.PI,0),a.traverse(s=>{s.isMesh&&(s.castShadow=!0)}),t.updateMatrixWorld();const{onLoop:c}=M();z(()=>n.planet,s=>{var d;if(!s)return;s.geometry.computeBoundingSphere();const r=Math.abs(((d=s.geometry.boundingSphere)==null?void 0:d.radius)|1);t.position.set(r,0,0),t.lookAt(s.position)});let o=0;return c(({delta:s})=>{if(!t||!n.planet)return;const r=Math.abs(n.planet.geometry.boundingSphere.radius)+.5;o+=s*R;const d=r*Math.cos(o),l=r*Math.sin(o);t.position.x=d,t.position.z=l,t.rotation.z=-Math.PI/2,t.rotation.y=-o,t.updateMatrixWorld()}),(s,r)=>(h(),f("primitive",{object:p(t)},null,8,N))}}),E=["object"],O=y({__name:"cloud",props:{planet:{}},async setup(_){let e,i;const n=_,{scene:a}=([e,i]=b(()=>x("./plugins/earthSample/model/lowpolyPlanet/cloud.gltf")),e=await e,i(),e);v();const t=a.children[0];t.castShadow=!0;function c(l,m){const g=Math.random()*(m-l)+l;return Math.random()<.5?-g:g}t.position.set(c(-8,8),c(.5,1),c(-8,8));const o=c(.5,1);t.scale.set(o,o,o),t.updateMatrixWorld(),z(()=>n.planet,l=>{l&&(t.lookAt(l.position),t.updateMatrixWorld())});const{onLoop:s}=M();let r=c(-1,1)*Math.PI;const d=Math.random()/10;return s(({delta:l})=>{if(!t)return;const m=Math.abs(n.planet.geometry.boundingSphere.radius-.5);r+=l*d;const g=m*Math.cos(r),L=m*Math.sin(r);t.position.x=g,t.position.z=L,t.rotation.y=-r,t.lookAt(n.planet.position),t.updateMatrixWorld()}),(l,m)=>(h(),f("primitive",{object:p(a),"cast-shadow":""},null,8,E))}}),V=["object"],G=y({__name:"planet",async setup(_){let e,i;const{nodes:n}=([e,i]=b(()=>x("./plugins/earthSample/model/lowpolyPlanet/planet.gltf")),e=await e,i(),e),a=n.Planet,t=n.Icosphere;a.traverse(o=>{o.isMesh&&(o.receiveShadow=!0)});const{onLoop:c}=M();return c(({delta:o})=>{a&&(a.rotation.y+=o*.04,a.rotation.z+=o*.02,a.rotation.x+=o*.05,a.updateMatrixWorld())}),(o,s)=>(h(),f(S,null,[w("primitive",{object:p(a)},null,8,V),u(D,{planet:p(t)},null,8,["planet"]),(h(),f(S,null,A([1,2,3,4,5,6,7,8,9],r=>u(O,{key:r,planet:p(t)},null,8,["planet"])),64))],64))}}),U=w("TresPerspectiveCamera",{position:[0,1,5],fov:75,near:.1,far:1e3},null,-1),Y=w("TresAmbientLight",{color:"#484068",intensity:1},null,-1),q=w("TresPointLight",{color:"#1BFFEF",position:[0,0,-8],intensity:80,"cast-shadow":""},null,-1),H=w("TresDirectionalLight",{position:[0,2,4],intensity:3,"cast-shadow":"","shadow-mapSize-width":2048,"shadow-mapSize-height":2048},null,-1),Z=y({__name:"lowpolyPlanet",setup(_){const e={clearColor:"#11101B",shadows:!0,alpha:!1,outputColorSpace:k,shadowMapType:$,useLegacyLights:!0},i=v(0);return M().onLoop(({delta:n})=>{i.value+=.02*n}),(n,a)=>(h(),f(S,null,[u(W),u(p(B),F(e,{"window-size":""}),{default:P(()=>[U,u(p(C)),Y,(h(),I(T,null,{default:P(()=>[u(G)]),_:1})),u(p(j),{rotation:[0,i.value,0],radius:50,depth:50,count:5e3,size:.3,"size-attenuation":!0},null,8,["rotation"]),q,H]),_:1},16)],64))}});export{Z as default};
|
1
dist/static/mapControls-5bca7009.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{l as r,h as n,b as l}from"./trescientos-01522e33.js";import{S as i,N as p}from"./three.module-eabffd14.js";import{Y as c,o as _,s as d,B as s,a8 as m,I as o,a,U as e}from"./vendor-4c6c5ef6.js";const u=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),h=e("TresMeshNormalMaterial",null,null,-1),f=e("TresGridHelper",{args:[10,10]},null,-1),C=e("TresAmbientLight",{intensity:1},null,-1),b=c({__name:"mapControls",setup(g){const t={clearColor:"#82DBC5",alpha:!1,outputColorSpace:i,toneMapping:p};return(B,N)=>(_(),d(o(r),m(t,{"window-size":""}),{default:s(()=>[u,a(o(n)),a(o(l),{scale:.5},{default:s(()=>[h]),_:1}),f,C]),_:1},16))}});export{b as default};
|
1
dist/static/menuA-87fc1849.js
vendored
Normal file
1
dist/static/menuA-ddaff78a.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.TresCanvasNoPointerEvents[data-v-b13303a3]{pointer-events:none!important}.bg-img[data-v-7ab41dcf]{height:100%;position:absolute;background:url(../plugins/earthSample/image/menuA/bg-img.png);background-size:cover;top:0;width:100%}.css_globe_halo1[data-v-7ab41dcf]{position:absolute;background:url(../plugins/earthSample/image/menuA/css_globe_halo1.png);background-size:cover;filter:hue-rotate(1deg);width:100%;height:100%}
|
1
dist/static/orbitControls-88079feb.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{F as b,l as h,r as x}from"./trescientos-01522e33.js";import{B,S as _,N as P}from"./three.module-eabffd14.js";import{Y as f,a7 as A,r as F,o as M,c as S,a as o,B as C,a8 as m,I as s,C as I,U as i}from"./vendor-4c6c5ef6.js";const z=i("TresPerspectiveCamera",{position:[3,3,3]},null,-1),D=i("TresGridHelper",null,null,-1),T=i("TresAmbientLight",{intensity:1},null,-1),k=f({__name:"orbitControls",setup(Z){const r={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:B,outputColorSpace:_,toneMapping:P},a=A({enableDamping:!0,dampingFactor:.05,enableZoom:!0,autoRotate:!1,autoRotateSpeed:2,maxPolarAngle:Math.PI,minPolarAngle:0,maxAzimuthAngle:Math.PI,minAzimuthAngle:-Math.PI,enablePan:!0,maxDistance:100,minDistance:0,minZoom:0,maxZoom:100,zoomSpeed:1,enableRotate:!0,rotateSpeed:1}),{pane:e}=b();e.addBinding(a,"enableDamping",{label:"启用阻尼"}),e.addBinding(a,"dampingFactor",{label:"阻尼系数",step:.01,min:0,max:1}),e.addBinding(a,"enableZoom",{label:"启用缩放"}),e.addBinding(a,"enablePan",{label:"启用移动"});const l=e.addFolder({title:"旋转"});l.addBinding(a,"autoRotate",{label:"自动旋转"}),l.addBinding(a,"autoRotateSpeed",{label:"自动旋转速度",step:.01,min:0,max:Math.PI});const n=e.addFolder({title:"角度"});n.addBinding(a,"maxPolarAngle",{label:"max极角",step:.01,min:0,max:Math.PI}),n.addBinding(a,"minPolarAngle",{label:"min极角",step:.01,min:0,max:Math.PI}),n.addBinding(a,"maxAzimuthAngle",{label:"max方位角",step:.01,min:0,max:2*Math.PI}),n.addBinding(a,"minAzimuthAngle",{label:"min方位角",step:.01,min:0,max:2*Math.PI});const d=e.addFolder({title:"距离"});d.addBinding(a,"maxDistance",{label:"最大距离",step:.01,min:0,max:100}),d.addBinding(a,"minDistance",{label:"最小距离",step:.01,min:0,max:100});const t=e.addFolder({title:"缩放"});t.addBinding(a,"enableZoom",{label:"开启"}),t.addBinding(a,"minZoom",{label:"最小",step:.01,min:0,max:10}),t.addBinding(a,"maxZoom",{label:"最大",step:.01,min:0,max:100}),t.addBinding(a,"zoomSpeed",{label:"速度",step:.01,min:0,max:20});function p(){}function c(){}function g(){}return(w,R)=>{const u=F("TresLeches");return M(),S(I,null,[o(u),o(s(h),m(r,{"window-size":""}),{default:C(()=>[z,o(s(x),m(a,{onChange:p,onStart:c,onEnd:g}),null,16),D,T]),_:1},16)],64)}}});export{k as default};
|
2
dist/static/pagesShow.vue_vue_type_style_index_0_lang-a8487244.js
vendored
Normal file
1
dist/static/penetrateEvent-844ecda5.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{P as i,l as _,z as c,r as d}from"./trescientos-01522e33.js";import{Y as u,j as p,o as h,s as m,B as r,I as t,U as e,a,a6 as x}from"./vendor-4c6c5ef6.js";import"./three.module-eabffd14.js";const f=e("TresPerspectiveCamera",{"look-at":[0,4,0]},null,-1),B=["blocks-pointer-events"],T=e("TresBoxGeometry",{args:[1,1,1]},null,-1),g=e("TresMeshNormalMaterial",null,null,-1),v=[T,g],b=e("TresBoxGeometry",{args:[1,1,1]},null,-1),k=e("TresMeshNormalMaterial",null,null,-1),M=e("h1",{class:"bg-white text-xs p-0.5 rounded -mt-10"}," Box2 📦 ",-1),w=e("TresGridHelper",null,null,-1),C=e("TresAmbientLight",{intensity:1},null,-1),V=u({__name:"penetrateEvent",setup(N){const l=s=>{console.log(s),x.info(s)},o=p(!0);return new i({title:"穿透事件",expanded:!0}).addBinding(o,"value",{label:"Box2📦可点"}),(s,n)=>(h(),m(t(_),{"window-size":""},{default:r(()=>[f,e("TresMesh",{position:[0,1,0],"blocks-pointer-events":!o.value},v,8,B),e("TresMesh",{position:[-2,0,-2],name:"box 2",onClick:n[0]||(n[0]=y=>l("点击了 Box2 📦"))},[b,k,a(t(c),{center:!0,transform:""},{default:r(()=>[M]),_:1})]),a(t(d)),w,C]),_:1}))}});export{V as default};
|
1
dist/static/polyfills-5f5adbe1.js
vendored
Normal file
1
dist/static/radars-e013f41b.js
vendored
Normal file
1
dist/static/scrollControls-e984f4d2.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.fixed[data-v-3a9657c1]{position:fixed;top:0;right:0}.scroll[data-v-3a9657c1]{height:200vh}.container[data-v-3a9657c1]{height:50vh;overflow:scroll}main[data-v-3a9657c1]{background-color:transparent;position:relative;z-index:1}.canvas-class[data-v-3a9657c1]{z-index:0!important}section[data-v-3a9657c1]{min-height:100vh;display:grid;place-items:center;outline:1px solid red}h1[data-v-3a9657c1],h2[data-v-3a9657c1],h3[data-v-3a9657c1]{color:#f7f7f7}
|
1
dist/static/scrollControls-f2b26be1.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{n as m,l as v,O as h,u as g,b as C,m as x}from"./trescientos-01522e33.js";import{S,N as R}from"./three.module-eabffd14.js";import{Y as y,j as n,ac as k,o as w,c as B,a as s,B as p,a8 as I,I as a,C as V,ag as b,ah as N,U as e,_ as T}from"./vendor-4c6c5ef6.js";const r=l=>(b("data-v-3a9657c1"),l=l(),N(),l),j=r(()=>e("TresPerspectiveCamera",{position:[0,2,5]},null,-1)),E=r(()=>e("TresGridHelper",{args:[10,10]},null,-1)),F=r(()=>e("main",null,[e("section",null,[e("h1",null,"First section")]),e("section",null,[e("h2",null,"Second section")])],-1)),G=y({__name:"scrollControls",setup(l){const u=n(),i=n(),t=n(),o=n(0);k(()=>{console.log("jaime ~ progress:",o.value)});const _={clearColor:"#333",alpha:!0,outputColorSpace:S,toneMapping:R},{onLoop:d}=m();return d(()=>{t.value&&(t.value.value.rotation.x=o.value*10,t.value.value.rotation.y=o.value*2)}),(M,c)=>(w(),B(V,null,[s(a(v),I(_,{"window-size":"",class:"canvas-class"}),{default:p(()=>[j,s(a(h),{radius:1}),E,s(a(g),{ref_key:"scRef",ref:u,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=f=>o.value=f),distance:10,"smooth-scroll":.1,"html-scroll":""},{default:p(()=>[s(a(C),{ref_key:"sphereRef",ref:i,scale:.1,position:[1,2,0]},null,512),s(a(x),{ref_key:"boxRef",ref:t,scale:.5,color:16711935,position:[-1,1,0]},null,512)]),_:1},8,["modelValue"])]),_:1},16),F],64))}});const z=T(G,[["__scopeId","data-v-3a9657c1"]]);export{z as default};
|
1
dist/static/shaderParticles-f53e5b73.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{n as c,l as d,r as u}from"./trescientos-01522e33.js";import{A as m}from"./three.module-eabffd14.js";import{Y as f,a7 as p,o as h,s as _,B as v,a8 as P,I as t,a as g,U as o,a9 as w,aa as T}from"./vendor-4c6c5ef6.js";const x=o("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:.1,far:1e3,"look-at":[-8,3,-3]},null,-1),S=o("TresAmbientLight",{intensity:.5},null,-1),C={position:[-2,-2,-2]},M=["position","a-scale"],y=o("TresDirectionalLight",{position:[0,2,4],intensity:1,"cast-shadow":""},null,-1),z=o("TresGridHelper",null,null,-1),a=3e3,j=f({__name:"shaderParticles",setup(A){const r=p({clearColor:"black",shadows:!0,alpha:!1}),n={transparent:!0,blending:m,depthWrite:!1,vertexShader:"\n uniform float uPixelRatio;\n uniform float uSize;\n uniform float uTime;\n attribute float aScale;\n\n void main()\n {\n vec4 modelPosition = modelMatrix * vec4(position, 1.0);\n modelPosition.y += sin(uTime + modelPosition.x * 100.0) * aScale * 0.2;\n vec4 viewPosition = viewMatrix * modelPosition;\n vec4 projectionPosition = projectionMatrix * viewPosition;\n\n gl_Position = projectionPosition;\n gl_PointSize = aScale * uSize * uPixelRatio;\n gl_PointSize *= (1.0 / - viewPosition.z);\n }\n ",fragmentShader:"\n void main()\n {\n float distanceToCenter = distance(gl_PointCoord, vec2(0.5));\n float strength = 0.05 / distanceToCenter - 0.1;\n\n gl_FragColor = vec4(1.0, 1.0, 1.0, strength);\n }\n ",uniforms:{uSize:{value:100},uPixelRatio:{value:Math.min(window.devicePixelRatio,2)},uTime:{value:0}}},i=new Float32Array(a*3),s=new Float32Array(a);for(let e=0;e<a;e++)i[e*3+0]=Math.random()*4,i[e*3+1]=Math.random()*4,i[e*3+2]=Math.random()*4,s[e]=Math.random();const{onLoop:l}=c();return l(({elapsed:e})=>{n.uniforms.uTime.value=e}),(e,B)=>(h(),_(t(d),P(r,{"window-size":""}),{default:v(()=>[x,g(t(u)),S,o("TresPoints",C,[o("TresBufferGeometry",{position:[t(i),3],"a-scale":[t(s),1]},null,8,M),o("TresShaderMaterial",w(T(n)),null,16)]),y,z]),_:1},16))}});export{j as default};
|
1
dist/static/simpleExample-7086dc13.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{n as u,l as m,r as f}from"./trescientos-01522e33.js";import{H as d,J as h,D as g,S as v,P as y}from"./three.module-eabffd14.js";import{Y as S,o as C,s as w,B as M,a8 as _,I as c,a as x,U as i,a9 as P,aa as b}from"./vendor-4c6c5ef6.js";const l={segments:30,w:256,h:256},T=()=>{const e=new Array;for(let o=0;o<l.segments;o++)e[o]=parseInt(Math.random()*25+10);return e},G=(e,o)=>{let{x:r,y:t,radius:a,weight:n}=o;a=parseInt(a*n);const s=e.createRadialGradient(r,t,0,r,t,a);s.addColorStop(0,"rgba(255, 255, 0, 1)"),s.addColorStop(1,"rgba(255, 0, 0, 0)"),e.fillStyle=s,e.globalAlpha=n,e.beginPath(),e.arc(r,t,a,0,2*Math.PI),e.closePath(),e.fill()},U=()=>{const e={1:"#f00",.8:"#e2fa00",.6:"#33f900",.3:"#0349df",0:"#fff"},o=256,r=10,t=document.createElement("canvas");t.width=o,t.height=r,t.style.position="absolute",t.style.top="0",t.style.right="0";const a=t.getContext("2d"),n=a.createLinearGradient(0,0,o,0);for(const p in e)n.addColorStop(p,e[p]);a.fillStyle=n,a.fillRect(0,0,o,r),document.body.appendChild(t);const s=new d(t);return s.minFilter=h,s.needsUpdate=!0,s},D=()=>{const e=document.createElement("canvas");e.width=l.w,e.height=l.h,e.style.position="absolute",e.style.top="20px",e.style.right="0";const o=e.getContext("2d"),r=T();for(let a=0;a<l.segments;a++){const n=r[a]/35,s=Math.random()*l.w,p=Math.random()*l.h;G(o,{x:s,y:p,radius:80,weight:n})}document.body.appendChild(e);const t=new d(e);return t.minFilter=h,t.needsUpdate=!0,t},L=i("TresPerspectiveCamera",{position:[0,0,3e3],fov:40,near:.1,far:1e4},null,-1),R=i("TresAmbientLight",{color:"#eef0ff",intensity:1},null,-1),A=i("TresPlaneGeometry",{args:[1500,1500]},null,-1),I=S({__name:"simpleExample",setup(e){const o={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:v,shadowMapType:y,useLegacyLights:!0};u().onLoop(({delta:a})=>{});const r={transparent:!0,side:g,vertexShader:"\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }",fragmentShader:"\n #ifdef GL_ES\n precision highp float;\n #endif\n varying vec2 vUv;\n uniform sampler2D alphaScaleMap;\n uniform sampler2D paletteMap;\n void main() {\n vec4 alphaColor = texture2D(alphaScaleMap, vUv);\n vec4 color = texture2D(paletteMap, vec2(alphaColor.a, 0.0));\n gl_FragColor = vec4(color.r, color.g, color.b, alphaColor.a);\n }",uniforms:{alphaScaleMap:{type:"t",value:D()},paletteMap:{type:"t",value:U()}}};function t(a){a&&console.log(a)}return(a,n)=>(C(),w(c(m),_(o,{"window-size":""}),{default:M(()=>[L,x(c(f),{autoRotate:!0,autoRotateSpeed:2}),R,i("TresMesh",{position:[0,0,10],onPointerMove:t},[A,i("TresShaderMaterial",P(b(r)),null,16)],32)]),_:1},16))}});export{I as default};
|
1
dist/static/suspenseLayout-57c7969e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o,r as s,o as t,s as r,B as a,aj as n,a as c}from"./vendor-4c6c5ef6.js";const _={};function u(p,f){const e=s("router-view");return t(),r(n,null,{default:a(()=>[c(e)]),_:1})}const i=o(_,[["render",u]]);export{i as default};
|
1
dist/static/theBasic-fef6191f.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{B as d,S as m,N as _}from"./three.module-eabffd14.js";import{n as f,l as T,r as M}from"./trescientos-01522e33.js";import{Y as g,a7 as i,j as l,ab as w,ac as P,ad as v,o as y,s as S,B as R,a8 as b,I as c,a as B,a9 as D,aa as k,U as e}from"./vendor-4c6c5ef6.js";const x=e("TresPerspectiveCamera",{position:[15,15,15],fov:45,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),A=e("TresAmbientLight",{intensity:.5},null,-1),L=e("TresSphereGeometry",{args:[2,32,32]},null,-1),z=e("TresMeshToonMaterial",{color:"#006060"},null,-1),C=[L,z],G=e("TresSphereGeometry",{args:[2,32,32]},null,-1),I=e("TresMeshToonMaterial",{color:"#006060"},null,-1),F=[G,I],N=["rotation"],Z=e("TresPlaneGeometry",{args:[20,20,20,20]},null,-1),j=e("TresMeshToonMaterial",null,null,-1),E=[Z,j],V=e("TresDirectionalLight",{position:[10,2,4],intensity:1,"cast-shadow":""},null,-1),H=e("TresGridHelper",null,null,-1),O=g({__name:"theBasic",setup(U){const h=i({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:d,outputColorSpace:m,toneMapping:_}),p=i({enableDamping:!0,dampingFactor:.05,enableZoom:!0,autoRotate:!1,autoRotateSpeed:2,maxPolarAngle:Math.PI,minPolarAngle:0,maxAzimuthAngle:Math.PI,minAzimuthAngle:-Math.PI,enablePan:!0,keyPanSpeed:7,maxDistance:100,minDistance:0,minZoom:0,maxZoom:100,zoomSpeed:1,enableRotate:!0,rotateSpeed:1}),t=l(),s=l(),a=w(),{onLoop:u}=f();u(({elapsed:o})=>{t.value&&(t.value.position.y+=Math.sin(o)*.01,s.value.position.y+=Math.sin(o)*.01)});function n(o){o&&o.object.material.color.set("#DFFF45")}function r(o){o&&o.material.color.set("#006060")}return P(()=>{a.value&&(a.value.shadow.mapSize.set(1e3,1e3),a.value.shadow.camera.near=.5,a.value.shadow.camera.top=20,a.value.shadow.camera.right=20,a.value.shadow.camera.left=-20,a.value.shadow.camera.bottom=-20)}),v(()=>{}),(o,Y)=>(y(),S(c(T),b(h,{"window-size":""}),{default:R(()=>[x,B(c(M),D(k(p)),null,16),A,e("TresMesh",{ref_key:"sphereRef",ref:t,position:[0,4,0],"cast-shadow":"",onPointerEnter:n,onPointerLeave:r},C,544),e("TresMesh",{ref_key:"sphereRef2",ref:s,position:[4,4,0],"cast-shadow":"",onPointerEnter:n,onPointerLeave:r},F,544),e("TresMesh",{rotation:[-Math.PI/2,0,0],"receive-shadow":""},E,8,N),e("TresDirectionalLight",{ref_key:"TDirectionalLight",ref:a,position:[10,8,4],intensity:1,"cast-shadow":""},null,512),V,H]),_:1},16))}});export{O as default};
|
1
dist/static/theConditional-d54ca4e4.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{B as f,S as m,N as M,M as T}from"./three.module-eabffd14.js";import{P as b,l as g,r as x}from"./trescientos-01522e33.js";import{Y as B,a7 as y,j as a,ad as V,ae as v,af as w,w as C,o as t,s as P,B as k,a8 as G,I as i,U as e,c as r,V as n,a as N}from"./vendor-4c6c5ef6.js";const S=e("TresPerspectiveCamera",{position:[11,11,11],fov:45,near:.1,far:1e3,"look-at":[-8,3,-3]},null,-1),L=e("TresDirectionalLight",{position:[0,8,4],intensity:.2,"cast-shadow":""},null,-1),R=["material"],E=e("TresBoxGeometry",{args:[1,1,1]},null,-1),I=[E],U={key:0,position:[4,0,0]},j=e("TresBoxGeometry",{args:[1,1,1]},null,-1),z=e("TresMeshToonMaterial",{color:"#efefef"},null,-1),A=[j,z],D={key:1,position:[4,1,0]},Y=e("TresBoxGeometry",{args:[1,1,1]},null,-1),$=e("TresMeshToonMaterial",{color:"#efefef"},null,-1),q=[Y,$],F={key:2,position:[0,-4,-5]},H=e("TresGroup",null,[e("TresMesh",{position:[0,0,0]},[e("TresBoxGeometry",{args:[1,1,1]}),e("TresMeshBasicMaterial",{color:"#efef11"})]),e("TresMesh",{position:[0,2,0]},[e("TresBoxGeometry",{args:[1,1,1]}),e("TresMeshBasicMaterial",{color:"#ef11ef"})])],-1),J=[H],K=e("TresAmbientLight",{intensity:.5},null,-1),Z=B({__name:"theConditional",setup(O){const u=y({clearColor:"#000000",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:m,toneMapping:M,useLegacyLights:!1}),s=a({groupVisible:!0,boxPropMaterialVisible:!0}),_=a(null),l=a(!0);let o=null,c=null;V(()=>{o||(o=new b({title:"显隐参数",expanded:!0}),o.addBinding(l,"value",{label:"boxVisible"}),o.addBinding(s.value,"boxPropMaterialVisible"),o.addBinding(s.value,"groupVisible")),c=v().proxy}),w(()=>{o&&(o.dispose(),o=null)}),C(()=>l,(d,p)=>{p!==void 0&&(c.$refs.boxRef.visible=d.value)},{deep:!0});const h=new T({color:"#ff0000"});return(d,p)=>(t(),P(i(g),G(u,{"window-size":""}),{default:k(()=>[S,L,e("TresMesh",{ref_key:"boxRef",ref:_,position:[0,0,0],material:i(h)},I,8,R),s.value.boxPropMaterialVisible?(t(),r("TresMesh",U,A)):n("",!0),s.value.boxPropMaterialVisible?(t(),r("TresMesh",D,q)):n("",!0),s.value.groupVisible?(t(),r("TresGroup",F,J)):n("",!0),N(i(x)),K]),_:1},16))}});export{Z as default};
|
1
dist/static/theEvents-dd2263a8.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{l as h,r as m}from"./trescientos-01522e33.js";import{B as C,S as g,N as B}from"./three.module-eabffd14.js";import{Y as T,o,s as M,B as k,a8 as w,I as c,a as P,c as n,D as a,C as s,U as t}from"./vendor-4c6c5ef6.js";const S=t("TresPerspectiveCamera",{position:[11,11,11],"look-at":[0,0,0]},null,-1),y=["position"],L=t("TresBoxGeometry",{args:[1,1,1]},null,-1),N=t("TresMeshToonMaterial",{color:"#efefef"},null,-1),b=[L,N],x=t("TresDirectionalLight",{intensity:1},null,-1),E=t("TresAmbientLight",{intensity:1},null,-1),A=T({__name:"theEvents",setup(F){const u={clearColor:"#202020",shadows:!0,alpha:!1,shadowMapType:C,outputColorSpace:g,toneMapping:B};function p(e){e&&e.object.material.color.set("#008080")}function f(e){e&&e.object.material.color.set("#CCFF03")}function _(e){e&&e.material.color.set("#efefef")}function d(e){e&&console.log(e)}return(e,j)=>(o(),M(c(h),w(u,{"window-size":""}),{default:k(()=>[S,P(c(m)),(o(),n(s,null,a([-2.5,0,2.5],r=>(o(),n(s,null,[(o(),n(s,null,a([-2.5,0,2.5],i=>(o(),n(s,null,[(o(),n(s,null,a([-2.5,0,2.5],l=>t("TresMesh",{key:"".concat([r,i,l]),position:[r,i,l],onClick:p,onPointerEnter:f,onPointerLeave:_,onPointerMove:d},b,40,y)),64))],64))),64))],64))),64)),x,E]),_:1},16))}});export{A as default};
|
1
dist/static/theGroups-a9ea25de.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{n as r,l as a,r as n}from"./trescientos-01522e33.js";import{Y as i,j as c,o as l,s as p,B as _,I as s,a as h,U as e}from"./vendor-4c6c5ef6.js";import"./three.module-eabffd14.js";const d=e("TresPerspectiveCamera",{position:[5,5,5],fov:75,aspect:1,near:.1,far:1e3},null,-1),u=e("TresAmbientLight",{color:16777215,intensity:.5},null,-1),f=e("TresMesh",{scale:1,position:[-4,0,0],"cast-shadow":""},[e("TresSphereGeometry",{args:[1,500,500]}),e("TresMeshToonMaterial",{color:"#FBB03B"})],-1),T=e("TresMesh",{scale:1,position:[4,0,0],"cast-shadow":""},[e("TresSphereGeometry",{args:[1,500,500]}),e("TresMeshToonMaterial",{color:"teal"})],-1),m=[f,T],B=e("TresDirectionalLight",{position:[0,2,4],intensity:2,"cast-shadow":""},null,-1),g=e("TresAxesHelper",null,null,-1),G=i({__name:"theGroups",setup(w){const{onLoop:t}=r(),o=c();return t(()=>{o.value&&(o.value.rotation.y+=.01)}),(y,M)=>(l(),p(s(a),{clearColor:"#000000","window-size":""},{default:_(()=>[d,h(s(n)),u,e("TresGroup",{ref_key:"groupRef",ref:o,position:[0,-4,-5]},m,512),B,g]),_:1}))}});export{G as default};
|
5
dist/static/three.module-eabffd14.js
vendored
Normal file
1
dist/static/transformControls-089b39a0.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{F as f,l as x,r as w,e as B}from"./trescientos-01522e33.js";import{B as b,S as g,N as Y}from"./three.module-eabffd14.js";import{Y as X,j as l,a7 as Z,o as c,s as p,B as C,a8 as v,I as r,a as T,U as t,V as M}from"./vendor-4c6c5ef6.js";const k=t("TresPerspectiveCamera",{position:[3,3,3]},null,-1),y=t("TresBoxGeometry",null,null,-1),S=t("TresMeshNormalMaterial",null,null,-1),N=[y,S],R=t("TresSphereGeometry",null,null,-1),j=t("TresMeshNormalMaterial",null,null,-1),G=[R,j],V=t("TresAmbientLight",{intensity:1},null,-1),z=t("TresGridHelper",null,null,-1),D=X({__name:"transformControls",setup(F){const h={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:b,outputColorSpace:g,toneMapping:Y},i=l(),d=l(),n=l();function u(o){n.value=o}const m=l(),e=Z({mode:"translate",enabled:!0,space:"world",axis:"XYZ",size:1,showX:!0,showY:!0,showZ:!0}),{pane:a}=f();return a.addBlade({view:"list",label:"模式",options:[{text:"移动",value:"translate"},{text:"旋转",value:"rotate"},{text:"缩放",value:"scale"}],value:e.mode}).on("change",o=>{e.mode=o.value}),a.addBinding(e,"enabled",{label:"开启"}),a.addBlade({view:"list",label:"Space",options:[{text:"世界坐标",value:"world"},{text:"本地坐标",value:"local"}],value:e.space}).on("change",o=>{e.space=o.value}),a.addBlade({view:"list",label:"轴",options:[{text:"X",value:"X"},{text:"Y",value:"Y"},{text:"Z",value:"Z"},{text:"XY",value:"XY"},{text:"YZ",value:"YZ"},{text:"XZ",value:"XZ"},{text:"XYZ",value:"XYZ"}],value:e.axis}),a.addBinding(e,"size",{label:"大小",step:.01,min:0,max:10}),a.addBinding(e,"showX",{label:"显示X轴"}),a.addBinding(e,"showY",{label:"显示Y轴"}),a.addBinding(e,"showZ",{label:"显示Z轴"}),(o,s)=>(c(),p(r(x),v(h,{ref_key:"context",ref:m,"window-size":""}),{default:C(()=>[k,T(r(w),{"make-default":""}),t("TresMesh",{ref_key:"boxRef",ref:i,position:[-2,1,0],onClick:s[0]||(s[0]=_=>u(i.value))},N,512),n.value?(c(),p(r(B),v({key:0,object:n.value},e),null,16,["object"])):M("",!0),t("TresMesh",{ref_key:"sphereRef",ref:d,position:[2,1,0],onClick:s[1]||(s[1]=_=>u(d.value))},G,512),V,z]),_:1},16))}});export{D as default};
|
6
dist/static/trescientos-01522e33.js
vendored
Normal file
1
dist/static/vendor-28ba1523.css
vendored
Normal file
5
dist/static/vendor-4c6c5ef6.js
vendored
Normal file
1
dist/static/weather-16ca89f0.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var B=Object.defineProperty;var m=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var _=(s,a,e)=>a in s?B(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e,c=(s,a)=>{for(var e in a||(a={}))R.call(a,e)&&_(s,e,a[e]);if(m)for(var e of m(a))z.call(a,e)&&_(s,e,a[e]);return s};import{y as g,I as b,P as k}from"./trescientos-01522e33.js";import{_ as Y}from"./pagesShow.vue_vue_type_style_index_0_lang-a8487244.js";import{_ as S}from"./loading.vue_vue_type_script_setup_true_lang-2affd703.js";import{Y as h,a7 as p,ai as P,j as v,ac as x,w as X,o as f,s as C,I as Z,ak as y,c as $,a as d,B as w,C as I,a9 as j,aa as E,aj as F}from"./vendor-4c6c5ef6.js";import"./three.module-eabffd14.js";const M=h({__name:"precipitation",props:{speed:{default:12},randomness:{default:0},count:{default:6e3},size:{default:7},areaX:{default:1500},areaY:{default:1e3},areaZ:{default:1500},type:{default:"snow"},color:{default:"#fff"}},async setup(s){let a,e;const t=s,n={snow:"./plugins/digitalCity/image/snow.png",rain:"./plugins/digitalCity/image/rain.png",cilcle:"./plugins/digitalCity/image/cilcle.png"},i=p({});n[t.type]&&(i.value=([a,e]=P(()=>g({map:n[t.type]})),a=await a,e(),a));const o=v();return x(async()=>{}),X(()=>t.type,async(r,l)=>{var u;r!=l&&((u=i.value)!=null&&u.map&&i.value.map.dispose(),i.value=await g({map:n[r]?n[r]:n.cilcle}))}),(r,l)=>(f(),C(Z(b),{ref_key:"precipitationRef",ref:o,position:[0,t.areaY/2,0],speed:t.speed,color:t.color,alphaTest:.5,area:[t.areaX,t.areaY,t.areaZ],count:t.count,depthWrite:!0,randomness:t.randomness,size:t.size,opacity:1,map:i.value.map,alphaMap:i.value.map},null,8,["position","speed","color","area","count","randomness","size","map","alphaMap"]))}}),q=h({__name:"weather",setup(s){const a=v();x(()=>{a.value&&a.value.$refs.perspectiveCameraRef.position.set(750,500,800)});const e=p({speed:12,size:10,count:6e3,color:"#fff",type:"snow"}),t=p({areaX:1500,areaY:1e3,areaZ:1500}),n=p(c(c({},y(e)),y(t))),o=new k({title:"天气",expanded:!0}).addFolder({title:"下落物"});return o.addBinding(e,"speed",{label:"速度",min:0,max:30,step:1}),o.addBinding(e,"color",{label:"颜色"}),o.addBinding(e,"size",{label:"大小",min:0,max:26,step:1}),o.addBinding(e,"count",{label:"数量",min:1e3,max:1e4,step:100}),o.addBinding(e,"type",{view:"list",label:"类型",options:[{text:"雪",value:"snow"},{text:"雨",value:"rain"},{text:"点",value:"point"}]}),(r,l)=>(f(),$(I,null,[d(S),d(Y,{ref_key:"pagesShowRef",ref:a,autoRotate:!1},{ability:w(()=>[(f(),C(F,null,{default:w(()=>[d(M,j(E(n)),null,16)]),_:1}))]),_:1},512)],64))}});export{q as default};
|
1
dist/static/website-e662fdbe.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{t as d,z as m,K as u,l as h,r as f}from"./trescientos-01522e33.js";import{B as w,S as g,N as b}from"./three.module-eabffd14.js";import{Y as p,j as x,ai as B,o as r,s as n,B as s,U as t,a as i,I as a,a8 as C,aj as y}from"./vendor-4c6c5ef6.js";const S=["object"],M=t("iframe",{class:"rounded-lg w-[1024px] h-[670px]",src:"https://www.icegl.cn",frameborder:"0"},null,-1),T=p({__name:"laptop",async setup(l){let e,o;const c=x(),{nodes:_}=([e,o]=B(()=>d("./plugins/basic/htmls/model/model.gltf",{draco:!0})),e=await e,o(),e);return(N,z)=>(r(),n(a(u),null,{default:s(()=>[t("primitive",{ref_key:"primitiveref",ref:c,object:a(_).Macbook},[i(a(m),{transform:"","wrapper-class":"webpage","distance-factor":11,position:[0,10.5,-13.6],occlude:"","rotation-x":-.256},{default:s(()=>[M]),_:1})],8,S)]),_:1}))}}),j=t("TresPerspectiveCamera",{position:[-5,4,3]},null,-1),k=t("TresAmbientLight",{intensity:1},null,-1),v=t("TresDirectionalLight",{intensity:2,position:[2,3,0],"cast-shadow":!0,"shadow-camera-far":50,"shadow-camera-left":-10,"shadow-camera-right":10,"shadow-camera-top":10,"shadow-camera-bottom":-10},null,-1),L=p({__name:"website",setup(l){const e={clearColor:"#241a1a",shadows:!0,alpha:!1,shadowMapType:w,outputColorSpace:g,toneMapping:b};return(o,c)=>(r(),n(a(h),C(e,{"window-size":""}),{default:s(()=>[j,i(a(f)),(r(),n(y,null,{default:s(()=>[i(T)]),_:1})),k,v]),_:1},16))}});export{L as default};
|
1
dist/static/wobbleMaterial-74e96b56.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{P as l,l as i,p as c,r as p}from"./trescientos-01522e33.js";import{B as d,S as u,N as _}from"./three.module-eabffd14.js";import{Y as f,j as t,o as h,s as m,B,a8 as C,I as o,U as e,a}from"./vendor-4c6c5ef6.js";const T=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),g=e("TresTorusGeometry",null,null,-1),w=e("TresGridHelper",{args:[10,10]},null,-1),x=e("TresAmbientLight",{intensity:1},null,-1),M=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),G=f({__name:"wobbleMaterial",setup(y){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:d,outputColorSpace:u,toneMapping:_},r=t(),s=t("#5384ff");return new l({title:"流体波动",expanded:!0}).addBinding(s,"value",{label:"颜色"}),(b,N)=>(h(),m(o(i),C(n,{ref_key:"context",ref:r,"window-size":""}),{default:B(()=>[T,e("TresMesh",null,[g,a(o(c),{color:s.value,speed:3,factor:8},null,8,["color"])]),w,x,M,a(o(p))]),_:1},16))}});export{G as default};
|
@ -8,7 +8,7 @@
|
||||
"dom"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"baseUrl": "/icegl-three-vue-tres",
|
||||
"jsx": "preserve",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "node",
|
||||
|