soonspacejs 2.11.2 → 2.11.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 +1 -1
- package/package.json +2 -2
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 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,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 ze,Matrix3 as ke,TangentSpaceNormalMap as Ne,GLSL3 as je,VideoTexture as He,GLBufferAttribute as Ge,InterleavedBufferAttribute as _e,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as Ye,LinearSRGBColorSpace as We,UVMapping as Xe,CubeTexture as Ke,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,AmbientLight as st,DirectionalLight as ot,HemisphereLight as at,SpotLight as lt,PointLight as ct,RectAreaLight as ht,Loader as ut,LoaderUtils as dt,ClampToEdgeWrapping as pt,Group as ft,PropertyBinding as mt,ShapeUtils as gt,ImageLoader as vt,InstancedMesh as yt,CanvasTexture as wt,SpriteMaterial as xt,GridHelper as At,AxesHelper as bt,Box3Helper as Tt,MeshBasicMaterial as St,DirectionalLightHelper as Et,HemisphereLightHelper as Ct,SpotLightHelper as Dt,PointLightHelper as Mt,Box2 as Pt,Plane as Bt,MeshPhongMaterial as Ot}from"three";import{RGBELoader as It}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Lt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Rt}from"three/examples/jsm/environments/RoomEnvironment.js";import Ft from"three/examples/jsm/libs/stats.module.js";import{Sky as Ut}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as zt,deinterleaveGeometry as kt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Nt}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as jt,computeBoundsTree as Ht,disposeBoundsTree as Gt,acceleratedRaycast as _t}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Vt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Qt}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Yt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as Wt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as Xt}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as Kt}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as Zt from"three/examples/jsm/utils/SkeletonUtils.js";import*as qt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as Jt}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as $t}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var en="soonspacejs",tn="2.11.2",nn="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function rn(){throw new Error("setTimeout has not been defined")}function sn(){throw new Error("clearTimeout has not been defined")}var on=rn,an=sn;function ln(e){if(on===setTimeout)return setTimeout(e,0);if((on===rn||!on)&&setTimeout)return on=setTimeout,setTimeout(e,0);try{return on(e,0)}catch(t){try{return on.call(null,e,0)}catch(t){return on.call(this,e,0)}}}"function"==typeof nn.setTimeout&&(on=setTimeout),"function"==typeof nn.clearTimeout&&(an=clearTimeout);var cn,hn=[],un=!1,dn=-1;function pn(){un&&cn&&(un=!1,cn.length?hn=cn.concat(hn):dn=-1,hn.length&&fn())}function fn(){if(!un){var e=ln(pn);un=!0;for(var t=hn.length;t;){for(cn=hn,hn=[];++dn<t;)cn&&cn[dn].run();dn=-1,t=hn.length}cn=null,un=!1,function(e){if(an===clearTimeout)return clearTimeout(e);if((an===sn||!an)&&clearTimeout)return an=clearTimeout,clearTimeout(e);try{return an(e)}catch(t){try{return an.call(null,e)}catch(t){return an.call(this,e)}}}(e)}}function mn(e,t){this.fun=e,this.array=t}mn.prototype.run=function(){this.fun.apply(null,this.array)};function gn(){}var vn=gn,yn=gn,wn=gn,xn=gn,An=gn,bn=gn,Tn=gn;var Sn=nn.performance||{},En=Sn.now||Sn.mozNow||Sn.msNow||Sn.oNow||Sn.webkitNow||function(){return(new Date).getTime()};var Cn=new Date;var Dn,Mn={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];hn.push(new mn(e,t)),1!==hn.length||un||ln(fn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:vn,addListener:yn,once:wn,off:xn,removeListener:An,removeAllListeners:bn,emit:Tn,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*En.call(Sn),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-Cn)/1e3}},Pn={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-Pn.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*Pn.Bounce.In(2*e):.5*Pn.Bounce.Out(2*e-1)+.5}}},Bn="undefined"==typeof self&&void 0!==Mn&&Mn.hrtime?function(){var e=Mn.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()},On=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=Bn()),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}(),In={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=In.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=In.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=In.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=In.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Dn=[1],function(e){var t=1;if(Dn[e])return Dn[e];for(var n=e;n>1;n--)t*=n;return Dn[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}}},Ln=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Rn=new On,Fn=function(){function e(e,t){void 0===t&&(t=Rn),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=Pn.Linear.None,this._interpolationFunction=In.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Ln.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?Bn()+parseFloat(e):e:Bn(),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=Bn()),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=Bn()),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=Bn()),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}(),Un=Ln.nextId,zn=Rn,kn=zn.getAll.bind(zn),Nn=zn.removeAll.bind(zn),jn=zn.add.bind(zn),Hn=zn.remove.bind(zn),Gn=zn.update.bind(zn),_n={Easing:Pn,Group:On,Interpolation:In,now:Bn,Sequence:Ln,nextId:Un,Tween:Fn,VERSION:"18.6.4",getAll:kn,removeAll:Nn,add:jn,remove:Hn,update:Gn};
|
|
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 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,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 ze,Matrix3 as ke,TangentSpaceNormalMap as Ne,GLSL3 as je,VideoTexture as He,GLBufferAttribute as Ge,InterleavedBufferAttribute as _e,Clock as Ve,AnimationMixer as Qe,SRGBColorSpace as Ye,LinearSRGBColorSpace as We,UVMapping as Xe,CubeTexture as Ke,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,AmbientLight as st,DirectionalLight as ot,HemisphereLight as at,SpotLight as lt,PointLight as ct,RectAreaLight as ht,Loader as ut,LoaderUtils as dt,ClampToEdgeWrapping as pt,Group as ft,PropertyBinding as mt,ShapeUtils as gt,ImageLoader as vt,InstancedMesh as yt,CanvasTexture as wt,SpriteMaterial as xt,GridHelper as At,AxesHelper as bt,Box3Helper as Tt,MeshBasicMaterial as St,DirectionalLightHelper as Et,HemisphereLightHelper as Ct,SpotLightHelper as Dt,PointLightHelper as Mt,Box2 as Pt,Plane as Bt,MeshPhongMaterial as Ot}from"three";import{RGBELoader as It}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as Lt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as Rt}from"three/examples/jsm/environments/RoomEnvironment.js";import Ft from"three/examples/jsm/libs/stats.module.js";import{Sky as Ut}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as zt,deinterleaveGeometry as kt}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Nt}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as jt,computeBoundsTree as Ht,disposeBoundsTree as Gt,acceleratedRaycast as _t}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Vt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{TGALoader as Qt}from"three/examples/jsm/loaders/TGALoader.js";import{GLTFLoader as Yt}from"three/examples/jsm/loaders/GLTFLoader.js";import{DRACOLoader as Wt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as Xt}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as Kt}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as Zt from"three/examples/jsm/utils/SkeletonUtils.js";import*as qt from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as Jt}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as $t}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var en="soonspacejs",tn="2.11.3",nn="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function rn(){throw new Error("setTimeout has not been defined")}function sn(){throw new Error("clearTimeout has not been defined")}var on=rn,an=sn;function ln(e){if(on===setTimeout)return setTimeout(e,0);if((on===rn||!on)&&setTimeout)return on=setTimeout,setTimeout(e,0);try{return on(e,0)}catch(t){try{return on.call(null,e,0)}catch(t){return on.call(this,e,0)}}}"function"==typeof nn.setTimeout&&(on=setTimeout),"function"==typeof nn.clearTimeout&&(an=clearTimeout);var cn,hn=[],un=!1,dn=-1;function pn(){un&&cn&&(un=!1,cn.length?hn=cn.concat(hn):dn=-1,hn.length&&fn())}function fn(){if(!un){var e=ln(pn);un=!0;for(var t=hn.length;t;){for(cn=hn,hn=[];++dn<t;)cn&&cn[dn].run();dn=-1,t=hn.length}cn=null,un=!1,function(e){if(an===clearTimeout)return clearTimeout(e);if((an===sn||!an)&&clearTimeout)return an=clearTimeout,clearTimeout(e);try{return an(e)}catch(t){try{return an.call(null,e)}catch(t){return an.call(this,e)}}}(e)}}function mn(e,t){this.fun=e,this.array=t}mn.prototype.run=function(){this.fun.apply(null,this.array)};function gn(){}var vn=gn,yn=gn,wn=gn,xn=gn,An=gn,bn=gn,Tn=gn;var Sn=nn.performance||{},En=Sn.now||Sn.mozNow||Sn.msNow||Sn.oNow||Sn.webkitNow||function(){return(new Date).getTime()};var Cn=new Date;var Dn,Mn={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];hn.push(new mn(e,t)),1!==hn.length||un||ln(fn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:vn,addListener:yn,once:wn,off:xn,removeListener:An,removeAllListeners:bn,emit:Tn,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*En.call(Sn),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-Cn)/1e3}},Pn={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-Pn.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*Pn.Bounce.In(2*e):.5*Pn.Bounce.Out(2*e-1)+.5}}},Bn="undefined"==typeof self&&void 0!==Mn&&Mn.hrtime?function(){var e=Mn.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()},On=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=Bn()),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}(),In={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=In.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=In.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=In.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=In.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Dn=[1],function(e){var t=1;if(Dn[e])return Dn[e];for(var n=e;n>1;n--)t*=n;return Dn[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}}},Ln=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Rn=new On,Fn=function(){function e(e,t){void 0===t&&(t=Rn),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=Pn.Linear.None,this._interpolationFunction=In.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Ln.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?Bn()+parseFloat(e):e:Bn(),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=Bn()),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=Bn()),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=Bn()),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}(),Un=Ln.nextId,zn=Rn,kn=zn.getAll.bind(zn),Nn=zn.removeAll.bind(zn),jn=zn.add.bind(zn),Hn=zn.remove.bind(zn),Gn=zn.update.bind(zn),_n={Easing:Pn,Group:On,Interpolation:In,now:Bn,Sequence:Ln,nextId:Un,Tween:Fn,VERSION:"18.6.4",getAll:kn,removeAll:Nn,add:jn,remove:Hn,update:Gn};
|
|
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.
|
|
3
|
+
"version": "2.11.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": "
|
|
32
|
+
"gitHead": "269e1de41a081d624d2017b01302887de8b785a6"
|
|
33
33
|
}
|