Removed pixelDeviceRatio

This commit is contained in:
Sebastian Kupke 2022-10-04 15:26:17 +02:00
parent c5c2759ebd
commit 3b1ab1f392
5 changed files with 116 additions and 110 deletions

View File

@ -4348,8 +4348,8 @@ if (typeof define === 'function' && define.amd) {
}))); })));
/*! /*!
* pixi.js - v6.5.3 * pixi.js - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* pixi.js is licensed under the MIT License. * pixi.js is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -4772,8 +4772,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/polyfill - v6.5.3 * @pixi/polyfill - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/polyfill is licensed under the MIT License. * @pixi/polyfill is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -4896,15 +4896,15 @@ var PIXI = (function (exports) {
} }
/*! /*!
* @pixi/settings - v6.5.3 * @pixi/settings - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/settings is licensed under the MIT License. * @pixi/settings is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
*/ */
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -8344,8 +8344,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -8858,8 +8858,8 @@ var PIXI = (function (exports) {
})(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {})); })(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
/*! /*!
* @pixi/utils - v6.5.3 * @pixi/utils - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/utils is licensed under the MIT License. * @pixi/utils is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -9440,7 +9440,7 @@ var PIXI = (function (exports) {
settings$1.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false; settings$1.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
var saidHello = false; var saidHello = false;
var VERSION$1 = '6.5.3'; var VERSION$1 = '6.5.5';
/** /**
* Skips the hello message of renderers that are created after this is run. * Skips the hello message of renderers that are created after this is run.
* @function skipHello * @function skipHello
@ -10570,8 +10570,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/math - v6.5.3 * @pixi/math - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/math is licensed under the MIT License. * @pixi/math is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -12153,8 +12153,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/display - v6.5.3 * @pixi/display - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/display is licensed under the MIT License. * @pixi/display is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -13332,8 +13332,8 @@ var PIXI = (function (exports) {
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform; DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -14441,8 +14441,8 @@ var PIXI = (function (exports) {
Container.prototype.containerUpdateTransform = Container.prototype.updateTransform; Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
/*! /*!
* @pixi/extensions - v6.5.3 * @pixi/extensions - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/extensions is licensed under the MIT License. * @pixi/extensions is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -14643,8 +14643,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/runner - v6.5.3 * @pixi/runner - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/runner is licensed under the MIT License. * @pixi/runner is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -14827,8 +14827,8 @@ var PIXI = (function (exports) {
}); });
/*! /*!
* @pixi/ticker - v6.5.3 * @pixi/ticker - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/ticker is licensed under the MIT License. * @pixi/ticker is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -15534,8 +15534,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/core - v6.5.3 * @pixi/core - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/core is licensed under the MIT License. * @pixi/core is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -17117,7 +17117,7 @@ var PIXI = (function (exports) {
// url file extension is SVG // url file extension is SVG
return extension === 'svg' return extension === 'svg'
// source is SVG data-uri // source is SVG data-uri
|| (typeof source === 'string' && (/^data:image\/svg\+xml(;(charset=utf8|utf8))?;base64/).test(source)) || (typeof source === 'string' && source.startsWith('data:image/svg+xml'))
// source is SVG inline // source is SVG inline
|| (typeof source === 'string' && SVGResource.SVG_XML.test(source)); || (typeof source === 'string' && SVGResource.SVG_XML.test(source));
}; };
@ -21194,7 +21194,7 @@ var PIXI = (function (exports) {
// a float cache layer // a float cache layer
{ {
test: function (data) { test: function (data) {
return data.type === 'float' && data.size === 1; return data.type === 'float' && data.size === 1 && !data.isArray;
}, },
code: function (name) { code: function (name) {
return "\n if(uv[\"" + name + "\"] !== ud[\"" + name + "\"].value)\n {\n ud[\"" + name + "\"].value = uv[\"" + name + "\"]\n gl.uniform1f(ud[\"" + name + "\"].location, uv[\"" + name + "\"])\n }\n "; return "\n if(uv[\"" + name + "\"] !== ud[\"" + name + "\"].value)\n {\n ud[\"" + name + "\"].value = uv[\"" + name + "\"]\n gl.uniform1f(ud[\"" + name + "\"].location, uv[\"" + name + "\"])\n }\n ";
@ -21211,7 +21211,7 @@ var PIXI = (function (exports) {
// uploading pixi matrix object to mat3 // uploading pixi matrix object to mat3
{ {
test: function (data, uniform) { test: function (data, uniform) {
return data.type === 'mat3' && data.size === 1 && uniform.a !== undefined; return data.type === 'mat3' && data.size === 1 && !data.isArray && uniform.a !== undefined;
}, },
code: function (name) { code: function (name) {
// TODO and some smart caching dirty ids here! // TODO and some smart caching dirty ids here!
@ -21224,7 +21224,7 @@ var PIXI = (function (exports) {
// uploading a pixi point as a vec2 with caching layer // uploading a pixi point as a vec2 with caching layer
{ {
test: function (data, uniform) { test: function (data, uniform) {
return data.type === 'vec2' && data.size === 1 && uniform.x !== undefined; return data.type === 'vec2' && data.size === 1 && !data.isArray && uniform.x !== undefined;
}, },
code: function (name) { code: function (name) {
return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud[\"" + name + "\"].location, v.x, v.y);\n }"; return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud[\"" + name + "\"].location, v.x, v.y);\n }";
@ -21236,7 +21236,7 @@ var PIXI = (function (exports) {
// caching layer for a vec2 // caching layer for a vec2
{ {
test: function (data) { test: function (data) {
return data.type === 'vec2' && data.size === 1; return data.type === 'vec2' && data.size === 1 && !data.isArray;
}, },
code: function (name) { code: function (name) {
return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud[\"" + name + "\"].location, v[0], v[1]);\n }\n "; return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud[\"" + name + "\"].location, v[0], v[1]);\n }\n ";
@ -21245,7 +21245,7 @@ var PIXI = (function (exports) {
// upload a pixi rectangle as a vec4 with caching layer // upload a pixi rectangle as a vec4 with caching layer
{ {
test: function (data, uniform) { test: function (data, uniform) {
return data.type === 'vec4' && data.size === 1 && uniform.width !== undefined; return data.type === 'vec4' && data.size === 1 && !data.isArray && uniform.width !== undefined;
}, },
code: function (name) { code: function (name) {
return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud[\"" + name + "\"].location, v.x, v.y, v.width, v.height)\n }"; return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud[\"" + name + "\"].location, v.x, v.y, v.width, v.height)\n }";
@ -21257,7 +21257,7 @@ var PIXI = (function (exports) {
// a caching layer for vec4 uploading // a caching layer for vec4 uploading
{ {
test: function (data) { test: function (data) {
return data.type === 'vec4' && data.size === 1; return data.type === 'vec4' && data.size === 1 && !data.isArray;
}, },
code: function (name) { code: function (name) {
return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud[\"" + name + "\"].location, v[0], v[1], v[2], v[3])\n }"; return "\n cv = ud[\"" + name + "\"].value;\n v = uv[\"" + name + "\"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud[\"" + name + "\"].location, v[0], v[1], v[2], v[3])\n }";
@ -21344,7 +21344,7 @@ var PIXI = (function (exports) {
} }
} }
if (!parsed) { if (!parsed) {
var templateType = (data.size === 1) ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS; var templateType = data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS;
var template = templateType[data.type].replace('location', "ud[\"" + i + "\"].location"); var template = templateType[data.type].replace('location', "ud[\"" + i + "\"].location");
funcFragments.push("\n cu = ud[\"" + i + "\"];\n cv = cu.value;\n v = uv[\"" + i + "\"];\n " + template + ";"); funcFragments.push("\n cu = ud[\"" + i + "\"];\n cv = cu.value;\n v = uv[\"" + i + "\"];\n " + template + ";");
} }
@ -23976,6 +23976,9 @@ var PIXI = (function (exports) {
} }
this.updateTexture(texture); this.updateTexture(texture);
} }
else if (glTexture.dirtyStyleId !== texture.dirtyStyleId) {
this.updateTextureStyle(texture);
}
this.boundTextures[location] = texture; this.boundTextures[location] = texture;
} }
else { else {
@ -25822,11 +25825,11 @@ var PIXI = (function (exports) {
* String of the current PIXI version. * String of the current PIXI version.
* @memberof PIXI * @memberof PIXI
*/ */
var VERSION = '6.5.3'; var VERSION = '6.5.5';
/*! /*!
* @pixi/accessibility - v6.5.3 * @pixi/accessibility - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/accessibility is licensed under the MIT License. * @pixi/accessibility is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -26350,8 +26353,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/interaction - v6.5.3 * @pixi/interaction - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/interaction is licensed under the MIT License. * @pixi/interaction is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -27992,6 +27995,8 @@ var PIXI = (function (exports) {
* @param originalEvent - The DOM event of a pointer button being moved into the renderer view. * @param originalEvent - The DOM event of a pointer button being moved into the renderer view.
*/ */
InteractionManager.prototype.onPointerOver = function (originalEvent) { InteractionManager.prototype.onPointerOver = function (originalEvent) {
if (this.supportsTouchEvents && originalEvent.pointerType === 'touch')
{ return; }
var events = this.normalizeToPointerData(originalEvent); var events = this.normalizeToPointerData(originalEvent);
// Only mouse and pointer can call onPointerOver, so events will always be length 1 // Only mouse and pointer can call onPointerOver, so events will always be length 1
var event = events[0]; var event = events[0];
@ -28177,8 +28182,8 @@ var PIXI = (function (exports) {
}(eventemitter3)); }(eventemitter3));
/*! /*!
* @pixi/extract - v6.5.3 * @pixi/extract - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/extract is licensed under the MIT License. * @pixi/extract is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -28384,8 +28389,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/loaders - v6.5.3 * @pixi/loaders - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/loaders is licensed under the MIT License. * @pixi/loaders is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -30316,8 +30321,8 @@ var PIXI = (function (exports) {
extensions.add(TextureLoader, ParsingLoader); extensions.add(TextureLoader, ParsingLoader);
/*! /*!
* @pixi/compressed-textures - v6.5.3 * @pixi/compressed-textures - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/compressed-textures is licensed under the MIT License. * @pixi/compressed-textures is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -31673,8 +31678,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/particle-container - v6.5.3 * @pixi/particle-container - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/particle-container is licensed under the MIT License. * @pixi/particle-container is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -32335,8 +32340,8 @@ var PIXI = (function (exports) {
}(ObjectRenderer)); }(ObjectRenderer));
/*! /*!
* @pixi/graphics - v6.5.3 * @pixi/graphics - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/graphics is licensed under the MIT License. * @pixi/graphics is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -35227,8 +35232,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/sprite - v6.5.3 * @pixi/sprite - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/sprite is licensed under the MIT License. * @pixi/sprite is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -35673,8 +35678,8 @@ var PIXI = (function (exports) {
}(Container)); }(Container));
/*! /*!
* @pixi/text - v6.5.3 * @pixi/text - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/text is licensed under the MIT License. * @pixi/text is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -37571,8 +37576,8 @@ var PIXI = (function (exports) {
}(Sprite)); }(Sprite));
/*! /*!
* @pixi/prepare - v6.5.3 * @pixi/prepare - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/prepare is licensed under the MIT License. * @pixi/prepare is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -38104,8 +38109,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/spritesheet - v6.5.3 * @pixi/spritesheet - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/spritesheet is licensed under the MIT License. * @pixi/spritesheet is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -38426,8 +38431,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/sprite-tiling - v6.5.3 * @pixi/sprite-tiling - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/sprite-tiling is licensed under the MIT License. * @pixi/sprite-tiling is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -38780,8 +38785,8 @@ var PIXI = (function (exports) {
}(ObjectRenderer)); }(ObjectRenderer));
/*! /*!
* @pixi/mesh - v6.5.3 * @pixi/mesh - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/mesh is licensed under the MIT License. * @pixi/mesh is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -39351,8 +39356,8 @@ var PIXI = (function (exports) {
}(Geometry)); }(Geometry));
/*! /*!
* @pixi/text-bitmap - v6.5.3 * @pixi/text-bitmap - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/text-bitmap is licensed under the MIT License. * @pixi/text-bitmap is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -39881,6 +39886,7 @@ var PIXI = (function (exports) {
// only MSDF and SDF fonts need no-premultiplied-alpha // only MSDF and SDF fonts need no-premultiplied-alpha
if ((distanceField === null || distanceField === void 0 ? void 0 : distanceField.fieldType) && distanceField.fieldType !== 'none') { if ((distanceField === null || distanceField === void 0 ? void 0 : distanceField.fieldType) && distanceField.fieldType !== 'none') {
pageTextures[id].baseTexture.alphaMode = exports.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA; pageTextures[id].baseTexture.alphaMode = exports.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA;
pageTextures[id].baseTexture.mipmap = exports.MIPMAP_MODES.OFF;
} }
} }
// parse letters // parse letters
@ -40554,7 +40560,7 @@ var PIXI = (function (exports) {
var fontScale = this._fontSize / size; var fontScale = this._fontSize / size;
for (var _i = 0, _c = this._activePagesMeshData; _i < _c.length; _i++) { for (var _i = 0, _c = this._activePagesMeshData; _i < _c.length; _i++) {
var mesh = _c[_i]; var mesh = _c[_i];
mesh.mesh.shader.uniforms.uFWidth = worldScale * distanceFieldRange * fontScale * this._resolution; mesh.mesh.shader.uniforms.uFWidth = Math.min(worldScale * distanceFieldRange * fontScale * this._resolution, 1.0);
} }
} }
_super.prototype._render.call(this, renderer); _super.prototype._render.call(this, renderer);
@ -40943,8 +40949,8 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/filter-alpha - v6.5.3 * @pixi/filter-alpha - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-alpha is licensed under the MIT License. * @pixi/filter-alpha is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -41024,8 +41030,8 @@ var PIXI = (function (exports) {
}(Filter)); }(Filter));
/*! /*!
* @pixi/filter-blur - v6.5.3 * @pixi/filter-blur - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-blur is licensed under the MIT License. * @pixi/filter-blur is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -41122,8 +41128,8 @@ var PIXI = (function (exports) {
} }
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -41905,8 +41911,8 @@ var PIXI = (function (exports) {
}(Filter)); }(Filter));
/*! /*!
* @pixi/filter-color-matrix - v6.5.3 * @pixi/filter-color-matrix - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-color-matrix is licensed under the MIT License. * @pixi/filter-color-matrix is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -42418,8 +42424,8 @@ var PIXI = (function (exports) {
ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale; ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
/*! /*!
* @pixi/filter-displacement - v6.5.3 * @pixi/filter-displacement - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-displacement is licensed under the MIT License. * @pixi/filter-displacement is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -42541,8 +42547,8 @@ var PIXI = (function (exports) {
}(Filter)); }(Filter));
/*! /*!
* @pixi/filter-fxaa - v6.5.3 * @pixi/filter-fxaa - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-fxaa is licensed under the MIT License. * @pixi/filter-fxaa is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -42597,8 +42603,8 @@ var PIXI = (function (exports) {
}(Filter)); }(Filter));
/*! /*!
* @pixi/filter-noise - v6.5.3 * @pixi/filter-noise - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/filter-noise is licensed under the MIT License. * @pixi/filter-noise is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -42688,16 +42694,16 @@ var PIXI = (function (exports) {
}(Filter)); }(Filter));
/*! /*!
* @pixi/mixin-cache-as-bitmap - v6.5.3 * @pixi/mixin-cache-as-bitmap - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
*/ */
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -43575,8 +43581,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/mixin-get-child-by-name - v6.5.3 * @pixi/mixin-get-child-by-name - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/mixin-get-child-by-name is licensed under the MIT License. * @pixi/mixin-get-child-by-name is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -43620,8 +43626,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/mixin-get-global-position - v6.5.3 * @pixi/mixin-get-global-position - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/mixin-get-global-position is licensed under the MIT License. * @pixi/mixin-get-global-position is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -43651,8 +43657,8 @@ var PIXI = (function (exports) {
}; };
/*! /*!
* @pixi/app - v6.5.3 * @pixi/app - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/app is licensed under the MIT License. * @pixi/app is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -43774,15 +43780,15 @@ var PIXI = (function (exports) {
}()); }());
/*! /*!
* @pixi/settings - v6.5.3 * @pixi/settings - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/settings is licensed under the MIT License. * @pixi/settings is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
*/ */
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -45702,8 +45708,8 @@ var PIXI = (function (exports) {
}); });
/*! /*!
* @pixi/constants - v6.5.3 * @pixi/constants - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/constants is licensed under the MIT License. * @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -46216,8 +46222,8 @@ var PIXI = (function (exports) {
})(BUFFER_TYPE || (BUFFER_TYPE = {})); })(BUFFER_TYPE || (BUFFER_TYPE = {}));
/*! /*!
* @pixi/utils - v6.5.3 * @pixi/utils - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/utils is licensed under the MIT License. * @pixi/utils is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -46548,8 +46554,8 @@ var PIXI = (function (exports) {
extensions.add(ResizePlugin); extensions.add(ResizePlugin);
/*! /*!
* @pixi/mesh-extras - v6.5.3 * @pixi/mesh-extras - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/mesh-extras is licensed under the MIT License. * @pixi/mesh-extras is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license
@ -47172,8 +47178,8 @@ var PIXI = (function (exports) {
}(SimplePlane)); }(SimplePlane));
/*! /*!
* @pixi/sprite-animated - v6.5.3 * @pixi/sprite-animated - v6.5.5
* Compiled Fri, 09 Sep 2022 13:55:20 UTC * Compiled Fri, 30 Sep 2022 14:06:54 UTC
* *
* @pixi/sprite-animated is licensed under the MIT License. * @pixi/sprite-animated is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license * http://www.opensource.org/licenses/mit-license

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/iwmlib.pixi.js vendored
View File

@ -4322,7 +4322,7 @@
backgroundColor = 0x282828, backgroundColor = 0x282828,
theme = 'dark', theme = 'dark',
antialias = true, antialias = true,
resolution = window.devicePixelRatio || 1, resolution = 1,
autoResize = true, autoResize = true,
fpsLogging = false, fpsLogging = false,
progress = {}, progress = {},

View File

@ -90,7 +90,7 @@ export default class PIXIApp extends PIXI.Application {
backgroundColor = 0x282828, backgroundColor = 0x282828,
theme = 'dark', theme = 'dark',
antialias = true, antialias = true,
resolution = window.devicePixelRatio || 1, resolution = 1,
autoResize = true, autoResize = true,
fpsLogging = false, fpsLogging = false,
progress = {}, progress = {},