Skip to content

Commit

Permalink
Removed .js from require paths (not needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 15, 2024
1 parent 5d1d379 commit 946e82b
Show file tree
Hide file tree
Showing 38 changed files with 102 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/gameobjects/graphics/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/loader/filetypes/AnimationJSONFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/AsepriteFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/AtlasJSONFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/AtlasXMLFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/AudioSpriteFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/loader/filetypes/BitmapFontFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/MultiAtlasFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/loader/filetypes/MultiScriptFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/loader/filetypes/PackFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/loader/filetypes/SpriteSheetFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/loader/filetypes/TilemapImpactFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/loader/filetypes/TilemapJSONFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
6 changes: 3 additions & 3 deletions src/loader/filetypes/UnityAtlasFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/phaser-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/BitmapMaskPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/LightPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/MobilePipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/MultiPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/PointLightPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/PostFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/webgl/pipelines/PreFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/webgl/pipelines/SinglePipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
10 changes: 5 additions & 5 deletions src/renderer/webgl/pipelines/UtilityPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/BarrelFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/BloomFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/webgl/pipelines/fx/BlurFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/BokehFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/CircleFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/DisplacementFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/GlowFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/GradientFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/PixelateFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/ShadowFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/fx/ShineFXPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
Loading

0 comments on commit 946e82b

Please sign in to comment.