soonspacejs 2.11.49 → 2.11.50
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 D,Bone as C,Uint16BufferAttribute as E,SkinnedMesh as M,Skeleton as P,AnimationClip as O,VectorKeyframeTrack as I,QuaternionKeyframeTrack as B,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as k,BooleanKeyframeTrack as z,NumberKeyframeTrack as j,ColorKeyframeTrack as N,StringKeyframeTrack as G,NormalAnimationBlendMode as _,REVISION as H,UnsignedByteType as V,SRGBColorSpace as Q,DepthTexture as W,DepthStencilFormat as Y,UnsignedInt248Type as K,UnsignedIntType as X,WebGLRenderTarget as Z,Uniform as q,RepeatWrapping as J,LoadingManager as $,NearestFilter as ee,LinearFilter as te,BasicDepthPacking as ne,LinearMipmapLinearFilter as ie,Mesh as re,BackSide as se,DoubleSide as oe,ShaderMaterial as ae,FrontSide as le,LinearSRGBColorSpace as ce,NoColorSpace as he,NoBlending as ue,RGBADepthPacking as de,PerspectiveCamera as pe,MeshDepthMaterial as fe,Camera as me,Material as ge,Vector4 as ve,FogExp2 as ye,LineSegments as we,EdgesGeometry as xe,MeshStandardMaterial as Ae,OrthographicCamera as be,WebGLRenderer as Te,PCFSoftShadowMap as Se,Spherical as De,Sphere as Ce,DataTexture as Ee,WebGLMultipleRenderTargets as Me,RedFormat as Pe,FloatType as Oe,RGBAFormat as Ie,ShaderChunk as Be,WebGLCubeRenderTarget as Le,CubeCamera as Re,PMREMGenerator as Fe,FramebufferTexture as Ue,Matrix3 as ke,TangentSpaceNormalMap as ze,GLSL3 as je,VideoTexture as Ne,GLBufferAttribute as Ge,InterleavedBufferAttribute as _e,Raycaster as He,BoxGeometry as Ve,Sprite as Qe,MeshBasicMaterial as We,CanvasTexture as Ye,SpriteMaterial as Ke,Clock as Xe,AnimationMixer as Ze,UVMapping as qe,CubeTexture as Je,NoToneMapping as $e,ReinhardToneMapping as et,CineonToneMapping as tt,ACESFilmicToneMapping as nt,SphereGeometry as it,CircleGeometry as rt,PlaneGeometry as st,ExtrudeGeometry as ot,Shape as at,Group as lt,Box2 as ct,Triangle as ht,AmbientLight as ut,DirectionalLight as dt,HemisphereLight as pt,SpotLight as ft,PointLight as mt,RectAreaLight as gt,Loader as vt,LoaderUtils as yt,ClampToEdgeWrapping as wt,PropertyBinding as xt,ShapeUtils as At,PointsMaterial as bt,Points as Tt,ImageLoader as St,InstancedMesh as Dt,GridHelper as Ct,AxesHelper as Et,Box3Helper as Mt,DirectionalLightHelper as Pt,HemisphereLightHelper as Ot,SpotLightHelper as It,PointLightHelper as Bt,ShapeGeometry as Lt,Plane as Rt,MeshPhongMaterial as Ft}from"three";import{RGBELoader as Ut}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as kt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as zt}from"three/examples/jsm/environments/RoomEnvironment.js";import jt from"three/examples/jsm/libs/stats.module.js";import{Sky as Nt}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as Gt,deinterleaveGeometry as _t}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Ht}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as Vt,computeBoundsTree as Qt,disposeBoundsTree as Wt,acceleratedRaycast as Yt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Kt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{GLTFLoader as Xt}from"three/examples/jsm/loaders/GLTFLoader.js";import{STLLoader as Zt}from"three/examples/jsm/loaders/STLLoader.js";import{TGALoader as qt}from"three/examples/jsm/loaders/TGALoader.js";import{DRACOLoader as Jt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as $t}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as en}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as tn from"three/examples/jsm/utils/SkeletonUtils.js";import*as nn from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as rn}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as sn}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var on="soonspacejs",an="2.11.49",ln="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function cn(){throw new Error("setTimeout has not been defined")}function hn(){throw new Error("clearTimeout has not been defined")}var un=cn,dn=hn;function pn(e){if(un===setTimeout)return setTimeout(e,0);if((un===cn||!un)&&setTimeout)return un=setTimeout,setTimeout(e,0);try{return un(e,0)}catch(t){try{return un.call(null,e,0)}catch(t){return un.call(this,e,0)}}}"function"==typeof ln.setTimeout&&(un=setTimeout),"function"==typeof ln.clearTimeout&&(dn=clearTimeout);var fn,mn=[],gn=!1,vn=-1;function yn(){gn&&fn&&(gn=!1,fn.length?mn=fn.concat(mn):vn=-1,mn.length&&wn())}function wn(){if(!gn){var e=pn(yn);gn=!0;for(var t=mn.length;t;){for(fn=mn,mn=[];++vn<t;)fn&&fn[vn].run();vn=-1,t=mn.length}fn=null,gn=!1,function(e){if(dn===clearTimeout)return clearTimeout(e);if((dn===hn||!dn)&&clearTimeout)return dn=clearTimeout,clearTimeout(e);try{return dn(e)}catch(t){try{return dn.call(null,e)}catch(t){return dn.call(this,e)}}}(e)}}function xn(e,t){this.fun=e,this.array=t}xn.prototype.run=function(){this.fun.apply(null,this.array)};function An(){}var bn=An,Tn=An,Sn=An,Dn=An,Cn=An,En=An,Mn=An;var Pn=ln.performance||{},On=Pn.now||Pn.mozNow||Pn.msNow||Pn.oNow||Pn.webkitNow||function(){return(new Date).getTime()};var In=new Date;var Bn,Ln={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];mn.push(new xn(e,t)),1!==mn.length||gn||pn(wn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:bn,addListener:Tn,once:Sn,off:Dn,removeListener:Cn,removeAllListeners:En,emit:Mn,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*On.call(Pn),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-In)/1e3}},Rn={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-Rn.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*Rn.Bounce.In(2*e):.5*Rn.Bounce.Out(2*e-1)+.5}}},Fn="undefined"==typeof self&&void 0!==Ln&&Ln.hrtime?function(){var e=Ln.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()},Un=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=Fn()),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}(),kn={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=kn.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=kn.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=kn.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=kn.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Bn=[1],function(e){var t=1;if(Bn[e])return Bn[e];for(var n=e;n>1;n--)t*=n;return Bn[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}}},zn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),jn=new Un,Nn=function(){function e(e,t){void 0===t&&(t=jn),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=Rn.Linear.None,this._interpolationFunction=kn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=zn.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?Fn()+parseFloat(e):e:Fn(),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=Fn()),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=Fn()),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=Fn()),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}(),Gn=zn.nextId,_n=jn,Hn=_n.getAll.bind(_n),Vn=_n.removeAll.bind(_n),Qn=_n.add.bind(_n),Wn=_n.remove.bind(_n),Yn=_n.update.bind(_n),Kn={Easing:Rn,Group:Un,Interpolation:kn,now:Fn,Sequence:zn,nextId:Gn,Tween:Nn,VERSION:"18.6.4",getAll:Hn,removeAll:Vn,add:Qn,remove:Wn,update:Yn};
|
|
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 D,Bone as C,Uint16BufferAttribute as E,SkinnedMesh as M,Skeleton as P,AnimationClip as O,VectorKeyframeTrack as I,QuaternionKeyframeTrack as B,InterpolateLinear as L,InterpolateDiscrete as R,EventDispatcher as F,LoopPingPong as U,KeyframeTrack as k,BooleanKeyframeTrack as z,NumberKeyframeTrack as j,ColorKeyframeTrack as N,StringKeyframeTrack as G,NormalAnimationBlendMode as _,REVISION as H,UnsignedByteType as V,SRGBColorSpace as Q,DepthTexture as W,DepthStencilFormat as Y,UnsignedInt248Type as K,UnsignedIntType as X,WebGLRenderTarget as Z,Uniform as q,RepeatWrapping as J,LoadingManager as $,NearestFilter as ee,LinearFilter as te,BasicDepthPacking as ne,LinearMipmapLinearFilter as ie,Mesh as re,BackSide as se,DoubleSide as oe,ShaderMaterial as ae,FrontSide as le,LinearSRGBColorSpace as ce,NoColorSpace as he,NoBlending as ue,RGBADepthPacking as de,PerspectiveCamera as pe,MeshDepthMaterial as fe,Camera as me,Material as ge,Vector4 as ve,FogExp2 as ye,LineSegments as we,EdgesGeometry as xe,MeshStandardMaterial as Ae,OrthographicCamera as be,WebGLRenderer as Te,PCFSoftShadowMap as Se,Spherical as De,Sphere as Ce,DataTexture as Ee,WebGLMultipleRenderTargets as Me,RedFormat as Pe,FloatType as Oe,RGBAFormat as Ie,ShaderChunk as Be,WebGLCubeRenderTarget as Le,CubeCamera as Re,PMREMGenerator as Fe,FramebufferTexture as Ue,Matrix3 as ke,TangentSpaceNormalMap as ze,GLSL3 as je,VideoTexture as Ne,GLBufferAttribute as Ge,InterleavedBufferAttribute as _e,Raycaster as He,BoxGeometry as Ve,Sprite as Qe,MeshBasicMaterial as We,CanvasTexture as Ye,SpriteMaterial as Ke,Clock as Xe,AnimationMixer as Ze,UVMapping as qe,CubeTexture as Je,NoToneMapping as $e,ReinhardToneMapping as et,CineonToneMapping as tt,ACESFilmicToneMapping as nt,SphereGeometry as it,CircleGeometry as rt,PlaneGeometry as st,ExtrudeGeometry as ot,Shape as at,Group as lt,Box2 as ct,Triangle as ht,AmbientLight as ut,DirectionalLight as dt,HemisphereLight as pt,SpotLight as ft,PointLight as mt,RectAreaLight as gt,Loader as vt,LoaderUtils as yt,ClampToEdgeWrapping as wt,PropertyBinding as xt,ShapeUtils as At,PointsMaterial as bt,Points as Tt,ImageLoader as St,InstancedMesh as Dt,GridHelper as Ct,AxesHelper as Et,Box3Helper as Mt,DirectionalLightHelper as Pt,HemisphereLightHelper as Ot,SpotLightHelper as It,PointLightHelper as Bt,ShapeGeometry as Lt,Plane as Rt,MeshPhongMaterial as Ft}from"three";import{RGBELoader as Ut}from"three/examples/jsm/loaders/RGBELoader.js";import{GLTFExporter as kt}from"three/examples/jsm/exporters/GLTFExporter.js";import{RoomEnvironment as zt}from"three/examples/jsm/environments/RoomEnvironment.js";import jt from"three/examples/jsm/libs/stats.module.js";import{Sky as Nt}from"three/examples/jsm/objects/Sky.js";import{mergeGeometries as Gt,deinterleaveGeometry as _t}from"three/examples/jsm/utils/BufferGeometryUtils.js";import"three/examples/jsm/postprocessing/Pass.js";import{WorkerPool as Ht}from"three/examples/jsm/utils/WorkerPool.js";import{MeshBVH as Vt,computeBoundsTree as Qt,disposeBoundsTree as Wt,acceleratedRaycast as Yt}from"three-mesh-bvh";import{RectAreaLightUniformsLib as Kt}from"three/examples/jsm/lights/RectAreaLightUniformsLib.js";import{GLTFLoader as Xt}from"three/examples/jsm/loaders/GLTFLoader.js";import{STLLoader as Zt}from"three/examples/jsm/loaders/STLLoader.js";import{TGALoader as qt}from"three/examples/jsm/loaders/TGALoader.js";import{DRACOLoader as Jt}from"three/examples/jsm/loaders/DRACOLoader.js";import{KTX2Loader as $t}from"three/examples/jsm/loaders/KTX2Loader.js";import{MeshoptDecoder as en}from"three/examples/jsm/libs/meshopt_decoder.module.js";import*as tn from"three/examples/jsm/utils/SkeletonUtils.js";import*as nn from"three/examples/jsm/libs/fflate.module.js";import{NURBSCurve as rn}from"three/examples/jsm/curves/NURBSCurve.js";import{RectAreaLightHelper as sn}from"three/examples/jsm/helpers/RectAreaLightHelper.js";var on="soonspacejs",an="2.11.50",ln="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function cn(){throw new Error("setTimeout has not been defined")}function hn(){throw new Error("clearTimeout has not been defined")}var un=cn,dn=hn;function pn(e){if(un===setTimeout)return setTimeout(e,0);if((un===cn||!un)&&setTimeout)return un=setTimeout,setTimeout(e,0);try{return un(e,0)}catch(t){try{return un.call(null,e,0)}catch(t){return un.call(this,e,0)}}}"function"==typeof ln.setTimeout&&(un=setTimeout),"function"==typeof ln.clearTimeout&&(dn=clearTimeout);var fn,mn=[],gn=!1,vn=-1;function yn(){gn&&fn&&(gn=!1,fn.length?mn=fn.concat(mn):vn=-1,mn.length&&wn())}function wn(){if(!gn){var e=pn(yn);gn=!0;for(var t=mn.length;t;){for(fn=mn,mn=[];++vn<t;)fn&&fn[vn].run();vn=-1,t=mn.length}fn=null,gn=!1,function(e){if(dn===clearTimeout)return clearTimeout(e);if((dn===hn||!dn)&&clearTimeout)return dn=clearTimeout,clearTimeout(e);try{return dn(e)}catch(t){try{return dn.call(null,e)}catch(t){return dn.call(this,e)}}}(e)}}function xn(e,t){this.fun=e,this.array=t}xn.prototype.run=function(){this.fun.apply(null,this.array)};function An(){}var bn=An,Tn=An,Sn=An,Dn=An,Cn=An,En=An,Mn=An;var Pn=ln.performance||{},On=Pn.now||Pn.mozNow||Pn.msNow||Pn.oNow||Pn.webkitNow||function(){return(new Date).getTime()};var In=new Date;var Bn,Ln={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];mn.push(new xn(e,t)),1!==mn.length||gn||pn(wn)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:bn,addListener:Tn,once:Sn,off:Dn,removeListener:Cn,removeAllListeners:En,emit:Mn,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*On.call(Pn),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-In)/1e3}},Rn={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-Rn.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*Rn.Bounce.In(2*e):.5*Rn.Bounce.Out(2*e-1)+.5}}},Fn="undefined"==typeof self&&void 0!==Ln&&Ln.hrtime?function(){var e=Ln.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()},Un=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=Fn()),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}(),kn={Linear:function(e,t){var n=e.length-1,i=n*t,r=Math.floor(i),s=kn.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=kn.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=kn.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=kn.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(Bn=[1],function(e){var t=1;if(Bn[e])return Bn[e];for(var n=e;n>1;n--)t*=n;return Bn[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}}},zn=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),jn=new Un,Nn=function(){function e(e,t){void 0===t&&(t=jn),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=Rn.Linear.None,this._interpolationFunction=kn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=zn.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?Fn()+parseFloat(e):e:Fn(),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=Fn()),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=Fn()),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=Fn()),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}(),Gn=zn.nextId,_n=jn,Hn=_n.getAll.bind(_n),Vn=_n.removeAll.bind(_n),Qn=_n.add.bind(_n),Wn=_n.remove.bind(_n),Yn=_n.update.bind(_n),Kn={Easing:Rn,Group:Un,Interpolation:kn,now:Fn,Sequence:zn,nextId:Gn,Tween:Nn,VERSION:"18.6.4",getAll:Hn,removeAll:Vn,add:Qn,remove:Wn,update:Yn};
|
|
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.50",
|
|
4
4
|
"homepage": "https://www.xwbuilders.com/soonspacejs/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"three": ">=0.155.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "6a956d877d81c70d76897089b3286d61d29f347a"
|
|
31
31
|
}
|