soonspacejs 2.11.21 → 2.11.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import*as e from"three";import{Vector3 as t,Euler as n,Box3 as i,Scene as r,Quaternion as s,Object3D as o,CubeTextureLoader as a,HalfFloatType as l,EquirectangularReflectionMapping as c,TextureLoader as h,Color as u,Texture as d,FileLoader as p,Vector2 as f,Matrix4 as m,BufferAttribute as g,BufferGeometry as v,Float32BufferAttribute as y,LineBasicMaterial as w,Line as x,Line3 as A,MathUtils as b,CurvePath as T,LineCurve as S,LineCurve3 as E,Bone as C,Uint16BufferAttribute as D,SkinnedMesh as M,Skeleton as P,AnimationClip as B,VectorKeyframeTrack as O,QuaternionKeyframeTrack as I,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as k,BooleanKeyframeTrack as z,NumberKeyframeTrack as N,ColorKeyframeTrack as j,StringKeyframeTrack as _,NormalAnimationBlendMode as G,REVISION as H,BasicDepthPacking as V,UnsignedByteType as Q,DepthTexture as W,DepthStencilFormat as Y,UnsignedInt248Type as K,UnsignedIntType as X,WebGLRenderTarget as Z,BackSide as q,DoubleSide as J,ShaderMaterial as $,FrontSide as ee,Uniform as te,RepeatWrapping as ne,LoadingManager as ie,NearestFilter as re,LinearFilter as se,LinearMipmapLinearFilter as oe,NoBlending as ae,RGBADepthPacking as le,PerspectiveCamera as ce,Mesh as he,MeshDepthMaterial as ue,LinearEncoding as de,sRGBEncoding as pe,Vector4 as fe,Camera as me,Material as ge,FogExp2 as ve,LineSegments as ye,EdgesGeometry as we,MeshStandardMaterial as xe,Raycaster as Ae,OrthographicCamera as be,WebGLRenderer as Te,PCFSoftShadowMap as Se,Spherical as Ee,Sphere as Ce,DataTexture as De,NoColorSpace as Me,WebGLMultipleRenderTargets as Pe,RedFormat as Be,FloatType as Oe,RGBAFormat as Ie,ShaderChunk as Le,WebGLCubeRenderTarget as Re,CubeCamera as Fe,PMREMGenerator as Ue,FramebufferTexture as ke,Matrix3 as ze,TangentSpaceNormalMap as Ne,GLSL3 as je,VideoTexture as _e,GLBufferAttribute as Ge,InterleavedBufferAttribute as He,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as We,LinearSRGBColorSpace as Ye,UVMapping as Ke,CubeTexture as Xe,ReinhardToneMapping as Ze,CineonToneMapping as qe,ACESFilmicToneMapping as Je,Sprite as $e,SphereGeometry as et,CircleGeometry as tt,PlaneGeometry as nt,ShapeGeometry as it,Shape as rt,Box2 as st,Triangle as ot,Group as at,AmbientLight as lt,DirectionalLight as ct,HemisphereLight as ht,SpotLight as ut,PointLight as dt,RectAreaLight as pt,Loader as ft,LoaderUtils as mt,ClampToEdgeWrapping as gt,PropertyBinding as vt,ShapeUtils as yt,ImageLoader as wt,InstancedMesh as xt,MeshBasicMaterial as At,SpriteMaterial as bt,CanvasTexture as Tt,GridHelper as St,AxesHelper as Et,Box3Helper as Ct,DirectionalLightHelper as Dt,HemisphereLightHelper as Mt,SpotLightHelper as Pt,PointLightHelper as Bt,Plane as Ot,MeshPhongMaterial as It}from"three";import{RGBELoader as Lt}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Rt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Ft}from"three/examples/jsm/environments/RoomEnvironment.js";import Ut from"three/examples/jsm/libs/stats.module.js";import{Sky as kt}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as zt,deinterleaveGeometry as Nt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as jt}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as _t,computeBoundsTree as Gt,disposeBoundsTree as Ht,acceleratedRaycast as Vt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Qt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Wt}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Yt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as Kt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as Xt}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as Zt}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as qt from"three/examples/jsm/utils/SkeletonUtils.js";import*as Jt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as $t}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as en}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var tn="soonspacejs",nn="2.11.21",rn="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function sn(){throw new Error("setTimeout has not been defined")}function on(){throw new Error("clearTimeout has not been defined")}var an=sn,ln=on;function cn(e){if(an===setTimeout)return setTimeout(e,0);if((an===sn||!an)&&setTimeout)return an=setTimeout,setTimeout(e,0);try{return an(e,0)}catch(t){try{return an.call(null,e,0)}catch(t){return an.call(this,e,0)}}}"function"==typeof rn.setTimeout&&(an=setTimeout),"function"==typeof rn.clearTimeout&&(ln=clearTimeout);var hn,un=[],dn=!1,pn=-1;function fn(){dn&&hn&&(dn=!1,hn.length?un=hn.concat(un):pn=-1,un.length&&mn())}function mn(){if(!dn){var e=cn(fn);dn=!0;for(var t=un.length;t;){for(hn=un,un=[];++pn<t;)hn&&hn[pn].run();pn=-1,t=un.length}hn=null,dn=!1,function(e){if(ln===clearTimeout)return clearTimeout(e);if((ln===on||!ln)&&clearTimeout)return ln=clearTimeout,clearTimeout(e);try{return ln(e)}catch(t){try{return ln.call(null,e)}catch(t){return ln.call(this,e)}}}(e)}}function gn(e,t){this.fun=e,this.array=t}gn.prototype.run=function(){this.fun.apply(null,this.array)};function vn(){}var yn=vn,wn=vn,xn=vn,An=vn,bn=vn,Tn=vn,Sn=vn;var En=rn.performance||{},Cn=En.now||En.mozNow||En.msNow||En.oNow||En.webkitNow||function(){return(new Date).getTime()};var Dn=new Date;var Mn,Pn={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];un.push(new gn(e,t)),1!==un.length||dn||cn(mn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:yn,addListener:wn,once:xn,off:An,removeListener:bn,removeAllListeners:Tn,emit:Sn,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Cn.call(En),n=Math.floor(t),i=Math.floor(t%1*1e9);return e&&(n-=e[0],(i-=e[1])<0&&(n--,i+=1e9)),[n,i]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Dn)/1e3}},Bn={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Bn.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*Bn.Bounce.In(2*e):.5*Bn.Bounce.Out(2*e-1)+.5}}},On="undefined"==typeof self&&void 0!==Pn&&Pn.hrtime?function(){var e=Pn.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},In=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=On()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<n.length;i++){var r=this._tweens[n[i]],s=!t;r&&!1===r.update(e,s)&&!t&&delete this._tweens[n[i]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),Ln={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Ln.Utils.Linear;return t<0?s(e[0],e[1],i):t>1?s(e[n],e[n-1],n-i):s(e[r],e[r+1>n?n:r+1],i-r)},Bezier:function(e,t){for(var n=0,i=e.length-1,r=Math.pow,s=Ln.Utils.Bernstein,o=0;o<=i;o++)n+=r(1-t,i-o)*r(t,o)*e[o]*s(i,o);return n},CatmullRom:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Ln.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(r=Math.floor(i=n*(1+t))),s(e[(r-1+n)%n],e[r],e[(r+1)%n],e[(r+2)%n],i-r)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-i)-e[0]):t>1?e[n]-(s(e[n],e[n],e[n-1],e[n-1],i-n)-e[n]):s(e[r?r-1:0],e[r],e[n<r+1?n:r+1],e[n<r+2?n:r+2],i-r)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=Ln.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Mn=[1],function(e){var t=1;if(Mn[e])return Mn[e];for(var n=e;n>1;n--)t*=n;return Mn[e]=t,t}),CatmullRom:function(e,t,n,i,r){var s=.5*(n-e),o=.5*(i-t),a=r*r;return(2*t-2*n+s+o)*(r*a)+(-3*t+3*n-2*s-o)*a+s*r+t}}},Rn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Fn=new In,Un=function(){function e(e,t){void 0===t&&(t=Fn),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Bn.Linear.None,this._interpolationFunction=Ln.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Rn.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"==typeof e?On()+parseFloat(e):e:On(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,i){for(var r in n){var s=e[r],o=Array.isArray(s),a=o?"array":typeof s,l=!o&&Array.isArray(n[r]);if("undefined"!==a&&"function"!==a){if(l){var c=n[r];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,s)),n[r]=[s].concat(c)}if("object"!==a&&!o||!s||l)void 0===t[r]&&(t[r]=s),o||(t[r]*=1),i[r]=l?n[r].slice().reverse():t[r]||0;else{for(var h in t[r]=o?[]:{},s)t[r][h]=s[h];i[r]=o?[]:{},this._setupProperties(s,t[r],n[r],i[r])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=On()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=On()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(void 0===e&&(e=On()),void 0===t&&(t=!0),this._isPaused)return!0;var n,i,r=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),i=(e-this._startTime)/this._duration,i=0===this._duration||i>1?1:i;var s=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),1===i){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var o=0,a=this._chainedTweens.length;o<a;o++)this._chainedTweens[o].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,i){for(var r in n)if(void 0!==t[r]){var s=t[r]||0,o=n[r],a=Array.isArray(e[r]),l=Array.isArray(o);!a&&l?e[r]=this._interpolationFunction(o,i):"object"==typeof o&&o?this._updateProperties(e[r],s,o,i):"number"==typeof(o=this._handleRelativeValue(s,o))&&(e[r]=s+(o-s)*i)}},e.prototype._handleRelativeValue=function(e,t){return"string"!=typeof t?t:"+"===t.charAt(0)||"-"===t.charAt(0)?e+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];this._valuesStartRepeat[e]="string"==typeof n?this._valuesStartRepeat[e]+parseFloat(n):this._valuesEnd[e],this._valuesEnd[e]=t},e}(),kn=Rn.nextId,zn=Fn,Nn=zn.getAll.bind(zn),jn=zn.removeAll.bind(zn),_n=zn.add.bind(zn),Gn=zn.remove.bind(zn),Hn=zn.update.bind(zn),Vn={Easing:Bn,Group:In,Interpolation:Ln,now:On,Sequence:Rn,nextId:kn,Tween:Un,VERSION:"18.6.4",getAll:Nn,removeAll:jn,add:_n,remove:Gn,update:Hn};
1
+ import*as e from"three";import{Vector3 as t,Euler as n,Box3 as i,Scene as r,Quaternion as s,Object3D as o,CubeTextureLoader as a,HalfFloatType as l,EquirectangularReflectionMapping as c,TextureLoader as h,Color as u,Texture as d,FileLoader as p,Vector2 as f,Matrix4 as m,BufferAttribute as g,BufferGeometry as v,Float32BufferAttribute as y,LineBasicMaterial as w,Line as x,Line3 as A,MathUtils as b,CurvePath as T,LineCurve as S,LineCurve3 as E,Bone as C,Uint16BufferAttribute as D,SkinnedMesh as M,Skeleton as P,AnimationClip as B,VectorKeyframeTrack as O,QuaternionKeyframeTrack as I,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as k,BooleanKeyframeTrack as z,NumberKeyframeTrack as N,ColorKeyframeTrack as j,StringKeyframeTrack as _,NormalAnimationBlendMode as G,REVISION as H,BasicDepthPacking as V,UnsignedByteType as Q,DepthTexture as W,DepthStencilFormat as Y,UnsignedInt248Type as K,UnsignedIntType as X,WebGLRenderTarget as Z,BackSide as q,DoubleSide as J,ShaderMaterial as $,FrontSide as ee,Uniform as te,RepeatWrapping as ne,LoadingManager as ie,NearestFilter as re,LinearFilter as se,LinearMipmapLinearFilter as oe,NoBlending as ae,RGBADepthPacking as le,PerspectiveCamera as ce,Mesh as he,MeshDepthMaterial as ue,LinearEncoding as de,sRGBEncoding as pe,Vector4 as fe,Camera as me,Material as ge,FogExp2 as ve,LineSegments as ye,EdgesGeometry as we,MeshStandardMaterial as xe,Raycaster as Ae,OrthographicCamera as be,WebGLRenderer as Te,PCFSoftShadowMap as Se,Spherical as Ee,Sphere as Ce,DataTexture as De,NoColorSpace as Me,WebGLMultipleRenderTargets as Pe,RedFormat as Be,FloatType as Oe,RGBAFormat as Ie,ShaderChunk as Le,WebGLCubeRenderTarget as Re,CubeCamera as Fe,PMREMGenerator as Ue,FramebufferTexture as ke,Matrix3 as ze,TangentSpaceNormalMap as Ne,GLSL3 as je,VideoTexture as _e,GLBufferAttribute as Ge,InterleavedBufferAttribute as He,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as We,LinearSRGBColorSpace as Ye,UVMapping as Ke,CubeTexture as Xe,ReinhardToneMapping as Ze,CineonToneMapping as qe,ACESFilmicToneMapping as Je,Sprite as $e,SphereGeometry as et,CircleGeometry as tt,PlaneGeometry as nt,ShapeGeometry as it,Shape as rt,Box2 as st,Triangle as ot,Group as at,AmbientLight as lt,DirectionalLight as ct,HemisphereLight as ht,SpotLight as ut,PointLight as dt,RectAreaLight as pt,Loader as ft,LoaderUtils as mt,ClampToEdgeWrapping as gt,PropertyBinding as vt,ShapeUtils as yt,ImageLoader as wt,InstancedMesh as xt,MeshBasicMaterial as At,SpriteMaterial as bt,CanvasTexture as Tt,GridHelper as St,AxesHelper as Et,Box3Helper as Ct,DirectionalLightHelper as Dt,HemisphereLightHelper as Mt,SpotLightHelper as Pt,PointLightHelper as Bt,Plane as Ot,MeshPhongMaterial as It}from"three";import{RGBELoader as Lt}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Rt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Ft}from"three/examples/jsm/environments/RoomEnvironment.js";import Ut from"three/examples/jsm/libs/stats.module.js";import{Sky as kt}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as zt,deinterleaveGeometry as Nt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as jt}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as _t,computeBoundsTree as Gt,disposeBoundsTree as Ht,acceleratedRaycast as Vt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Qt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Wt}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Yt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as Kt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as Xt}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as Zt}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as qt from"three/examples/jsm/utils/SkeletonUtils.js";import*as Jt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as $t}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as en}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var tn="soonspacejs",nn="2.11.22",rn="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function sn(){throw new Error("setTimeout has not been defined")}function on(){throw new Error("clearTimeout has not been defined")}var an=sn,ln=on;function cn(e){if(an===setTimeout)return setTimeout(e,0);if((an===sn||!an)&&setTimeout)return an=setTimeout,setTimeout(e,0);try{return an(e,0)}catch(t){try{return an.call(null,e,0)}catch(t){return an.call(this,e,0)}}}"function"==typeof rn.setTimeout&&(an=setTimeout),"function"==typeof rn.clearTimeout&&(ln=clearTimeout);var hn,un=[],dn=!1,pn=-1;function fn(){dn&&hn&&(dn=!1,hn.length?un=hn.concat(un):pn=-1,un.length&&mn())}function mn(){if(!dn){var e=cn(fn);dn=!0;for(var t=un.length;t;){for(hn=un,un=[];++pn<t;)hn&&hn[pn].run();pn=-1,t=un.length}hn=null,dn=!1,function(e){if(ln===clearTimeout)return clearTimeout(e);if((ln===on||!ln)&&clearTimeout)return ln=clearTimeout,clearTimeout(e);try{return ln(e)}catch(t){try{return ln.call(null,e)}catch(t){return ln.call(this,e)}}}(e)}}function gn(e,t){this.fun=e,this.array=t}gn.prototype.run=function(){this.fun.apply(null,this.array)};function vn(){}var yn=vn,wn=vn,xn=vn,An=vn,bn=vn,Tn=vn,Sn=vn;var En=rn.performance||{},Cn=En.now||En.mozNow||En.msNow||En.oNow||En.webkitNow||function(){return(new Date).getTime()};var Dn=new Date;var Mn,Pn={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];un.push(new gn(e,t)),1!==un.length||dn||cn(mn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:yn,addListener:wn,once:xn,off:An,removeListener:bn,removeAllListeners:Tn,emit:Sn,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Cn.call(En),n=Math.floor(t),i=Math.floor(t%1*1e9);return e&&(n-=e[0],(i-=e[1])<0&&(n--,i+=1e9)),[n,i]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Dn)/1e3}},Bn={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Bn.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*Bn.Bounce.In(2*e):.5*Bn.Bounce.Out(2*e-1)+.5}}},On="undefined"==typeof self&&void 0!==Pn&&Pn.hrtime?function(){var e=Pn.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},In=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=On()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<n.length;i++){var r=this._tweens[n[i]],s=!t;r&&!1===r.update(e,s)&&!t&&delete this._tweens[n[i]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),Ln={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Ln.Utils.Linear;return t<0?s(e[0],e[1],i):t>1?s(e[n],e[n-1],n-i):s(e[r],e[r+1>n?n:r+1],i-r)},Bezier:function(e,t){for(var n=0,i=e.length-1,r=Math.pow,s=Ln.Utils.Bernstein,o=0;o<=i;o++)n+=r(1-t,i-o)*r(t,o)*e[o]*s(i,o);return n},CatmullRom:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Ln.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(r=Math.floor(i=n*(1+t))),s(e[(r-1+n)%n],e[r],e[(r+1)%n],e[(r+2)%n],i-r)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-i)-e[0]):t>1?e[n]-(s(e[n],e[n],e[n-1],e[n-1],i-n)-e[n]):s(e[r?r-1:0],e[r],e[n<r+1?n:r+1],e[n<r+2?n:r+2],i-r)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=Ln.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Mn=[1],function(e){var t=1;if(Mn[e])return Mn[e];for(var n=e;n>1;n--)t*=n;return Mn[e]=t,t}),CatmullRom:function(e,t,n,i,r){var s=.5*(n-e),o=.5*(i-t),a=r*r;return(2*t-2*n+s+o)*(r*a)+(-3*t+3*n-2*s-o)*a+s*r+t}}},Rn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Fn=new In,Un=function(){function e(e,t){void 0===t&&(t=Fn),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Bn.Linear.None,this._interpolationFunction=Ln.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Rn.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"==typeof e?On()+parseFloat(e):e:On(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,i){for(var r in n){var s=e[r],o=Array.isArray(s),a=o?"array":typeof s,l=!o&&Array.isArray(n[r]);if("undefined"!==a&&"function"!==a){if(l){var c=n[r];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,s)),n[r]=[s].concat(c)}if("object"!==a&&!o||!s||l)void 0===t[r]&&(t[r]=s),o||(t[r]*=1),i[r]=l?n[r].slice().reverse():t[r]||0;else{for(var h in t[r]=o?[]:{},s)t[r][h]=s[h];i[r]=o?[]:{},this._setupProperties(s,t[r],n[r],i[r])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=On()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=On()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(void 0===e&&(e=On()),void 0===t&&(t=!0),this._isPaused)return!0;var n,i,r=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),i=(e-this._startTime)/this._duration,i=0===this._duration||i>1?1:i;var s=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),1===i){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var o=0,a=this._chainedTweens.length;o<a;o++)this._chainedTweens[o].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,i){for(var r in n)if(void 0!==t[r]){var s=t[r]||0,o=n[r],a=Array.isArray(e[r]),l=Array.isArray(o);!a&&l?e[r]=this._interpolationFunction(o,i):"object"==typeof o&&o?this._updateProperties(e[r],s,o,i):"number"==typeof(o=this._handleRelativeValue(s,o))&&(e[r]=s+(o-s)*i)}},e.prototype._handleRelativeValue=function(e,t){return"string"!=typeof t?t:"+"===t.charAt(0)||"-"===t.charAt(0)?e+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];this._valuesStartRepeat[e]="string"==typeof n?this._valuesStartRepeat[e]+parseFloat(n):this._valuesEnd[e],this._valuesEnd[e]=t},e}(),kn=Rn.nextId,zn=Fn,Nn=zn.getAll.bind(zn),jn=zn.removeAll.bind(zn),_n=zn.add.bind(zn),Gn=zn.remove.bind(zn),Hn=zn.update.bind(zn),Vn={Easing:Bn,Group:In,Interpolation:Ln,now:On,Sequence:Rn,nextId:kn,Tween:Un,VERSION:"18.6.4",getAll:Nn,removeAll:jn,add:_n,remove:Gn,update:Hn};
2
2
  /*!
3
3
  * camera-controls
4
4
  * https://github.com/yomotsu/camera-controls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soonspacejs",
3
- "version": "2.11.21",
3
+ "version": "2.11.22",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
@@ -21,12 +21,11 @@
21
21
  "author": "xunwei",
22
22
  "license": "UNLICENSED",
23
23
  "dependencies": {
24
- "@three3d/decal": "file:../../libs/three3d-decal.tgz",
25
24
  "camera-controls": "^2.7.2",
26
25
  "three-mesh-bvh": "0.6.8"
27
26
  },
28
27
  "peerDependencies": {
29
28
  "three": ">=0.155.0"
30
29
  },
31
- "gitHead": "0ff14d710fe4baa6231a2c9900590c42d75cd5a9"
30
+ "gitHead": "d45e792843614c48a20b8e6cd9d79e4a9df5726a"
32
31
  }