Updated dependencies.

This commit is contained in:
2019-10-11 09:19:48 +02:00
parent 99c128d7ca
commit 6af487e5fd
71 changed files with 176 additions and 158 deletions
+26 -9
View File
@@ -49113,8 +49113,8 @@ var __filters=function(e,t,n,r,o,i,l,s){"use strict";var a="attribute vec2 aVert
/*!
* pixi-particles - v4.1.2
* Compiled Fri, 05 Jul 2019 15:33:06 UTC
* pixi-particles - v4.1.3
* Compiled Wed, 09 Oct 2019 14:08:42 UTC
*
* pixi-particles is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
@@ -49183,6 +49183,22 @@ this.PIXI = this.PIXI || {};
return PropertyNode;
}());
// get Texture.from()/Texture.fromImage(), in V4 and V5 friendly methods
/**
* @hidden
*/
var TextureFromString;
// to avoid Rollup transforming our import, save pixi namespace in a variable
var pixiNS = pixi;
if (parseInt(/^(\d+)\./.exec(pixi.VERSION)[1]) < 5) {
TextureFromString = pixiNS.Texture.fromImage;
}
else {
TextureFromString = pixiNS.Texture.from;
}
function GetTextureFromString(s) {
return TextureFromString(s);
}
(function (ParticleUtils) {
/**
* If errors and warnings should be logged within the library.
@@ -49869,7 +49885,7 @@ this.PIXI = this.PIXI || {};
var i;
for (i = art.length; i >= 0; --i) {
if (typeof art[i] == "string")
art[i] = pixi.Texture.fromImage(art[i]);
art[i] = GetTextureFromString(art[i]);
}
//particles from different base textures will be slower in WebGL than if they
//were from one spritesheet
@@ -49995,12 +50011,12 @@ this.PIXI = this.PIXI || {};
*/
var ticker;
// to avoid Rollup transforming our import, save pixi namespace in a variable
var pixiNS = pixi;
var pixiNS$1 = pixi;
if (parseInt(/^(\d+)\./.exec(pixi.VERSION)[1]) < 5) {
ticker = pixiNS.ticker.shared;
ticker = pixiNS$1.ticker.shared;
}
else {
ticker = pixiNS.Ticker.shared;
ticker = pixiNS$1.Ticker.shared;
}
/**
* @hidden
@@ -51026,7 +51042,7 @@ this.PIXI = this.PIXI || {};
* //textures is required, and can be an array of any (non-zero) length.
* textures: [
* //each entry represents a single texture that should be used for one or more
* //frames. Any strings will be converted to Textures with Texture.fromImage().
* //frames. Any strings will be converted to Textures with Texture.from().
* //Instances of PIXI.Texture will be used directly.
* "animFrame1.png",
* //entries can be an object with a 'count' property, telling AnimatedParticle to
@@ -51125,14 +51141,14 @@ this.PIXI = this.PIXI || {};
for (var j = 0; j < textures.length; ++j) {
tex = textures[j];
if (typeof tex == "string")
outTextures.push(pixi.Texture.fromImage(tex));
outTextures.push(GetTextureFromString(tex));
else if (tex instanceof pixi.Texture)
outTextures.push(tex);
//assume an object with extra data determining duplicate frame data
else {
var dupe = tex.count || 1;
if (typeof tex.texture == "string")
tex = pixi.Texture.fromImage(tex.texture);
tex = GetTextureFromString(tex.texture);
else // if(tex.texture instanceof Texture)
tex = tex.texture;
for (; dupe > 0; --dupe) {
@@ -51161,6 +51177,7 @@ this.PIXI = this.PIXI || {};
return AnimatedParticle;
}(Particle));
exports.GetTextureFromString = GetTextureFromString;
exports.Particle = Particle;
exports.Emitter = Emitter;
exports.PathParticle = PathParticle;
+1 -1
View File
File diff suppressed because one or more lines are too long
+8 -8
View File
@@ -16121,22 +16121,22 @@
*/
/**
* Class that represents a PixiJS Button.
* Class that represents a PixiJS Text.
*
* @example
* // Create the button
* const button = new Button({
* label: 'My Button',
* action: () => console.log('Button was clicked')
* // Create the text
* const text = new Text({
* label: 'My Text',
* action: () => console.log('Text was clicked')
* })
*
* // Add the button to a DisplayObject
* app.scene.addChild(button)
* // Add the text to a DisplayObject
* app.scene.addChild(text)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/button.html|DocTest}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/text.html|DocTest}
*/
class Text extends PIXI.Container {
/**