mage-engine 3.22.6 → 3.22.8

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.
Files changed (2) hide show
  1. package/dist/mage.js +302 -33
  2. package/package.json +1 -1
package/dist/mage.js CHANGED
@@ -41959,7 +41959,7 @@ class Shape extends Path {
41959
41959
 
41960
41960
  }
41961
41961
 
41962
- class Light$1 extends Object3D {
41962
+ class Light$2 extends Object3D {
41963
41963
 
41964
41964
  constructor( color, intensity = 1 ) {
41965
41965
 
@@ -42005,9 +42005,9 @@ class Light$1 extends Object3D {
42005
42005
 
42006
42006
  }
42007
42007
 
42008
- Light$1.prototype.isLight = true;
42008
+ Light$2.prototype.isLight = true;
42009
42009
 
42010
- class HemisphereLight$1 extends Light$1 {
42010
+ class HemisphereLight$1 extends Light$2 {
42011
42011
 
42012
42012
  constructor( skyColor, groundColor, intensity ) {
42013
42013
 
@@ -42024,7 +42024,7 @@ class HemisphereLight$1 extends Light$1 {
42024
42024
 
42025
42025
  copy( source ) {
42026
42026
 
42027
- Light$1.prototype.copy.call( this, source );
42027
+ Light$2.prototype.copy.call( this, source );
42028
42028
 
42029
42029
  this.groundColor.copy( source.groundColor );
42030
42030
 
@@ -42195,7 +42195,7 @@ class SpotLightShadow extends LightShadow {
42195
42195
 
42196
42196
  SpotLightShadow.prototype.isSpotLightShadow = true;
42197
42197
 
42198
- class SpotLight$1 extends Light$1 {
42198
+ class SpotLight$1 extends Light$2 {
42199
42199
 
42200
42200
  constructor( color, intensity, distance = 0, angle = Math.PI / 3, penumbra = 0, decay = 1 ) {
42201
42201
 
@@ -42333,7 +42333,7 @@ class PointLightShadow extends LightShadow {
42333
42333
 
42334
42334
  PointLightShadow.prototype.isPointLightShadow = true;
42335
42335
 
42336
- class PointLight$1 extends Light$1 {
42336
+ class PointLight$1 extends Light$2 {
42337
42337
 
42338
42338
  constructor( color, intensity, distance = 0, decay = 1 ) {
42339
42339
 
@@ -42526,7 +42526,7 @@ class DirectionalLightShadow extends LightShadow {
42526
42526
 
42527
42527
  DirectionalLightShadow.prototype.isDirectionalLightShadow = true;
42528
42528
 
42529
- class DirectionalLight extends Light$1 {
42529
+ class DirectionalLight extends Light$2 {
42530
42530
 
42531
42531
  constructor( color, intensity ) {
42532
42532
 
@@ -42558,7 +42558,7 @@ class DirectionalLight extends Light$1 {
42558
42558
 
42559
42559
  DirectionalLight.prototype.isDirectionalLight = true;
42560
42560
 
42561
- class AmbientLight$1 extends Light$1 {
42561
+ class AmbientLight$1 extends Light$2 {
42562
42562
 
42563
42563
  constructor( color, intensity ) {
42564
42564
 
@@ -42572,7 +42572,7 @@ class AmbientLight$1 extends Light$1 {
42572
42572
 
42573
42573
  AmbientLight$1.prototype.isAmbientLight = true;
42574
42574
 
42575
- class RectAreaLight extends Light$1 {
42575
+ class RectAreaLight extends Light$2 {
42576
42576
 
42577
42577
  constructor( color, intensity, width = 10, height = 10 ) {
42578
42578
 
@@ -42851,7 +42851,7 @@ class SphericalHarmonics3 {
42851
42851
 
42852
42852
  SphericalHarmonics3.prototype.isSphericalHarmonics3 = true;
42853
42853
 
42854
- class LightProbe extends Light$1 {
42854
+ class LightProbe extends Light$2 {
42855
42855
 
42856
42856
  constructor( sh = new SphericalHarmonics3(), intensity = 1 ) {
42857
42857
 
@@ -52789,7 +52789,7 @@ PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) {
52789
52789
 
52790
52790
  //
52791
52791
 
52792
- Object.defineProperties( Light$1.prototype, {
52792
+ Object.defineProperties( Light$2.prototype, {
52793
52793
  onlyShadow: {
52794
52794
  set: function () {
52795
52795
 
@@ -53918,7 +53918,7 @@ if ( typeof window !== 'undefined' ) {
53918
53918
 
53919
53919
  }
53920
53920
 
53921
- }var three_module=/*#__PURE__*/Object.freeze({__proto__:null,ACESFilmicToneMapping:ACESFilmicToneMapping,AddEquation:AddEquation,AddOperation:AddOperation,AdditiveAnimationBlendMode:AdditiveAnimationBlendMode,AdditiveBlending:AdditiveBlending,AlphaFormat:AlphaFormat,AlwaysDepth:AlwaysDepth,AlwaysStencilFunc:AlwaysStencilFunc,AmbientLight:AmbientLight$1,AmbientLightProbe:AmbientLightProbe,AnimationClip:AnimationClip,AnimationLoader:AnimationLoader,AnimationMixer:AnimationMixer,AnimationObjectGroup:AnimationObjectGroup,AnimationUtils:AnimationUtils,ArcCurve:ArcCurve,ArrayCamera:ArrayCamera,ArrowHelper:ArrowHelper,Audio:Audio$2,AudioAnalyser:AudioAnalyser,AudioContext:AudioContext,AudioListener:AudioListener,AudioLoader:AudioLoader,AxesHelper:AxesHelper$1,AxisHelper:AxisHelper,BackSide:BackSide,BasicDepthPacking:BasicDepthPacking,BasicShadowMap:BasicShadowMap,BinaryTextureLoader:BinaryTextureLoader,Bone:Bone,BooleanKeyframeTrack:BooleanKeyframeTrack,BoundingBoxHelper:BoundingBoxHelper,Box2:Box2,Box3:Box3,Box3Helper:Box3Helper,BoxBufferGeometry:BoxGeometry,BoxGeometry:BoxGeometry,BoxHelper:BoxHelper,BufferAttribute:BufferAttribute,BufferGeometry:BufferGeometry,BufferGeometryLoader:BufferGeometryLoader,ByteType:ByteType,Cache:Cache,Camera:Camera$1,CameraHelper:CameraHelper,CanvasRenderer:CanvasRenderer,CanvasTexture:CanvasTexture,CatmullRomCurve3:CatmullRomCurve3,CineonToneMapping:CineonToneMapping,CircleBufferGeometry:CircleGeometry,CircleGeometry:CircleGeometry,ClampToEdgeWrapping:ClampToEdgeWrapping,Clock:Clock,Color:Color$1,ColorKeyframeTrack:ColorKeyframeTrack,CompressedTexture:CompressedTexture,CompressedTextureLoader:CompressedTextureLoader,ConeBufferGeometry:ConeGeometry,ConeGeometry:ConeGeometry,CubeCamera:CubeCamera,CubeReflectionMapping:CubeReflectionMapping,CubeRefractionMapping:CubeRefractionMapping,CubeTexture:CubeTexture,CubeTextureLoader:CubeTextureLoader,CubeUVReflectionMapping:CubeUVReflectionMapping,CubeUVRefractionMapping:CubeUVRefractionMapping,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,CubicInterpolant:CubicInterpolant,CullFaceBack:CullFaceBack,CullFaceFront:CullFaceFront,CullFaceFrontBack:CullFaceFrontBack,CullFaceNone:CullFaceNone,Curve:Curve,CurvePath:CurvePath,CustomBlending:CustomBlending,CustomToneMapping:CustomToneMapping,CylinderBufferGeometry:CylinderGeometry,CylinderGeometry:CylinderGeometry,Cylindrical:Cylindrical,DataTexture:DataTexture,DataTexture2DArray:DataTexture2DArray,DataTexture3D:DataTexture3D,DataTextureLoader:DataTextureLoader,DataUtils:DataUtils,DecrementStencilOp:DecrementStencilOp,DecrementWrapStencilOp:DecrementWrapStencilOp,DefaultLoadingManager:DefaultLoadingManager,DepthFormat:DepthFormat,DepthStencilFormat:DepthStencilFormat,DepthTexture:DepthTexture,DirectionalLight:DirectionalLight,DirectionalLightHelper:DirectionalLightHelper,DiscreteInterpolant:DiscreteInterpolant,DodecahedronBufferGeometry:DodecahedronGeometry,DodecahedronGeometry:DodecahedronGeometry,DoubleSide:DoubleSide,DstAlphaFactor:DstAlphaFactor,DstColorFactor:DstColorFactor,DynamicBufferAttribute:DynamicBufferAttribute,DynamicCopyUsage:DynamicCopyUsage,DynamicDrawUsage:DynamicDrawUsage,DynamicReadUsage:DynamicReadUsage,EdgesGeometry:EdgesGeometry,EdgesHelper:EdgesHelper,EllipseCurve:EllipseCurve,EqualDepth:EqualDepth,EqualStencilFunc:EqualStencilFunc,EquirectangularReflectionMapping:EquirectangularReflectionMapping,EquirectangularRefractionMapping:EquirectangularRefractionMapping,Euler:Euler,EventDispatcher:EventDispatcher,ExtrudeBufferGeometry:ExtrudeGeometry,ExtrudeGeometry:ExtrudeGeometry,FaceColors:FaceColors,FileLoader:FileLoader,FlatShading:FlatShading,Float16BufferAttribute:Float16BufferAttribute,Float32Attribute:Float32Attribute,Float32BufferAttribute:Float32BufferAttribute,Float64Attribute:Float64Attribute,Float64BufferAttribute:Float64BufferAttribute,FloatType:FloatType$1,Fog:Fog,FogExp2:FogExp2,Font:Font,FontLoader:FontLoader,FrontSide:FrontSide,Frustum:Frustum$1,GLBufferAttribute:GLBufferAttribute,GLSL1:GLSL1,GLSL3:GLSL3,GammaEncoding:GammaEncoding,GreaterDepth:GreaterDepth,GreaterEqualDepth:GreaterEqualDepth,GreaterEqualStencilFunc:GreaterEqualStencilFunc,GreaterStencilFunc:GreaterStencilFunc,GridHelper:GridHelper,Group:Group,HalfFloatType:HalfFloatType,HemisphereLight:HemisphereLight$1,HemisphereLightHelper:HemisphereLightHelper,HemisphereLightProbe:HemisphereLightProbe,IcosahedronBufferGeometry:IcosahedronGeometry,IcosahedronGeometry:IcosahedronGeometry,ImageBitmapLoader:ImageBitmapLoader,ImageLoader:ImageLoader,ImageUtils:ImageUtils,ImmediateRenderObject:ImmediateRenderObject,IncrementStencilOp:IncrementStencilOp,IncrementWrapStencilOp:IncrementWrapStencilOp,InstancedBufferAttribute:InstancedBufferAttribute,InstancedBufferGeometry:InstancedBufferGeometry,InstancedInterleavedBuffer:InstancedInterleavedBuffer,InstancedMesh:InstancedMesh,Int16Attribute:Int16Attribute,Int16BufferAttribute:Int16BufferAttribute,Int32Attribute:Int32Attribute,Int32BufferAttribute:Int32BufferAttribute,Int8Attribute:Int8Attribute,Int8BufferAttribute:Int8BufferAttribute,IntType:IntType,InterleavedBuffer:InterleavedBuffer,InterleavedBufferAttribute:InterleavedBufferAttribute,Interpolant:Interpolant,InterpolateDiscrete:InterpolateDiscrete,InterpolateLinear:InterpolateLinear,InterpolateSmooth:InterpolateSmooth,InvertStencilOp:InvertStencilOp,JSONLoader:JSONLoader,KeepStencilOp:KeepStencilOp,KeyframeTrack:KeyframeTrack,LOD:LOD,LatheBufferGeometry:LatheGeometry,LatheGeometry:LatheGeometry,Layers:Layers,LensFlare:LensFlare,LessDepth:LessDepth,LessEqualDepth:LessEqualDepth,LessEqualStencilFunc:LessEqualStencilFunc,LessStencilFunc:LessStencilFunc,Light:Light$1,LightProbe:LightProbe,Line:Line$1,Line3:Line3,LineBasicMaterial:LineBasicMaterial,LineCurve:LineCurve,LineCurve3:LineCurve3,LineDashedMaterial:LineDashedMaterial,LineLoop:LineLoop,LinePieces:LinePieces,LineSegments:LineSegments,LineStrip:LineStrip,LinearEncoding:LinearEncoding,LinearFilter:LinearFilter,LinearInterpolant:LinearInterpolant,LinearMipMapLinearFilter:LinearMipMapLinearFilter,LinearMipMapNearestFilter:LinearMipMapNearestFilter,LinearMipmapLinearFilter:LinearMipmapLinearFilter,LinearMipmapNearestFilter:LinearMipmapNearestFilter,LinearToneMapping:LinearToneMapping,Loader:Loader$1,LoaderUtils:LoaderUtils,LoadingManager:LoadingManager,LogLuvEncoding:LogLuvEncoding,LoopOnce:LoopOnce,LoopPingPong:LoopPingPong,LoopRepeat:LoopRepeat,LuminanceAlphaFormat:LuminanceAlphaFormat,LuminanceFormat:LuminanceFormat,MOUSE:MOUSE,Material:Material,MaterialLoader:MaterialLoader,Math:MathUtils,MathUtils:MathUtils,Matrix3:Matrix3,Matrix4:Matrix4,MaxEquation:MaxEquation,Mesh:Mesh,MeshBasicMaterial:MeshBasicMaterial,MeshDepthMaterial:MeshDepthMaterial,MeshDistanceMaterial:MeshDistanceMaterial,MeshFaceMaterial:MeshFaceMaterial,MeshLambertMaterial:MeshLambertMaterial,MeshMatcapMaterial:MeshMatcapMaterial,MeshNormalMaterial:MeshNormalMaterial,MeshPhongMaterial:MeshPhongMaterial,MeshPhysicalMaterial:MeshPhysicalMaterial,MeshStandardMaterial:MeshStandardMaterial,MeshToonMaterial:MeshToonMaterial,MinEquation:MinEquation,MirroredRepeatWrapping:MirroredRepeatWrapping,MixOperation:MixOperation,MultiMaterial:MultiMaterial,MultiplyBlending:MultiplyBlending,MultiplyOperation:MultiplyOperation,NearestFilter:NearestFilter,NearestMipMapLinearFilter:NearestMipMapLinearFilter,NearestMipMapNearestFilter:NearestMipMapNearestFilter,NearestMipmapLinearFilter:NearestMipmapLinearFilter,NearestMipmapNearestFilter:NearestMipmapNearestFilter,NeverDepth:NeverDepth,NeverStencilFunc:NeverStencilFunc,NoBlending:NoBlending,NoColors:NoColors,NoToneMapping:NoToneMapping,NormalAnimationBlendMode:NormalAnimationBlendMode,NormalBlending:NormalBlending,NotEqualDepth:NotEqualDepth,NotEqualStencilFunc:NotEqualStencilFunc,NumberKeyframeTrack:NumberKeyframeTrack,Object3D:Object3D,ObjectLoader:ObjectLoader,ObjectSpaceNormalMap:ObjectSpaceNormalMap,OctahedronBufferGeometry:OctahedronGeometry,OctahedronGeometry:OctahedronGeometry,OneFactor:OneFactor,OneMinusDstAlphaFactor:OneMinusDstAlphaFactor,OneMinusDstColorFactor:OneMinusDstColorFactor,OneMinusSrcAlphaFactor:OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:OneMinusSrcColorFactor,OrthographicCamera:OrthographicCamera,PCFShadowMap:PCFShadowMap,PCFSoftShadowMap:PCFSoftShadowMap,PMREMGenerator:PMREMGenerator,ParametricBufferGeometry:ParametricGeometry,ParametricGeometry:ParametricGeometry,Particle:Particle,ParticleBasicMaterial:ParticleBasicMaterial,ParticleSystem:ParticleSystem,ParticleSystemMaterial:ParticleSystemMaterial,Path:Path,PerspectiveCamera:PerspectiveCamera,Plane:Plane$1,PlaneBufferGeometry:PlaneGeometry,PlaneGeometry:PlaneGeometry,PlaneHelper:PlaneHelper,PointCloud:PointCloud,PointCloudMaterial:PointCloudMaterial,PointLight:PointLight$1,PointLightHelper:PointLightHelper,Points:Points,PointsMaterial:PointsMaterial,PolarGridHelper:PolarGridHelper,PolyhedronBufferGeometry:PolyhedronGeometry,PolyhedronGeometry:PolyhedronGeometry,PositionalAudio:PositionalAudio,PropertyBinding:PropertyBinding,PropertyMixer:PropertyMixer,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,Quaternion:Quaternion,QuaternionKeyframeTrack:QuaternionKeyframeTrack,QuaternionLinearInterpolant:QuaternionLinearInterpolant,REVISION:REVISION,RGBADepthPacking:RGBADepthPacking,RGBAFormat:RGBAFormat,RGBAIntegerFormat:RGBAIntegerFormat,RGBA_ASTC_10x10_Format:RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGBDEncoding:RGBDEncoding,RGBEEncoding:RGBEEncoding,RGBEFormat:RGBEFormat,RGBFormat:RGBFormat,RGBIntegerFormat:RGBIntegerFormat,RGBM16Encoding:RGBM16Encoding,RGBM7Encoding:RGBM7Encoding,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format,RGFormat:RGFormat,RGIntegerFormat:RGIntegerFormat,RawShaderMaterial:RawShaderMaterial,Ray:Ray,Raycaster:Raycaster,RectAreaLight:RectAreaLight,RedFormat:RedFormat,RedIntegerFormat:RedIntegerFormat,ReinhardToneMapping:ReinhardToneMapping,RepeatWrapping:RepeatWrapping$1,ReplaceStencilOp:ReplaceStencilOp,ReverseSubtractEquation:ReverseSubtractEquation,RingBufferGeometry:RingGeometry,RingGeometry:RingGeometry,SRGB8_ALPHA8_ASTC_10x10_Format:SRGB8_ALPHA8_ASTC_10x10_Format,SRGB8_ALPHA8_ASTC_10x5_Format:SRGB8_ALPHA8_ASTC_10x5_Format,SRGB8_ALPHA8_ASTC_10x6_Format:SRGB8_ALPHA8_ASTC_10x6_Format,SRGB8_ALPHA8_ASTC_10x8_Format:SRGB8_ALPHA8_ASTC_10x8_Format,SRGB8_ALPHA8_ASTC_12x10_Format:SRGB8_ALPHA8_ASTC_12x10_Format,SRGB8_ALPHA8_ASTC_12x12_Format:SRGB8_ALPHA8_ASTC_12x12_Format,SRGB8_ALPHA8_ASTC_4x4_Format:SRGB8_ALPHA8_ASTC_4x4_Format,SRGB8_ALPHA8_ASTC_5x4_Format:SRGB8_ALPHA8_ASTC_5x4_Format,SRGB8_ALPHA8_ASTC_5x5_Format:SRGB8_ALPHA8_ASTC_5x5_Format,SRGB8_ALPHA8_ASTC_6x5_Format:SRGB8_ALPHA8_ASTC_6x5_Format,SRGB8_ALPHA8_ASTC_6x6_Format:SRGB8_ALPHA8_ASTC_6x6_Format,SRGB8_ALPHA8_ASTC_8x5_Format:SRGB8_ALPHA8_ASTC_8x5_Format,SRGB8_ALPHA8_ASTC_8x6_Format:SRGB8_ALPHA8_ASTC_8x6_Format,SRGB8_ALPHA8_ASTC_8x8_Format:SRGB8_ALPHA8_ASTC_8x8_Format,Scene:Scene$2,SceneUtils:SceneUtils,ShaderChunk:ShaderChunk,ShaderLib:ShaderLib,ShaderMaterial:ShaderMaterial,ShadowMaterial:ShadowMaterial,Shape:Shape,ShapeBufferGeometry:ShapeGeometry,ShapeGeometry:ShapeGeometry,ShapePath:ShapePath,ShapeUtils:ShapeUtils,ShortType:ShortType,Skeleton:Skeleton,SkeletonHelper:SkeletonHelper,SkinnedMesh:SkinnedMesh,SmoothShading:SmoothShading,Sphere:Sphere$1,SphereBufferGeometry:SphereGeometry,SphereGeometry:SphereGeometry,Spherical:Spherical,SphericalHarmonics3:SphericalHarmonics3,SplineCurve:SplineCurve,SpotLight:SpotLight$1,SpotLightHelper:SpotLightHelper,Sprite:Sprite$1,SpriteMaterial:SpriteMaterial,SrcAlphaFactor:SrcAlphaFactor,SrcAlphaSaturateFactor:SrcAlphaSaturateFactor,SrcColorFactor:SrcColorFactor,StaticCopyUsage:StaticCopyUsage,StaticDrawUsage:StaticDrawUsage,StaticReadUsage:StaticReadUsage,StereoCamera:StereoCamera,StreamCopyUsage:StreamCopyUsage,StreamDrawUsage:StreamDrawUsage,StreamReadUsage:StreamReadUsage,StringKeyframeTrack:StringKeyframeTrack,SubtractEquation:SubtractEquation,SubtractiveBlending:SubtractiveBlending,TOUCH:TOUCH,TangentSpaceNormalMap:TangentSpaceNormalMap,TetrahedronBufferGeometry:TetrahedronGeometry,TetrahedronGeometry:TetrahedronGeometry,TextBufferGeometry:TextGeometry,TextGeometry:TextGeometry,Texture:Texture,TextureLoader:TextureLoader,TorusBufferGeometry:TorusGeometry,TorusGeometry:TorusGeometry,TorusKnotBufferGeometry:TorusKnotGeometry,TorusKnotGeometry:TorusKnotGeometry,Triangle:Triangle,TriangleFanDrawMode:TriangleFanDrawMode,TriangleStripDrawMode:TriangleStripDrawMode,TrianglesDrawMode:TrianglesDrawMode,TubeBufferGeometry:TubeGeometry,TubeGeometry:TubeGeometry,UVMapping:UVMapping,Uint16Attribute:Uint16Attribute,Uint16BufferAttribute:Uint16BufferAttribute,Uint32Attribute:Uint32Attribute,Uint32BufferAttribute:Uint32BufferAttribute,Uint8Attribute:Uint8Attribute,Uint8BufferAttribute:Uint8BufferAttribute,Uint8ClampedAttribute:Uint8ClampedAttribute,Uint8ClampedBufferAttribute:Uint8ClampedBufferAttribute,Uniform:Uniform,UniformsLib:UniformsLib,UniformsUtils:UniformsUtils,UnsignedByteType:UnsignedByteType,UnsignedInt248Type:UnsignedInt248Type,UnsignedIntType:UnsignedIntType,UnsignedShort4444Type:UnsignedShort4444Type,UnsignedShort5551Type:UnsignedShort5551Type,UnsignedShort565Type:UnsignedShort565Type,UnsignedShortType:UnsignedShortType,VSMShadowMap:VSMShadowMap,Vector2:Vector2,Vector3:Vector3$1,Vector4:Vector4,VectorKeyframeTrack:VectorKeyframeTrack,Vertex:Vertex,VertexColors:VertexColors,VideoTexture:VideoTexture,WebGL1Renderer:WebGL1Renderer,WebGLCubeRenderTarget:WebGLCubeRenderTarget,WebGLMultisampleRenderTarget:WebGLMultisampleRenderTarget,WebGLRenderTarget:WebGLRenderTarget,WebGLRenderTargetCube:WebGLRenderTargetCube,WebGLRenderer:WebGLRenderer,WebGLUtils:WebGLUtils,WireframeGeometry:WireframeGeometry,WireframeHelper:WireframeHelper,WrapAroundEnding:WrapAroundEnding,XHRLoader:XHRLoader,ZeroCurvatureEnding:ZeroCurvatureEnding,ZeroFactor:ZeroFactor,ZeroSlopeEnding:ZeroSlopeEnding,ZeroStencilOp:ZeroStencilOp,sRGBEncoding:sRGBEncoding});var PREFIX = "[Mage]";
53921
+ }var three_module=/*#__PURE__*/Object.freeze({__proto__:null,ACESFilmicToneMapping:ACESFilmicToneMapping,AddEquation:AddEquation,AddOperation:AddOperation,AdditiveAnimationBlendMode:AdditiveAnimationBlendMode,AdditiveBlending:AdditiveBlending,AlphaFormat:AlphaFormat,AlwaysDepth:AlwaysDepth,AlwaysStencilFunc:AlwaysStencilFunc,AmbientLight:AmbientLight$1,AmbientLightProbe:AmbientLightProbe,AnimationClip:AnimationClip,AnimationLoader:AnimationLoader,AnimationMixer:AnimationMixer,AnimationObjectGroup:AnimationObjectGroup,AnimationUtils:AnimationUtils,ArcCurve:ArcCurve,ArrayCamera:ArrayCamera,ArrowHelper:ArrowHelper,Audio:Audio$2,AudioAnalyser:AudioAnalyser,AudioContext:AudioContext,AudioListener:AudioListener,AudioLoader:AudioLoader,AxesHelper:AxesHelper$1,AxisHelper:AxisHelper,BackSide:BackSide,BasicDepthPacking:BasicDepthPacking,BasicShadowMap:BasicShadowMap,BinaryTextureLoader:BinaryTextureLoader,Bone:Bone,BooleanKeyframeTrack:BooleanKeyframeTrack,BoundingBoxHelper:BoundingBoxHelper,Box2:Box2,Box3:Box3,Box3Helper:Box3Helper,BoxBufferGeometry:BoxGeometry,BoxGeometry:BoxGeometry,BoxHelper:BoxHelper,BufferAttribute:BufferAttribute,BufferGeometry:BufferGeometry,BufferGeometryLoader:BufferGeometryLoader,ByteType:ByteType,Cache:Cache,Camera:Camera$1,CameraHelper:CameraHelper,CanvasRenderer:CanvasRenderer,CanvasTexture:CanvasTexture,CatmullRomCurve3:CatmullRomCurve3,CineonToneMapping:CineonToneMapping,CircleBufferGeometry:CircleGeometry,CircleGeometry:CircleGeometry,ClampToEdgeWrapping:ClampToEdgeWrapping,Clock:Clock,Color:Color$1,ColorKeyframeTrack:ColorKeyframeTrack,CompressedTexture:CompressedTexture,CompressedTextureLoader:CompressedTextureLoader,ConeBufferGeometry:ConeGeometry,ConeGeometry:ConeGeometry,CubeCamera:CubeCamera,CubeReflectionMapping:CubeReflectionMapping,CubeRefractionMapping:CubeRefractionMapping,CubeTexture:CubeTexture,CubeTextureLoader:CubeTextureLoader,CubeUVReflectionMapping:CubeUVReflectionMapping,CubeUVRefractionMapping:CubeUVRefractionMapping,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,CubicInterpolant:CubicInterpolant,CullFaceBack:CullFaceBack,CullFaceFront:CullFaceFront,CullFaceFrontBack:CullFaceFrontBack,CullFaceNone:CullFaceNone,Curve:Curve,CurvePath:CurvePath,CustomBlending:CustomBlending,CustomToneMapping:CustomToneMapping,CylinderBufferGeometry:CylinderGeometry,CylinderGeometry:CylinderGeometry,Cylindrical:Cylindrical,DataTexture:DataTexture,DataTexture2DArray:DataTexture2DArray,DataTexture3D:DataTexture3D,DataTextureLoader:DataTextureLoader,DataUtils:DataUtils,DecrementStencilOp:DecrementStencilOp,DecrementWrapStencilOp:DecrementWrapStencilOp,DefaultLoadingManager:DefaultLoadingManager,DepthFormat:DepthFormat,DepthStencilFormat:DepthStencilFormat,DepthTexture:DepthTexture,DirectionalLight:DirectionalLight,DirectionalLightHelper:DirectionalLightHelper,DiscreteInterpolant:DiscreteInterpolant,DodecahedronBufferGeometry:DodecahedronGeometry,DodecahedronGeometry:DodecahedronGeometry,DoubleSide:DoubleSide,DstAlphaFactor:DstAlphaFactor,DstColorFactor:DstColorFactor,DynamicBufferAttribute:DynamicBufferAttribute,DynamicCopyUsage:DynamicCopyUsage,DynamicDrawUsage:DynamicDrawUsage,DynamicReadUsage:DynamicReadUsage,EdgesGeometry:EdgesGeometry,EdgesHelper:EdgesHelper,EllipseCurve:EllipseCurve,EqualDepth:EqualDepth,EqualStencilFunc:EqualStencilFunc,EquirectangularReflectionMapping:EquirectangularReflectionMapping,EquirectangularRefractionMapping:EquirectangularRefractionMapping,Euler:Euler,EventDispatcher:EventDispatcher,ExtrudeBufferGeometry:ExtrudeGeometry,ExtrudeGeometry:ExtrudeGeometry,FaceColors:FaceColors,FileLoader:FileLoader,FlatShading:FlatShading,Float16BufferAttribute:Float16BufferAttribute,Float32Attribute:Float32Attribute,Float32BufferAttribute:Float32BufferAttribute,Float64Attribute:Float64Attribute,Float64BufferAttribute:Float64BufferAttribute,FloatType:FloatType$1,Fog:Fog,FogExp2:FogExp2,Font:Font,FontLoader:FontLoader,FrontSide:FrontSide,Frustum:Frustum$1,GLBufferAttribute:GLBufferAttribute,GLSL1:GLSL1,GLSL3:GLSL3,GammaEncoding:GammaEncoding,GreaterDepth:GreaterDepth,GreaterEqualDepth:GreaterEqualDepth,GreaterEqualStencilFunc:GreaterEqualStencilFunc,GreaterStencilFunc:GreaterStencilFunc,GridHelper:GridHelper,Group:Group,HalfFloatType:HalfFloatType,HemisphereLight:HemisphereLight$1,HemisphereLightHelper:HemisphereLightHelper,HemisphereLightProbe:HemisphereLightProbe,IcosahedronBufferGeometry:IcosahedronGeometry,IcosahedronGeometry:IcosahedronGeometry,ImageBitmapLoader:ImageBitmapLoader,ImageLoader:ImageLoader,ImageUtils:ImageUtils,ImmediateRenderObject:ImmediateRenderObject,IncrementStencilOp:IncrementStencilOp,IncrementWrapStencilOp:IncrementWrapStencilOp,InstancedBufferAttribute:InstancedBufferAttribute,InstancedBufferGeometry:InstancedBufferGeometry,InstancedInterleavedBuffer:InstancedInterleavedBuffer,InstancedMesh:InstancedMesh,Int16Attribute:Int16Attribute,Int16BufferAttribute:Int16BufferAttribute,Int32Attribute:Int32Attribute,Int32BufferAttribute:Int32BufferAttribute,Int8Attribute:Int8Attribute,Int8BufferAttribute:Int8BufferAttribute,IntType:IntType,InterleavedBuffer:InterleavedBuffer,InterleavedBufferAttribute:InterleavedBufferAttribute,Interpolant:Interpolant,InterpolateDiscrete:InterpolateDiscrete,InterpolateLinear:InterpolateLinear,InterpolateSmooth:InterpolateSmooth,InvertStencilOp:InvertStencilOp,JSONLoader:JSONLoader,KeepStencilOp:KeepStencilOp,KeyframeTrack:KeyframeTrack,LOD:LOD,LatheBufferGeometry:LatheGeometry,LatheGeometry:LatheGeometry,Layers:Layers,LensFlare:LensFlare,LessDepth:LessDepth,LessEqualDepth:LessEqualDepth,LessEqualStencilFunc:LessEqualStencilFunc,LessStencilFunc:LessStencilFunc,Light:Light$2,LightProbe:LightProbe,Line:Line$1,Line3:Line3,LineBasicMaterial:LineBasicMaterial,LineCurve:LineCurve,LineCurve3:LineCurve3,LineDashedMaterial:LineDashedMaterial,LineLoop:LineLoop,LinePieces:LinePieces,LineSegments:LineSegments,LineStrip:LineStrip,LinearEncoding:LinearEncoding,LinearFilter:LinearFilter,LinearInterpolant:LinearInterpolant,LinearMipMapLinearFilter:LinearMipMapLinearFilter,LinearMipMapNearestFilter:LinearMipMapNearestFilter,LinearMipmapLinearFilter:LinearMipmapLinearFilter,LinearMipmapNearestFilter:LinearMipmapNearestFilter,LinearToneMapping:LinearToneMapping,Loader:Loader$1,LoaderUtils:LoaderUtils,LoadingManager:LoadingManager,LogLuvEncoding:LogLuvEncoding,LoopOnce:LoopOnce,LoopPingPong:LoopPingPong,LoopRepeat:LoopRepeat,LuminanceAlphaFormat:LuminanceAlphaFormat,LuminanceFormat:LuminanceFormat,MOUSE:MOUSE,Material:Material,MaterialLoader:MaterialLoader,Math:MathUtils,MathUtils:MathUtils,Matrix3:Matrix3,Matrix4:Matrix4,MaxEquation:MaxEquation,Mesh:Mesh,MeshBasicMaterial:MeshBasicMaterial,MeshDepthMaterial:MeshDepthMaterial,MeshDistanceMaterial:MeshDistanceMaterial,MeshFaceMaterial:MeshFaceMaterial,MeshLambertMaterial:MeshLambertMaterial,MeshMatcapMaterial:MeshMatcapMaterial,MeshNormalMaterial:MeshNormalMaterial,MeshPhongMaterial:MeshPhongMaterial,MeshPhysicalMaterial:MeshPhysicalMaterial,MeshStandardMaterial:MeshStandardMaterial,MeshToonMaterial:MeshToonMaterial,MinEquation:MinEquation,MirroredRepeatWrapping:MirroredRepeatWrapping,MixOperation:MixOperation,MultiMaterial:MultiMaterial,MultiplyBlending:MultiplyBlending,MultiplyOperation:MultiplyOperation,NearestFilter:NearestFilter,NearestMipMapLinearFilter:NearestMipMapLinearFilter,NearestMipMapNearestFilter:NearestMipMapNearestFilter,NearestMipmapLinearFilter:NearestMipmapLinearFilter,NearestMipmapNearestFilter:NearestMipmapNearestFilter,NeverDepth:NeverDepth,NeverStencilFunc:NeverStencilFunc,NoBlending:NoBlending,NoColors:NoColors,NoToneMapping:NoToneMapping,NormalAnimationBlendMode:NormalAnimationBlendMode,NormalBlending:NormalBlending,NotEqualDepth:NotEqualDepth,NotEqualStencilFunc:NotEqualStencilFunc,NumberKeyframeTrack:NumberKeyframeTrack,Object3D:Object3D,ObjectLoader:ObjectLoader,ObjectSpaceNormalMap:ObjectSpaceNormalMap,OctahedronBufferGeometry:OctahedronGeometry,OctahedronGeometry:OctahedronGeometry,OneFactor:OneFactor,OneMinusDstAlphaFactor:OneMinusDstAlphaFactor,OneMinusDstColorFactor:OneMinusDstColorFactor,OneMinusSrcAlphaFactor:OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:OneMinusSrcColorFactor,OrthographicCamera:OrthographicCamera,PCFShadowMap:PCFShadowMap,PCFSoftShadowMap:PCFSoftShadowMap,PMREMGenerator:PMREMGenerator,ParametricBufferGeometry:ParametricGeometry,ParametricGeometry:ParametricGeometry,Particle:Particle,ParticleBasicMaterial:ParticleBasicMaterial,ParticleSystem:ParticleSystem,ParticleSystemMaterial:ParticleSystemMaterial,Path:Path,PerspectiveCamera:PerspectiveCamera,Plane:Plane$1,PlaneBufferGeometry:PlaneGeometry,PlaneGeometry:PlaneGeometry,PlaneHelper:PlaneHelper,PointCloud:PointCloud,PointCloudMaterial:PointCloudMaterial,PointLight:PointLight$1,PointLightHelper:PointLightHelper,Points:Points,PointsMaterial:PointsMaterial,PolarGridHelper:PolarGridHelper,PolyhedronBufferGeometry:PolyhedronGeometry,PolyhedronGeometry:PolyhedronGeometry,PositionalAudio:PositionalAudio,PropertyBinding:PropertyBinding,PropertyMixer:PropertyMixer,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,Quaternion:Quaternion,QuaternionKeyframeTrack:QuaternionKeyframeTrack,QuaternionLinearInterpolant:QuaternionLinearInterpolant,REVISION:REVISION,RGBADepthPacking:RGBADepthPacking,RGBAFormat:RGBAFormat,RGBAIntegerFormat:RGBAIntegerFormat,RGBA_ASTC_10x10_Format:RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGBDEncoding:RGBDEncoding,RGBEEncoding:RGBEEncoding,RGBEFormat:RGBEFormat,RGBFormat:RGBFormat,RGBIntegerFormat:RGBIntegerFormat,RGBM16Encoding:RGBM16Encoding,RGBM7Encoding:RGBM7Encoding,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format,RGFormat:RGFormat,RGIntegerFormat:RGIntegerFormat,RawShaderMaterial:RawShaderMaterial,Ray:Ray,Raycaster:Raycaster,RectAreaLight:RectAreaLight,RedFormat:RedFormat,RedIntegerFormat:RedIntegerFormat,ReinhardToneMapping:ReinhardToneMapping,RepeatWrapping:RepeatWrapping$1,ReplaceStencilOp:ReplaceStencilOp,ReverseSubtractEquation:ReverseSubtractEquation,RingBufferGeometry:RingGeometry,RingGeometry:RingGeometry,SRGB8_ALPHA8_ASTC_10x10_Format:SRGB8_ALPHA8_ASTC_10x10_Format,SRGB8_ALPHA8_ASTC_10x5_Format:SRGB8_ALPHA8_ASTC_10x5_Format,SRGB8_ALPHA8_ASTC_10x6_Format:SRGB8_ALPHA8_ASTC_10x6_Format,SRGB8_ALPHA8_ASTC_10x8_Format:SRGB8_ALPHA8_ASTC_10x8_Format,SRGB8_ALPHA8_ASTC_12x10_Format:SRGB8_ALPHA8_ASTC_12x10_Format,SRGB8_ALPHA8_ASTC_12x12_Format:SRGB8_ALPHA8_ASTC_12x12_Format,SRGB8_ALPHA8_ASTC_4x4_Format:SRGB8_ALPHA8_ASTC_4x4_Format,SRGB8_ALPHA8_ASTC_5x4_Format:SRGB8_ALPHA8_ASTC_5x4_Format,SRGB8_ALPHA8_ASTC_5x5_Format:SRGB8_ALPHA8_ASTC_5x5_Format,SRGB8_ALPHA8_ASTC_6x5_Format:SRGB8_ALPHA8_ASTC_6x5_Format,SRGB8_ALPHA8_ASTC_6x6_Format:SRGB8_ALPHA8_ASTC_6x6_Format,SRGB8_ALPHA8_ASTC_8x5_Format:SRGB8_ALPHA8_ASTC_8x5_Format,SRGB8_ALPHA8_ASTC_8x6_Format:SRGB8_ALPHA8_ASTC_8x6_Format,SRGB8_ALPHA8_ASTC_8x8_Format:SRGB8_ALPHA8_ASTC_8x8_Format,Scene:Scene$2,SceneUtils:SceneUtils,ShaderChunk:ShaderChunk,ShaderLib:ShaderLib,ShaderMaterial:ShaderMaterial,ShadowMaterial:ShadowMaterial,Shape:Shape,ShapeBufferGeometry:ShapeGeometry,ShapeGeometry:ShapeGeometry,ShapePath:ShapePath,ShapeUtils:ShapeUtils,ShortType:ShortType,Skeleton:Skeleton,SkeletonHelper:SkeletonHelper,SkinnedMesh:SkinnedMesh,SmoothShading:SmoothShading,Sphere:Sphere$1,SphereBufferGeometry:SphereGeometry,SphereGeometry:SphereGeometry,Spherical:Spherical,SphericalHarmonics3:SphericalHarmonics3,SplineCurve:SplineCurve,SpotLight:SpotLight$1,SpotLightHelper:SpotLightHelper,Sprite:Sprite$1,SpriteMaterial:SpriteMaterial,SrcAlphaFactor:SrcAlphaFactor,SrcAlphaSaturateFactor:SrcAlphaSaturateFactor,SrcColorFactor:SrcColorFactor,StaticCopyUsage:StaticCopyUsage,StaticDrawUsage:StaticDrawUsage,StaticReadUsage:StaticReadUsage,StereoCamera:StereoCamera,StreamCopyUsage:StreamCopyUsage,StreamDrawUsage:StreamDrawUsage,StreamReadUsage:StreamReadUsage,StringKeyframeTrack:StringKeyframeTrack,SubtractEquation:SubtractEquation,SubtractiveBlending:SubtractiveBlending,TOUCH:TOUCH,TangentSpaceNormalMap:TangentSpaceNormalMap,TetrahedronBufferGeometry:TetrahedronGeometry,TetrahedronGeometry:TetrahedronGeometry,TextBufferGeometry:TextGeometry,TextGeometry:TextGeometry,Texture:Texture,TextureLoader:TextureLoader,TorusBufferGeometry:TorusGeometry,TorusGeometry:TorusGeometry,TorusKnotBufferGeometry:TorusKnotGeometry,TorusKnotGeometry:TorusKnotGeometry,Triangle:Triangle,TriangleFanDrawMode:TriangleFanDrawMode,TriangleStripDrawMode:TriangleStripDrawMode,TrianglesDrawMode:TrianglesDrawMode,TubeBufferGeometry:TubeGeometry,TubeGeometry:TubeGeometry,UVMapping:UVMapping,Uint16Attribute:Uint16Attribute,Uint16BufferAttribute:Uint16BufferAttribute,Uint32Attribute:Uint32Attribute,Uint32BufferAttribute:Uint32BufferAttribute,Uint8Attribute:Uint8Attribute,Uint8BufferAttribute:Uint8BufferAttribute,Uint8ClampedAttribute:Uint8ClampedAttribute,Uint8ClampedBufferAttribute:Uint8ClampedBufferAttribute,Uniform:Uniform,UniformsLib:UniformsLib,UniformsUtils:UniformsUtils,UnsignedByteType:UnsignedByteType,UnsignedInt248Type:UnsignedInt248Type,UnsignedIntType:UnsignedIntType,UnsignedShort4444Type:UnsignedShort4444Type,UnsignedShort5551Type:UnsignedShort5551Type,UnsignedShort565Type:UnsignedShort565Type,UnsignedShortType:UnsignedShortType,VSMShadowMap:VSMShadowMap,Vector2:Vector2,Vector3:Vector3$1,Vector4:Vector4,VectorKeyframeTrack:VectorKeyframeTrack,Vertex:Vertex,VertexColors:VertexColors,VideoTexture:VideoTexture,WebGL1Renderer:WebGL1Renderer,WebGLCubeRenderTarget:WebGLCubeRenderTarget,WebGLMultisampleRenderTarget:WebGLMultisampleRenderTarget,WebGLRenderTarget:WebGLRenderTarget,WebGLRenderTargetCube:WebGLRenderTargetCube,WebGLRenderer:WebGLRenderer,WebGLUtils:WebGLUtils,WireframeGeometry:WireframeGeometry,WireframeHelper:WireframeHelper,WrapAroundEnding:WrapAroundEnding,XHRLoader:XHRLoader,ZeroCurvatureEnding:ZeroCurvatureEnding,ZeroFactor:ZeroFactor,ZeroSlopeEnding:ZeroSlopeEnding,ZeroStencilOp:ZeroStencilOp,sRGBEncoding:sRGBEncoding});var PREFIX = "[Mage]";
53922
53922
  var DEPRECATED = "[DEPRECATED]";
53923
53923
  var DEPRECATIONS = {
53924
53924
  PARTICLES_ADD_PARTICLE_EMITTER: "".concat(PREFIX, " ").concat(DEPRECATED, " Particles.addParticleEmitter is deprecated, use Particles.add instead. Will be removed in the next major release"),
@@ -55221,12 +55221,14 @@ var DEFAULT_SELECTOR = "#gameContainer";
55221
55221
  var BEFORE_UNLOAD = "beforeunload";
55222
55222
  var HASH_CHANGE = "hashchange";
55223
55223
  var TAGS = {
55224
+ HELPER: "TAGS.HELPER",
55224
55225
  LIGHTS: {
55225
55226
  HOLDER: "TAGS.LIGHTS.HOLDER",
55226
55227
  HELPER: "TAGS.LIGHTS.HELPER",
55227
55228
  TARGET: "TAGS.LIGHTS.TARGET"
55228
55229
  },
55229
55230
  SOUNDS: {
55231
+ HELPER: "TAGS.SOUNDS.HELPER",
55230
55232
  HOLDER: "TAGS.SOUNDS.HOLDER"
55231
55233
  }
55232
55234
  };var lib_constants=/*#__PURE__*/Object.freeze({__proto__:null,ALMOST_ZERO:ALMOST_ZERO,UP:UP$1,DOWN:DOWN$1,LEFT:LEFT,RIGHT:RIGHT,FRONT:FRONT,BACK:BACK,VECTOR_UP:VECTOR_UP,VECTOR_DOWN:VECTOR_DOWN,VECTOR_LEFT:VECTOR_LEFT,VECTOR_RIGHT:VECTOR_RIGHT,VECTOR_FRONT:VECTOR_FRONT,VECTOR_BACK:VECTOR_BACK,ORIGIN:ORIGIN,ZERO_QUATERNION:ZERO_QUATERNION,MATERIALS:MATERIALS,TEXTURES:TEXTURES,EFFECTS:EFFECTS,COLLISION_EVENT:COLLISION_EVENT,COLORS:COLORS,ASSETS_TYPES:ASSETS_TYPES,OUTPUT_ENCODINGS:OUTPUT_ENCODINGS,DEFAULT_OUTPUT_ENCODING:DEFAULT_OUTPUT_ENCODING,ROOT:ROOT,DIVIDER:DIVIDER,HASH:HASH,EMPTY:EMPTY$2,QUERY_START:QUERY_START,DEFAULT_SELECTOR:DEFAULT_SELECTOR,BEFORE_UNLOAD:BEFORE_UNLOAD,HASH_CHANGE:HASH_CHANGE,TAGS:TAGS});var buildAssetId = function buildAssetId(name, level) {
@@ -57768,7 +57770,7 @@ function applyMiddleware() {
57768
57770
 
57769
57771
  var thunk = createThunkMiddleware();
57770
57772
  thunk.withExtraArgument = createThunkMiddleware;var name$1 = "mage-engine";
57771
- var version$1 = "3.22.6";
57773
+ var version$1 = "3.22.8";
57772
57774
  var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
57773
57775
  var main = "dist/mage.js";
57774
57776
  var author$1 = {
@@ -82956,7 +82958,7 @@ var MeshLoader = /*#__PURE__*/function (_Loader) {
82956
82958
 
82957
82959
  return MeshLoader;
82958
82960
  }(Loader);
82959
- var MeshLoader$1 = new MeshLoader();var Light = /*#__PURE__*/function (_Entity) {
82961
+ var MeshLoader$1 = new MeshLoader();var Light$1 = /*#__PURE__*/function (_Entity) {
82960
82962
  _inherits(Light, _Entity);
82961
82963
 
82962
82964
  var _super = _createSuper(Light);
@@ -82987,7 +82989,7 @@ var MeshLoader$1 = new MeshLoader();var Light = /*#__PURE__*/function (_Entity)
82987
82989
  holderSprite.setDepthWrite(false);
82988
82990
  holderSprite.setSerializable(false);
82989
82991
  holderSprite.setPosition(_this.getPosition());
82990
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
82992
+ holderSprite.addTags([TAGS.HELPER, TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
82991
82993
  holderSprite.setHelperTarget(_assertThisInitialized(_this));
82992
82994
  _this.holder = holderSprite;
82993
82995
  return true;
@@ -83437,7 +83439,7 @@ var SunLight = /*#__PURE__*/function (_Light) {
83437
83439
  }]);
83438
83440
 
83439
83441
  return SunLight;
83440
- }(Light);var DEFAULT_POSITION$2 = {
83442
+ }(Light$1);var DEFAULT_POSITION$2 = {
83441
83443
  x: 0,
83442
83444
  y: 0,
83443
83445
  z: 0
@@ -83539,7 +83541,7 @@ var AmbientLight = /*#__PURE__*/function (_Light) {
83539
83541
  }]);
83540
83542
 
83541
83543
  return AmbientLight;
83542
- }(Light);var DEFAULT_NEAR$1 = 0.1;
83544
+ }(Light$1);var DEFAULT_NEAR$1 = 0.1;
83543
83545
  var DEFAULT_FAR$1 = 100;
83544
83546
  var DEFAULT_POSITION$1 = {
83545
83547
  x: 0,
@@ -83770,7 +83772,7 @@ var PointLight = /*#__PURE__*/function (_Light) {
83770
83772
  }]);
83771
83773
 
83772
83774
  return PointLight;
83773
- }(Light);var LightLoader = /*#__PURE__*/function (_Loader) {
83775
+ }(Light$1);var LightLoader = /*#__PURE__*/function (_Loader) {
83774
83776
  _inherits(LightLoader, _Loader);
83775
83777
 
83776
83778
  var _super = _createSuper(LightLoader);
@@ -91113,6 +91115,7 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91113
91115
  _this.buffer = null;
91114
91116
  _this.audioNode = null;
91115
91117
  _this.volumeNode = null;
91118
+ _this.detuneValue = 0;
91116
91119
 
91117
91120
  if (!_this.setupConfig.deferred) {
91118
91121
  _this.setupAudio();
@@ -91126,6 +91129,7 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91126
91129
 
91127
91130
  _this.setEntityType(ENTITY_TYPES.AUDIO.DEFAULT);
91128
91131
 
91132
+ Scene$1.add(_this.getBody(), _assertThisInitialized(_this));
91129
91133
  Audio$1.add(_assertThisInitialized(_this));
91130
91134
 
91131
91135
  if (_this.isSetupCompleted()) {
@@ -91154,7 +91158,7 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91154
91158
  holderSprite.setDepthWrite(false);
91155
91159
  holderSprite.setSerializable(false);
91156
91160
  holderSprite.setPosition(this.getPosition());
91157
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
91161
+ holderSprite.addTags([TAGS.HELPER, TAGS.SOUNDS.HELPER, TAGS.SOUNDS.HOLDER, name]);
91158
91162
  holderSprite.setHelperTarget(this);
91159
91163
  this.holder = holderSprite;
91160
91164
  return true;
@@ -91340,14 +91344,14 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91340
91344
  key: "detune",
91341
91345
  value: function detune(value) {
91342
91346
  if (this.audioNode) {
91343
- this.detune = value;
91344
- this.audioNode.detune.value = this.detune;
91347
+ this.detuneValue = value;
91348
+ this.audioNode.detune.value = this.detuneValue;
91345
91349
  }
91346
91350
  }
91347
91351
  }, {
91348
91352
  key: "getDetune",
91349
91353
  value: function getDetune() {
91350
- return this.detune;
91354
+ return this.detuneValue;
91351
91355
  }
91352
91356
  }, {
91353
91357
  key: "addEffect",
@@ -91402,6 +91406,16 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91402
91406
  });
91403
91407
  }
91404
91408
  }
91409
+ }, {
91410
+ key: "usingHelper",
91411
+ value: function usingHelper() {
91412
+ return !!this.isUsingHelper;
91413
+ }
91414
+ }, {
91415
+ key: "hasHolder",
91416
+ value: function hasHolder() {
91417
+ return !!this.holder;
91418
+ }
91405
91419
  }, {
91406
91420
  key: "toJSON",
91407
91421
  value: function toJSON() {
@@ -91416,9 +91430,9 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91416
91430
  hasPlayed: this.hasPlayed,
91417
91431
  playing: this.isPlaying(),
91418
91432
  connected: this.isConnected(),
91419
- duration: this.duration,
91420
- sampleRate: this.sampleRate,
91421
- numberOfChannels: this.numberOfChannels
91433
+ duration: this.hasBuffer() ? this.duration : 0,
91434
+ sampleRate: this.hasBuffer() ? this.sampleRate : 0,
91435
+ numberOfChannels: this.hasBuffer() ? this.numberOfChannels : 0
91422
91436
  });
91423
91437
  }
91424
91438
  }, {
@@ -91658,6 +91672,7 @@ var Sound = /*#__PURE__*/function (_Entity) {
91658
91672
  _this.buffer = null;
91659
91673
  _this.audioNode = null;
91660
91674
  _this.volumeNode = null;
91675
+ _this.detuneValue = 0;
91661
91676
 
91662
91677
  if (!_this.setupConfig.deferred) {
91663
91678
  _this.setupAudio();
@@ -91671,6 +91686,7 @@ var Sound = /*#__PURE__*/function (_Entity) {
91671
91686
 
91672
91687
  _this.setEntityType(ENTITY_TYPES.AUDIO.DEFAULT);
91673
91688
 
91689
+ Scene$1.add(_this.getBody(), _assertThisInitialized(_this));
91674
91690
  Audio$1.add(_assertThisInitialized(_this));
91675
91691
 
91676
91692
  if (_this.isSetupCompleted()) {
@@ -91699,7 +91715,7 @@ var Sound = /*#__PURE__*/function (_Entity) {
91699
91715
  holderSprite.setDepthWrite(false);
91700
91716
  holderSprite.setSerializable(false);
91701
91717
  holderSprite.setPosition(this.getPosition());
91702
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
91718
+ holderSprite.addTags([TAGS.HELPER, TAGS.SOUNDS.HELPER, TAGS.SOUNDS.HOLDER, name]);
91703
91719
  holderSprite.setHelperTarget(this);
91704
91720
  this.holder = holderSprite;
91705
91721
  return true;
@@ -91885,14 +91901,14 @@ var Sound = /*#__PURE__*/function (_Entity) {
91885
91901
  key: "detune",
91886
91902
  value: function detune(value) {
91887
91903
  if (this.audioNode) {
91888
- this.detune = value;
91889
- this.audioNode.detune.value = this.detune;
91904
+ this.detuneValue = value;
91905
+ this.audioNode.detune.value = this.detuneValue;
91890
91906
  }
91891
91907
  }
91892
91908
  }, {
91893
91909
  key: "getDetune",
91894
91910
  value: function getDetune() {
91895
- return this.detune;
91911
+ return this.detuneValue;
91896
91912
  }
91897
91913
  }, {
91898
91914
  key: "addEffect",
@@ -91947,6 +91963,16 @@ var Sound = /*#__PURE__*/function (_Entity) {
91947
91963
  });
91948
91964
  }
91949
91965
  }
91966
+ }, {
91967
+ key: "usingHelper",
91968
+ value: function usingHelper() {
91969
+ return !!this.isUsingHelper;
91970
+ }
91971
+ }, {
91972
+ key: "hasHolder",
91973
+ value: function hasHolder() {
91974
+ return !!this.holder;
91975
+ }
91950
91976
  }, {
91951
91977
  key: "toJSON",
91952
91978
  value: function toJSON() {
@@ -91961,9 +91987,9 @@ var Sound = /*#__PURE__*/function (_Entity) {
91961
91987
  hasPlayed: this.hasPlayed,
91962
91988
  playing: this.isPlaying(),
91963
91989
  connected: this.isConnected(),
91964
- duration: this.duration,
91965
- sampleRate: this.sampleRate,
91966
- numberOfChannels: this.numberOfChannels
91990
+ duration: this.hasBuffer() ? this.duration : 0,
91991
+ sampleRate: this.hasBuffer() ? this.sampleRate : 0,
91992
+ numberOfChannels: this.hasBuffer() ? this.numberOfChannels : 0
91967
91993
  });
91968
91994
  }
91969
91995
  }, {
@@ -92389,7 +92415,250 @@ var SpotLight = /*#__PURE__*/function (_Light) {
92389
92415
  }]);
92390
92416
 
92391
92417
  return SpotLight;
92392
- }(Light);var DEFAULT_INTENSITY = 0.5;
92418
+ }(Light$1);var Light = /*#__PURE__*/function (_Entity) {
92419
+ _inherits(Light, _Entity);
92420
+
92421
+ var _super = _createSuper(Light);
92422
+
92423
+ function Light(_ref) {
92424
+ var _this;
92425
+
92426
+ var color = _ref.color,
92427
+ intensity = _ref.intensity,
92428
+ _name = _ref.name;
92429
+
92430
+ _classCallCheck(this, Light);
92431
+
92432
+ _this = _super.call(this, {
92433
+ name: _name
92434
+ });
92435
+
92436
+ _defineProperty$1(_assertThisInitialized(_this), "addHolder", function () {
92437
+ var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "lightholder";
92438
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
92439
+ var holderSprite = new HelperSprite(size, size, name, {
92440
+ name: name
92441
+ });
92442
+
92443
+ if (holderSprite) {
92444
+ holderSprite.setSizeAttenuation(false);
92445
+ holderSprite.setDepthTest(false);
92446
+ holderSprite.setDepthWrite(false);
92447
+ holderSprite.setSerializable(false);
92448
+ holderSprite.setPosition(_this.getPosition());
92449
+ holderSprite.addTags([TAGS.HELPER, TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
92450
+ holderSprite.setHelperTarget(_assertThisInitialized(_this));
92451
+ _this.holder = holderSprite;
92452
+ return true;
92453
+ } else {
92454
+ console.warn(LIGHT_HOLDER_MODEL_NOT_FOUND$1);
92455
+ return false;
92456
+ }
92457
+ });
92458
+
92459
+ _defineProperty$1(_assertThisInitialized(_this), "addTargetHolder", function () {
92460
+ var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "targetholder";
92461
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
92462
+ var targetSprite = new HelperSprite(size, size, name, {
92463
+ name: name
92464
+ });
92465
+
92466
+ if (targetSprite) {
92467
+ targetSprite.setSizeAttenuation(false);
92468
+ targetSprite.setDepthTest(false);
92469
+ targetSprite.setDepthWrite(false);
92470
+ targetSprite.setSerializable(false);
92471
+ targetSprite.setPosition(_this.getTarget().getPosition());
92472
+ targetSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.TARGET, name]);
92473
+ targetSprite.setHelperTarget(_assertThisInitialized(_this));
92474
+ targetSprite.getBody().add(_this.getBody().target);
92475
+ _this.targetHolder = targetSprite;
92476
+ }
92477
+ });
92478
+
92479
+ _this.color = color;
92480
+ _this.intensity = intensity;
92481
+ _this.name = _name || generateRandomName("Light");
92482
+ _this.isLightOn = false;
92483
+ _this.body = undefined; // helper body for this light
92484
+
92485
+ _this.isUsingHelper = undefined; // holder body representing the light
92486
+
92487
+ _this.holder = undefined; // target body for the light (only used by directional light)
92488
+
92489
+ _this.target = undefined;
92490
+
92491
+ _this.setEntityType(ENTITY_TYPES.LIGHT.DEFAULT);
92492
+
92493
+ Lights$1.add(_assertThisInitialized(_this));
92494
+ return _this;
92495
+ }
92496
+
92497
+ _createClass(Light, [{
92498
+ key: "addToScene",
92499
+ value: function addToScene() {
92500
+ if (this.hasBody()) {
92501
+ Scene$1.add(this.body, this);
92502
+ }
92503
+ }
92504
+ }, {
92505
+ key: "usingHelper",
92506
+ value: function usingHelper() {
92507
+ return !!this.isUsingHelper;
92508
+ }
92509
+ }, {
92510
+ key: "hasHolder",
92511
+ value: function hasHolder() {
92512
+ return !!this.holder;
92513
+ }
92514
+ }, {
92515
+ key: "hasTarget",
92516
+ value: function hasTarget() {
92517
+ return false;
92518
+ }
92519
+ }, {
92520
+ key: "getPosition",
92521
+ value: function getPosition() {
92522
+ return {
92523
+ x: this.body.position.x,
92524
+ y: this.body.position.y,
92525
+ z: this.body.position.z
92526
+ };
92527
+ }
92528
+ }, {
92529
+ key: "setPosition",
92530
+ value: function setPosition(where) {
92531
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
92532
+ _ref2$updateHolder = _ref2.updateHolder,
92533
+ updateHolder = _ref2$updateHolder === void 0 ? true : _ref2$updateHolder;
92534
+
92535
+ var position = _objectSpread2$1(_objectSpread2$1({}, this.getPosition()), where);
92536
+
92537
+ var x = position.x,
92538
+ y = position.y,
92539
+ z = position.z;
92540
+
92541
+ if (this.hasBody()) {
92542
+ this.body.position.set(x, y, z);
92543
+ }
92544
+
92545
+ if (this.hasHolder() && updateHolder) {
92546
+ this.holder.setPosition({
92547
+ x: x,
92548
+ y: y,
92549
+ z: z
92550
+ });
92551
+ }
92552
+ }
92553
+ }, {
92554
+ key: "isAlreadyOn",
92555
+ value: function isAlreadyOn() {
92556
+ return this.hasBody() && this.body.intensity === this.intensity;
92557
+ }
92558
+ }, {
92559
+ key: "isAlreadyOff",
92560
+ value: function isAlreadyOff() {
92561
+ return this.hasBody() && this.body.intensity <= 0;
92562
+ }
92563
+ }, {
92564
+ key: "setIntensity",
92565
+ value: function setIntensity(value) {
92566
+ if (this.hasBody()) {
92567
+ this.body.intensity = value;
92568
+ this.intensity = value;
92569
+ }
92570
+ }
92571
+ }, {
92572
+ key: "getIntensity",
92573
+ value: function getIntensity() {
92574
+ if (this.hasBody()) {
92575
+ return this.body.intensity;
92576
+ }
92577
+ }
92578
+ }, {
92579
+ key: "setColor",
92580
+ value: function setColor(color) {
92581
+ this.body.color = color;
92582
+ }
92583
+ }, {
92584
+ key: "getColor",
92585
+ value: function getColor() {
92586
+ return this.body.color;
92587
+ }
92588
+ }, {
92589
+ key: "setCastShadow",
92590
+ value: function setCastShadow(castShadow) {
92591
+ this.castShadow = castShadow;
92592
+ this.getBody().castShadow = castShadow;
92593
+ }
92594
+ }, {
92595
+ key: "getCastShadow",
92596
+ value: function getCastShadow() {
92597
+ return this.castShadow;
92598
+ }
92599
+ }, {
92600
+ key: "dim",
92601
+ value: function dim() {
92602
+ var _this2 = this;
92603
+
92604
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getIntensity();
92605
+ var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
92606
+ var intensity = this.getIntensity();
92607
+
92608
+ var onUpdate = function onUpdate(value) {
92609
+ return !_this2.isDisposed() && _this2.setIntensity(value);
92610
+ };
92611
+
92612
+ return tweenTo(intensity, value, {
92613
+ time: time,
92614
+ onUpdate: onUpdate
92615
+ });
92616
+ }
92617
+ }, {
92618
+ key: "on",
92619
+ value: function on() {
92620
+ var _this3 = this;
92621
+
92622
+ var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
92623
+
92624
+ if (this.hasBody()) {
92625
+ this.dim(this.intensity, time).then(function () {
92626
+ return _this3.isLightOn = true;
92627
+ });
92628
+ } else {
92629
+ console.log(LIGHT_NOT_FOUND);
92630
+ }
92631
+ }
92632
+ }, {
92633
+ key: "off",
92634
+ value: function off() {
92635
+ var _this4 = this;
92636
+
92637
+ var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
92638
+
92639
+ if (this.hasBody()) {
92640
+ this.dim(0, time).then(function () {
92641
+ return _this4.isLightOn = false;
92642
+ });
92643
+ } else {
92644
+ console.log(LIGHT_NOT_FOUND);
92645
+ }
92646
+ }
92647
+ }, {
92648
+ key: "toJSON",
92649
+ value: function toJSON() {
92650
+ return _objectSpread2$1(_objectSpread2$1({}, _get(_getPrototypeOf(Light.prototype), "toJSON", this).call(this)), {}, {
92651
+ type: this.getEntityType(),
92652
+ color: this.getColor(),
92653
+ intensity: this.getIntensity(),
92654
+ name: this.getName(),
92655
+ castShadow: this.getCastShadow()
92656
+ });
92657
+ }
92658
+ }]);
92659
+
92660
+ return Light;
92661
+ }(Entity);var DEFAULT_INTENSITY = 0.5;
92393
92662
  var DEFAULT_SKY_COLOR = 0xffffff;
92394
92663
  var DEFAULT_GROUND_COLOR = 0x555555;
92395
92664
  var GREEN = 0x2ecc71;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-engine",
3
- "version": "3.22.6",
3
+ "version": "3.22.8",
4
4
  "description": "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.",
5
5
  "main": "dist/mage.js",
6
6
  "author": {