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