1 line
530 KiB
JavaScript
1 line
530 KiB
JavaScript
|
(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ArcCurve:()=>si,CatmullRomCurve3:()=>ui,CubicBezierCurve:()=>mi,CubicBezierCurve3:()=>gi,EllipseCurve:()=>ri,LineCurve:()=>vi,LineCurve3:()=>yi,QuadraticBezierCurve:()=>xi,QuadraticBezierCurve3:()=>_i,SplineCurve:()=>Mi});var n={};t.r(n),t.d(n,{LineBasicMaterial:()=>Dn,LineDashedMaterial:()=>Hr,Material:()=>we,MeshBasicMaterial:()=>Se,MeshDepthMaterial:()=>Br,MeshDistanceMaterial:()=>Gr,MeshLambertMaterial:()=>Fr,MeshMatcapMaterial:()=>kr,MeshNormalMaterial:()=>Ur,MeshPhongMaterial:()=>Or,MeshPhysicalMaterial:()=>Ir,MeshStandardMaterial:()=>Dr,MeshToonMaterial:()=>zr,PointsMaterial:()=>Tn,RawShaderMaterial:()=>Nr,ShaderMaterial:()=>Cr,ShadowMaterial:()=>Ar,SpriteMaterial:()=>hn});var i={};t.r(i),t.d(i,{BoxBufferGeometry:()=>qr,BoxGeometry:()=>qr,CircleBufferGeometry:()=>Yr,CircleGeometry:()=>Yr,ConeBufferGeometry:()=>Jr,ConeGeometry:()=>Jr,CylinderBufferGeometry:()=>Zr,CylinderGeometry:()=>Zr,DodecahedronBufferGeometry:()=>Qr,DodecahedronGeometry:()=>Qr,EdgesGeometry:()=>is,ExtrudeBufferGeometry:()=>Cs,ExtrudeGeometry:()=>Cs,IcosahedronBufferGeometry:()=>Ds,IcosahedronGeometry:()=>Ds,LatheBufferGeometry:()=>Is,LatheGeometry:()=>Is,OctahedronBufferGeometry:()=>Os,OctahedronGeometry:()=>Os,ParametricBufferGeometry:()=>zs,ParametricGeometry:()=>zs,PlaneBufferGeometry:()=>Us,PlaneGeometry:()=>Us,PolyhedronBufferGeometry:()=>Kr,PolyhedronGeometry:()=>Kr,RingBufferGeometry:()=>Fs,RingGeometry:()=>Fs,ShapeBufferGeometry:()=>Bs,ShapeGeometry:()=>Bs,SphereBufferGeometry:()=>Gs,SphereGeometry:()=>Gs,TetrahedronBufferGeometry:()=>ks,TetrahedronGeometry:()=>ks,TextBufferGeometry:()=>Hs,TextGeometry:()=>Hs,TorusBufferGeometry:()=>Vs,TorusGeometry:()=>Vs,TorusKnotBufferGeometry:()=>Ws,TorusKnotGeometry:()=>Ws,TubeBufferGeometry:()=>js,TubeGeometry:()=>js,WireframeGeometry:()=>Xs});const r=100,s=301,a=302,o=306,l=307,c=1e3,h=1001,u=1002,d=1003,p=1004,f=1005,m=1006,g=1008,v=1012,y=1014,x=1015,_=1016,M=1020,b=1022,w=1023,S=1026,E=1027,T=2300,A=2301,L=2302,R=3e3,P=7680,C="300 es";class N{constructor(t=0,e=0,n=0,i=1){this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x
|