- Source: src/loader/filetypes/typedefs/index.js (Line 7)
Type Definitions
- 
    AsepriteFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/AsepriteFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. textureURLstring <optional> 
 The absolute or relative URL to load the texture image file from. textureExtensionstring <optional> 
 'png' The default file extension to use for the image texture if no url is provided. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture image file. atlasURLobject | string <optional> 
 The absolute or relative URL to load the atlas json file from. Or, a well formed JSON object to use instead. atlasExtensionstring <optional> 
 'json' The default file extension to use for the atlas json if no url is provided. atlasXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the atlas json file. 
- 
    AtlasJSONFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/AtlasJSONFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. textureURLstring <optional> 
 The absolute or relative URL to load the texture image file from. textureExtensionstring <optional> 
 'png' The default file extension to use for the image texture if no url is provided. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture image file. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the texture image. atlasURLobject | string <optional> 
 The absolute or relative URL to load the atlas json file from. Or, a well formed JSON object to use instead. atlasExtensionstring <optional> 
 'json' The default file extension to use for the atlas json if no url is provided. atlasXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the atlas json file. 
- 
    AtlasXMLFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/AtlasXMLFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. textureURLstring <optional> 
 The absolute or relative URL to load the texture image file from. textureExtensionstring <optional> 
 'png' The default file extension to use for the image texture if no url is provided. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture image file. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the texture image. atlasURLstring <optional> 
 The absolute or relative URL to load the atlas xml file from. atlasExtensionstring <optional> 
 'xml' The default file extension to use for the atlas xml if no url is provided. atlasXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the atlas xml file. 
- 
    AudioFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/AudioFileConfig.js (Line 1)
 Properties:Name Type Argument Description keystring The key of the file. Must be unique within the Loader and Audio Cache. urlstring | Array.<string> <optional> 
 The absolute or relative URLs to load the audio files from. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. contextAudioContext <optional> 
 The optional AudioContext this file will use to process itself. 
- 
    AudioSpriteFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/AudioSpriteFileConfig.js (Line 1)
 Properties:Name Type Argument Description keystring The key of the file. Must be unique within both the Loader and the Audio Cache. jsonURLstring The absolute or relative URL to load the json file from. Or a well formed JSON object to use instead. jsonXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the json file. audioURLObject <optional> 
 The absolute or relative URL to load the audio file from. audioConfigany <optional> 
 The audio configuration options. audioXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the audio file. 
- 
    BinaryFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/BinaryFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Binary Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'bin' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. dataTypeany <optional> 
 Optional type to cast the binary file to once loaded. For example, Uint8Array.
- 
    BitmapFontFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/BitmapFontFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. textureURLstring <optional> 
 The absolute or relative URL to load the texture image file from. textureExtensionstring <optional> 
 'png' The default file extension to use for the image texture if no url is provided. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture image file. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the texture image. fontDataURLstring <optional> 
 The absolute or relative URL to load the font data xml file from. fontDataExtensionstring <optional> 
 'xml' The default file extension to use for the font data xml if no url is provided. fontDataXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the font data xml file. 
- 
    CSSFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/CSSFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within the Loader. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    GLSLFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/GLSLFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Text Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. shaderTypestring <optional> 
 'fragment' The type of shader. Either fragmentfor a fragment shader, orvertexfor a vertex shader. This is ignored if you load a shader bundle.extensionstring <optional> 
 'glsl' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    HTMLFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/HTMLFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Text Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'html' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    HTMLTextureFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/HTMLTextureFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'html' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. widthnumber <optional> 
 512 The width of the texture the HTML will be rendered to. heightnumber <optional> 
 512 The height of the texture the HTML will be rendered to. 
- 
    ImageFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/ImageFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'png' The default file extension to use if no url is provided. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the image. frameConfigPhaser.Types.Loader.FileTypes.ImageFrameConfig <optional> 
 The frame configuration object. Only provided for, and used by, Sprite Sheets. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    ImageFrameConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/ImageFrameConfig.js (Line 1)
 Properties:Name Type Argument Default Description frameWidthnumber The width of the frame in pixels. frameHeightnumber <optional> 
 The height of the frame in pixels. Uses the frameWidthvalue if not provided.startFramenumber <optional> 
 0 The first frame to start parsing from. endFramenumber <optional> 
 The frame to stop parsing at. If not provided it will calculate the value based on the image and frame dimensions. marginnumber <optional> 
 0 The margin in the image. This is the space around the edge of the frames. spacingnumber <optional> 
 0 The spacing between each frame in the image. 
- 
    JSONFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/JSONFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the JSON Cache. urlstring | any <optional> 
 The absolute or relative URL to load the file from. Or can be a ready formed JSON object, in which case it will be directly added to the Cache. extensionstring <optional> 
 'json' The default file extension to use if no url is provided. dataKeystring <optional> 
 If specified instead of the whole JSON file being parsed and added to the Cache, only the section corresponding to this property key will be added. If the property you want to extract is nested, use periods to divide it. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    MultiAtlasFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/MultiAtlasFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. atlasURLstring <optional> 
 The absolute or relative URL to load the multi atlas json file from. Or, a well formed JSON object. urlstring <optional> 
 An alias for 'atlasURL'. If given, it overrides anything set in 'atlasURL'. atlasExtensionstring <optional> 
 'json' The default file extension to use for the atlas json if no url is provided. atlasXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the atlas json file. pathstring <optional> 
 Optional path to use when loading the textures defined in the atlas data. baseURLstring <optional> 
 Optional Base URL to use when loading the textures defined in the atlas data. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture files. 
- 
    MultiScriptFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/MultiScriptFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within the Loader. urlArray.<string> <optional> 
 An array of absolute or relative URLs to load the script files from. They are processed in the order given in the array. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for these files. 
- 
    OBJFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/OBJFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the OBJ Cache. urlstring <optional> 
 The absolute or relative URL to load this file from. If undefined or nullit will be set to<key>.obj, i.e. ifkeywas "alien" then the URL will be "alien.obj".extensionstring <optional> 
 'obj' The default file extension to use if no url is provided. flipUVboolean <optional> 
 Flip the UV coordinates stored in the model data? matURLstring <optional> 
 An optional absolute or relative URL to the object material file from. If undefined or null, no material file will be loaded.matExtensionstring <optional> 
 'mat' The default material file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    PackFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/PackFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the JSON Cache. urlstring | any <optional> 
 The absolute or relative URL to load the file from. Or can be a ready formed JSON object, in which case it will be directly processed. extensionstring <optional> 
 'json' The default file extension to use if no url is provided. dataKeystring <optional> 
 If specified instead of the whole JSON file being parsed, only the section corresponding to this property key will be added. If the property you want to extract is nested, use periods to divide it. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    PackFileSection
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/PackFileSection.js (Line 1)
 Properties:Name Type Argument Description filesArray.<Phaser.Types.Loader.FileConfig> The files to load. See Phaser.Types.Loader.FileTypes. baseURLstring <optional> 
 A URL used to resolve paths in files. Example: 'http://labs.phaser.io/assets/'.defaultTypestring <optional> 
 The default Phaser.Types.Loader.FileConfig type.pathstring <optional> 
 A URL path used to resolve relative paths in files. Example: 'images/sprites/'.prefixstring <optional> 
 An optional prefix that is automatically prepended to each file key. Examplevar packFileSection = { "prefix": "TEST2.", "path": "assets/pics", "defaultType": "image", "files": [ { "key": "donuts", "extension": "jpg" }, { "key": "ayu" } ] } // Result: // -------------------------------------------- // assets/pics/ayu.png -> image TEST2.ayu // assets/pics/donuts.jpg -> image TEST2.donuts
- 
    PluginFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/PluginFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within the Loader. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. startboolean <optional> 
 false Automatically start the plugin after loading? mappingstring <optional> 
 If this plugin is to be injected into the Scene, this is the property key used. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    SceneFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/SceneFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Text Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    ScenePluginFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/ScenePluginFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within the Loader. urlstring | function <optional> 
 The absolute or relative URL to load the file from. Or, a Scene Plugin. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. systemKeystring <optional> 
 If this plugin is to be added to Scene.Systems, this is the property key for it. sceneKeystring <optional> 
 If this plugin is to be added to the Scene, this is the property key for it. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    ScriptFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/ScriptFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within the Loader. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'js' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    SpriteSheetFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/SpriteSheetFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'png' The default file extension to use if no url is provided. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the image. frameConfigPhaser.Types.Loader.FileTypes.ImageFrameConfig <optional> 
 The frame configuration object. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    SVGFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/SVGFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'svg' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. svgConfigPhaser.Types.Loader.FileTypes.SVGSizeConfig <optional> 
 The svg size configuration object. 
- 
    SVGSizeConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/SVGSizeConfig.js (Line 1)
 Properties:Name Type Argument Description widthnumber <optional> 
 An optional width. The SVG will be resized to this size before being rendered to a texture. heightnumber <optional> 
 An optional height. The SVG will be resized to this size before being rendered to a texture. scalenumber <optional> 
 An optional scale. If given it overrides the width / height properties. The SVG is scaled by the scale factor before being rendered to a texture. 
- 
    TextFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/TextFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Text Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'txt' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    TilemapCSVFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/TilemapCSVFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Tilemap Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'csv' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    TilemapImpactFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/TilemapImpactFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Tilemap Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'json' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    TilemapJSONFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/TilemapJSONFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Tilemap Cache. urlobject | string <optional> 
 The absolute or relative URL to load the file from. Or, a well formed JSON object. extensionstring <optional> 
 'json' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    UnityAtlasFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/UnityAtlasFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Texture Manager. textureURLstring <optional> 
 The absolute or relative URL to load the texture image file from. textureExtensionstring <optional> 
 'png' The default file extension to use for the image texture if no url is provided. textureXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the texture image file. normalMapstring <optional> 
 The filename of an associated normal map. It uses the same path and url to load as the texture image. atlasURLstring <optional> 
 The absolute or relative URL to load the atlas data file from. atlasExtensionstring <optional> 
 'txt' The default file extension to use for the atlas data if no url is provided. atlasXhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for the atlas data file. 
- 
    VideoFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/VideoFileConfig.js (Line 1)
 Properties:Name Type Argument Description keystring | Phaser.Types.Loader.FileTypes.VideoFileConfig The key to use for this file, or a file configuration object. urlstring | Array.<string> <optional> 
 The absolute or relative URLs to load the video files from. loadEventstring <optional> 
 The load event to listen for when not loading as a blob. Either 'loadeddata', 'canplay' or 'canplaythrough'. asBlobboolean <optional> 
 Load the video as a data blob, or via the Video element? noAudioboolean <optional> 
 Does the video have an audio track? If not you can enable auto-playing on it. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
- 
    XMLFileConfig
- 
    
    
        Type:- object
 - Source: src/loader/filetypes/typedefs/XMLFileConfig.js (Line 1)
 Properties:Name Type Argument Default Description keystring The key of the file. Must be unique within both the Loader and the Text Cache. urlstring <optional> 
 The absolute or relative URL to load the file from. extensionstring <optional> 
 'xml' The default file extension to use if no url is provided. xhrSettingsPhaser.Types.Loader.XHRSettingsObject <optional> 
 Extra XHR Settings specifically for this file. 
