Removed .js from require paths (not needed)

This commit is contained in:
Richard Davey 2024-05-15 15:02:31 +01:00
parent 5d1d379991
commit 946e82b058
38 changed files with 102 additions and 102 deletions

View file

@ -4,7 +4,7 @@
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var BaseCamera = require('../../cameras/2d/BaseCamera.js');
var BaseCamera = require('../../cameras/2d/BaseCamera');
var Class = require('../../utils/Class');
var Commands = require('./Commands');
var Components = require('../components');

View file

@ -6,7 +6,7 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var JSONFile = require('./JSONFile.js');
var JSONFile = require('./JSONFile');
var LoaderEvents = require('../events');
/**

View file

@ -7,10 +7,10 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var JSONFile = require('./JSONFile.js');
var MultiFile = require('../MultiFile.js');
var JSONFile = require('./JSONFile');
var MultiFile = require('../MultiFile');
/**
* @classdesc

View file

@ -7,10 +7,10 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var JSONFile = require('./JSONFile.js');
var MultiFile = require('../MultiFile.js');
var JSONFile = require('./JSONFile');
var MultiFile = require('../MultiFile');
/**
* @classdesc

View file

@ -7,10 +7,10 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var MultiFile = require('../MultiFile.js');
var XMLFile = require('./XMLFile.js');
var MultiFile = require('../MultiFile');
var XMLFile = require('./XMLFile');
/**
* @classdesc

View file

@ -4,13 +4,13 @@
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var AudioFile = require('./AudioFile.js');
var AudioFile = require('./AudioFile');
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var JSONFile = require('./JSONFile.js');
var MultiFile = require('../MultiFile.js');
var JSONFile = require('./JSONFile');
var MultiFile = require('../MultiFile');
/**
* @classdesc

View file

@ -7,11 +7,11 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var MultiFile = require('../MultiFile.js');
var ParseXMLBitmapFont = require('../../gameobjects/bitmaptext/ParseXMLBitmapFont.js');
var XMLFile = require('./XMLFile.js');
var MultiFile = require('../MultiFile');
var ParseXMLBitmapFont = require('../../gameobjects/bitmaptext/ParseXMLBitmapFont');
var XMLFile = require('./XMLFile');
/**
* @classdesc

View file

@ -7,10 +7,10 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var JSONFile = require('./JSONFile.js');
var MultiFile = require('../MultiFile.js');
var JSONFile = require('./JSONFile');
var MultiFile = require('../MultiFile');
/**
* @classdesc

View file

@ -8,8 +8,8 @@ var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var MultiFile = require('../MultiFile.js');
var ScriptFile = require('./ScriptFile.js');
var MultiFile = require('../MultiFile');
var ScriptFile = require('./ScriptFile');
/**
* @classdesc

View file

@ -7,7 +7,7 @@
var Class = require('../../utils/Class');
var CONST = require('../const');
var FileTypesManager = require('../FileTypesManager');
var JSONFile = require('./JSONFile.js');
var JSONFile = require('./JSONFile');
/**
* @classdesc

View file

@ -7,7 +7,7 @@
var Class = require('../../utils/Class');
var CONST = require('../const');
var FileTypesManager = require('../FileTypesManager');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
/**
* @classdesc

View file

@ -6,7 +6,7 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var JSONFile = require('./JSONFile.js');
var JSONFile = require('./JSONFile');
var TILEMAP_FORMATS = require('../../tilemaps/Formats');
/**

View file

@ -6,7 +6,7 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var JSONFile = require('./JSONFile.js');
var JSONFile = require('./JSONFile');
var TILEMAP_FORMATS = require('../../tilemaps/Formats');
/**

View file

@ -7,10 +7,10 @@
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var GetFastValue = require('../../utils/object/GetFastValue');
var ImageFile = require('./ImageFile.js');
var ImageFile = require('./ImageFile');
var IsPlainObject = require('../../utils/object/IsPlainObject');
var MultiFile = require('../MultiFile.js');
var TextFile = require('./TextFile.js');
var MultiFile = require('../MultiFile');
var TextFile = require('./TextFile');
/**
* @classdesc

View file

@ -36,7 +36,7 @@ var Phaser = {
BuildGameObject: require('./gameobjects/BuildGameObject'),
BuildGameObjectAnimation: require('./gameobjects/BuildGameObjectAnimation'),
GameObject: require('./gameobjects/GameObject'),
Graphics: require('./gameobjects/graphics/Graphics.js'),
Graphics: require('./gameobjects/graphics/Graphics'),
Image: require('./gameobjects/image/Image'),
Layer: require('./gameobjects/layer/Layer'),
Sprite: require('./gameobjects/sprite/Sprite'),

View file

@ -7,8 +7,8 @@
var Class = require('../../../utils/Class');
var GetFastValue = require('../../../utils/object/GetFastValue');
var ShaderSourceFS = require('../shaders/BitmapMask-frag.js');
var ShaderSourceVS = require('../shaders/BitmapMask-vert.js');
var ShaderSourceFS = require('../shaders/BitmapMask-frag');
var ShaderSourceVS = require('../shaders/BitmapMask-vert');
var WEBGL_CONST = require('../const');
var WebGLPipeline = require('../WebGLPipeline');

View file

@ -7,7 +7,7 @@
var Class = require('../../../utils/Class');
var GetFastValue = require('../../../utils/object/GetFastValue');
var LightShaderSourceFS = require('../shaders/Light-frag.js');
var LightShaderSourceFS = require('../shaders/Light-frag');
var MultiPipeline = require('./MultiPipeline');
var TransformMatrix = require('../../../gameobjects/components/TransformMatrix');
var Vec2 = require('../../../math/Vector2');

View file

@ -7,8 +7,8 @@
var Class = require('../../../utils/Class');
var GetFastValue = require('../../../utils/object/GetFastValue');
var MultiPipeline = require('./MultiPipeline');
var ShaderSourceFS = require('../shaders/Single-frag.js');
var ShaderSourceVS = require('../shaders/Single-vert.js');
var ShaderSourceFS = require('../shaders/Single-frag');
var ShaderSourceVS = require('../shaders/Single-vert');
var WEBGL_CONST = require('../const');
var WebGLPipeline = require('../WebGLPipeline');

View file

@ -8,8 +8,8 @@
var Class = require('../../../utils/Class');
var Earcut = require('../../../geom/polygon/Earcut');
var GetFastValue = require('../../../utils/object/GetFastValue');
var ShaderSourceFS = require('../shaders/Multi-frag.js');
var ShaderSourceVS = require('../shaders/Multi-vert.js');
var ShaderSourceFS = require('../shaders/Multi-frag');
var ShaderSourceVS = require('../shaders/Multi-vert');
var TransformMatrix = require('../../../gameobjects/components/TransformMatrix');
var Utils = require('../Utils');
var WEBGL_CONST = require('../const');

View file

@ -6,8 +6,8 @@
var Class = require('../../../utils/Class');
var GetFastValue = require('../../../utils/object/GetFastValue');
var PointLightShaderSourceFS = require('../shaders/PointLight-frag.js');
var PointLightShaderSourceVS = require('../shaders/PointLight-vert.js');
var PointLightShaderSourceFS = require('../shaders/PointLight-frag');
var PointLightShaderSourceVS = require('../shaders/PointLight-vert');
var WebGLPipeline = require('../WebGLPipeline');
/**

View file

@ -7,8 +7,8 @@
var Class = require('../../../utils/Class');
var ColorMatrix = require('../../../display/ColorMatrix');
var GetFastValue = require('../../../utils/object/GetFastValue');
var ShaderSourceFS = require('../shaders/PostFX-frag.js');
var ShaderSourceVS = require('../shaders/Quad-vert.js');
var ShaderSourceFS = require('../shaders/PostFX-frag');
var ShaderSourceVS = require('../shaders/Quad-vert');
var WebGLPipeline = require('../WebGLPipeline');
/**

View file

@ -7,14 +7,14 @@
var BlendModes = require('../../BlendModes');
var CenterOn = require('../../../geom/rectangle/CenterOn');
var Class = require('../../../utils/Class');
var ColorMatrixFS = require('../shaders/ColorMatrix-frag.js');
var ColorMatrixFS = require('../shaders/ColorMatrix-frag');
var GetFastValue = require('../../../utils/object/GetFastValue');
var MultiPipeline = require('./MultiPipeline');
var PostFXFS = require('../shaders/PostFX-frag.js');
var PostFXFS = require('../shaders/PostFX-frag');
var Rectangle = require('../../../geom/rectangle/Rectangle');
var RenderTarget = require('../RenderTarget');
var SingleQuadFS = require('../shaders/Single-frag.js');
var SingleQuadVS = require('../shaders/Single-vert.js');
var SingleQuadFS = require('../shaders/Single-frag');
var SingleQuadVS = require('../shaders/Single-vert');
var WebGLPipeline = require('../WebGLPipeline');
/**

View file

@ -7,8 +7,8 @@
var Class = require('../../../utils/Class');
var GetFastValue = require('../../../utils/object/GetFastValue');
var MultiPipeline = require('./MultiPipeline');
var ShaderSourceFS = require('../shaders/Single-frag.js');
var ShaderSourceVS = require('../shaders/Single-vert.js');
var ShaderSourceFS = require('../shaders/Single-frag');
var ShaderSourceVS = require('../shaders/Single-vert');
var WebGLPipeline = require('../WebGLPipeline');
/**

View file

@ -4,15 +4,15 @@
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var AddBlendFS = require('../shaders/AddBlend-frag.js');
var AddBlendFS = require('../shaders/AddBlend-frag');
var BlendModes = require('../../BlendModes');
var Class = require('../../../utils/Class');
var ColorMatrix = require('../../../display/ColorMatrix');
var ColorMatrixFS = require('../shaders/ColorMatrix-frag.js');
var CopyFS = require('../shaders/Copy-frag.js');
var ColorMatrixFS = require('../shaders/ColorMatrix-frag');
var CopyFS = require('../shaders/Copy-frag');
var GetFastValue = require('../../../utils/object/GetFastValue');
var LinearBlendFS = require('../shaders/LinearBlend-frag.js');
var QuadVS = require('../shaders/Quad-vert.js');
var LinearBlendFS = require('../shaders/LinearBlend-frag');
var QuadVS = require('../shaders/Quad-vert');
var WebGLPipeline = require('../WebGLPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var BarrelFrag = require('../../shaders/FXBarrel-frag.js');
var BarrelFrag = require('../../shaders/FXBarrel-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var BloomFrag = require('../../shaders/FXBloom-frag.js');
var BloomFrag = require('../../shaders/FXBloom-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,9 +5,9 @@
*/
var Class = require('../../../../utils/Class');
var BlurLowFrag = require('../../shaders/FXBlurLow-frag.js');
var BlurMedFrag = require('../../shaders/FXBlurMed-frag.js');
var BlurHighFrag = require('../../shaders/FXBlurHigh-frag.js');
var BlurLowFrag = require('../../shaders/FXBlurLow-frag');
var BlurMedFrag = require('../../shaders/FXBlurMed-frag');
var BlurHighFrag = require('../../shaders/FXBlurHigh-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var BokehFrag = require('../../shaders/FXBokeh-frag.js');
var BokehFrag = require('../../shaders/FXBokeh-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var CircleFrag = require('../../shaders/FXCircle-frag.js');
var CircleFrag = require('../../shaders/FXCircle-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var DisplacementFrag = require('../../shaders/FXDisplacement-frag.js');
var DisplacementFrag = require('../../shaders/FXDisplacement-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -6,7 +6,7 @@
var Class = require('../../../../utils/Class');
var GetFastValue = require('../../../../utils/object/GetFastValue');
var GlowFrag = require('../../shaders/FXGlow-frag.js');
var GlowFrag = require('../../shaders/FXGlow-frag');
var PostFXPipeline = require('../PostFXPipeline');
var Utils = require('../../Utils');

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var GradientFrag = require('../../shaders/FXGradient-frag.js');
var GradientFrag = require('../../shaders/FXGradient-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var PixelateFrag = require('../../shaders/FXPixelate-frag.js');
var PixelateFrag = require('../../shaders/FXPixelate-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var ShadowFrag = require('../../shaders/FXShadow-frag.js');
var ShadowFrag = require('../../shaders/FXShadow-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var ShineFrag = require('../../shaders/FXShine-frag.js');
var ShineFrag = require('../../shaders/FXShine-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var VignetteFrag = require('../../shaders/FXVignette-frag.js');
var VignetteFrag = require('../../shaders/FXVignette-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -5,7 +5,7 @@
*/
var Class = require('../../../../utils/Class');
var WipeFrag = require('../../shaders/FXWipe-frag.js');
var WipeFrag = require('../../shaders/FXWipe-frag');
var PostFXPipeline = require('../PostFXPipeline');
/**

View file

@ -10,39 +10,39 @@
module.exports = {
AddBlendFrag: require('./AddBlend-frag.js'),
BitmapMaskFrag: require('./BitmapMask-frag.js'),
BitmapMaskVert: require('./BitmapMask-vert.js'),
ColorMatrixFrag: require('./ColorMatrix-frag.js'),
CopyFrag: require('./Copy-frag.js'),
FXBarrelFrag: require('./FXBarrel-frag.js'),
FXBloomFrag: require('./FXBloom-frag.js'),
FXBlurHighFrag: require('./FXBlurHigh-frag.js'),
FXBlurLowFrag: require('./FXBlurLow-frag.js'),
FXBlurMedFrag: require('./FXBlurMed-frag.js'),
FXBokehFrag: require('./FXBokeh-frag.js'),
FXCircleFrag: require('./FXCircle-frag.js'),
FXDisplacementFrag: require('./FXDisplacement-frag.js'),
FXGlowFrag: require('./FXGlow-frag.js'),
FXGradientFrag: require('./FXGradient-frag.js'),
FXPixelateFrag: require('./FXPixelate-frag.js'),
FXShadowFrag: require('./FXShadow-frag.js'),
FXShineFrag: require('./FXShine-frag.js'),
FXVignetteFrag: require('./FXVignette-frag.js'),
FXWipeFrag: require('./FXWipe-frag.js'),
LightFrag: require('./Light-frag.js'),
LinearBlendFrag: require('./LinearBlend-frag.js'),
MeshFrag: require('./Mesh-frag.js'),
MeshVert: require('./Mesh-vert.js'),
MobileFrag: require('./Mobile-frag.js'),
MobileVert: require('./Mobile-vert.js'),
MultiFrag: require('./Multi-frag.js'),
MultiVert: require('./Multi-vert.js'),
PointLightFrag: require('./PointLight-frag.js'),
PointLightVert: require('./PointLight-vert.js'),
PostFXFrag: require('./PostFX-frag.js'),
QuadVert: require('./Quad-vert.js'),
SingleFrag: require('./Single-frag.js'),
SingleVert: require('./Single-vert.js')
AddBlendFrag: require('./AddBlend-frag'),
BitmapMaskFrag: require('./BitmapMask-frag'),
BitmapMaskVert: require('./BitmapMask-vert'),
ColorMatrixFrag: require('./ColorMatrix-frag'),
CopyFrag: require('./Copy-frag'),
FXBarrelFrag: require('./FXBarrel-frag'),
FXBloomFrag: require('./FXBloom-frag'),
FXBlurHighFrag: require('./FXBlurHigh-frag'),
FXBlurLowFrag: require('./FXBlurLow-frag'),
FXBlurMedFrag: require('./FXBlurMed-frag'),
FXBokehFrag: require('./FXBokeh-frag'),
FXCircleFrag: require('./FXCircle-frag'),
FXDisplacementFrag: require('./FXDisplacement-frag'),
FXGlowFrag: require('./FXGlow-frag'),
FXGradientFrag: require('./FXGradient-frag'),
FXPixelateFrag: require('./FXPixelate-frag'),
FXShadowFrag: require('./FXShadow-frag'),
FXShineFrag: require('./FXShine-frag'),
FXVignetteFrag: require('./FXVignette-frag'),
FXWipeFrag: require('./FXWipe-frag'),
LightFrag: require('./Light-frag'),
LinearBlendFrag: require('./LinearBlend-frag'),
MeshFrag: require('./Mesh-frag'),
MeshVert: require('./Mesh-vert'),
MobileFrag: require('./Mobile-frag'),
MobileVert: require('./Mobile-vert'),
MultiFrag: require('./Multi-frag'),
MultiVert: require('./Multi-vert'),
PointLightFrag: require('./PointLight-frag'),
PointLightVert: require('./PointLight-vert'),
PostFXFrag: require('./PostFX-frag'),
QuadVert: require('./Quad-vert'),
SingleFrag: require('./Single-frag'),
SingleVert: require('./Single-vert')
};