Dist build

This commit is contained in:
Richard Davey 2021-03-24 20:09:10 +00:00
parent 9c2abc6b0c
commit 8283d5cb10
6 changed files with 108 additions and 120 deletions

View file

@ -7026,7 +7026,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.53.1',
VERSION: '3.54.0-dev',
BlendModes: __webpack_require__(35),
@ -25694,7 +25694,7 @@ var Group = new Class({
/**
* Returns all children in this Group that match the given criteria based on the `property` and `value` arguments.
*
* For example: `getAll('visible', true)` would return only children that have their `visible` property set.
* For example: `getMatching('visible', true)` would return only children that have their `visible` property set.
*
* Optionally, you can specify a start and end index. For example if the Group has 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only
@ -35233,6 +35233,16 @@ var BitmapText = new Class({
*/
this.dropShadowAlpha = 0.5;
/**
* Indicates whether the font texture is from an atlas or not.
*
* @name Phaser.GameObjects.BitmapText#fromAtlas
* @type {boolean}
* @since 3.54.0
* @readonly
*/
this.fromAtlas = entry.fromAtlas;
this.setTexture(entry.texture, entry.frame);
this.setPosition(x, y);
this.setOrigin(0, 0);
@ -35727,6 +35737,7 @@ var BitmapText = new Class({
this.fontData = entry.data;
this._fontSize = size;
this._align = align;
this.fromAtlas = entry.fromAtlas === true;
this.setTexture(entry.texture, entry.frame);
@ -43976,25 +43987,6 @@ var Systems = new Class({
this.settings.isBooted = true;
},
/**
* Called by a plugin, it tells the System to install the plugin locally.
*
* @method Phaser.Scenes.Systems#install
* @private
* @since 3.0.0
*
* @param {array} plugin - An array of plugins to install into this Scene.
*/
install: function (plugin)
{
if (!Array.isArray(plugin))
{
plugin = [ plugin ];
}
this.plugins.installLocal(this, plugin);
},
/**
* A single game step. Called automatically by the Scene Manager as a result of a Request Animation
* Frame or Set Timeout call to the main Game instance.
@ -46015,7 +46007,7 @@ var Vector2 = __webpack_require__(3);
*
* The position of the Game Object automatically becomes relative to the position of the Container.
*
* The origin of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* The transform point of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* Container should be positioned with this value in mind. I.e. you should treat 0x0 as being the center of
* the Container, and position children positively and negative around it as required.
*
@ -46433,13 +46425,13 @@ var Container = new Class({
if (this.exclusive)
{
gameObject.removeFromDisplayList();
if (gameObject.parentContainer)
{
gameObject.parentContainer.remove(gameObject);
}
gameObject.removeFromDisplayList();
gameObject.parentContainer = this;
}
},
@ -50590,8 +50582,8 @@ var UUID = __webpack_require__(222);
* @param {number} [y=0] - The vertical position of this Game Object in the world.
* @param {number} [width=32] - The width of the Render Texture.
* @param {number} [height=32] - The height of the Render Texture.
* @property {string} [key] - The texture key to make the RenderTexture from.
* @property {string} [frame] - the frame to make the RenderTexture from.
* @param {string} [key] - The texture key to make the RenderTexture from.
* @param {string} [frame] - The frame to make the RenderTexture from.
*/
var RenderTexture = new Class({
@ -100591,9 +100583,11 @@ var WebAudioSoundManager = new Class({
*/
onFocus: function ()
{
if (!this.locked)
var context = this.context;
if (context.state === 'suspended' || context.state === 'interrupted' || !this.locked)
{
this.context.resume();
context.resume();
}
},
@ -113166,7 +113160,7 @@ var LightsManager = new Class({
*
* Point Lights are a WebGL only feature and do not have a Canvas counterpart.
*
* @method Phaser.GameObjects.LightsManager#addPointlight
* @method Phaser.GameObjects.LightsManager#addPointLight
* @since 3.50.0
*
* @param {number} x - The horizontal position of this Point Light in the world.
@ -153690,7 +153684,7 @@ var RGBToString = function (r, g, b, a, prefix)
if (prefix === '#')
{
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1, 7);
}
else
{
@ -154688,7 +154682,6 @@ var CreateDOMContainer = function (game)
'padding: 0; margin: 0;',
'position: absolute;',
'overflow: hidden;',
'pointer-events: none;',
'transform: scale(1);',
'transform-origin: left top;'
].join(' ');
@ -160919,7 +160912,7 @@ var ParseFromAtlas = function (scene, fontName, textureKey, frameKey, xmlKey, xS
{
var data = ParseXMLBitmapFont(xml, frame, xSpacing, ySpacing, texture);
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey });
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey, fromAtlas: true });
return true;
}
@ -161201,7 +161194,9 @@ var BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)
camera.addToRenderList(src);
var textureFrame = src.texture.frames['__BASE'];
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var chars = src.fontData.chars;
var lineHeight = src.fontData.lineHeight;
@ -162371,7 +162366,9 @@ var DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMat
camera.addToRenderList(src);
var textureFrame = src.frame;
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var displayCallback = src.displayCallback;
var callbackData = src.callbackData;
@ -173242,7 +173239,7 @@ var GetMagnitudeSq = __webpack_require__(501);
/**
* Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the
* orthogonal projection of `pointA` onto a straight line paralle to `pointB`.
* orthogonal projection of `pointA` onto a straight line parallel to `pointB`.
*
* @function Phaser.Geom.Point.Project
* @since 3.0.0
@ -180912,7 +180909,7 @@ var KeyboardPlugin = new Class({
/**
* Shuts this Keyboard Plugin down. This performs the following tasks:
*
* 1 - Resets all keys created by this Keyboard plugin.
* 1 - Removes all keys created by this Keyboard plugin.
* 2 - Stops and removes the keyboard event listeners.
* 3 - Clears out any pending requests in the queue, without processing them.
*
@ -180922,7 +180919,8 @@ var KeyboardPlugin = new Class({
*/
shutdown: function ()
{
this.resetKeys();
this.removeAllKeys(true);
this.removeAllListeners();
this.sceneInputPlugin.manager.events.off(InputEvents.MANAGER_PROCESS, this.update, this);
@ -180931,8 +180929,6 @@ var KeyboardPlugin = new Class({
this.scene.sys.events.off(SceneEvents.PAUSE, this.resetKeys, this);
this.scene.sys.events.off(SceneEvents.SLEEP, this.resetKeys, this);
this.removeAllListeners();
this.queue = [];
},

File diff suppressed because one or more lines are too long

74
dist/phaser-ie9.js vendored
View file

@ -7569,7 +7569,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.53.1',
VERSION: '3.54.0-dev',
BlendModes: __webpack_require__(35),
@ -28803,7 +28803,7 @@ var Group = new Class({
/**
* Returns all children in this Group that match the given criteria based on the `property` and `value` arguments.
*
* For example: `getAll('visible', true)` would return only children that have their `visible` property set.
* For example: `getMatching('visible', true)` would return only children that have their `visible` property set.
*
* Optionally, you can specify a start and end index. For example if the Group has 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only
@ -39523,6 +39523,16 @@ var BitmapText = new Class({
*/
this.dropShadowAlpha = 0.5;
/**
* Indicates whether the font texture is from an atlas or not.
*
* @name Phaser.GameObjects.BitmapText#fromAtlas
* @type {boolean}
* @since 3.54.0
* @readonly
*/
this.fromAtlas = entry.fromAtlas;
this.setTexture(entry.texture, entry.frame);
this.setPosition(x, y);
this.setOrigin(0, 0);
@ -40017,6 +40027,7 @@ var BitmapText = new Class({
this.fontData = entry.data;
this._fontSize = size;
this._align = align;
this.fromAtlas = entry.fromAtlas === true;
this.setTexture(entry.texture, entry.frame);
@ -48517,25 +48528,6 @@ var Systems = new Class({
this.settings.isBooted = true;
},
/**
* Called by a plugin, it tells the System to install the plugin locally.
*
* @method Phaser.Scenes.Systems#install
* @private
* @since 3.0.0
*
* @param {array} plugin - An array of plugins to install into this Scene.
*/
install: function (plugin)
{
if (!Array.isArray(plugin))
{
plugin = [ plugin ];
}
this.plugins.installLocal(this, plugin);
},
/**
* A single game step. Called automatically by the Scene Manager as a result of a Request Animation
* Frame or Set Timeout call to the main Game instance.
@ -50556,7 +50548,7 @@ var Vector2 = __webpack_require__(3);
*
* The position of the Game Object automatically becomes relative to the position of the Container.
*
* The origin of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* The transform point of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* Container should be positioned with this value in mind. I.e. you should treat 0x0 as being the center of
* the Container, and position children positively and negative around it as required.
*
@ -50974,13 +50966,13 @@ var Container = new Class({
if (this.exclusive)
{
gameObject.removeFromDisplayList();
if (gameObject.parentContainer)
{
gameObject.parentContainer.remove(gameObject);
}
gameObject.removeFromDisplayList();
gameObject.parentContainer = this;
}
},
@ -55131,8 +55123,8 @@ var UUID = __webpack_require__(222);
* @param {number} [y=0] - The vertical position of this Game Object in the world.
* @param {number} [width=32] - The width of the Render Texture.
* @param {number} [height=32] - The height of the Render Texture.
* @property {string} [key] - The texture key to make the RenderTexture from.
* @property {string} [frame] - the frame to make the RenderTexture from.
* @param {string} [key] - The texture key to make the RenderTexture from.
* @param {string} [frame] - The frame to make the RenderTexture from.
*/
var RenderTexture = new Class({
@ -105779,9 +105771,11 @@ var WebAudioSoundManager = new Class({
*/
onFocus: function ()
{
if (!this.locked)
var context = this.context;
if (context.state === 'suspended' || context.state === 'interrupted' || !this.locked)
{
this.context.resume();
context.resume();
}
},
@ -118354,7 +118348,7 @@ var LightsManager = new Class({
*
* Point Lights are a WebGL only feature and do not have a Canvas counterpart.
*
* @method Phaser.GameObjects.LightsManager#addPointlight
* @method Phaser.GameObjects.LightsManager#addPointLight
* @since 3.50.0
*
* @param {number} x - The horizontal position of this Point Light in the world.
@ -161418,7 +161412,7 @@ var RGBToString = function (r, g, b, a, prefix)
if (prefix === '#')
{
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1, 7);
}
else
{
@ -162416,7 +162410,6 @@ var CreateDOMContainer = function (game)
'padding: 0; margin: 0;',
'position: absolute;',
'overflow: hidden;',
'pointer-events: none;',
'transform: scale(1);',
'transform-origin: left top;'
].join(' ');
@ -168647,7 +168640,7 @@ var ParseFromAtlas = function (scene, fontName, textureKey, frameKey, xmlKey, xS
{
var data = ParseXMLBitmapFont(xml, frame, xSpacing, ySpacing, texture);
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey });
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey, fromAtlas: true });
return true;
}
@ -168929,7 +168922,9 @@ var BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)
camera.addToRenderList(src);
var textureFrame = src.texture.frames['__BASE'];
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var chars = src.fontData.chars;
var lineHeight = src.fontData.lineHeight;
@ -170099,7 +170094,9 @@ var DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMat
camera.addToRenderList(src);
var textureFrame = src.frame;
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var displayCallback = src.displayCallback;
var callbackData = src.callbackData;
@ -180970,7 +180967,7 @@ var GetMagnitudeSq = __webpack_require__(501);
/**
* Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the
* orthogonal projection of `pointA` onto a straight line paralle to `pointB`.
* orthogonal projection of `pointA` onto a straight line parallel to `pointB`.
*
* @function Phaser.Geom.Point.Project
* @since 3.0.0
@ -188640,7 +188637,7 @@ var KeyboardPlugin = new Class({
/**
* Shuts this Keyboard Plugin down. This performs the following tasks:
*
* 1 - Resets all keys created by this Keyboard plugin.
* 1 - Removes all keys created by this Keyboard plugin.
* 2 - Stops and removes the keyboard event listeners.
* 3 - Clears out any pending requests in the queue, without processing them.
*
@ -188650,7 +188647,8 @@ var KeyboardPlugin = new Class({
*/
shutdown: function ()
{
this.resetKeys();
this.removeAllKeys(true);
this.removeAllListeners();
this.sceneInputPlugin.manager.events.off(InputEvents.MANAGER_PROCESS, this.update, this);
@ -188659,8 +188657,6 @@ var KeyboardPlugin = new Class({
this.scene.sys.events.off(SceneEvents.PAUSE, this.resetKeys, this);
this.scene.sys.events.off(SceneEvents.SLEEP, this.resetKeys, this);
this.removeAllListeners();
this.queue = [];
},

File diff suppressed because one or more lines are too long

74
dist/phaser.js vendored
View file

@ -7569,7 +7569,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.53.1',
VERSION: '3.54.0-dev',
BlendModes: __webpack_require__(35),
@ -28803,7 +28803,7 @@ var Group = new Class({
/**
* Returns all children in this Group that match the given criteria based on the `property` and `value` arguments.
*
* For example: `getAll('visible', true)` would return only children that have their `visible` property set.
* For example: `getMatching('visible', true)` would return only children that have their `visible` property set.
*
* Optionally, you can specify a start and end index. For example if the Group has 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only
@ -39523,6 +39523,16 @@ var BitmapText = new Class({
*/
this.dropShadowAlpha = 0.5;
/**
* Indicates whether the font texture is from an atlas or not.
*
* @name Phaser.GameObjects.BitmapText#fromAtlas
* @type {boolean}
* @since 3.54.0
* @readonly
*/
this.fromAtlas = entry.fromAtlas;
this.setTexture(entry.texture, entry.frame);
this.setPosition(x, y);
this.setOrigin(0, 0);
@ -40017,6 +40027,7 @@ var BitmapText = new Class({
this.fontData = entry.data;
this._fontSize = size;
this._align = align;
this.fromAtlas = entry.fromAtlas === true;
this.setTexture(entry.texture, entry.frame);
@ -48517,25 +48528,6 @@ var Systems = new Class({
this.settings.isBooted = true;
},
/**
* Called by a plugin, it tells the System to install the plugin locally.
*
* @method Phaser.Scenes.Systems#install
* @private
* @since 3.0.0
*
* @param {array} plugin - An array of plugins to install into this Scene.
*/
install: function (plugin)
{
if (!Array.isArray(plugin))
{
plugin = [ plugin ];
}
this.plugins.installLocal(this, plugin);
},
/**
* A single game step. Called automatically by the Scene Manager as a result of a Request Animation
* Frame or Set Timeout call to the main Game instance.
@ -50556,7 +50548,7 @@ var Vector2 = __webpack_require__(3);
*
* The position of the Game Object automatically becomes relative to the position of the Container.
*
* The origin of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* The transform point of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the
* Container should be positioned with this value in mind. I.e. you should treat 0x0 as being the center of
* the Container, and position children positively and negative around it as required.
*
@ -50974,13 +50966,13 @@ var Container = new Class({
if (this.exclusive)
{
gameObject.removeFromDisplayList();
if (gameObject.parentContainer)
{
gameObject.parentContainer.remove(gameObject);
}
gameObject.removeFromDisplayList();
gameObject.parentContainer = this;
}
},
@ -55131,8 +55123,8 @@ var UUID = __webpack_require__(222);
* @param {number} [y=0] - The vertical position of this Game Object in the world.
* @param {number} [width=32] - The width of the Render Texture.
* @param {number} [height=32] - The height of the Render Texture.
* @property {string} [key] - The texture key to make the RenderTexture from.
* @property {string} [frame] - the frame to make the RenderTexture from.
* @param {string} [key] - The texture key to make the RenderTexture from.
* @param {string} [frame] - The frame to make the RenderTexture from.
*/
var RenderTexture = new Class({
@ -105779,9 +105771,11 @@ var WebAudioSoundManager = new Class({
*/
onFocus: function ()
{
if (!this.locked)
var context = this.context;
if (context.state === 'suspended' || context.state === 'interrupted' || !this.locked)
{
this.context.resume();
context.resume();
}
},
@ -118354,7 +118348,7 @@ var LightsManager = new Class({
*
* Point Lights are a WebGL only feature and do not have a Canvas counterpart.
*
* @method Phaser.GameObjects.LightsManager#addPointlight
* @method Phaser.GameObjects.LightsManager#addPointLight
* @since 3.50.0
*
* @param {number} x - The horizontal position of this Point Light in the world.
@ -161418,7 +161412,7 @@ var RGBToString = function (r, g, b, a, prefix)
if (prefix === '#')
{
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1, 7);
}
else
{
@ -162416,7 +162410,6 @@ var CreateDOMContainer = function (game)
'padding: 0; margin: 0;',
'position: absolute;',
'overflow: hidden;',
'pointer-events: none;',
'transform: scale(1);',
'transform-origin: left top;'
].join(' ');
@ -168647,7 +168640,7 @@ var ParseFromAtlas = function (scene, fontName, textureKey, frameKey, xmlKey, xS
{
var data = ParseXMLBitmapFont(xml, frame, xSpacing, ySpacing, texture);
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey });
scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey, fromAtlas: true });
return true;
}
@ -168929,7 +168922,9 @@ var BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)
camera.addToRenderList(src);
var textureFrame = src.texture.frames['__BASE'];
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var chars = src.fontData.chars;
var lineHeight = src.fontData.lineHeight;
@ -170099,7 +170094,9 @@ var DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMat
camera.addToRenderList(src);
var textureFrame = src.frame;
var textureFrame = src.fromAtlas
? src.frame
: src.texture.frames['__BASE'];
var displayCallback = src.displayCallback;
var callbackData = src.callbackData;
@ -180970,7 +180967,7 @@ var GetMagnitudeSq = __webpack_require__(501);
/**
* Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the
* orthogonal projection of `pointA` onto a straight line paralle to `pointB`.
* orthogonal projection of `pointA` onto a straight line parallel to `pointB`.
*
* @function Phaser.Geom.Point.Project
* @since 3.0.0
@ -188640,7 +188637,7 @@ var KeyboardPlugin = new Class({
/**
* Shuts this Keyboard Plugin down. This performs the following tasks:
*
* 1 - Resets all keys created by this Keyboard plugin.
* 1 - Removes all keys created by this Keyboard plugin.
* 2 - Stops and removes the keyboard event listeners.
* 3 - Clears out any pending requests in the queue, without processing them.
*
@ -188650,7 +188647,8 @@ var KeyboardPlugin = new Class({
*/
shutdown: function ()
{
this.resetKeys();
this.removeAllKeys(true);
this.removeAllListeners();
this.sceneInputPlugin.manager.events.off(InputEvents.MANAGER_PROCESS, this.update, this);
@ -188659,8 +188657,6 @@ var KeyboardPlugin = new Class({
this.scene.sys.events.off(SceneEvents.PAUSE, this.resetKeys, this);
this.scene.sys.events.off(SceneEvents.SLEEP, this.resetKeys, this);
this.removeAllListeners();
this.queue = [];
},

2
dist/phaser.min.js vendored

File diff suppressed because one or more lines are too long