chbim-plugins 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chbim-plugins.js CHANGED
@@ -3228,7 +3228,7 @@ const wh = { class: "content" }, Mh = /* @__PURE__ */ Oi("canvas", { class: "lan
3228
3228
  At = new THREE.Mesh(st, Pt), At.position.z = -180, At.rotation.x = -Math.PI / 2, lt.add(At);
3229
3229
  }
3230
3230
  function f() {
3231
- new THREE.TextureLoader().load(params.palleteImage, function(st) {
3231
+ new THREE.TextureLoader().load("", function(st) {
3232
3232
  At.material.uniforms.pallete.value = st, At.material.needsUpdate = !0;
3233
3233
  });
3234
3234
  }
@@ -248,7 +248,7 @@
248
248
  float fogFactor = smoothstep( fogNear, fogFar, fogDepth );
249
249
  gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
250
250
  #endif
251
- }`;var yt=document.querySelector(".landscape"),Ct=window.innerWidth,Y=window.innerHeight,lt,St,ut,At,Dt={x:0,y:0,xDamped:0,yDamped:0},_t=typeof window.orientation<"u";K();function K(){H(),m(),f(),b(),_t?window.addEventListener("touchmove",X,{passive:!1}):window.addEventListener("mousemove",X),window.addEventListener("resize",w),w()}function H(){lt=new THREE.Scene;var st=new THREE.Color(3355443);lt.background=st,lt.fog=new THREE.Fog(st,0,400),O(),ut=new THREE.PerspectiveCamera(60,Ct/Y,.1,1e4),ut.position.y=8,ut.position.z=4;let it=new THREE.AmbientLight(16777215,1);lt.add(it),St=new THREE.WebGLRenderer({canvas:yt,antialias:!0}),St.setPixelRatio=devicePixelRatio,St.setSize(Ct,Y)}function m(){var st=new THREE.PlaneBufferGeometry(100,400,400,400),it={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},Pt=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,it]),vertexShader:ht,fragmentShader:M,wireframe:!1,fog:!0});At=new THREE.Mesh(st,Pt),At.position.z=-180,At.rotation.x=-Math.PI/2,lt.add(At)}function f(){new THREE.TextureLoader().load(params.palleteImage,function(st){At.material.uniforms.pallete.value=st,At.material.needsUpdate=!0})}function O(){O=new THREE.Sky,O.scale.setScalar(45e4),O.material.uniforms.turbidity.value=13,O.material.uniforms.rayleigh.value=1.2,O.material.uniforms.luminance.value=1,O.material.uniforms.mieCoefficient.value=.1,O.material.uniforms.mieDirectionalG.value=.58,lt.add(O);let st=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));st.visible=!1,lt.add(st);var it=Math.PI*-.002,Pt=2*Math.PI*-.25;st.position.x=4e5*Math.cos(Pt),st.position.y=4e5*Math.sin(Pt)*Math.sin(it),st.position.z=4e5*Math.sin(Pt)*Math.cos(it),O.material.uniforms.sunPosition.value.copy(st.position)}function w(){Ct=window.innerWidth,Y=window.innerHeight,ut.aspect=Ct/Y,ut.updateProjectionMatrix(),St.setSize(Ct,Y)}function X(st){st.preventDefault();var it,Pt;st.type=="mousemove"?(it=st.clientX,Pt=st.clientY):(it=st.changedTouches[0].clientX,Pt=st.changedTouches[0].clientY),Dt.x=it,Dt.y=Pt}function b(){requestAnimationFrame(b),Dt.xDamped=Z(Dt.xDamped,Dt.x,.1),Dt.yDamped=Z(Dt.yDamped,Dt.y,.1);var st=performance.now()*.001;At.material.uniforms.time.value=st,At.material.uniforms.scroll.value=st+F(Dt.yDamped,0,Y,0,4),At.material.uniforms.distortCenter.value=Math.sin(st)*.1,At.material.uniforms.roadWidth.value=F(Dt.xDamped,0,Ct,1,4.5),ut.position.y=F(Dt.yDamped,0,Y,4,11),St.render(lt,ut)}function F(st,it,Pt,Lt,Gt){return Lt+(Gt-Lt)*((st-it)/(Pt-it))}function Z(st,it,Pt){return(1-Pt)*st+Pt*it}},$=()=>{const ht=document.querySelector(".overlay"),M=document.querySelector(".content__title");charming(M);const yt=Array.from(M.querySelectorAll("span"));TweenMax.to(ht,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(yt,{opacity:0}),TweenMax.staggerTo(yt,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1);const Ct=document.querySelector(".content__subtitle");TweenMax.set(Ct,{opacity:0}),TweenMax.to(Ct,1.5,{ease:Expo.easeOut,startAt:{y:30},opacity:1,y:0})},mt=()=>{Ot(),$()};return Se.onMounted(()=>{mt()}),(ht,M)=>(Se.openBlock(),Se.createElementBlock(Se.Fragment,null,[Se.createElementVNode("div",Wa,[Xa,Se.createElementVNode("h2",qa,[Se.renderSlot(ht.$slots,"default")])]),Ya],64))}}),Th="";(function(p,Ot){typeof Fi=="object"&&typeof module<"u"?Ot(Fi):typeof define=="function"&&define.amd?define(["exports"],Ot):Ot(p.THREE={})})(window,function(p){function Ot(){}function $(t,e){this.x=t||0,this.y=e||0}function mt(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function ht(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function M(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function yt(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function Ct(t,e,i,n,r,o,s,a,h,l){Object.defineProperty(this,"id",{value:nh++}),this.uuid=Ee.generateUUID(),this.name="",this.image=t!==void 0?t:Ct.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:Ct.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=r!==void 0?r:1006,this.minFilter=o!==void 0?o:1008,this.anisotropy=h!==void 0?h:1,this.format=s!==void 0?s:1023,this.type=a!==void 0?a:1009,this.offset=new $(0,0),this.repeat=new $(1,1),this.center=new $(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new yt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=l!==void 0?l:3e3,this.version=0,this.onUpdate=null}function Y(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function lt(t,e,i){this.width=t,this.height=e,this.scissor=new Y(0,0,t,e),this.scissorTest=!1,this.viewport=new Y(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new Ct(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function St(t,e,i){lt.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function ut(t,e,i,n,r,o,s,a,h,l,c,u){Ct.call(this,null,o,s,a,h,l,n,r,c,u),this.image={data:t,width:e,height:i},this.magFilter=h!==void 0?h:1003,this.minFilter=l!==void 0?l:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function At(t,e){this.min=t!==void 0?t:new M(1/0,1/0,1/0),this.max=e!==void 0?e:new M(-1/0,-1/0,-1/0)}function Dt(t,e){this.center=t!==void 0?t:new M,this.radius=e!==void 0?e:0}function _t(t,e){this.normal=t!==void 0?t:new M(1,0,0),this.constant=e!==void 0?e:0}function K(t,e,i,n,r,o){this.planes=[t!==void 0?t:new _t,e!==void 0?e:new _t,i!==void 0?i:new _t,n!==void 0?n:new _t,r!==void 0?r:new _t,o!==void 0?o:new _t]}function H(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function m(){function t(r,o){i!==!1&&(n(r,o),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(r){n=r},setContext:function(r){e=r}}}function f(t){function e(n,r){var o=n.array,s=n.dynamic?35048:35044,a=t.createBuffer();return t.bindBuffer(r,a),t.bufferData(r,o,s),n.onUploadCallback(),r=5126,o instanceof Float32Array?r=5126:o instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):o instanceof Uint16Array?r=5123:o instanceof Int16Array?r=5122:o instanceof Uint32Array?r=5125:o instanceof Int32Array?r=5124:o instanceof Int8Array?r=5120:o instanceof Uint8Array&&(r=5121),{buffer:a,type:r,bytesPerElement:o.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var r=i.get(n);r&&(t.deleteBuffer(r.buffer),i.delete(n))},update:function(n,r){n.isInterleavedBufferAttribute&&(n=n.data);var o=i.get(n);if(o===void 0)i.set(n,e(n,r));else if(o.version<n.version){var s=n,a=s.array,h=s.updateRange;t.bindBuffer(r,o.buffer),s.dynamic===!1?t.bufferData(r,a,35044):h.count===-1?t.bufferSubData(r,0,a):h.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(r,h.offset*a.BYTES_PER_ELEMENT,a.subarray(h.offset,h.offset+h.count)),h.count=-1),o.version=n.version}}}}function O(t,e,i,n,r,o){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new M,this.vertexNormals=Array.isArray(n)?n:[],this.color=r&&r.isColor?r:new H,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=o!==void 0?o:0}function w(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||w.DefaultOrder}function X(){this.mask=1}function b(){Object.defineProperty(this,"id",{value:oh++}),this.uuid=Ee.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=b.DefaultUp.clone();var t=new M,e=new w,i=new ht,n=new M(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new mt},normalMatrix:{value:new yt}}),this.matrix=new mt,this.matrixWorld=new mt,this.matrixAutoUpdate=b.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new X,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function F(){Object.defineProperty(this,"id",{value:sh+=2}),this.uuid=Ee.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function Z(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function st(t,e,i){Z.call(this,new Int8Array(t),e,i)}function it(t,e,i){Z.call(this,new Uint8Array(t),e,i)}function Pt(t,e,i){Z.call(this,new Uint8ClampedArray(t),e,i)}function Lt(t,e,i){Z.call(this,new Int16Array(t),e,i)}function Gt(t,e,i){Z.call(this,new Uint16Array(t),e,i)}function jt(t,e,i){Z.call(this,new Int32Array(t),e,i)}function ie(t,e,i){Z.call(this,new Uint32Array(t),e,i)}function ct(t,e,i){Z.call(this,new Float32Array(t),e,i)}function kt(t,e,i){Z.call(this,new Float64Array(t),e,i)}function Me(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function gi(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Rt(){Object.defineProperty(this,"id",{value:ah+=2}),this.uuid=Ee.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function Fe(t,e,i,n,r,o){F.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new vi(t,e,i,n,r,o)),this.mergeVertices()}function vi(t,e,i,n,r,o){function s(x,S,P,G,N,q,V,ot,T,A,tt){var vt=q/T,ft=V/A,at=q/2,Ht=V/2,It=ot/2;V=T+1;var $t=A+1,Xt=q=0,Qt,re,me=new M;for(re=0;re<$t;re++){var Ae=re*ft-Ht;for(Qt=0;Qt<V;Qt++)me[x]=(Qt*vt-at)*G,me[S]=Ae*N,me[P]=It,l.push(me.x,me.y,me.z),me[x]=0,me[S]=0,me[P]=0<ot?1:-1,c.push(me.x,me.y,me.z),u.push(Qt/T),u.push(1-re/A),q+=1}for(re=0;re<A;re++)for(Qt=0;Qt<T;Qt++)x=d+Qt+V*(re+1),S=d+(Qt+1)+V*(re+1),P=d+(Qt+1)+V*re,h.push(d+Qt+V*re,x,P),h.push(x,S,P),Xt+=6;a.addGroup(g,Xt,tt),g+=Xt,d+=q}Rt.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:o};var a=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,r=Math.floor(r)||1,o=Math.floor(o)||1;var h=[],l=[],c=[],u=[],d=0,g=0;s("z","y","x",-1,-1,i,e,t,o,r,0),s("z","y","x",1,-1,i,e,-t,o,r,1),s("x","z","y",1,1,t,i,e,n,o,2),s("x","z","y",1,-1,t,i,-e,n,o,3),s("x","y","z",1,-1,t,e,i,n,r,4),s("x","y","z",-1,-1,t,e,-i,n,r,5),this.setIndex(h),this.addAttribute("position",new ct(l,3)),this.addAttribute("normal",new ct(c,3)),this.addAttribute("uv",new ct(u,2))}function Ti(t,e,i,n){F.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new oi(t,e,i,n)),this.mergeVertices()}function oi(t,e,i,n){Rt.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var r=t/2,o=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var s=i+1,a=n+1,h=t/i,l=e/n,c=[],u=[],d=[],g=[];for(t=0;t<a;t++){var x=t*l-o;for(e=0;e<s;e++)u.push(e*h-r,-x,0),d.push(0,0,1),g.push(e/i),g.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)r=e+s*(t+1),o=e+1+s*(t+1),a=e+1+s*t,c.push(e+s*t,r,a),c.push(r,o,a);this.setIndex(c),this.addAttribute("position",new ct(u,3)),this.addAttribute("normal",new ct(d,3)),this.addAttribute("uv",new ct(g,2))}function fe(){Object.defineProperty(this,"id",{value:hh++}),this.uuid=Ee.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function Je(t){fe.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
251
+ }`;var yt=document.querySelector(".landscape"),Ct=window.innerWidth,Y=window.innerHeight,lt,St,ut,At,Dt={x:0,y:0,xDamped:0,yDamped:0},_t=typeof window.orientation<"u";K();function K(){H(),m(),f(),b(),_t?window.addEventListener("touchmove",X,{passive:!1}):window.addEventListener("mousemove",X),window.addEventListener("resize",w),w()}function H(){lt=new THREE.Scene;var st=new THREE.Color(3355443);lt.background=st,lt.fog=new THREE.Fog(st,0,400),O(),ut=new THREE.PerspectiveCamera(60,Ct/Y,.1,1e4),ut.position.y=8,ut.position.z=4;let it=new THREE.AmbientLight(16777215,1);lt.add(it),St=new THREE.WebGLRenderer({canvas:yt,antialias:!0}),St.setPixelRatio=devicePixelRatio,St.setSize(Ct,Y)}function m(){var st=new THREE.PlaneBufferGeometry(100,400,400,400),it={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},Pt=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,it]),vertexShader:ht,fragmentShader:M,wireframe:!1,fog:!0});At=new THREE.Mesh(st,Pt),At.position.z=-180,At.rotation.x=-Math.PI/2,lt.add(At)}function f(){new THREE.TextureLoader().load("",function(st){At.material.uniforms.pallete.value=st,At.material.needsUpdate=!0})}function O(){O=new THREE.Sky,O.scale.setScalar(45e4),O.material.uniforms.turbidity.value=13,O.material.uniforms.rayleigh.value=1.2,O.material.uniforms.luminance.value=1,O.material.uniforms.mieCoefficient.value=.1,O.material.uniforms.mieDirectionalG.value=.58,lt.add(O);let st=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));st.visible=!1,lt.add(st);var it=Math.PI*-.002,Pt=2*Math.PI*-.25;st.position.x=4e5*Math.cos(Pt),st.position.y=4e5*Math.sin(Pt)*Math.sin(it),st.position.z=4e5*Math.sin(Pt)*Math.cos(it),O.material.uniforms.sunPosition.value.copy(st.position)}function w(){Ct=window.innerWidth,Y=window.innerHeight,ut.aspect=Ct/Y,ut.updateProjectionMatrix(),St.setSize(Ct,Y)}function X(st){st.preventDefault();var it,Pt;st.type=="mousemove"?(it=st.clientX,Pt=st.clientY):(it=st.changedTouches[0].clientX,Pt=st.changedTouches[0].clientY),Dt.x=it,Dt.y=Pt}function b(){requestAnimationFrame(b),Dt.xDamped=Z(Dt.xDamped,Dt.x,.1),Dt.yDamped=Z(Dt.yDamped,Dt.y,.1);var st=performance.now()*.001;At.material.uniforms.time.value=st,At.material.uniforms.scroll.value=st+F(Dt.yDamped,0,Y,0,4),At.material.uniforms.distortCenter.value=Math.sin(st)*.1,At.material.uniforms.roadWidth.value=F(Dt.xDamped,0,Ct,1,4.5),ut.position.y=F(Dt.yDamped,0,Y,4,11),St.render(lt,ut)}function F(st,it,Pt,Lt,Gt){return Lt+(Gt-Lt)*((st-it)/(Pt-it))}function Z(st,it,Pt){return(1-Pt)*st+Pt*it}},$=()=>{const ht=document.querySelector(".overlay"),M=document.querySelector(".content__title");charming(M);const yt=Array.from(M.querySelectorAll("span"));TweenMax.to(ht,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(yt,{opacity:0}),TweenMax.staggerTo(yt,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1);const Ct=document.querySelector(".content__subtitle");TweenMax.set(Ct,{opacity:0}),TweenMax.to(Ct,1.5,{ease:Expo.easeOut,startAt:{y:30},opacity:1,y:0})},mt=()=>{Ot(),$()};return Se.onMounted(()=>{mt()}),(ht,M)=>(Se.openBlock(),Se.createElementBlock(Se.Fragment,null,[Se.createElementVNode("div",Wa,[Xa,Se.createElementVNode("h2",qa,[Se.renderSlot(ht.$slots,"default")])]),Ya],64))}}),Th="";(function(p,Ot){typeof Fi=="object"&&typeof module<"u"?Ot(Fi):typeof define=="function"&&define.amd?define(["exports"],Ot):Ot(p.THREE={})})(window,function(p){function Ot(){}function $(t,e){this.x=t||0,this.y=e||0}function mt(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function ht(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function M(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function yt(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function Ct(t,e,i,n,r,o,s,a,h,l){Object.defineProperty(this,"id",{value:nh++}),this.uuid=Ee.generateUUID(),this.name="",this.image=t!==void 0?t:Ct.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:Ct.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=r!==void 0?r:1006,this.minFilter=o!==void 0?o:1008,this.anisotropy=h!==void 0?h:1,this.format=s!==void 0?s:1023,this.type=a!==void 0?a:1009,this.offset=new $(0,0),this.repeat=new $(1,1),this.center=new $(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new yt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=l!==void 0?l:3e3,this.version=0,this.onUpdate=null}function Y(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function lt(t,e,i){this.width=t,this.height=e,this.scissor=new Y(0,0,t,e),this.scissorTest=!1,this.viewport=new Y(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new Ct(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function St(t,e,i){lt.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function ut(t,e,i,n,r,o,s,a,h,l,c,u){Ct.call(this,null,o,s,a,h,l,n,r,c,u),this.image={data:t,width:e,height:i},this.magFilter=h!==void 0?h:1003,this.minFilter=l!==void 0?l:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function At(t,e){this.min=t!==void 0?t:new M(1/0,1/0,1/0),this.max=e!==void 0?e:new M(-1/0,-1/0,-1/0)}function Dt(t,e){this.center=t!==void 0?t:new M,this.radius=e!==void 0?e:0}function _t(t,e){this.normal=t!==void 0?t:new M(1,0,0),this.constant=e!==void 0?e:0}function K(t,e,i,n,r,o){this.planes=[t!==void 0?t:new _t,e!==void 0?e:new _t,i!==void 0?i:new _t,n!==void 0?n:new _t,r!==void 0?r:new _t,o!==void 0?o:new _t]}function H(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function m(){function t(r,o){i!==!1&&(n(r,o),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(r){n=r},setContext:function(r){e=r}}}function f(t){function e(n,r){var o=n.array,s=n.dynamic?35048:35044,a=t.createBuffer();return t.bindBuffer(r,a),t.bufferData(r,o,s),n.onUploadCallback(),r=5126,o instanceof Float32Array?r=5126:o instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):o instanceof Uint16Array?r=5123:o instanceof Int16Array?r=5122:o instanceof Uint32Array?r=5125:o instanceof Int32Array?r=5124:o instanceof Int8Array?r=5120:o instanceof Uint8Array&&(r=5121),{buffer:a,type:r,bytesPerElement:o.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var r=i.get(n);r&&(t.deleteBuffer(r.buffer),i.delete(n))},update:function(n,r){n.isInterleavedBufferAttribute&&(n=n.data);var o=i.get(n);if(o===void 0)i.set(n,e(n,r));else if(o.version<n.version){var s=n,a=s.array,h=s.updateRange;t.bindBuffer(r,o.buffer),s.dynamic===!1?t.bufferData(r,a,35044):h.count===-1?t.bufferSubData(r,0,a):h.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(r,h.offset*a.BYTES_PER_ELEMENT,a.subarray(h.offset,h.offset+h.count)),h.count=-1),o.version=n.version}}}}function O(t,e,i,n,r,o){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new M,this.vertexNormals=Array.isArray(n)?n:[],this.color=r&&r.isColor?r:new H,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=o!==void 0?o:0}function w(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||w.DefaultOrder}function X(){this.mask=1}function b(){Object.defineProperty(this,"id",{value:oh++}),this.uuid=Ee.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=b.DefaultUp.clone();var t=new M,e=new w,i=new ht,n=new M(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new mt},normalMatrix:{value:new yt}}),this.matrix=new mt,this.matrixWorld=new mt,this.matrixAutoUpdate=b.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new X,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function F(){Object.defineProperty(this,"id",{value:sh+=2}),this.uuid=Ee.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function Z(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function st(t,e,i){Z.call(this,new Int8Array(t),e,i)}function it(t,e,i){Z.call(this,new Uint8Array(t),e,i)}function Pt(t,e,i){Z.call(this,new Uint8ClampedArray(t),e,i)}function Lt(t,e,i){Z.call(this,new Int16Array(t),e,i)}function Gt(t,e,i){Z.call(this,new Uint16Array(t),e,i)}function jt(t,e,i){Z.call(this,new Int32Array(t),e,i)}function ie(t,e,i){Z.call(this,new Uint32Array(t),e,i)}function ct(t,e,i){Z.call(this,new Float32Array(t),e,i)}function kt(t,e,i){Z.call(this,new Float64Array(t),e,i)}function Me(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function gi(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Rt(){Object.defineProperty(this,"id",{value:ah+=2}),this.uuid=Ee.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function Fe(t,e,i,n,r,o){F.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new vi(t,e,i,n,r,o)),this.mergeVertices()}function vi(t,e,i,n,r,o){function s(x,S,P,G,N,q,V,ot,T,A,tt){var vt=q/T,ft=V/A,at=q/2,Ht=V/2,It=ot/2;V=T+1;var $t=A+1,Xt=q=0,Qt,re,me=new M;for(re=0;re<$t;re++){var Ae=re*ft-Ht;for(Qt=0;Qt<V;Qt++)me[x]=(Qt*vt-at)*G,me[S]=Ae*N,me[P]=It,l.push(me.x,me.y,me.z),me[x]=0,me[S]=0,me[P]=0<ot?1:-1,c.push(me.x,me.y,me.z),u.push(Qt/T),u.push(1-re/A),q+=1}for(re=0;re<A;re++)for(Qt=0;Qt<T;Qt++)x=d+Qt+V*(re+1),S=d+(Qt+1)+V*(re+1),P=d+(Qt+1)+V*re,h.push(d+Qt+V*re,x,P),h.push(x,S,P),Xt+=6;a.addGroup(g,Xt,tt),g+=Xt,d+=q}Rt.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:o};var a=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,r=Math.floor(r)||1,o=Math.floor(o)||1;var h=[],l=[],c=[],u=[],d=0,g=0;s("z","y","x",-1,-1,i,e,t,o,r,0),s("z","y","x",1,-1,i,e,-t,o,r,1),s("x","z","y",1,1,t,i,e,n,o,2),s("x","z","y",1,-1,t,i,-e,n,o,3),s("x","y","z",1,-1,t,e,i,n,r,4),s("x","y","z",-1,-1,t,e,-i,n,r,5),this.setIndex(h),this.addAttribute("position",new ct(l,3)),this.addAttribute("normal",new ct(c,3)),this.addAttribute("uv",new ct(u,2))}function Ti(t,e,i,n){F.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new oi(t,e,i,n)),this.mergeVertices()}function oi(t,e,i,n){Rt.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var r=t/2,o=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var s=i+1,a=n+1,h=t/i,l=e/n,c=[],u=[],d=[],g=[];for(t=0;t<a;t++){var x=t*l-o;for(e=0;e<s;e++)u.push(e*h-r,-x,0),d.push(0,0,1),g.push(e/i),g.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)r=e+s*(t+1),o=e+1+s*(t+1),a=e+1+s*t,c.push(e+s*t,r,a),c.push(r,o,a);this.setIndex(c),this.addAttribute("position",new ct(u,3)),this.addAttribute("normal",new ct(d,3)),this.addAttribute("uv",new ct(g,2))}function fe(){Object.defineProperty(this,"id",{value:hh++}),this.uuid=Ee.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function Je(t){fe.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
252
252
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
253
253
  }`,this.fragmentShader=`void main() {
254
254
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chbim-plugins",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "description": "一个简单的组件库",
6
6
  "main": "chbim-plugins.js",
7
7
  "scripts": {