soonspacejs 2.10.2 → 2.10.3

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,CubeTextureLoader as o,HalfFloatType as a,EquirectangularReflectionMapping as l,TextureLoader as c,Color as h,Texture as u,FileLoader as d,Vector2 as p,Matrix4 as f,BufferAttribute as m,BufferGeometry as g,Float32BufferAttribute as v,LineBasicMaterial as y,Line as w,Line3 as x,MathUtils as A,CurvePath as b,LineCurve as T,LineCurve3 as E,Bone as S,Uint16BufferAttribute as C,SkinnedMesh as D,Skeleton as M,AnimationClip as P,VectorKeyframeTrack as B,QuaternionKeyframeTrack as O,Object3D as I,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as z,BooleanKeyframeTrack as k,NumberKeyframeTrack as N,ColorKeyframeTrack as j,StringKeyframeTrack as H,NormalAnimationBlendMode as G,REVISION as _,BasicDepthPacking as V,UnsignedByteType as Q,DepthTexture as Y,DepthStencilFormat as W,UnsignedInt248Type as X,UnsignedIntType as K,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,Fog as ve,LineSegments as ye,EdgesGeometry as we,MeshStandardMaterial as xe,OrthographicCamera as Ae,WebGLRenderer as be,PCFSoftShadowMap as Te,Spherical as Ee,Sphere as Se,DataTexture as Ce,NoColorSpace as De,WebGLMultipleRenderTargets as Me,RedFormat as Pe,FloatType as Be,RGBAFormat as Oe,ShaderChunk as Ie,WebGLCubeRenderTarget as Le,CubeCamera as Re,PMREMGenerator as Fe,FramebufferTexture as Ue,Matrix3 as ze,TangentSpaceNormalMap as ke,GLSL3 as Ne,VideoTexture as je,GLBufferAttribute as He,InterleavedBufferAttribute as Ge,Raycaster as _e,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as Ye,LinearSRGBColorSpace as We,UVMapping as Xe,CubeTexture as Ke,Sprite as Ze,SphereGeometry as qe,CircleGeometry as Je,ShapeGeometry as $e,Shape as et,AmbientLight as tt,DirectionalLight as nt,HemisphereLight as it,SpotLight as rt,PointLight as st,RectAreaLight as ot,Loader as at,LoaderUtils as lt,ClampToEdgeWrapping as ct,Group as ht,PropertyBinding as ut,ImageLoader as dt,InstancedMesh as pt,SpriteMaterial as ft,GridHelper as mt,AxesHelper as gt,Box3Helper as vt,PlaneGeometry as yt,MeshBasicMaterial as wt,DirectionalLightHelper as xt,HemisphereLightHelper as At,SpotLightHelper as bt,PointLightHelper as Tt,Box2 as Et,Plane as St,CanvasTexture as Ct,MeshPhongMaterial as Dt}from"three";export*from"three";import{RGBELoader as Mt}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Pt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Bt}from"three/examples/jsm/environments/RoomEnvironment.js";import Ot from"three/examples/jsm/libs/stats.module.js";import{Sky as It}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as Lt,deinterleaveGeometry as Rt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Ft}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as Ut,computeBoundsTree as zt,disposeBoundsTree as kt,acceleratedRaycast as Nt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as jt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Ht}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Gt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as _t}from"three/examples/jsm/loaders/DRACOLoader.js";import*as Vt from"three/examples/jsm/utils/SkeletonUtils.js";import*as Qt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as Yt}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as Wt}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var Xt="soonspacejs",Kt="2.10.2",Zt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function qt(){throw new Error("setTimeout has not been defined")}function Jt(){throw new Error("clearTimeout has not been defined")}var $t=qt,en=Jt;function tn(e){if($t===setTimeout)return setTimeout(e,0);if(($t===qt||!$t)&&setTimeout)return $t=setTimeout,setTimeout(e,0);try{return $t(e,0)}catch(t){try{return $t.call(null,e,0)}catch(t){return $t.call(this,e,0)}}}"function"==typeof Zt.setTimeout&&($t=setTimeout),"function"==typeof Zt.clearTimeout&&(en=clearTimeout);var nn,rn=[],sn=!1,on=-1;function an(){sn&&nn&&(sn=!1,nn.length?rn=nn.concat(rn):on=-1,rn.length&&ln())}function ln(){if(!sn){var e=tn(an);sn=!0;for(var t=rn.length;t;){for(nn=rn,rn=[];++on<t;)nn&&nn[on].run();on=-1,t=rn.length}nn=null,sn=!1,function(e){if(en===clearTimeout)return clearTimeout(e);if((en===Jt||!en)&&clearTimeout)return en=clearTimeout,clearTimeout(e);try{return en(e)}catch(t){try{return en.call(null,e)}catch(t){return en.call(this,e)}}}(e)}}function cn(e,t){this.fun=e,this.array=t}cn.prototype.run=function(){this.fun.apply(null,this.array)};function hn(){}var un=hn,dn=hn,pn=hn,fn=hn,mn=hn,gn=hn,vn=hn;var yn=Zt.performance||{},wn=yn.now||yn.mozNow||yn.msNow||yn.oNow||yn.webkitNow||function(){return(new Date).getTime()};var xn=new Date;var An,bn={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];rn.push(new cn(e,t)),1!==rn.length||sn||tn(ln)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:un,addListener:dn,once:pn,off:fn,removeListener:mn,removeAllListeners:gn,emit:vn,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*wn.call(yn),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-xn)/1e3}},Tn={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-Tn.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*Tn.Bounce.In(2*e):.5*Tn.Bounce.Out(2*e-1)+.5}}},En="undefined"==typeof self&&void 0!==bn&&bn.hrtime?function(){var e=bn.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()},Sn=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=En()),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}(),Cn={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Cn.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=Cn.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=Cn.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=Cn.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(An=[1],function(e){var t=1;if(An[e])return An[e];for(var n=e;n>1;n--)t*=n;return An[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}}},Dn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Mn=new Sn,Pn=function(){function e(e,t){void 0===t&&(t=Mn),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=Tn.Linear.None,this._interpolationFunction=Cn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Dn.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?En()+parseFloat(e):e:En(),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=En()),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=En()),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=En()),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}(),Bn=Dn.nextId,On=Mn,In=On.getAll.bind(On),Ln=On.removeAll.bind(On),Rn=On.add.bind(On),Fn=On.remove.bind(On),Un=On.update.bind(On),zn={Easing:Tn,Group:Sn,Interpolation:Cn,now:En,Sequence:Dn,nextId:Bn,Tween:Pn,VERSION:"18.6.4",getAll:In,removeAll:Ln,add:Rn,remove:Fn,update:Un};
1
+ import*as e from"three";import{Vector3 as t,Euler as n,Box3 as i,Scene as r,Quaternion as s,CubeTextureLoader as o,HalfFloatType as a,EquirectangularReflectionMapping as l,TextureLoader as c,Color as h,Texture as u,FileLoader as d,Vector2 as p,Matrix4 as f,BufferAttribute as m,BufferGeometry as g,Float32BufferAttribute as v,LineBasicMaterial as y,Line as w,Line3 as x,MathUtils as A,CurvePath as b,LineCurve as T,LineCurve3 as E,Bone as S,Uint16BufferAttribute as C,SkinnedMesh as D,Skeleton as M,AnimationClip as P,VectorKeyframeTrack as B,QuaternionKeyframeTrack as O,Object3D as I,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as z,BooleanKeyframeTrack as k,NumberKeyframeTrack as N,ColorKeyframeTrack as j,StringKeyframeTrack as H,NormalAnimationBlendMode as G,REVISION as _,BasicDepthPacking as V,UnsignedByteType as Q,DepthTexture as Y,DepthStencilFormat as W,UnsignedInt248Type as X,UnsignedIntType as K,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,Fog as ve,LineSegments as ye,EdgesGeometry as we,MeshStandardMaterial as xe,OrthographicCamera as Ae,WebGLRenderer as be,PCFSoftShadowMap as Te,Spherical as Ee,Sphere as Se,DataTexture as Ce,NoColorSpace as De,WebGLMultipleRenderTargets as Me,RedFormat as Pe,FloatType as Be,RGBAFormat as Oe,ShaderChunk as Ie,WebGLCubeRenderTarget as Le,CubeCamera as Re,PMREMGenerator as Fe,FramebufferTexture as Ue,Matrix3 as ze,TangentSpaceNormalMap as ke,GLSL3 as Ne,VideoTexture as je,GLBufferAttribute as He,InterleavedBufferAttribute as Ge,Raycaster as _e,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as Ye,LinearSRGBColorSpace as We,UVMapping as Xe,CubeTexture as Ke,Sprite as Ze,SphereGeometry as qe,CircleGeometry as Je,ShapeGeometry as $e,Shape as et,AmbientLight as tt,DirectionalLight as nt,HemisphereLight as it,SpotLight as rt,PointLight as st,RectAreaLight as ot,Loader as at,LoaderUtils as lt,ClampToEdgeWrapping as ct,Group as ht,PropertyBinding as ut,ImageLoader as dt,InstancedMesh as pt,SpriteMaterial as ft,GridHelper as mt,AxesHelper as gt,Box3Helper as vt,PlaneGeometry as yt,MeshBasicMaterial as wt,DirectionalLightHelper as xt,HemisphereLightHelper as At,SpotLightHelper as bt,PointLightHelper as Tt,Box2 as Et,Plane as St,CanvasTexture as Ct,MeshPhongMaterial as Dt}from"three";export*from"three";import{RGBELoader as Mt}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Pt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Bt}from"three/examples/jsm/environments/RoomEnvironment.js";import Ot from"three/examples/jsm/libs/stats.module.js";import{Sky as It}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as Lt,deinterleaveGeometry as Rt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Ft}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as Ut,computeBoundsTree as zt,disposeBoundsTree as kt,acceleratedRaycast as Nt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as jt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Ht}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Gt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as _t}from"three/examples/jsm/loaders/DRACOLoader.js";import*as Vt from"three/examples/jsm/utils/SkeletonUtils.js";import*as Qt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as Yt}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as Wt}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var Xt="soonspacejs",Kt="2.10.3",Zt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function qt(){throw new Error("setTimeout has not been defined")}function Jt(){throw new Error("clearTimeout has not been defined")}var $t=qt,en=Jt;function tn(e){if($t===setTimeout)return setTimeout(e,0);if(($t===qt||!$t)&&setTimeout)return $t=setTimeout,setTimeout(e,0);try{return $t(e,0)}catch(t){try{return $t.call(null,e,0)}catch(t){return $t.call(this,e,0)}}}"function"==typeof Zt.setTimeout&&($t=setTimeout),"function"==typeof Zt.clearTimeout&&(en=clearTimeout);var nn,rn=[],sn=!1,on=-1;function an(){sn&&nn&&(sn=!1,nn.length?rn=nn.concat(rn):on=-1,rn.length&&ln())}function ln(){if(!sn){var e=tn(an);sn=!0;for(var t=rn.length;t;){for(nn=rn,rn=[];++on<t;)nn&&nn[on].run();on=-1,t=rn.length}nn=null,sn=!1,function(e){if(en===clearTimeout)return clearTimeout(e);if((en===Jt||!en)&&clearTimeout)return en=clearTimeout,clearTimeout(e);try{return en(e)}catch(t){try{return en.call(null,e)}catch(t){return en.call(this,e)}}}(e)}}function cn(e,t){this.fun=e,this.array=t}cn.prototype.run=function(){this.fun.apply(null,this.array)};function hn(){}var un=hn,dn=hn,pn=hn,fn=hn,mn=hn,gn=hn,vn=hn;var yn=Zt.performance||{},wn=yn.now||yn.mozNow||yn.msNow||yn.oNow||yn.webkitNow||function(){return(new Date).getTime()};var xn=new Date;var An,bn={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];rn.push(new cn(e,t)),1!==rn.length||sn||tn(ln)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:un,addListener:dn,once:pn,off:fn,removeListener:mn,removeAllListeners:gn,emit:vn,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*wn.call(yn),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-xn)/1e3}},Tn={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-Tn.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*Tn.Bounce.In(2*e):.5*Tn.Bounce.Out(2*e-1)+.5}}},En="undefined"==typeof self&&void 0!==bn&&bn.hrtime?function(){var e=bn.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()},Sn=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=En()),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}(),Cn={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=Cn.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=Cn.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=Cn.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=Cn.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(An=[1],function(e){var t=1;if(An[e])return An[e];for(var n=e;n>1;n--)t*=n;return An[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}}},Dn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Mn=new Sn,Pn=function(){function e(e,t){void 0===t&&(t=Mn),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=Tn.Linear.None,this._interpolationFunction=Cn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Dn.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?En()+parseFloat(e):e:En(),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=En()),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=En()),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=En()),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}(),Bn=Dn.nextId,On=Mn,In=On.getAll.bind(On),Ln=On.removeAll.bind(On),Rn=On.add.bind(On),Fn=On.remove.bind(On),Un=On.update.bind(On),zn={Easing:Tn,Group:Sn,Interpolation:Cn,now:En,Sequence:Dn,nextId:Bn,Tween:Pn,VERSION:"18.6.4",getAll:In,removeAll:Ln,add:Rn,remove:Fn,update:Un};
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.10.2",
3
+ "version": "2.10.3",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
@@ -29,5 +29,5 @@
29
29
  "peerDependencies": {
30
30
  "three": ">=0.155.0"
31
31
  },
32
- "gitHead": "3f1db88ee5d1dce23e6758fc79edd69d0b456982"
32
+ "gitHead": "553c421304240c2b0ec009c7335b5e1e9ed57bd8"
33
33
  }