pixi.js 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/pixi.js +872 -854
- package/dist/browser/pixi.js.map +1 -1
- package/dist/browser/pixi.min.js +3 -3
- package/dist/browser/pixi.min.js.map +1 -1
- package/dist/browser/pixi.min.mjs +3 -3
- package/dist/browser/pixi.min.mjs.map +1 -1
- package/dist/browser/pixi.mjs +1106 -1090
- package/dist/browser/pixi.mjs.map +1 -1
- package/dist/cjs/pixi.js +74 -102
- package/dist/cjs/pixi.js.map +1 -1
- package/dist/cjs/pixi.min.js +3 -3
- package/dist/cjs/pixi.min.js.map +1 -1
- package/dist/esm/pixi.js +3 -3
- package/dist/esm/pixi.js.map +1 -1
- package/dist/esm/pixi.min.js +3 -3
- package/dist/esm/pixi.min.js.map +1 -1
- package/package.json +37 -37
package/dist/browser/pixi.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* pixi.js - v6.3.
|
|
3
|
-
* Compiled
|
|
2
|
+
* pixi.js - v6.3.1
|
|
3
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
4
4
|
*
|
|
5
5
|
* pixi.js is licensed under the MIT License.
|
|
6
6
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -127,7 +127,7 @@ var PIXI = (function (exports) {
|
|
|
127
127
|
Promise$1._immediateFn(function() {
|
|
128
128
|
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
129
129
|
if (cb === null) {
|
|
130
|
-
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
130
|
+
(self._state === 1 ? resolve$1 : reject)(deferred.promise, self._value);
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
var ret;
|
|
@@ -137,11 +137,11 @@ var PIXI = (function (exports) {
|
|
|
137
137
|
reject(deferred.promise, e);
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
resolve(deferred.promise, ret);
|
|
140
|
+
resolve$1(deferred.promise, ret);
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
function resolve(self, newValue) {
|
|
144
|
+
function resolve$1(self, newValue) {
|
|
145
145
|
try {
|
|
146
146
|
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
147
147
|
if (newValue === self)
|
|
@@ -212,7 +212,7 @@ var PIXI = (function (exports) {
|
|
|
212
212
|
function(value) {
|
|
213
213
|
if (done) { return; }
|
|
214
214
|
done = true;
|
|
215
|
-
resolve(self, value);
|
|
215
|
+
resolve$1(self, value);
|
|
216
216
|
},
|
|
217
217
|
function(reason) {
|
|
218
218
|
if (done) { return; }
|
|
@@ -338,7 +338,7 @@ var PIXI = (function (exports) {
|
|
|
338
338
|
'use strict';
|
|
339
339
|
/* eslint-disable no-unused-vars */
|
|
340
340
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
341
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
341
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
342
342
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
343
343
|
|
|
344
344
|
function toObject(val) {
|
|
@@ -404,7 +404,7 @@ var PIXI = (function (exports) {
|
|
|
404
404
|
from = Object(arguments$1[s]);
|
|
405
405
|
|
|
406
406
|
for (var key in from) {
|
|
407
|
-
if (hasOwnProperty.call(from, key)) {
|
|
407
|
+
if (hasOwnProperty$1.call(from, key)) {
|
|
408
408
|
to[key] = from[key];
|
|
409
409
|
}
|
|
410
410
|
}
|
|
@@ -423,8 +423,8 @@ var PIXI = (function (exports) {
|
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
/*!
|
|
426
|
-
* @pixi/polyfill - v6.3.
|
|
427
|
-
* Compiled
|
|
426
|
+
* @pixi/polyfill - v6.3.1
|
|
427
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
428
428
|
*
|
|
429
429
|
* @pixi/polyfill is licensed under the MIT License.
|
|
430
430
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -571,7 +571,7 @@ var PIXI = (function (exports) {
|
|
|
571
571
|
function createMatch(userAgent) {
|
|
572
572
|
return function (regex) { return regex.test(userAgent); };
|
|
573
573
|
}
|
|
574
|
-
function isMobile(param) {
|
|
574
|
+
function isMobile$1(param) {
|
|
575
575
|
var nav = {
|
|
576
576
|
userAgent: '',
|
|
577
577
|
platform: '',
|
|
@@ -672,15 +672,15 @@ var PIXI = (function (exports) {
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/*!
|
|
675
|
-
* @pixi/settings - v6.3.
|
|
676
|
-
* Compiled
|
|
675
|
+
* @pixi/settings - v6.3.1
|
|
676
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
677
677
|
*
|
|
678
678
|
* @pixi/settings is licensed under the MIT License.
|
|
679
679
|
* http://www.opensource.org/licenses/mit-license
|
|
680
680
|
*/
|
|
681
681
|
|
|
682
682
|
// The ESM/CJS versions of ismobilejs only
|
|
683
|
-
var isMobile
|
|
683
|
+
var isMobile = isMobile$1(globalThis.navigator);
|
|
684
684
|
|
|
685
685
|
/**
|
|
686
686
|
* The maximum recommended texture units to use.
|
|
@@ -697,8 +697,8 @@ var PIXI = (function (exports) {
|
|
|
697
697
|
*/
|
|
698
698
|
function maxRecommendedTextures(max) {
|
|
699
699
|
var allowMax = true;
|
|
700
|
-
if (isMobile
|
|
701
|
-
if (isMobile
|
|
700
|
+
if (isMobile.tablet || isMobile.phone) {
|
|
701
|
+
if (isMobile.apple.device) {
|
|
702
702
|
var match = (navigator.userAgent).match(/OS (\d+)_(\d+)?/);
|
|
703
703
|
if (match) {
|
|
704
704
|
var majorVersion = parseInt(match[1], 10);
|
|
@@ -708,7 +708,7 @@ var PIXI = (function (exports) {
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
if (isMobile
|
|
711
|
+
if (isMobile.android.device) {
|
|
712
712
|
var match = (navigator.userAgent).match(/Android\s([0-9.]*)/);
|
|
713
713
|
if (match) {
|
|
714
714
|
var majorVersion = parseInt(match[1], 10);
|
|
@@ -731,12 +731,12 @@ var PIXI = (function (exports) {
|
|
|
731
731
|
* @returns {boolean}
|
|
732
732
|
*/
|
|
733
733
|
function canUploadSameBuffer() {
|
|
734
|
-
return !isMobile
|
|
734
|
+
return !isMobile.apple.device;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
/*!
|
|
738
|
-
* @pixi/constants - v6.3.
|
|
739
|
-
* Compiled
|
|
738
|
+
* @pixi/constants - v6.3.1
|
|
739
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
740
740
|
*
|
|
741
741
|
* @pixi/constants is licensed under the MIT License.
|
|
742
742
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -753,12 +753,12 @@ var PIXI = (function (exports) {
|
|
|
753
753
|
* @property {number} WEBGL - Version 1 of WebGL
|
|
754
754
|
* @property {number} WEBGL2 - Version 2 of WebGL
|
|
755
755
|
*/
|
|
756
|
-
var ENV;
|
|
756
|
+
var ENV$3;
|
|
757
757
|
(function (ENV) {
|
|
758
758
|
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
|
759
759
|
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
|
760
760
|
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
|
761
|
-
})(ENV || (ENV = {}));
|
|
761
|
+
})(ENV$3 || (ENV$3 = {}));
|
|
762
762
|
/**
|
|
763
763
|
* Constant to identify the Renderer Type.
|
|
764
764
|
*
|
|
@@ -770,12 +770,12 @@ var PIXI = (function (exports) {
|
|
|
770
770
|
* @property {number} WEBGL - WebGL render type.
|
|
771
771
|
* @property {number} CANVAS - Canvas render type.
|
|
772
772
|
*/
|
|
773
|
-
var RENDERER_TYPE;
|
|
773
|
+
var RENDERER_TYPE$3;
|
|
774
774
|
(function (RENDERER_TYPE) {
|
|
775
775
|
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
776
776
|
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
|
777
777
|
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
|
778
|
-
})(RENDERER_TYPE || (RENDERER_TYPE = {}));
|
|
778
|
+
})(RENDERER_TYPE$3 || (RENDERER_TYPE$3 = {}));
|
|
779
779
|
/**
|
|
780
780
|
* Bitwise OR of masks that indicate the buffers to be cleared.
|
|
781
781
|
*
|
|
@@ -787,12 +787,12 @@ var PIXI = (function (exports) {
|
|
|
787
787
|
* @property {number} DEPTH - Indicates the depth buffer.
|
|
788
788
|
* @property {number} STENCIL - Indicates the stencil buffer.
|
|
789
789
|
*/
|
|
790
|
-
var BUFFER_BITS;
|
|
790
|
+
var BUFFER_BITS$3;
|
|
791
791
|
(function (BUFFER_BITS) {
|
|
792
792
|
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
|
793
793
|
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
|
794
794
|
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
|
795
|
-
})(BUFFER_BITS || (BUFFER_BITS = {}));
|
|
795
|
+
})(BUFFER_BITS$3 || (BUFFER_BITS$3 = {}));
|
|
796
796
|
/**
|
|
797
797
|
* Various blend modes supported by PIXI.
|
|
798
798
|
*
|
|
@@ -835,7 +835,7 @@ var PIXI = (function (exports) {
|
|
|
835
835
|
* @property {number} ERASE
|
|
836
836
|
* @property {number} XOR
|
|
837
837
|
*/
|
|
838
|
-
var BLEND_MODES;
|
|
838
|
+
var BLEND_MODES$3;
|
|
839
839
|
(function (BLEND_MODES) {
|
|
840
840
|
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
|
841
841
|
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
|
@@ -869,7 +869,7 @@ var PIXI = (function (exports) {
|
|
|
869
869
|
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
|
870
870
|
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
|
871
871
|
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
|
872
|
-
})(BLEND_MODES || (BLEND_MODES = {}));
|
|
872
|
+
})(BLEND_MODES$3 || (BLEND_MODES$3 = {}));
|
|
873
873
|
/**
|
|
874
874
|
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
|
875
875
|
* under certain situations and renderers.
|
|
@@ -886,7 +886,7 @@ var PIXI = (function (exports) {
|
|
|
886
886
|
* @property {number} TRIANGLE_STRIP
|
|
887
887
|
* @property {number} TRIANGLE_FAN
|
|
888
888
|
*/
|
|
889
|
-
var DRAW_MODES;
|
|
889
|
+
var DRAW_MODES$3;
|
|
890
890
|
(function (DRAW_MODES) {
|
|
891
891
|
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
|
892
892
|
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
|
@@ -895,7 +895,7 @@ var PIXI = (function (exports) {
|
|
|
895
895
|
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
|
896
896
|
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
|
897
897
|
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
|
898
|
-
})(DRAW_MODES || (DRAW_MODES = {}));
|
|
898
|
+
})(DRAW_MODES$3 || (DRAW_MODES$3 = {}));
|
|
899
899
|
/**
|
|
900
900
|
* Various GL texture/resources formats.
|
|
901
901
|
*
|
|
@@ -917,7 +917,7 @@ var PIXI = (function (exports) {
|
|
|
917
917
|
* @property {number} DEPTH_COMPONENT=6402
|
|
918
918
|
* @property {number} DEPTH_STENCIL=34041
|
|
919
919
|
*/
|
|
920
|
-
var FORMATS;
|
|
920
|
+
var FORMATS$3;
|
|
921
921
|
(function (FORMATS) {
|
|
922
922
|
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
|
923
923
|
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
|
@@ -932,7 +932,7 @@ var PIXI = (function (exports) {
|
|
|
932
932
|
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
|
933
933
|
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
|
934
934
|
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
|
935
|
-
})(FORMATS || (FORMATS = {}));
|
|
935
|
+
})(FORMATS$3 || (FORMATS$3 = {}));
|
|
936
936
|
/**
|
|
937
937
|
* Various GL target types.
|
|
938
938
|
*
|
|
@@ -950,7 +950,7 @@ var PIXI = (function (exports) {
|
|
|
950
950
|
* @property {number} TEXTURE_CUBE_MAP_POSITIVE_Z=34073
|
|
951
951
|
* @property {number} TEXTURE_CUBE_MAP_NEGATIVE_Z=34074
|
|
952
952
|
*/
|
|
953
|
-
var TARGETS;
|
|
953
|
+
var TARGETS$3;
|
|
954
954
|
(function (TARGETS) {
|
|
955
955
|
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
956
956
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
@@ -961,7 +961,7 @@ var PIXI = (function (exports) {
|
|
|
961
961
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
|
962
962
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
|
963
963
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
|
964
|
-
})(TARGETS || (TARGETS = {}));
|
|
964
|
+
})(TARGETS$3 || (TARGETS$3 = {}));
|
|
965
965
|
/**
|
|
966
966
|
* Various GL data format types.
|
|
967
967
|
*
|
|
@@ -986,7 +986,7 @@ var PIXI = (function (exports) {
|
|
|
986
986
|
* @property {number} FLOAT_32_UNSIGNED_INT_24_8_REV=36269
|
|
987
987
|
* @property {number} HALF_FLOAT=36193
|
|
988
988
|
*/
|
|
989
|
-
var TYPES;
|
|
989
|
+
var TYPES$3;
|
|
990
990
|
(function (TYPES) {
|
|
991
991
|
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
992
992
|
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
@@ -1004,7 +1004,7 @@ var PIXI = (function (exports) {
|
|
|
1004
1004
|
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
|
1005
1005
|
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
|
1006
1006
|
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
|
1007
|
-
})(TYPES || (TYPES = {}));
|
|
1007
|
+
})(TYPES$3 || (TYPES$3 = {}));
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
|
1010
1010
|
* WebGL1 works only with FLOAT.
|
|
@@ -1017,12 +1017,12 @@ var PIXI = (function (exports) {
|
|
|
1017
1017
|
* @property {number} INT=1
|
|
1018
1018
|
* @property {number} UINT=2
|
|
1019
1019
|
*/
|
|
1020
|
-
var SAMPLER_TYPES;
|
|
1020
|
+
var SAMPLER_TYPES$3;
|
|
1021
1021
|
(function (SAMPLER_TYPES) {
|
|
1022
1022
|
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
|
1023
1023
|
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
|
1024
1024
|
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
|
1025
|
-
})(SAMPLER_TYPES || (SAMPLER_TYPES = {}));
|
|
1025
|
+
})(SAMPLER_TYPES$3 || (SAMPLER_TYPES$3 = {}));
|
|
1026
1026
|
/**
|
|
1027
1027
|
* The scale modes that are supported by pixi.
|
|
1028
1028
|
*
|
|
@@ -1036,11 +1036,11 @@ var PIXI = (function (exports) {
|
|
|
1036
1036
|
* @property {number} LINEAR Smooth scaling
|
|
1037
1037
|
* @property {number} NEAREST Pixelating scaling
|
|
1038
1038
|
*/
|
|
1039
|
-
var SCALE_MODES;
|
|
1039
|
+
var SCALE_MODES$3;
|
|
1040
1040
|
(function (SCALE_MODES) {
|
|
1041
1041
|
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
|
1042
1042
|
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
|
1043
|
-
})(SCALE_MODES || (SCALE_MODES = {}));
|
|
1043
|
+
})(SCALE_MODES$3 || (SCALE_MODES$3 = {}));
|
|
1044
1044
|
/**
|
|
1045
1045
|
* The wrap modes that are supported by pixi.
|
|
1046
1046
|
*
|
|
@@ -1059,12 +1059,12 @@ var PIXI = (function (exports) {
|
|
|
1059
1059
|
* @property {number} REPEAT - The texture uvs tile and repeat
|
|
1060
1060
|
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
|
1061
1061
|
*/
|
|
1062
|
-
var WRAP_MODES;
|
|
1062
|
+
var WRAP_MODES$3;
|
|
1063
1063
|
(function (WRAP_MODES) {
|
|
1064
1064
|
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
|
1065
1065
|
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
|
1066
1066
|
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
|
1067
|
-
})(WRAP_MODES || (WRAP_MODES = {}));
|
|
1067
|
+
})(WRAP_MODES$3 || (WRAP_MODES$3 = {}));
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Mipmap filtering modes that are supported by pixi.
|
|
1070
1070
|
*
|
|
@@ -1085,13 +1085,13 @@ var PIXI = (function (exports) {
|
|
|
1085
1085
|
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
|
1086
1086
|
* that supports buffering each level-of-detail.
|
|
1087
1087
|
*/
|
|
1088
|
-
var MIPMAP_MODES;
|
|
1088
|
+
var MIPMAP_MODES$3;
|
|
1089
1089
|
(function (MIPMAP_MODES) {
|
|
1090
1090
|
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
|
1091
1091
|
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
|
1092
1092
|
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
|
1093
1093
|
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
|
1094
|
-
})(MIPMAP_MODES || (MIPMAP_MODES = {}));
|
|
1094
|
+
})(MIPMAP_MODES$3 || (MIPMAP_MODES$3 = {}));
|
|
1095
1095
|
/**
|
|
1096
1096
|
* How to treat textures with premultiplied alpha
|
|
1097
1097
|
*
|
|
@@ -1109,7 +1109,7 @@ var PIXI = (function (exports) {
|
|
|
1109
1109
|
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
|
1110
1110
|
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
|
1111
1111
|
*/
|
|
1112
|
-
var ALPHA_MODES;
|
|
1112
|
+
var ALPHA_MODES$3;
|
|
1113
1113
|
(function (ALPHA_MODES) {
|
|
1114
1114
|
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
|
1115
1115
|
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
|
@@ -1118,7 +1118,7 @@ var PIXI = (function (exports) {
|
|
|
1118
1118
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
|
1119
1119
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
|
1120
1120
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
|
1121
|
-
})(ALPHA_MODES || (ALPHA_MODES = {}));
|
|
1121
|
+
})(ALPHA_MODES$3 || (ALPHA_MODES$3 = {}));
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Configure whether filter textures are cleared after binding.
|
|
1124
1124
|
*
|
|
@@ -1136,7 +1136,7 @@ var PIXI = (function (exports) {
|
|
|
1136
1136
|
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
|
1137
1137
|
* @property {number} AUTO - Alias for BLIT
|
|
1138
1138
|
*/
|
|
1139
|
-
var CLEAR_MODES;
|
|
1139
|
+
var CLEAR_MODES$3;
|
|
1140
1140
|
(function (CLEAR_MODES) {
|
|
1141
1141
|
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
|
1142
1142
|
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
|
@@ -1144,7 +1144,7 @@ var PIXI = (function (exports) {
|
|
|
1144
1144
|
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
|
1145
1145
|
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
|
1146
1146
|
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
|
1147
|
-
})(CLEAR_MODES || (CLEAR_MODES = {}));
|
|
1147
|
+
})(CLEAR_MODES$3 || (CLEAR_MODES$3 = {}));
|
|
1148
1148
|
/**
|
|
1149
1149
|
* The gc modes that are supported by pixi.
|
|
1150
1150
|
*
|
|
@@ -1164,11 +1164,11 @@ var PIXI = (function (exports) {
|
|
|
1164
1164
|
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
|
1165
1165
|
* @property {number} MANUAL - Garbage collection will need to be called manually
|
|
1166
1166
|
*/
|
|
1167
|
-
var GC_MODES;
|
|
1167
|
+
var GC_MODES$3;
|
|
1168
1168
|
(function (GC_MODES) {
|
|
1169
1169
|
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
|
1170
1170
|
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
|
1171
|
-
})(GC_MODES || (GC_MODES = {}));
|
|
1171
|
+
})(GC_MODES$3 || (GC_MODES$3 = {}));
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Constants that specify float precision in shaders.
|
|
1174
1174
|
*
|
|
@@ -1181,12 +1181,12 @@ var PIXI = (function (exports) {
|
|
|
1181
1181
|
* @property {string} MEDIUM='mediump'
|
|
1182
1182
|
* @property {string} HIGH='highp'
|
|
1183
1183
|
*/
|
|
1184
|
-
var PRECISION;
|
|
1184
|
+
var PRECISION$3;
|
|
1185
1185
|
(function (PRECISION) {
|
|
1186
1186
|
PRECISION["LOW"] = "lowp";
|
|
1187
1187
|
PRECISION["MEDIUM"] = "mediump";
|
|
1188
1188
|
PRECISION["HIGH"] = "highp";
|
|
1189
|
-
})(PRECISION || (PRECISION = {}));
|
|
1189
|
+
})(PRECISION$3 || (PRECISION$3 = {}));
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Constants for mask implementations.
|
|
1192
1192
|
* We use `type` suffix because it leads to very different behaviours
|
|
@@ -1200,13 +1200,13 @@ var PIXI = (function (exports) {
|
|
|
1200
1200
|
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
|
1201
1201
|
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
|
1202
1202
|
*/
|
|
1203
|
-
var MASK_TYPES;
|
|
1203
|
+
var MASK_TYPES$3;
|
|
1204
1204
|
(function (MASK_TYPES) {
|
|
1205
1205
|
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
|
1206
1206
|
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
|
1207
1207
|
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
|
1208
1208
|
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
|
1209
|
-
})(MASK_TYPES || (MASK_TYPES = {}));
|
|
1209
|
+
})(MASK_TYPES$3 || (MASK_TYPES$3 = {}));
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Constants for multi-sampling antialiasing.
|
|
1212
1212
|
*
|
|
@@ -1221,13 +1221,13 @@ var PIXI = (function (exports) {
|
|
|
1221
1221
|
* @property {number} MEDIUM - Try 4 samples
|
|
1222
1222
|
* @property {number} HIGH - Try 8 samples
|
|
1223
1223
|
*/
|
|
1224
|
-
var MSAA_QUALITY;
|
|
1224
|
+
var MSAA_QUALITY$3;
|
|
1225
1225
|
(function (MSAA_QUALITY) {
|
|
1226
1226
|
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
|
1227
1227
|
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
|
1228
1228
|
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
|
1229
1229
|
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
|
1230
|
-
})(MSAA_QUALITY || (MSAA_QUALITY = {}));
|
|
1230
|
+
})(MSAA_QUALITY$3 || (MSAA_QUALITY$3 = {}));
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Constants for various buffer types in Pixi
|
|
1233
1233
|
*
|
|
@@ -1241,13 +1241,13 @@ var PIXI = (function (exports) {
|
|
|
1241
1241
|
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
|
1242
1242
|
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
|
1243
1243
|
*/
|
|
1244
|
-
var BUFFER_TYPE;
|
|
1244
|
+
var BUFFER_TYPE$3;
|
|
1245
1245
|
(function (BUFFER_TYPE) {
|
|
1246
1246
|
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
1247
1247
|
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
1248
1248
|
// NOT YET SUPPORTED
|
|
1249
1249
|
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
|
1250
|
-
})(BUFFER_TYPE || (BUFFER_TYPE = {}));
|
|
1250
|
+
})(BUFFER_TYPE$3 || (BUFFER_TYPE$3 = {}));
|
|
1251
1251
|
|
|
1252
1252
|
/**
|
|
1253
1253
|
* User's customizable globals for overriding the default PIXI settings, such
|
|
@@ -1272,7 +1272,7 @@ var PIXI = (function (exports) {
|
|
|
1272
1272
|
* @type {PIXI.MIPMAP_MODES}
|
|
1273
1273
|
* @default PIXI.MIPMAP_MODES.POW2
|
|
1274
1274
|
*/
|
|
1275
|
-
MIPMAP_TEXTURES: MIPMAP_MODES.POW2,
|
|
1275
|
+
MIPMAP_TEXTURES: MIPMAP_MODES$3.POW2,
|
|
1276
1276
|
/**
|
|
1277
1277
|
* Default anisotropic filtering level of textures.
|
|
1278
1278
|
* Usually from 0 to 16
|
|
@@ -1313,7 +1313,7 @@ var PIXI = (function (exports) {
|
|
|
1313
1313
|
* @type {PIXI.MSAA_QUALITY}
|
|
1314
1314
|
* @default PIXI.MSAA_QUALITY.NONE
|
|
1315
1315
|
*/
|
|
1316
|
-
FILTER_MULTISAMPLE: MSAA_QUALITY.NONE,
|
|
1316
|
+
FILTER_MULTISAMPLE: MSAA_QUALITY$3.NONE,
|
|
1317
1317
|
/**
|
|
1318
1318
|
* The maximum textures that this device supports.
|
|
1319
1319
|
*
|
|
@@ -1380,7 +1380,7 @@ var PIXI = (function (exports) {
|
|
|
1380
1380
|
* @type {PIXI.GC_MODES}
|
|
1381
1381
|
* @default PIXI.GC_MODES.AUTO
|
|
1382
1382
|
*/
|
|
1383
|
-
GC_MODE: GC_MODES.AUTO,
|
|
1383
|
+
GC_MODE: GC_MODES$3.AUTO,
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Default Garbage Collection max idle.
|
|
1386
1386
|
*
|
|
@@ -1410,7 +1410,7 @@ var PIXI = (function (exports) {
|
|
|
1410
1410
|
* @type {PIXI.WRAP_MODES}
|
|
1411
1411
|
* @default PIXI.WRAP_MODES.CLAMP
|
|
1412
1412
|
*/
|
|
1413
|
-
WRAP_MODE: WRAP_MODES.CLAMP,
|
|
1413
|
+
WRAP_MODE: WRAP_MODES$3.CLAMP,
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Default scale mode for textures.
|
|
1416
1416
|
*
|
|
@@ -1420,7 +1420,7 @@ var PIXI = (function (exports) {
|
|
|
1420
1420
|
* @type {PIXI.SCALE_MODES}
|
|
1421
1421
|
* @default PIXI.SCALE_MODES.LINEAR
|
|
1422
1422
|
*/
|
|
1423
|
-
SCALE_MODE: SCALE_MODES.LINEAR,
|
|
1423
|
+
SCALE_MODE: SCALE_MODES$3.LINEAR,
|
|
1424
1424
|
/**
|
|
1425
1425
|
* Default specify float precision in vertex shader.
|
|
1426
1426
|
*
|
|
@@ -1430,7 +1430,7 @@ var PIXI = (function (exports) {
|
|
|
1430
1430
|
* @type {PIXI.PRECISION}
|
|
1431
1431
|
* @default PIXI.PRECISION.HIGH
|
|
1432
1432
|
*/
|
|
1433
|
-
PRECISION_VERTEX: PRECISION.HIGH,
|
|
1433
|
+
PRECISION_VERTEX: PRECISION$3.HIGH,
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Default specify float precision in fragment shader.
|
|
1436
1436
|
* iOS is best set at highp due to https://github.com/pixijs/pixi.js/issues/3742
|
|
@@ -1441,7 +1441,7 @@ var PIXI = (function (exports) {
|
|
|
1441
1441
|
* @type {PIXI.PRECISION}
|
|
1442
1442
|
* @default PIXI.PRECISION.MEDIUM
|
|
1443
1443
|
*/
|
|
1444
|
-
PRECISION_FRAGMENT: isMobile
|
|
1444
|
+
PRECISION_FRAGMENT: isMobile.apple.device ? PRECISION$3.HIGH : PRECISION$3.MEDIUM,
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Can we upload the same buffer in a single frame?
|
|
1447
1447
|
*
|
|
@@ -2353,10 +2353,10 @@ var PIXI = (function (exports) {
|
|
|
2353
2353
|
|
|
2354
2354
|
// check if two segments intersect
|
|
2355
2355
|
function intersects(p1, q1, p2, q2) {
|
|
2356
|
-
var o1 = sign(area(p1, q1, p2));
|
|
2357
|
-
var o2 = sign(area(p1, q1, q2));
|
|
2358
|
-
var o3 = sign(area(p2, q2, p1));
|
|
2359
|
-
var o4 = sign(area(p2, q2, q1));
|
|
2356
|
+
var o1 = sign$1(area(p1, q1, p2));
|
|
2357
|
+
var o2 = sign$1(area(p1, q1, q2));
|
|
2358
|
+
var o3 = sign$1(area(p2, q2, p1));
|
|
2359
|
+
var o4 = sign$1(area(p2, q2, q1));
|
|
2360
2360
|
|
|
2361
2361
|
if (o1 !== o2 && o3 !== o4) { return true; } // general case
|
|
2362
2362
|
|
|
@@ -2373,7 +2373,7 @@ var PIXI = (function (exports) {
|
|
|
2373
2373
|
return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
function sign(num) {
|
|
2376
|
+
function sign$1(num) {
|
|
2377
2377
|
return num > 0 ? 1 : num < 0 ? -1 : 0;
|
|
2378
2378
|
}
|
|
2379
2379
|
|
|
@@ -3116,7 +3116,7 @@ var PIXI = (function (exports) {
|
|
|
3116
3116
|
// If obj.hasOwnProperty has been overridden, then calling
|
|
3117
3117
|
// obj.hasOwnProperty(prop) will break.
|
|
3118
3118
|
// See: https://github.com/joyent/node/issues/1707
|
|
3119
|
-
function hasOwnProperty
|
|
3119
|
+
function hasOwnProperty(obj, prop) {
|
|
3120
3120
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3121
3121
|
}
|
|
3122
3122
|
|
|
@@ -3159,7 +3159,7 @@ var PIXI = (function (exports) {
|
|
|
3159
3159
|
k = decodeURIComponent(kstr);
|
|
3160
3160
|
v = decodeURIComponent(vstr);
|
|
3161
3161
|
|
|
3162
|
-
if (!hasOwnProperty
|
|
3162
|
+
if (!hasOwnProperty(obj, k)) {
|
|
3163
3163
|
obj[k] = v;
|
|
3164
3164
|
} else if (Array.isArray(obj[k])) {
|
|
3165
3165
|
obj[k].push(v);
|
|
@@ -3270,7 +3270,7 @@ var PIXI = (function (exports) {
|
|
|
3270
3270
|
|
|
3271
3271
|
|
|
3272
3272
|
var parse = urlParse;
|
|
3273
|
-
var resolve
|
|
3273
|
+
var resolve = urlResolve;
|
|
3274
3274
|
var resolveObject = urlResolveObject;
|
|
3275
3275
|
var format = urlFormat;
|
|
3276
3276
|
|
|
@@ -3975,17 +3975,17 @@ var PIXI = (function (exports) {
|
|
|
3975
3975
|
if (host) { this.hostname = host; }
|
|
3976
3976
|
};
|
|
3977
3977
|
|
|
3978
|
-
var url = {
|
|
3978
|
+
var url$1 = {
|
|
3979
3979
|
parse: parse,
|
|
3980
|
-
resolve: resolve
|
|
3980
|
+
resolve: resolve,
|
|
3981
3981
|
resolveObject: resolveObject,
|
|
3982
3982
|
format: format,
|
|
3983
3983
|
Url: Url_1
|
|
3984
3984
|
};
|
|
3985
3985
|
|
|
3986
3986
|
/*!
|
|
3987
|
-
* @pixi/constants - v6.3.
|
|
3988
|
-
* Compiled
|
|
3987
|
+
* @pixi/constants - v6.3.1
|
|
3988
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
3989
3989
|
*
|
|
3990
3990
|
* @pixi/constants is licensed under the MIT License.
|
|
3991
3991
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -4002,7 +4002,7 @@ var PIXI = (function (exports) {
|
|
|
4002
4002
|
* @property {number} WEBGL - Version 1 of WebGL
|
|
4003
4003
|
* @property {number} WEBGL2 - Version 2 of WebGL
|
|
4004
4004
|
*/
|
|
4005
|
-
|
|
4005
|
+
exports.ENV = void 0;
|
|
4006
4006
|
(function (ENV) {
|
|
4007
4007
|
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
|
4008
4008
|
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
|
@@ -4019,7 +4019,7 @@ var PIXI = (function (exports) {
|
|
|
4019
4019
|
* @property {number} WEBGL - WebGL render type.
|
|
4020
4020
|
* @property {number} CANVAS - Canvas render type.
|
|
4021
4021
|
*/
|
|
4022
|
-
|
|
4022
|
+
exports.RENDERER_TYPE = void 0;
|
|
4023
4023
|
(function (RENDERER_TYPE) {
|
|
4024
4024
|
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4025
4025
|
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
|
@@ -4036,7 +4036,7 @@ var PIXI = (function (exports) {
|
|
|
4036
4036
|
* @property {number} DEPTH - Indicates the depth buffer.
|
|
4037
4037
|
* @property {number} STENCIL - Indicates the stencil buffer.
|
|
4038
4038
|
*/
|
|
4039
|
-
|
|
4039
|
+
exports.BUFFER_BITS = void 0;
|
|
4040
4040
|
(function (BUFFER_BITS) {
|
|
4041
4041
|
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
|
4042
4042
|
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
|
@@ -4084,7 +4084,7 @@ var PIXI = (function (exports) {
|
|
|
4084
4084
|
* @property {number} ERASE
|
|
4085
4085
|
* @property {number} XOR
|
|
4086
4086
|
*/
|
|
4087
|
-
|
|
4087
|
+
exports.BLEND_MODES = void 0;
|
|
4088
4088
|
(function (BLEND_MODES) {
|
|
4089
4089
|
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
|
4090
4090
|
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
|
@@ -4135,7 +4135,7 @@ var PIXI = (function (exports) {
|
|
|
4135
4135
|
* @property {number} TRIANGLE_STRIP
|
|
4136
4136
|
* @property {number} TRIANGLE_FAN
|
|
4137
4137
|
*/
|
|
4138
|
-
|
|
4138
|
+
exports.DRAW_MODES = void 0;
|
|
4139
4139
|
(function (DRAW_MODES) {
|
|
4140
4140
|
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
|
4141
4141
|
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
|
@@ -4166,7 +4166,7 @@ var PIXI = (function (exports) {
|
|
|
4166
4166
|
* @property {number} DEPTH_COMPONENT=6402
|
|
4167
4167
|
* @property {number} DEPTH_STENCIL=34041
|
|
4168
4168
|
*/
|
|
4169
|
-
|
|
4169
|
+
exports.FORMATS = void 0;
|
|
4170
4170
|
(function (FORMATS) {
|
|
4171
4171
|
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
|
4172
4172
|
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
|
@@ -4199,7 +4199,7 @@ var PIXI = (function (exports) {
|
|
|
4199
4199
|
* @property {number} TEXTURE_CUBE_MAP_POSITIVE_Z=34073
|
|
4200
4200
|
* @property {number} TEXTURE_CUBE_MAP_NEGATIVE_Z=34074
|
|
4201
4201
|
*/
|
|
4202
|
-
|
|
4202
|
+
exports.TARGETS = void 0;
|
|
4203
4203
|
(function (TARGETS) {
|
|
4204
4204
|
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
4205
4205
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
@@ -4235,7 +4235,7 @@ var PIXI = (function (exports) {
|
|
|
4235
4235
|
* @property {number} FLOAT_32_UNSIGNED_INT_24_8_REV=36269
|
|
4236
4236
|
* @property {number} HALF_FLOAT=36193
|
|
4237
4237
|
*/
|
|
4238
|
-
|
|
4238
|
+
exports.TYPES = void 0;
|
|
4239
4239
|
(function (TYPES) {
|
|
4240
4240
|
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
4241
4241
|
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
@@ -4266,7 +4266,7 @@ var PIXI = (function (exports) {
|
|
|
4266
4266
|
* @property {number} INT=1
|
|
4267
4267
|
* @property {number} UINT=2
|
|
4268
4268
|
*/
|
|
4269
|
-
|
|
4269
|
+
exports.SAMPLER_TYPES = void 0;
|
|
4270
4270
|
(function (SAMPLER_TYPES) {
|
|
4271
4271
|
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
|
4272
4272
|
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
|
@@ -4285,7 +4285,7 @@ var PIXI = (function (exports) {
|
|
|
4285
4285
|
* @property {number} LINEAR Smooth scaling
|
|
4286
4286
|
* @property {number} NEAREST Pixelating scaling
|
|
4287
4287
|
*/
|
|
4288
|
-
|
|
4288
|
+
exports.SCALE_MODES = void 0;
|
|
4289
4289
|
(function (SCALE_MODES) {
|
|
4290
4290
|
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
|
4291
4291
|
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
|
@@ -4308,7 +4308,7 @@ var PIXI = (function (exports) {
|
|
|
4308
4308
|
* @property {number} REPEAT - The texture uvs tile and repeat
|
|
4309
4309
|
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
|
4310
4310
|
*/
|
|
4311
|
-
|
|
4311
|
+
exports.WRAP_MODES = void 0;
|
|
4312
4312
|
(function (WRAP_MODES) {
|
|
4313
4313
|
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
|
4314
4314
|
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
|
@@ -4334,7 +4334,7 @@ var PIXI = (function (exports) {
|
|
|
4334
4334
|
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
|
4335
4335
|
* that supports buffering each level-of-detail.
|
|
4336
4336
|
*/
|
|
4337
|
-
|
|
4337
|
+
exports.MIPMAP_MODES = void 0;
|
|
4338
4338
|
(function (MIPMAP_MODES) {
|
|
4339
4339
|
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
|
4340
4340
|
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
|
@@ -4358,7 +4358,7 @@ var PIXI = (function (exports) {
|
|
|
4358
4358
|
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
|
4359
4359
|
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
|
4360
4360
|
*/
|
|
4361
|
-
|
|
4361
|
+
exports.ALPHA_MODES = void 0;
|
|
4362
4362
|
(function (ALPHA_MODES) {
|
|
4363
4363
|
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
|
4364
4364
|
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
|
@@ -4385,7 +4385,7 @@ var PIXI = (function (exports) {
|
|
|
4385
4385
|
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
|
4386
4386
|
* @property {number} AUTO - Alias for BLIT
|
|
4387
4387
|
*/
|
|
4388
|
-
|
|
4388
|
+
exports.CLEAR_MODES = void 0;
|
|
4389
4389
|
(function (CLEAR_MODES) {
|
|
4390
4390
|
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
|
4391
4391
|
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
|
@@ -4413,7 +4413,7 @@ var PIXI = (function (exports) {
|
|
|
4413
4413
|
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
|
4414
4414
|
* @property {number} MANUAL - Garbage collection will need to be called manually
|
|
4415
4415
|
*/
|
|
4416
|
-
|
|
4416
|
+
exports.GC_MODES = void 0;
|
|
4417
4417
|
(function (GC_MODES) {
|
|
4418
4418
|
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
|
4419
4419
|
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
|
@@ -4430,7 +4430,7 @@ var PIXI = (function (exports) {
|
|
|
4430
4430
|
* @property {string} MEDIUM='mediump'
|
|
4431
4431
|
* @property {string} HIGH='highp'
|
|
4432
4432
|
*/
|
|
4433
|
-
|
|
4433
|
+
exports.PRECISION = void 0;
|
|
4434
4434
|
(function (PRECISION) {
|
|
4435
4435
|
PRECISION["LOW"] = "lowp";
|
|
4436
4436
|
PRECISION["MEDIUM"] = "mediump";
|
|
@@ -4449,7 +4449,7 @@ var PIXI = (function (exports) {
|
|
|
4449
4449
|
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
|
4450
4450
|
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
|
4451
4451
|
*/
|
|
4452
|
-
|
|
4452
|
+
exports.MASK_TYPES = void 0;
|
|
4453
4453
|
(function (MASK_TYPES) {
|
|
4454
4454
|
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
|
4455
4455
|
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
|
@@ -4470,7 +4470,7 @@ var PIXI = (function (exports) {
|
|
|
4470
4470
|
* @property {number} MEDIUM - Try 4 samples
|
|
4471
4471
|
* @property {number} HIGH - Try 8 samples
|
|
4472
4472
|
*/
|
|
4473
|
-
|
|
4473
|
+
exports.MSAA_QUALITY = void 0;
|
|
4474
4474
|
(function (MSAA_QUALITY) {
|
|
4475
4475
|
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
|
4476
4476
|
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
|
@@ -4490,7 +4490,7 @@ var PIXI = (function (exports) {
|
|
|
4490
4490
|
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
|
4491
4491
|
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
|
4492
4492
|
*/
|
|
4493
|
-
|
|
4493
|
+
exports.BUFFER_TYPE = void 0;
|
|
4494
4494
|
(function (BUFFER_TYPE) {
|
|
4495
4495
|
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
4496
4496
|
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
@@ -4499,8 +4499,8 @@ var PIXI = (function (exports) {
|
|
|
4499
4499
|
})(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
|
|
4500
4500
|
|
|
4501
4501
|
/*!
|
|
4502
|
-
* @pixi/utils - v6.3.
|
|
4503
|
-
* Compiled
|
|
4502
|
+
* @pixi/utils - v6.3.1
|
|
4503
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
4504
4504
|
*
|
|
4505
4505
|
* @pixi/utils is licensed under the MIT License.
|
|
4506
4506
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -4512,10 +4512,10 @@ var PIXI = (function (exports) {
|
|
|
4512
4512
|
* this file is to redeclare the required types to avoid having the whole Node types as a
|
|
4513
4513
|
* dependency.
|
|
4514
4514
|
*/
|
|
4515
|
-
var url
|
|
4515
|
+
var url = {
|
|
4516
4516
|
parse: parse,
|
|
4517
4517
|
format: format,
|
|
4518
|
-
resolve: resolve
|
|
4518
|
+
resolve: resolve,
|
|
4519
4519
|
};
|
|
4520
4520
|
|
|
4521
4521
|
/**
|
|
@@ -4558,7 +4558,7 @@ var PIXI = (function (exports) {
|
|
|
4558
4558
|
settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
|
|
4559
4559
|
|
|
4560
4560
|
var saidHello = false;
|
|
4561
|
-
var VERSION = '6.3.
|
|
4561
|
+
var VERSION$1 = '6.3.1';
|
|
4562
4562
|
/**
|
|
4563
4563
|
* Skips the hello message of renderers that are created after this is run.
|
|
4564
4564
|
*
|
|
@@ -4585,7 +4585,7 @@ var PIXI = (function (exports) {
|
|
|
4585
4585
|
}
|
|
4586
4586
|
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
|
|
4587
4587
|
var args = [
|
|
4588
|
-
"\n %c %c %c PixiJS " + VERSION + " - \u2730 " + type + " \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 \n\n",
|
|
4588
|
+
"\n %c %c %c PixiJS " + VERSION$1 + " - \u2730 " + type + " \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 \n\n",
|
|
4589
4589
|
'background: #ff66a5; padding:5px 0;',
|
|
4590
4590
|
'background: #ff66a5; padding:5px 0;',
|
|
4591
4591
|
'color: #ff66a5; background: #030307; padding:5px 0;',
|
|
@@ -4598,7 +4598,7 @@ var PIXI = (function (exports) {
|
|
|
4598
4598
|
(_a = globalThis.console).log.apply(_a, args);
|
|
4599
4599
|
}
|
|
4600
4600
|
else if (globalThis.console) {
|
|
4601
|
-
globalThis.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
|
|
4601
|
+
globalThis.console.log("PixiJS " + VERSION$1 + " - " + type + " - http://www.pixijs.com/");
|
|
4602
4602
|
}
|
|
4603
4603
|
saidHello = true;
|
|
4604
4604
|
}
|
|
@@ -5187,8 +5187,8 @@ var PIXI = (function (exports) {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
|
|
5189
5189
|
/* eslint-disable object-shorthand */
|
|
5190
|
-
var map = { Float32Array: Float32Array, Uint32Array: Uint32Array, Int32Array: Int32Array, Uint8Array: Uint8Array };
|
|
5191
|
-
function interleaveTypedArrays(arrays, sizes) {
|
|
5190
|
+
var map$2 = { Float32Array: Float32Array, Uint32Array: Uint32Array, Int32Array: Int32Array, Uint8Array: Uint8Array };
|
|
5191
|
+
function interleaveTypedArrays$1(arrays, sizes) {
|
|
5192
5192
|
var outSize = 0;
|
|
5193
5193
|
var stride = 0;
|
|
5194
5194
|
var views = {};
|
|
@@ -5208,7 +5208,7 @@ var PIXI = (function (exports) {
|
|
|
5208
5208
|
*/
|
|
5209
5209
|
var type = getBufferType(array);
|
|
5210
5210
|
if (!views[type]) {
|
|
5211
|
-
views[type] = new map[type](buffer);
|
|
5211
|
+
views[type] = new map$2[type](buffer);
|
|
5212
5212
|
}
|
|
5213
5213
|
out = views[type];
|
|
5214
5214
|
for (var j = 0; j < array.length; j++) {
|
|
@@ -5305,7 +5305,7 @@ var PIXI = (function (exports) {
|
|
|
5305
5305
|
* @param {number} n - the number to check the sign of
|
|
5306
5306
|
* @returns {number} 0 if `n` is 0, -1 if `n` is negative, 1 if `n` is positive
|
|
5307
5307
|
*/
|
|
5308
|
-
function sign
|
|
5308
|
+
function sign(n) {
|
|
5309
5309
|
if (n === 0)
|
|
5310
5310
|
{ return 0; }
|
|
5311
5311
|
return n < 0 ? -1 : 1;
|
|
@@ -5626,7 +5626,7 @@ var PIXI = (function (exports) {
|
|
|
5626
5626
|
return undefined;
|
|
5627
5627
|
}
|
|
5628
5628
|
|
|
5629
|
-
var tempAnchor;
|
|
5629
|
+
var tempAnchor$1;
|
|
5630
5630
|
/**
|
|
5631
5631
|
* Sets the `crossOrigin` property for this resource based on if the url
|
|
5632
5632
|
* for this resource is cross-origin. If crossOrigin was manually set, this
|
|
@@ -5638,22 +5638,22 @@ var PIXI = (function (exports) {
|
|
|
5638
5638
|
* @param {object} [loc=window.location] - The location object to test against.
|
|
5639
5639
|
* @return {string} The crossOrigin value to use (or empty string for none).
|
|
5640
5640
|
*/
|
|
5641
|
-
function determineCrossOrigin(url$1
|
|
5641
|
+
function determineCrossOrigin(url$1, loc) {
|
|
5642
5642
|
if (loc === void 0) { loc = globalThis.location; }
|
|
5643
5643
|
// data: and javascript: urls are considered same-origin
|
|
5644
|
-
if (url$1
|
|
5644
|
+
if (url$1.indexOf('data:') === 0) {
|
|
5645
5645
|
return '';
|
|
5646
5646
|
}
|
|
5647
5647
|
// default is window.location
|
|
5648
5648
|
loc = loc || globalThis.location;
|
|
5649
|
-
if (!tempAnchor) {
|
|
5650
|
-
tempAnchor = document.createElement('a');
|
|
5649
|
+
if (!tempAnchor$1) {
|
|
5650
|
+
tempAnchor$1 = document.createElement('a');
|
|
5651
5651
|
}
|
|
5652
5652
|
// let the browser determine the full href for the url of this resource and then
|
|
5653
5653
|
// parse with the node url lib, we can't use the properties of the anchor element
|
|
5654
5654
|
// because they don't work in IE9 :(
|
|
5655
|
-
tempAnchor.href = url$1
|
|
5656
|
-
var parsedUrl = url
|
|
5655
|
+
tempAnchor$1.href = url$1;
|
|
5656
|
+
var parsedUrl = url.parse(tempAnchor$1.href);
|
|
5657
5657
|
var samePort = (!parsedUrl.port && loc.port === '') || (parsedUrl.port === loc.port);
|
|
5658
5658
|
// if cross origin
|
|
5659
5659
|
if (parsedUrl.hostname !== loc.hostname || !samePort || parsedUrl.protocol !== loc.protocol) {
|
|
@@ -5698,7 +5698,7 @@ var PIXI = (function (exports) {
|
|
|
5698
5698
|
getResolutionOfUrl: getResolutionOfUrl,
|
|
5699
5699
|
hex2rgb: hex2rgb,
|
|
5700
5700
|
hex2string: hex2string,
|
|
5701
|
-
interleaveTypedArrays: interleaveTypedArrays,
|
|
5701
|
+
interleaveTypedArrays: interleaveTypedArrays$1,
|
|
5702
5702
|
isPow2: isPow2,
|
|
5703
5703
|
isWebGLSupported: isWebGLSupported,
|
|
5704
5704
|
log2: log2,
|
|
@@ -5710,20 +5710,20 @@ var PIXI = (function (exports) {
|
|
|
5710
5710
|
removeItems: removeItems,
|
|
5711
5711
|
rgb2hex: rgb2hex,
|
|
5712
5712
|
sayHello: sayHello,
|
|
5713
|
-
sign: sign
|
|
5713
|
+
sign: sign,
|
|
5714
5714
|
skipHello: skipHello,
|
|
5715
5715
|
string2hex: string2hex,
|
|
5716
5716
|
trimCanvas: trimCanvas,
|
|
5717
5717
|
uid: uid,
|
|
5718
|
-
url: url
|
|
5719
|
-
isMobile: isMobile
|
|
5718
|
+
url: url,
|
|
5719
|
+
isMobile: isMobile,
|
|
5720
5720
|
EventEmitter: eventemitter3,
|
|
5721
5721
|
earcut: earcut_1
|
|
5722
5722
|
};
|
|
5723
5723
|
|
|
5724
5724
|
/*!
|
|
5725
|
-
* @pixi/math - v6.3.
|
|
5726
|
-
* Compiled
|
|
5725
|
+
* @pixi/math - v6.3.1
|
|
5726
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
5727
5727
|
*
|
|
5728
5728
|
* @pixi/math is licensed under the MIT License.
|
|
5729
5729
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -5764,7 +5764,7 @@ var PIXI = (function (exports) {
|
|
|
5764
5764
|
* @property {number} ELIP Ellipse
|
|
5765
5765
|
* @property {number} RREC Rounded Rectangle
|
|
5766
5766
|
*/
|
|
5767
|
-
|
|
5767
|
+
exports.SHAPES = void 0;
|
|
5768
5768
|
(function (SHAPES) {
|
|
5769
5769
|
SHAPES[SHAPES["POLY"] = 0] = "POLY";
|
|
5770
5770
|
SHAPES[SHAPES["RECT"] = 1] = "RECT";
|
|
@@ -5852,7 +5852,7 @@ var PIXI = (function (exports) {
|
|
|
5852
5852
|
return Point;
|
|
5853
5853
|
}());
|
|
5854
5854
|
|
|
5855
|
-
var tempPoints = [new Point(), new Point(), new Point(), new Point()];
|
|
5855
|
+
var tempPoints$1 = [new Point(), new Point(), new Point(), new Point()];
|
|
5856
5856
|
/**
|
|
5857
5857
|
* Size object, contains width and height
|
|
5858
5858
|
*
|
|
@@ -6003,10 +6003,10 @@ var PIXI = (function (exports) {
|
|
|
6003
6003
|
if (x1 <= x0 || y1 <= y0) {
|
|
6004
6004
|
return false;
|
|
6005
6005
|
}
|
|
6006
|
-
var lt = tempPoints[0].set(other.left, other.top);
|
|
6007
|
-
var lb = tempPoints[1].set(other.left, other.bottom);
|
|
6008
|
-
var rt = tempPoints[2].set(other.right, other.top);
|
|
6009
|
-
var rb = tempPoints[3].set(other.right, other.bottom);
|
|
6006
|
+
var lt = tempPoints$1[0].set(other.left, other.top);
|
|
6007
|
+
var lb = tempPoints$1[1].set(other.left, other.bottom);
|
|
6008
|
+
var rt = tempPoints$1[2].set(other.right, other.top);
|
|
6009
|
+
var rb = tempPoints$1[3].set(other.right, other.bottom);
|
|
6010
6010
|
if (rt.x <= lt.x || lb.y <= lt.y) {
|
|
6011
6011
|
return false;
|
|
6012
6012
|
}
|
|
@@ -7385,8 +7385,8 @@ var PIXI = (function (exports) {
|
|
|
7385
7385
|
}());
|
|
7386
7386
|
|
|
7387
7387
|
/*!
|
|
7388
|
-
* @pixi/display - v6.3.
|
|
7389
|
-
* Compiled
|
|
7388
|
+
* @pixi/display - v6.3.1
|
|
7389
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
7390
7390
|
*
|
|
7391
7391
|
* @pixi/display is licensed under the MIT License.
|
|
7392
7392
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -7782,15 +7782,15 @@ var PIXI = (function (exports) {
|
|
|
7782
7782
|
***************************************************************************** */
|
|
7783
7783
|
/* global Reflect, Promise */
|
|
7784
7784
|
|
|
7785
|
-
var extendStatics = function(d, b) {
|
|
7786
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7785
|
+
var extendStatics$j = function(d, b) {
|
|
7786
|
+
extendStatics$j = Object.setPrototypeOf ||
|
|
7787
7787
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7788
7788
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
7789
|
-
return extendStatics(d, b);
|
|
7789
|
+
return extendStatics$j(d, b);
|
|
7790
7790
|
};
|
|
7791
7791
|
|
|
7792
|
-
function __extends(d, b) {
|
|
7793
|
-
extendStatics(d, b);
|
|
7792
|
+
function __extends$j(d, b) {
|
|
7793
|
+
extendStatics$j(d, b);
|
|
7794
7794
|
function __() { this.constructor = d; }
|
|
7795
7795
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7796
7796
|
}
|
|
@@ -7982,7 +7982,7 @@ var PIXI = (function (exports) {
|
|
|
7982
7982
|
* @memberof PIXI
|
|
7983
7983
|
*/
|
|
7984
7984
|
var DisplayObject = /** @class */ (function (_super) {
|
|
7985
|
-
__extends(DisplayObject, _super);
|
|
7985
|
+
__extends$j(DisplayObject, _super);
|
|
7986
7986
|
function DisplayObject() {
|
|
7987
7987
|
var _this = _super.call(this) || this;
|
|
7988
7988
|
_this.tempDisplayObjectParent = null;
|
|
@@ -8580,7 +8580,7 @@ var PIXI = (function (exports) {
|
|
|
8580
8580
|
* @private
|
|
8581
8581
|
*/
|
|
8582
8582
|
var TemporaryDisplayObject = /** @class */ (function (_super) {
|
|
8583
|
-
__extends(TemporaryDisplayObject, _super);
|
|
8583
|
+
__extends$j(TemporaryDisplayObject, _super);
|
|
8584
8584
|
function TemporaryDisplayObject() {
|
|
8585
8585
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8586
8586
|
_this.sortDirty = null;
|
|
@@ -8598,8 +8598,8 @@ var PIXI = (function (exports) {
|
|
|
8598
8598
|
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
|
|
8599
8599
|
|
|
8600
8600
|
/*!
|
|
8601
|
-
* @pixi/constants - v6.3.
|
|
8602
|
-
* Compiled
|
|
8601
|
+
* @pixi/constants - v6.3.1
|
|
8602
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
8603
8603
|
*
|
|
8604
8604
|
* @pixi/constants is licensed under the MIT License.
|
|
8605
8605
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -8616,12 +8616,12 @@ var PIXI = (function (exports) {
|
|
|
8616
8616
|
* @property {number} WEBGL - Version 1 of WebGL
|
|
8617
8617
|
* @property {number} WEBGL2 - Version 2 of WebGL
|
|
8618
8618
|
*/
|
|
8619
|
-
var ENV$
|
|
8619
|
+
var ENV$2;
|
|
8620
8620
|
(function (ENV) {
|
|
8621
8621
|
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
|
8622
8622
|
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
|
8623
8623
|
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
|
8624
|
-
})(ENV$
|
|
8624
|
+
})(ENV$2 || (ENV$2 = {}));
|
|
8625
8625
|
/**
|
|
8626
8626
|
* Constant to identify the Renderer Type.
|
|
8627
8627
|
*
|
|
@@ -8633,12 +8633,12 @@ var PIXI = (function (exports) {
|
|
|
8633
8633
|
* @property {number} WEBGL - WebGL render type.
|
|
8634
8634
|
* @property {number} CANVAS - Canvas render type.
|
|
8635
8635
|
*/
|
|
8636
|
-
var RENDERER_TYPE$
|
|
8636
|
+
var RENDERER_TYPE$2;
|
|
8637
8637
|
(function (RENDERER_TYPE) {
|
|
8638
8638
|
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
8639
8639
|
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
|
8640
8640
|
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
|
8641
|
-
})(RENDERER_TYPE$
|
|
8641
|
+
})(RENDERER_TYPE$2 || (RENDERER_TYPE$2 = {}));
|
|
8642
8642
|
/**
|
|
8643
8643
|
* Bitwise OR of masks that indicate the buffers to be cleared.
|
|
8644
8644
|
*
|
|
@@ -8650,12 +8650,12 @@ var PIXI = (function (exports) {
|
|
|
8650
8650
|
* @property {number} DEPTH - Indicates the depth buffer.
|
|
8651
8651
|
* @property {number} STENCIL - Indicates the stencil buffer.
|
|
8652
8652
|
*/
|
|
8653
|
-
var BUFFER_BITS$
|
|
8653
|
+
var BUFFER_BITS$2;
|
|
8654
8654
|
(function (BUFFER_BITS) {
|
|
8655
8655
|
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
|
8656
8656
|
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
|
8657
8657
|
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
|
8658
|
-
})(BUFFER_BITS$
|
|
8658
|
+
})(BUFFER_BITS$2 || (BUFFER_BITS$2 = {}));
|
|
8659
8659
|
/**
|
|
8660
8660
|
* Various blend modes supported by PIXI.
|
|
8661
8661
|
*
|
|
@@ -8698,7 +8698,7 @@ var PIXI = (function (exports) {
|
|
|
8698
8698
|
* @property {number} ERASE
|
|
8699
8699
|
* @property {number} XOR
|
|
8700
8700
|
*/
|
|
8701
|
-
var BLEND_MODES$
|
|
8701
|
+
var BLEND_MODES$2;
|
|
8702
8702
|
(function (BLEND_MODES) {
|
|
8703
8703
|
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
|
8704
8704
|
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
|
@@ -8732,7 +8732,7 @@ var PIXI = (function (exports) {
|
|
|
8732
8732
|
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
|
8733
8733
|
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
|
8734
8734
|
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
|
8735
|
-
})(BLEND_MODES$
|
|
8735
|
+
})(BLEND_MODES$2 || (BLEND_MODES$2 = {}));
|
|
8736
8736
|
/**
|
|
8737
8737
|
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
|
8738
8738
|
* under certain situations and renderers.
|
|
@@ -8749,7 +8749,7 @@ var PIXI = (function (exports) {
|
|
|
8749
8749
|
* @property {number} TRIANGLE_STRIP
|
|
8750
8750
|
* @property {number} TRIANGLE_FAN
|
|
8751
8751
|
*/
|
|
8752
|
-
var DRAW_MODES$
|
|
8752
|
+
var DRAW_MODES$2;
|
|
8753
8753
|
(function (DRAW_MODES) {
|
|
8754
8754
|
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
|
8755
8755
|
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
|
@@ -8758,7 +8758,7 @@ var PIXI = (function (exports) {
|
|
|
8758
8758
|
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
|
8759
8759
|
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
|
8760
8760
|
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
|
8761
|
-
})(DRAW_MODES$
|
|
8761
|
+
})(DRAW_MODES$2 || (DRAW_MODES$2 = {}));
|
|
8762
8762
|
/**
|
|
8763
8763
|
* Various GL texture/resources formats.
|
|
8764
8764
|
*
|
|
@@ -8780,7 +8780,7 @@ var PIXI = (function (exports) {
|
|
|
8780
8780
|
* @property {number} DEPTH_COMPONENT=6402
|
|
8781
8781
|
* @property {number} DEPTH_STENCIL=34041
|
|
8782
8782
|
*/
|
|
8783
|
-
var FORMATS$
|
|
8783
|
+
var FORMATS$2;
|
|
8784
8784
|
(function (FORMATS) {
|
|
8785
8785
|
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
|
8786
8786
|
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
|
@@ -8795,7 +8795,7 @@ var PIXI = (function (exports) {
|
|
|
8795
8795
|
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
|
8796
8796
|
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
|
8797
8797
|
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
|
8798
|
-
})(FORMATS$
|
|
8798
|
+
})(FORMATS$2 || (FORMATS$2 = {}));
|
|
8799
8799
|
/**
|
|
8800
8800
|
* Various GL target types.
|
|
8801
8801
|
*
|
|
@@ -8813,7 +8813,7 @@ var PIXI = (function (exports) {
|
|
|
8813
8813
|
* @property {number} TEXTURE_CUBE_MAP_POSITIVE_Z=34073
|
|
8814
8814
|
* @property {number} TEXTURE_CUBE_MAP_NEGATIVE_Z=34074
|
|
8815
8815
|
*/
|
|
8816
|
-
var TARGETS$
|
|
8816
|
+
var TARGETS$2;
|
|
8817
8817
|
(function (TARGETS) {
|
|
8818
8818
|
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
8819
8819
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
@@ -8824,7 +8824,7 @@ var PIXI = (function (exports) {
|
|
|
8824
8824
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
|
8825
8825
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
|
8826
8826
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
|
8827
|
-
})(TARGETS$
|
|
8827
|
+
})(TARGETS$2 || (TARGETS$2 = {}));
|
|
8828
8828
|
/**
|
|
8829
8829
|
* Various GL data format types.
|
|
8830
8830
|
*
|
|
@@ -8849,7 +8849,7 @@ var PIXI = (function (exports) {
|
|
|
8849
8849
|
* @property {number} FLOAT_32_UNSIGNED_INT_24_8_REV=36269
|
|
8850
8850
|
* @property {number} HALF_FLOAT=36193
|
|
8851
8851
|
*/
|
|
8852
|
-
var TYPES$
|
|
8852
|
+
var TYPES$2;
|
|
8853
8853
|
(function (TYPES) {
|
|
8854
8854
|
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
8855
8855
|
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
@@ -8867,7 +8867,7 @@ var PIXI = (function (exports) {
|
|
|
8867
8867
|
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
|
8868
8868
|
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
|
8869
8869
|
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
|
8870
|
-
})(TYPES$
|
|
8870
|
+
})(TYPES$2 || (TYPES$2 = {}));
|
|
8871
8871
|
/**
|
|
8872
8872
|
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
|
8873
8873
|
* WebGL1 works only with FLOAT.
|
|
@@ -8880,12 +8880,12 @@ var PIXI = (function (exports) {
|
|
|
8880
8880
|
* @property {number} INT=1
|
|
8881
8881
|
* @property {number} UINT=2
|
|
8882
8882
|
*/
|
|
8883
|
-
var SAMPLER_TYPES$
|
|
8883
|
+
var SAMPLER_TYPES$2;
|
|
8884
8884
|
(function (SAMPLER_TYPES) {
|
|
8885
8885
|
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
|
8886
8886
|
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
|
8887
8887
|
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
|
8888
|
-
})(SAMPLER_TYPES$
|
|
8888
|
+
})(SAMPLER_TYPES$2 || (SAMPLER_TYPES$2 = {}));
|
|
8889
8889
|
/**
|
|
8890
8890
|
* The scale modes that are supported by pixi.
|
|
8891
8891
|
*
|
|
@@ -8899,11 +8899,11 @@ var PIXI = (function (exports) {
|
|
|
8899
8899
|
* @property {number} LINEAR Smooth scaling
|
|
8900
8900
|
* @property {number} NEAREST Pixelating scaling
|
|
8901
8901
|
*/
|
|
8902
|
-
var SCALE_MODES$
|
|
8902
|
+
var SCALE_MODES$2;
|
|
8903
8903
|
(function (SCALE_MODES) {
|
|
8904
8904
|
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
|
8905
8905
|
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
|
8906
|
-
})(SCALE_MODES$
|
|
8906
|
+
})(SCALE_MODES$2 || (SCALE_MODES$2 = {}));
|
|
8907
8907
|
/**
|
|
8908
8908
|
* The wrap modes that are supported by pixi.
|
|
8909
8909
|
*
|
|
@@ -8922,12 +8922,12 @@ var PIXI = (function (exports) {
|
|
|
8922
8922
|
* @property {number} REPEAT - The texture uvs tile and repeat
|
|
8923
8923
|
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
|
8924
8924
|
*/
|
|
8925
|
-
var WRAP_MODES$
|
|
8925
|
+
var WRAP_MODES$2;
|
|
8926
8926
|
(function (WRAP_MODES) {
|
|
8927
8927
|
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
|
8928
8928
|
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
|
8929
8929
|
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
|
8930
|
-
})(WRAP_MODES$
|
|
8930
|
+
})(WRAP_MODES$2 || (WRAP_MODES$2 = {}));
|
|
8931
8931
|
/**
|
|
8932
8932
|
* Mipmap filtering modes that are supported by pixi.
|
|
8933
8933
|
*
|
|
@@ -8948,13 +8948,13 @@ var PIXI = (function (exports) {
|
|
|
8948
8948
|
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
|
8949
8949
|
* that supports buffering each level-of-detail.
|
|
8950
8950
|
*/
|
|
8951
|
-
var MIPMAP_MODES$
|
|
8951
|
+
var MIPMAP_MODES$2;
|
|
8952
8952
|
(function (MIPMAP_MODES) {
|
|
8953
8953
|
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
|
8954
8954
|
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
|
8955
8955
|
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
|
8956
8956
|
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
|
8957
|
-
})(MIPMAP_MODES$
|
|
8957
|
+
})(MIPMAP_MODES$2 || (MIPMAP_MODES$2 = {}));
|
|
8958
8958
|
/**
|
|
8959
8959
|
* How to treat textures with premultiplied alpha
|
|
8960
8960
|
*
|
|
@@ -8972,7 +8972,7 @@ var PIXI = (function (exports) {
|
|
|
8972
8972
|
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
|
8973
8973
|
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
|
8974
8974
|
*/
|
|
8975
|
-
var ALPHA_MODES$
|
|
8975
|
+
var ALPHA_MODES$2;
|
|
8976
8976
|
(function (ALPHA_MODES) {
|
|
8977
8977
|
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
|
8978
8978
|
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
|
@@ -8981,7 +8981,7 @@ var PIXI = (function (exports) {
|
|
|
8981
8981
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
|
8982
8982
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
|
8983
8983
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
|
8984
|
-
})(ALPHA_MODES$
|
|
8984
|
+
})(ALPHA_MODES$2 || (ALPHA_MODES$2 = {}));
|
|
8985
8985
|
/**
|
|
8986
8986
|
* Configure whether filter textures are cleared after binding.
|
|
8987
8987
|
*
|
|
@@ -8999,7 +8999,7 @@ var PIXI = (function (exports) {
|
|
|
8999
8999
|
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
|
9000
9000
|
* @property {number} AUTO - Alias for BLIT
|
|
9001
9001
|
*/
|
|
9002
|
-
var CLEAR_MODES$
|
|
9002
|
+
var CLEAR_MODES$2;
|
|
9003
9003
|
(function (CLEAR_MODES) {
|
|
9004
9004
|
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
|
9005
9005
|
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
|
@@ -9007,7 +9007,7 @@ var PIXI = (function (exports) {
|
|
|
9007
9007
|
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
|
9008
9008
|
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
|
9009
9009
|
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
|
9010
|
-
})(CLEAR_MODES$
|
|
9010
|
+
})(CLEAR_MODES$2 || (CLEAR_MODES$2 = {}));
|
|
9011
9011
|
/**
|
|
9012
9012
|
* The gc modes that are supported by pixi.
|
|
9013
9013
|
*
|
|
@@ -9027,11 +9027,11 @@ var PIXI = (function (exports) {
|
|
|
9027
9027
|
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
|
9028
9028
|
* @property {number} MANUAL - Garbage collection will need to be called manually
|
|
9029
9029
|
*/
|
|
9030
|
-
var GC_MODES$
|
|
9030
|
+
var GC_MODES$2;
|
|
9031
9031
|
(function (GC_MODES) {
|
|
9032
9032
|
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
|
9033
9033
|
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
|
9034
|
-
})(GC_MODES$
|
|
9034
|
+
})(GC_MODES$2 || (GC_MODES$2 = {}));
|
|
9035
9035
|
/**
|
|
9036
9036
|
* Constants that specify float precision in shaders.
|
|
9037
9037
|
*
|
|
@@ -9044,12 +9044,12 @@ var PIXI = (function (exports) {
|
|
|
9044
9044
|
* @property {string} MEDIUM='mediump'
|
|
9045
9045
|
* @property {string} HIGH='highp'
|
|
9046
9046
|
*/
|
|
9047
|
-
var PRECISION$
|
|
9047
|
+
var PRECISION$2;
|
|
9048
9048
|
(function (PRECISION) {
|
|
9049
9049
|
PRECISION["LOW"] = "lowp";
|
|
9050
9050
|
PRECISION["MEDIUM"] = "mediump";
|
|
9051
9051
|
PRECISION["HIGH"] = "highp";
|
|
9052
|
-
})(PRECISION$
|
|
9052
|
+
})(PRECISION$2 || (PRECISION$2 = {}));
|
|
9053
9053
|
/**
|
|
9054
9054
|
* Constants for mask implementations.
|
|
9055
9055
|
* We use `type` suffix because it leads to very different behaviours
|
|
@@ -9063,13 +9063,13 @@ var PIXI = (function (exports) {
|
|
|
9063
9063
|
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
|
9064
9064
|
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
|
9065
9065
|
*/
|
|
9066
|
-
var MASK_TYPES$
|
|
9066
|
+
var MASK_TYPES$2;
|
|
9067
9067
|
(function (MASK_TYPES) {
|
|
9068
9068
|
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
|
9069
9069
|
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
|
9070
9070
|
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
|
9071
9071
|
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
|
9072
|
-
})(MASK_TYPES$
|
|
9072
|
+
})(MASK_TYPES$2 || (MASK_TYPES$2 = {}));
|
|
9073
9073
|
/**
|
|
9074
9074
|
* Constants for multi-sampling antialiasing.
|
|
9075
9075
|
*
|
|
@@ -9084,13 +9084,13 @@ var PIXI = (function (exports) {
|
|
|
9084
9084
|
* @property {number} MEDIUM - Try 4 samples
|
|
9085
9085
|
* @property {number} HIGH - Try 8 samples
|
|
9086
9086
|
*/
|
|
9087
|
-
var MSAA_QUALITY$
|
|
9087
|
+
var MSAA_QUALITY$2;
|
|
9088
9088
|
(function (MSAA_QUALITY) {
|
|
9089
9089
|
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
|
9090
9090
|
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
|
9091
9091
|
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
|
9092
9092
|
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
|
9093
|
-
})(MSAA_QUALITY$
|
|
9093
|
+
})(MSAA_QUALITY$2 || (MSAA_QUALITY$2 = {}));
|
|
9094
9094
|
/**
|
|
9095
9095
|
* Constants for various buffer types in Pixi
|
|
9096
9096
|
*
|
|
@@ -9104,13 +9104,13 @@ var PIXI = (function (exports) {
|
|
|
9104
9104
|
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
|
9105
9105
|
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
|
9106
9106
|
*/
|
|
9107
|
-
var BUFFER_TYPE$
|
|
9107
|
+
var BUFFER_TYPE$2;
|
|
9108
9108
|
(function (BUFFER_TYPE) {
|
|
9109
9109
|
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
9110
9110
|
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
9111
9111
|
// NOT YET SUPPORTED
|
|
9112
9112
|
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
|
9113
|
-
})(BUFFER_TYPE$
|
|
9113
|
+
})(BUFFER_TYPE$2 || (BUFFER_TYPE$2 = {}));
|
|
9114
9114
|
|
|
9115
9115
|
function sortChildren(a, b) {
|
|
9116
9116
|
if (a.zIndex === b.zIndex) {
|
|
@@ -9154,7 +9154,7 @@ var PIXI = (function (exports) {
|
|
|
9154
9154
|
* @memberof PIXI
|
|
9155
9155
|
*/
|
|
9156
9156
|
var Container = /** @class */ (function (_super) {
|
|
9157
|
-
__extends(Container, _super);
|
|
9157
|
+
__extends$j(Container, _super);
|
|
9158
9158
|
function Container() {
|
|
9159
9159
|
var _this = _super.call(this) || this;
|
|
9160
9160
|
_this.children = [];
|
|
@@ -9610,7 +9610,7 @@ var PIXI = (function (exports) {
|
|
|
9610
9610
|
}
|
|
9611
9611
|
var flush = (filters && this._enabledFilters && this._enabledFilters.length)
|
|
9612
9612
|
|| (mask && (!mask.isMaskData
|
|
9613
|
-
|| (mask.enabled && (mask.autoDetect || mask.type !== MASK_TYPES$
|
|
9613
|
+
|| (mask.enabled && (mask.autoDetect || mask.type !== MASK_TYPES$2.NONE))));
|
|
9614
9614
|
if (flush) {
|
|
9615
9615
|
renderer.batch.flush();
|
|
9616
9616
|
}
|
|
@@ -9719,8 +9719,8 @@ var PIXI = (function (exports) {
|
|
|
9719
9719
|
Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
|
|
9720
9720
|
|
|
9721
9721
|
/*!
|
|
9722
|
-
* @pixi/accessibility - v6.3.
|
|
9723
|
-
* Compiled
|
|
9722
|
+
* @pixi/accessibility - v6.3.1
|
|
9723
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
9724
9724
|
*
|
|
9725
9725
|
* @pixi/accessibility is licensed under the MIT License.
|
|
9726
9726
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -9860,7 +9860,7 @@ var PIXI = (function (exports) {
|
|
|
9860
9860
|
/** The frequency to update the div elements. */
|
|
9861
9861
|
this.androidUpdateFrequency = 500; // 2fps
|
|
9862
9862
|
this._hookDiv = null;
|
|
9863
|
-
if (isMobile
|
|
9863
|
+
if (isMobile.tablet || isMobile.phone) {
|
|
9864
9864
|
this.createTouchHook();
|
|
9865
9865
|
}
|
|
9866
9866
|
// first we create a div that will sit over the PixiJS element. This is where the div overlays will go.
|
|
@@ -10018,7 +10018,7 @@ var PIXI = (function (exports) {
|
|
|
10018
10018
|
* so I am just running update every half a second, seems to fix it.
|
|
10019
10019
|
*/
|
|
10020
10020
|
var now = performance.now();
|
|
10021
|
-
if (isMobile
|
|
10021
|
+
if (isMobile.android.device && now < this.androidUpdateCount) {
|
|
10022
10022
|
return;
|
|
10023
10023
|
}
|
|
10024
10024
|
this.androidUpdateCount = now + this.androidUpdateFrequency;
|
|
@@ -10264,8 +10264,8 @@ var PIXI = (function (exports) {
|
|
|
10264
10264
|
}());
|
|
10265
10265
|
|
|
10266
10266
|
/*!
|
|
10267
|
-
* @pixi/ticker - v6.3.
|
|
10268
|
-
* Compiled
|
|
10267
|
+
* @pixi/ticker - v6.3.1
|
|
10268
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
10269
10269
|
*
|
|
10270
10270
|
* @pixi/ticker is licensed under the MIT License.
|
|
10271
10271
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -10298,7 +10298,7 @@ var PIXI = (function (exports) {
|
|
|
10298
10298
|
* @property {number} LOW=-25 Low priority used for {@link PIXI.Application} rendering.
|
|
10299
10299
|
* @property {number} UTILITY=-50 Lowest priority used for {@link PIXI.BasePrepare} utility.
|
|
10300
10300
|
*/
|
|
10301
|
-
|
|
10301
|
+
exports.UPDATE_PRIORITY = void 0;
|
|
10302
10302
|
(function (UPDATE_PRIORITY) {
|
|
10303
10303
|
UPDATE_PRIORITY[UPDATE_PRIORITY["INTERACTION"] = 50] = "INTERACTION";
|
|
10304
10304
|
UPDATE_PRIORITY[UPDATE_PRIORITY["HIGH"] = 25] = "HIGH";
|
|
@@ -11008,8 +11008,8 @@ var PIXI = (function (exports) {
|
|
|
11008
11008
|
}());
|
|
11009
11009
|
|
|
11010
11010
|
/*!
|
|
11011
|
-
* @pixi/interaction - v6.3.
|
|
11012
|
-
* Compiled
|
|
11011
|
+
* @pixi/interaction - v6.3.1
|
|
11012
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
11013
11013
|
*
|
|
11014
11014
|
* @pixi/interaction is licensed under the MIT License.
|
|
11015
11015
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -11144,15 +11144,15 @@ var PIXI = (function (exports) {
|
|
|
11144
11144
|
***************************************************************************** */
|
|
11145
11145
|
/* global Reflect, Promise */
|
|
11146
11146
|
|
|
11147
|
-
var extendStatics$
|
|
11148
|
-
extendStatics$
|
|
11147
|
+
var extendStatics$i = function(d, b) {
|
|
11148
|
+
extendStatics$i = Object.setPrototypeOf ||
|
|
11149
11149
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11150
11150
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
11151
|
-
return extendStatics$
|
|
11151
|
+
return extendStatics$i(d, b);
|
|
11152
11152
|
};
|
|
11153
11153
|
|
|
11154
|
-
function __extends$
|
|
11155
|
-
extendStatics$
|
|
11154
|
+
function __extends$i(d, b) {
|
|
11155
|
+
extendStatics$i(d, b);
|
|
11156
11156
|
function __() { this.constructor = d; }
|
|
11157
11157
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11158
11158
|
}
|
|
@@ -11587,7 +11587,7 @@ var PIXI = (function (exports) {
|
|
|
11587
11587
|
* @memberof PIXI
|
|
11588
11588
|
*/
|
|
11589
11589
|
var InteractionManager = /** @class */ (function (_super) {
|
|
11590
|
-
__extends$
|
|
11590
|
+
__extends$i(InteractionManager, _super);
|
|
11591
11591
|
/**
|
|
11592
11592
|
* @param {PIXI.CanvasRenderer|PIXI.Renderer} renderer - A reference to the current renderer
|
|
11593
11593
|
* @param options - The options for the manager.
|
|
@@ -12924,8 +12924,8 @@ var PIXI = (function (exports) {
|
|
|
12924
12924
|
}(eventemitter3));
|
|
12925
12925
|
|
|
12926
12926
|
/*!
|
|
12927
|
-
* @pixi/runner - v6.3.
|
|
12928
|
-
* Compiled
|
|
12927
|
+
* @pixi/runner - v6.3.1
|
|
12928
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
12929
12929
|
*
|
|
12930
12930
|
* @pixi/runner is licensed under the MIT License.
|
|
12931
12931
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -13113,8 +13113,8 @@ var PIXI = (function (exports) {
|
|
|
13113
13113
|
});
|
|
13114
13114
|
|
|
13115
13115
|
/*!
|
|
13116
|
-
* @pixi/core - v6.3.
|
|
13117
|
-
* Compiled
|
|
13116
|
+
* @pixi/core - v6.3.1
|
|
13117
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
13118
13118
|
*
|
|
13119
13119
|
* @pixi/core is licensed under the MIT License.
|
|
13120
13120
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -13136,7 +13136,7 @@ var PIXI = (function (exports) {
|
|
|
13136
13136
|
* @type {number}
|
|
13137
13137
|
* @default PIXI.ENV.WEBGL2
|
|
13138
13138
|
*/
|
|
13139
|
-
settings.PREFER_ENV = isMobile
|
|
13139
|
+
settings.PREFER_ENV = isMobile.any ? exports.ENV.WEBGL : exports.ENV.WEBGL2;
|
|
13140
13140
|
/**
|
|
13141
13141
|
* If set to `true`, *only* Textures and BaseTexture objects stored
|
|
13142
13142
|
* in the caches ({@link PIXI.utils.TextureCache TextureCache} and
|
|
@@ -13249,15 +13249,15 @@ var PIXI = (function (exports) {
|
|
|
13249
13249
|
***************************************************************************** */
|
|
13250
13250
|
/* global Reflect, Promise */
|
|
13251
13251
|
|
|
13252
|
-
var extendStatics$
|
|
13253
|
-
extendStatics$
|
|
13252
|
+
var extendStatics$h = function(d, b) {
|
|
13253
|
+
extendStatics$h = Object.setPrototypeOf ||
|
|
13254
13254
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13255
13255
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
13256
|
-
return extendStatics$
|
|
13256
|
+
return extendStatics$h(d, b);
|
|
13257
13257
|
};
|
|
13258
13258
|
|
|
13259
|
-
function __extends$
|
|
13260
|
-
extendStatics$
|
|
13259
|
+
function __extends$h(d, b) {
|
|
13260
|
+
extendStatics$h(d, b);
|
|
13261
13261
|
function __() { this.constructor = d; }
|
|
13262
13262
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13263
13263
|
}
|
|
@@ -13451,7 +13451,7 @@ var PIXI = (function (exports) {
|
|
|
13451
13451
|
* @memberof PIXI
|
|
13452
13452
|
*/
|
|
13453
13453
|
var BufferResource = /** @class */ (function (_super) {
|
|
13454
|
-
__extends$
|
|
13454
|
+
__extends$h(BufferResource, _super);
|
|
13455
13455
|
/**
|
|
13456
13456
|
* @param source - Source buffer
|
|
13457
13457
|
* @param options - Options
|
|
@@ -13524,7 +13524,7 @@ var PIXI = (function (exports) {
|
|
|
13524
13524
|
* @typeParam RO - The options for constructing resource.
|
|
13525
13525
|
*/
|
|
13526
13526
|
var BaseTexture = /** @class */ (function (_super) {
|
|
13527
|
-
__extends$
|
|
13527
|
+
__extends$h(BaseTexture, _super);
|
|
13528
13528
|
/**
|
|
13529
13529
|
* @param {PIXI.Resource|string|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} [resource=null] -
|
|
13530
13530
|
* The current resource to use, for things that aren't Resource objects, will be converted
|
|
@@ -13974,7 +13974,7 @@ var PIXI = (function (exports) {
|
|
|
13974
13974
|
* @memberof PIXI
|
|
13975
13975
|
*/
|
|
13976
13976
|
var AbstractMultiResource = /** @class */ (function (_super) {
|
|
13977
|
-
__extends$
|
|
13977
|
+
__extends$h(AbstractMultiResource, _super);
|
|
13978
13978
|
/**
|
|
13979
13979
|
* @param length
|
|
13980
13980
|
* @param options - Options to for Resource constructor
|
|
@@ -14099,7 +14099,7 @@ var PIXI = (function (exports) {
|
|
|
14099
14099
|
* @memberof PIXI
|
|
14100
14100
|
*/
|
|
14101
14101
|
var ArrayResource = /** @class */ (function (_super) {
|
|
14102
|
-
__extends$
|
|
14102
|
+
__extends$h(ArrayResource, _super);
|
|
14103
14103
|
/**
|
|
14104
14104
|
* @param source - Number of items in array or the collection
|
|
14105
14105
|
* of image URLs to use. Can also be resources, image elements, canvas, etc.
|
|
@@ -14184,7 +14184,7 @@ var PIXI = (function (exports) {
|
|
|
14184
14184
|
* @memberof PIXI
|
|
14185
14185
|
*/
|
|
14186
14186
|
var BaseImageResource = /** @class */ (function (_super) {
|
|
14187
|
-
__extends$
|
|
14187
|
+
__extends$h(BaseImageResource, _super);
|
|
14188
14188
|
/**
|
|
14189
14189
|
* @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|SVGElement} source
|
|
14190
14190
|
*/
|
|
@@ -14281,7 +14281,7 @@ var PIXI = (function (exports) {
|
|
|
14281
14281
|
* @memberof PIXI
|
|
14282
14282
|
*/
|
|
14283
14283
|
var CanvasResource = /** @class */ (function (_super) {
|
|
14284
|
-
__extends$
|
|
14284
|
+
__extends$h(CanvasResource, _super);
|
|
14285
14285
|
/**
|
|
14286
14286
|
* @param source - Canvas element to use
|
|
14287
14287
|
*/
|
|
@@ -14312,7 +14312,7 @@ var PIXI = (function (exports) {
|
|
|
14312
14312
|
* @memberof PIXI
|
|
14313
14313
|
*/
|
|
14314
14314
|
var CubeResource = /** @class */ (function (_super) {
|
|
14315
|
-
__extends$
|
|
14315
|
+
__extends$h(CubeResource, _super);
|
|
14316
14316
|
/**
|
|
14317
14317
|
* @param {Array<string|PIXI.Resource>} [source] - Collection of URLs or resources
|
|
14318
14318
|
* to use as the sides of the cube.
|
|
@@ -14352,9 +14352,6 @@ var PIXI = (function (exports) {
|
|
|
14352
14352
|
baseTexture.target = exports.TARGETS.TEXTURE_CUBE_MAP;
|
|
14353
14353
|
};
|
|
14354
14354
|
CubeResource.prototype.addBaseTextureAt = function (baseTexture, index, linkBaseTexture) {
|
|
14355
|
-
if (linkBaseTexture === undefined) {
|
|
14356
|
-
linkBaseTexture = this.linkBaseTexture;
|
|
14357
|
-
}
|
|
14358
14355
|
if (!this.items[index]) {
|
|
14359
14356
|
throw new Error("Index " + index + " is out of bounds");
|
|
14360
14357
|
}
|
|
@@ -14425,7 +14422,7 @@ var PIXI = (function (exports) {
|
|
|
14425
14422
|
* @memberof PIXI
|
|
14426
14423
|
*/
|
|
14427
14424
|
var ImageResource = /** @class */ (function (_super) {
|
|
14428
|
-
__extends$
|
|
14425
|
+
__extends$h(ImageResource, _super);
|
|
14429
14426
|
/**
|
|
14430
14427
|
* @param source - image source or URL
|
|
14431
14428
|
* @param options
|
|
@@ -14620,7 +14617,7 @@ var PIXI = (function (exports) {
|
|
|
14620
14617
|
* @memberof PIXI
|
|
14621
14618
|
*/
|
|
14622
14619
|
var SVGResource = /** @class */ (function (_super) {
|
|
14623
|
-
__extends$
|
|
14620
|
+
__extends$h(SVGResource, _super);
|
|
14624
14621
|
/**
|
|
14625
14622
|
* @param sourceBase64 - Base64 encoded SVG element or URL for SVG file.
|
|
14626
14623
|
* @param {object} [options] - Options to use
|
|
@@ -14772,7 +14769,7 @@ var PIXI = (function (exports) {
|
|
|
14772
14769
|
* @memberof PIXI
|
|
14773
14770
|
*/
|
|
14774
14771
|
var VideoResource = /** @class */ (function (_super) {
|
|
14775
|
-
__extends$
|
|
14772
|
+
__extends$h(VideoResource, _super);
|
|
14776
14773
|
/**
|
|
14777
14774
|
* @param {HTMLVideoElement|object|string|Array<string|object>} source - Video element to use.
|
|
14778
14775
|
* @param {object} [options] - Options to use
|
|
@@ -15028,7 +15025,7 @@ var PIXI = (function (exports) {
|
|
|
15028
15025
|
* @memberof PIXI
|
|
15029
15026
|
*/
|
|
15030
15027
|
var ImageBitmapResource = /** @class */ (function (_super) {
|
|
15031
|
-
__extends$
|
|
15028
|
+
__extends$h(ImageBitmapResource, _super);
|
|
15032
15029
|
/**
|
|
15033
15030
|
* @param source - Image element to use
|
|
15034
15031
|
*/
|
|
@@ -15073,7 +15070,7 @@ var PIXI = (function (exports) {
|
|
|
15073
15070
|
* @memberof PIXI
|
|
15074
15071
|
*/
|
|
15075
15072
|
var DepthResource = /** @class */ (function (_super) {
|
|
15076
|
-
__extends$
|
|
15073
|
+
__extends$h(DepthResource, _super);
|
|
15077
15074
|
function DepthResource() {
|
|
15078
15075
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15079
15076
|
}
|
|
@@ -15277,7 +15274,7 @@ var PIXI = (function (exports) {
|
|
|
15277
15274
|
* @memberof PIXI
|
|
15278
15275
|
*/
|
|
15279
15276
|
var BaseRenderTexture = /** @class */ (function (_super) {
|
|
15280
|
-
__extends$
|
|
15277
|
+
__extends$h(BaseRenderTexture, _super);
|
|
15281
15278
|
/**
|
|
15282
15279
|
* @param options
|
|
15283
15280
|
* @param {number} [options.width=100] - The width of the base render texture.
|
|
@@ -15435,6 +15432,16 @@ var PIXI = (function (exports) {
|
|
|
15435
15432
|
}());
|
|
15436
15433
|
|
|
15437
15434
|
var DEFAULT_UVS = new TextureUvs();
|
|
15435
|
+
/**
|
|
15436
|
+
* Used to remove listeners from WHITE and EMPTY Textures
|
|
15437
|
+
* @ignore
|
|
15438
|
+
*/
|
|
15439
|
+
function removeAllHandlers(tex) {
|
|
15440
|
+
tex.destroy = function _emptyDestroy() { };
|
|
15441
|
+
tex.on = function _emptyOn() { };
|
|
15442
|
+
tex.once = function _emptyOnce() { };
|
|
15443
|
+
tex.emit = function _emptyEmit() { };
|
|
15444
|
+
}
|
|
15438
15445
|
/**
|
|
15439
15446
|
* A texture stores the information that represents an image or part of an image.
|
|
15440
15447
|
*
|
|
@@ -15465,7 +15472,7 @@ var PIXI = (function (exports) {
|
|
|
15465
15472
|
* @typeParam R - The BaseTexture's Resource type.
|
|
15466
15473
|
*/
|
|
15467
15474
|
var Texture = /** @class */ (function (_super) {
|
|
15468
|
-
__extends$
|
|
15475
|
+
__extends$h(Texture, _super);
|
|
15469
15476
|
/**
|
|
15470
15477
|
* @param baseTexture - The base texture source to create the texture from
|
|
15471
15478
|
* @param frame - The rectangle frame of the texture to show
|
|
@@ -15612,7 +15619,7 @@ var PIXI = (function (exports) {
|
|
|
15612
15619
|
* The source can be - frame id, image url, video url, canvas element, video element, base texture
|
|
15613
15620
|
*
|
|
15614
15621
|
* @param {string|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|PIXI.BaseTexture} source -
|
|
15615
|
-
* Source to create texture from
|
|
15622
|
+
* Source or array of sources to create texture from
|
|
15616
15623
|
* @param options - See {@link PIXI.BaseTexture}'s constructor for options.
|
|
15617
15624
|
* @param {string} [options.pixiIdPrefix=pixiid] - If a source has no id, this is the prefix of the generated id
|
|
15618
15625
|
* @param {boolean} [strict] - Enforce strict-mode, see {@link PIXI.settings.STRICT_TEXTURE_CACHE}.
|
|
@@ -15667,7 +15674,7 @@ var PIXI = (function (exports) {
|
|
|
15667
15674
|
* it does a better job of handling failed URLs more effectively. This also ignores
|
|
15668
15675
|
* `PIXI.settings.STRICT_TEXTURE_CACHE`. Works for Videos, SVGs, Images.
|
|
15669
15676
|
*
|
|
15670
|
-
* @param url - The remote URL to load.
|
|
15677
|
+
* @param url - The remote URL or array of URLs to load.
|
|
15671
15678
|
* @param options - Optional options to include
|
|
15672
15679
|
* @return - A Promise that resolves to a Texture.
|
|
15673
15680
|
*/
|
|
@@ -15868,45 +15875,46 @@ var PIXI = (function (exports) {
|
|
|
15868
15875
|
Texture.prototype.castToBaseTexture = function () {
|
|
15869
15876
|
return this.baseTexture;
|
|
15870
15877
|
};
|
|
15878
|
+
Object.defineProperty(Texture, "EMPTY", {
|
|
15879
|
+
/**
|
|
15880
|
+
* An empty texture, used often to not have to create multiple empty textures.
|
|
15881
|
+
* Can not be destroyed.
|
|
15882
|
+
*/
|
|
15883
|
+
get: function () {
|
|
15884
|
+
if (!Texture._EMPTY) {
|
|
15885
|
+
Texture._EMPTY = new Texture(new BaseTexture());
|
|
15886
|
+
removeAllHandlers(Texture._EMPTY);
|
|
15887
|
+
removeAllHandlers(Texture._EMPTY.baseTexture);
|
|
15888
|
+
}
|
|
15889
|
+
return Texture._EMPTY;
|
|
15890
|
+
},
|
|
15891
|
+
enumerable: false,
|
|
15892
|
+
configurable: true
|
|
15893
|
+
});
|
|
15894
|
+
Object.defineProperty(Texture, "WHITE", {
|
|
15895
|
+
/**
|
|
15896
|
+
* A white texture of 16x16 size, used for graphics and other things
|
|
15897
|
+
* Can not be destroyed.
|
|
15898
|
+
*/
|
|
15899
|
+
get: function () {
|
|
15900
|
+
if (!Texture._WHITE) {
|
|
15901
|
+
var canvas = document.createElement('canvas');
|
|
15902
|
+
var context = canvas.getContext('2d');
|
|
15903
|
+
canvas.width = 16;
|
|
15904
|
+
canvas.height = 16;
|
|
15905
|
+
context.fillStyle = 'white';
|
|
15906
|
+
context.fillRect(0, 0, 16, 16);
|
|
15907
|
+
Texture._WHITE = new Texture(new BaseTexture(new CanvasResource(canvas)));
|
|
15908
|
+
removeAllHandlers(Texture._WHITE);
|
|
15909
|
+
removeAllHandlers(Texture._WHITE.baseTexture);
|
|
15910
|
+
}
|
|
15911
|
+
return Texture._WHITE;
|
|
15912
|
+
},
|
|
15913
|
+
enumerable: false,
|
|
15914
|
+
configurable: true
|
|
15915
|
+
});
|
|
15871
15916
|
return Texture;
|
|
15872
15917
|
}(eventemitter3));
|
|
15873
|
-
function createWhiteTexture() {
|
|
15874
|
-
var canvas = document.createElement('canvas');
|
|
15875
|
-
canvas.width = 16;
|
|
15876
|
-
canvas.height = 16;
|
|
15877
|
-
var context = canvas.getContext('2d');
|
|
15878
|
-
context.fillStyle = 'white';
|
|
15879
|
-
context.fillRect(0, 0, 16, 16);
|
|
15880
|
-
return new Texture(new BaseTexture(new CanvasResource(canvas)));
|
|
15881
|
-
}
|
|
15882
|
-
function removeAllHandlers(tex) {
|
|
15883
|
-
tex.destroy = function _emptyDestroy() { };
|
|
15884
|
-
tex.on = function _emptyOn() { };
|
|
15885
|
-
tex.once = function _emptyOnce() { };
|
|
15886
|
-
tex.emit = function _emptyEmit() { };
|
|
15887
|
-
}
|
|
15888
|
-
/**
|
|
15889
|
-
* An empty texture, used often to not have to create multiple empty textures.
|
|
15890
|
-
* Can not be destroyed.
|
|
15891
|
-
*
|
|
15892
|
-
* @static
|
|
15893
|
-
* @constant
|
|
15894
|
-
* @member {PIXI.Texture}
|
|
15895
|
-
*/
|
|
15896
|
-
Texture.EMPTY = new Texture(new BaseTexture());
|
|
15897
|
-
removeAllHandlers(Texture.EMPTY);
|
|
15898
|
-
removeAllHandlers(Texture.EMPTY.baseTexture);
|
|
15899
|
-
/**
|
|
15900
|
-
* A white texture of 16x16 size, used for graphics and other things
|
|
15901
|
-
* Can not be destroyed.
|
|
15902
|
-
*
|
|
15903
|
-
* @static
|
|
15904
|
-
* @constant
|
|
15905
|
-
* @member {PIXI.Texture}
|
|
15906
|
-
*/
|
|
15907
|
-
Texture.WHITE = createWhiteTexture();
|
|
15908
|
-
removeAllHandlers(Texture.WHITE);
|
|
15909
|
-
removeAllHandlers(Texture.WHITE.baseTexture);
|
|
15910
15918
|
|
|
15911
15919
|
/**
|
|
15912
15920
|
* A RenderTexture is a special texture that allows any PixiJS display object to be rendered to it.
|
|
@@ -15948,7 +15956,7 @@ var PIXI = (function (exports) {
|
|
|
15948
15956
|
* @memberof PIXI
|
|
15949
15957
|
*/
|
|
15950
15958
|
var RenderTexture = /** @class */ (function (_super) {
|
|
15951
|
-
__extends$
|
|
15959
|
+
__extends$h(RenderTexture, _super);
|
|
15952
15960
|
/**
|
|
15953
15961
|
* @param baseRenderTexture - The base texture object that this texture uses.
|
|
15954
15962
|
* @param frame - The rectangle frame of the texture to show.
|
|
@@ -16264,7 +16272,7 @@ var PIXI = (function (exports) {
|
|
|
16264
16272
|
return Attribute;
|
|
16265
16273
|
}());
|
|
16266
16274
|
|
|
16267
|
-
var UID = 0;
|
|
16275
|
+
var UID$4 = 0;
|
|
16268
16276
|
/**
|
|
16269
16277
|
* A wrapper for data so that it can be used and uploaded by WebGL
|
|
16270
16278
|
*
|
|
@@ -16284,7 +16292,7 @@ var PIXI = (function (exports) {
|
|
|
16284
16292
|
this._updateID = 0;
|
|
16285
16293
|
this.index = index;
|
|
16286
16294
|
this.static = _static;
|
|
16287
|
-
this.id = UID++;
|
|
16295
|
+
this.id = UID$4++;
|
|
16288
16296
|
this.disposeRunner = new Runner('disposeBuffer');
|
|
16289
16297
|
}
|
|
16290
16298
|
// TODO could explore flagging only a partial upload?
|
|
@@ -16348,7 +16356,7 @@ var PIXI = (function (exports) {
|
|
|
16348
16356
|
Int32Array: Int32Array,
|
|
16349
16357
|
Uint8Array: Uint8Array,
|
|
16350
16358
|
};
|
|
16351
|
-
function interleaveTypedArrays
|
|
16359
|
+
function interleaveTypedArrays(arrays, sizes) {
|
|
16352
16360
|
var outSize = 0;
|
|
16353
16361
|
var stride = 0;
|
|
16354
16362
|
var views = {};
|
|
@@ -16377,10 +16385,10 @@ var PIXI = (function (exports) {
|
|
|
16377
16385
|
return new Float32Array(buffer);
|
|
16378
16386
|
}
|
|
16379
16387
|
|
|
16380
|
-
var byteSizeMap = { 5126: 4, 5123: 2, 5121: 1 };
|
|
16381
|
-
var UID$
|
|
16388
|
+
var byteSizeMap$1 = { 5126: 4, 5123: 2, 5121: 1 };
|
|
16389
|
+
var UID$3 = 0;
|
|
16382
16390
|
/* eslint-disable object-shorthand */
|
|
16383
|
-
var map
|
|
16391
|
+
var map = {
|
|
16384
16392
|
Float32Array: Float32Array,
|
|
16385
16393
|
Uint32Array: Uint32Array,
|
|
16386
16394
|
Int32Array: Int32Array,
|
|
@@ -16418,7 +16426,7 @@ var PIXI = (function (exports) {
|
|
|
16418
16426
|
this.indexBuffer = null;
|
|
16419
16427
|
this.attributes = attributes;
|
|
16420
16428
|
this.glVertexArrayObjects = {};
|
|
16421
|
-
this.id = UID$
|
|
16429
|
+
this.id = UID$3++;
|
|
16422
16430
|
this.instanced = false;
|
|
16423
16431
|
this.instanceCount = 1;
|
|
16424
16432
|
this.disposeRunner = new Runner('disposeGeometry');
|
|
@@ -16539,10 +16547,10 @@ var PIXI = (function (exports) {
|
|
|
16539
16547
|
var attribute = this.attributes[i];
|
|
16540
16548
|
var buffer = this.buffers[attribute.buffer];
|
|
16541
16549
|
arrays.push(buffer.data);
|
|
16542
|
-
sizes.push((attribute.size * byteSizeMap[attribute.type]) / 4);
|
|
16550
|
+
sizes.push((attribute.size * byteSizeMap$1[attribute.type]) / 4);
|
|
16543
16551
|
attribute.buffer = 0;
|
|
16544
16552
|
}
|
|
16545
|
-
interleavedBuffer.data = interleaveTypedArrays
|
|
16553
|
+
interleavedBuffer.data = interleaveTypedArrays(arrays, sizes);
|
|
16546
16554
|
for (i = 0; i < this.buffers.length; i++) {
|
|
16547
16555
|
if (this.buffers[i] !== this.indexBuffer) {
|
|
16548
16556
|
this.buffers[i].destroy();
|
|
@@ -16622,7 +16630,7 @@ var PIXI = (function (exports) {
|
|
|
16622
16630
|
// build the correct size arrays..
|
|
16623
16631
|
for (var i = 0; i < geometry.buffers.length; i++) {
|
|
16624
16632
|
// TODO types!
|
|
16625
|
-
arrays[i] = new map
|
|
16633
|
+
arrays[i] = new map[getBufferType(geometry.buffers[i].data)](sizes[i]);
|
|
16626
16634
|
geometryOut.buffers[i] = new Buffer(arrays[i]);
|
|
16627
16635
|
}
|
|
16628
16636
|
// pass to set data..
|
|
@@ -16652,7 +16660,7 @@ var PIXI = (function (exports) {
|
|
|
16652
16660
|
for (var i in geometry.attributes) {
|
|
16653
16661
|
var attribute = geometry.attributes[i];
|
|
16654
16662
|
if ((attribute.buffer | 0) === bufferIndexToCount) {
|
|
16655
|
-
stride += ((attribute.size * byteSizeMap[attribute.type]) / 4);
|
|
16663
|
+
stride += ((attribute.size * byteSizeMap$1[attribute.type]) / 4);
|
|
16656
16664
|
}
|
|
16657
16665
|
}
|
|
16658
16666
|
// time to off set all indexes..
|
|
@@ -16676,7 +16684,7 @@ var PIXI = (function (exports) {
|
|
|
16676
16684
|
* @memberof PIXI
|
|
16677
16685
|
*/
|
|
16678
16686
|
var Quad = /** @class */ (function (_super) {
|
|
16679
|
-
__extends$
|
|
16687
|
+
__extends$h(Quad, _super);
|
|
16680
16688
|
function Quad() {
|
|
16681
16689
|
var _this = _super.call(this) || this;
|
|
16682
16690
|
_this.addAttribute('aVertexPosition', new Float32Array([
|
|
@@ -16696,7 +16704,7 @@ var PIXI = (function (exports) {
|
|
|
16696
16704
|
* @memberof PIXI
|
|
16697
16705
|
*/
|
|
16698
16706
|
var QuadUv = /** @class */ (function (_super) {
|
|
16699
|
-
__extends$
|
|
16707
|
+
__extends$h(QuadUv, _super);
|
|
16700
16708
|
function QuadUv() {
|
|
16701
16709
|
var _this = _super.call(this) || this;
|
|
16702
16710
|
_this.vertices = new Float32Array([
|
|
@@ -16893,8 +16901,8 @@ var PIXI = (function (exports) {
|
|
|
16893
16901
|
return FilterState;
|
|
16894
16902
|
}());
|
|
16895
16903
|
|
|
16896
|
-
var tempPoints
|
|
16897
|
-
var tempMatrix = new Matrix();
|
|
16904
|
+
var tempPoints = [new Point(), new Point(), new Point(), new Point()];
|
|
16905
|
+
var tempMatrix$2 = new Matrix();
|
|
16898
16906
|
/**
|
|
16899
16907
|
* System plugin to the renderer to manage filters.
|
|
16900
16908
|
*
|
|
@@ -16994,13 +17002,21 @@ var PIXI = (function (exports) {
|
|
|
16994
17002
|
state.target = target;
|
|
16995
17003
|
state.sourceFrame.copyFrom(target.filterArea || target.getBounds(true));
|
|
16996
17004
|
state.sourceFrame.pad(padding);
|
|
17005
|
+
var sourceFrameProjected = this.tempRect.copyFrom(renderTextureSystem.sourceFrame);
|
|
17006
|
+
// Project source frame into world space (if projection is applied)
|
|
17007
|
+
if (renderer.projection.transform) {
|
|
17008
|
+
this.transformAABB(tempMatrix$2.copyFrom(renderer.projection.transform).invert(), sourceFrameProjected);
|
|
17009
|
+
}
|
|
16997
17010
|
if (autoFit) {
|
|
16998
|
-
var sourceFrameProjected = this.tempRect.copyFrom(renderTextureSystem.sourceFrame);
|
|
16999
|
-
// Project source frame into world space (if projection is applied)
|
|
17000
|
-
if (renderer.projection.transform) {
|
|
17001
|
-
this.transformAABB(tempMatrix.copyFrom(renderer.projection.transform).invert(), sourceFrameProjected);
|
|
17002
|
-
}
|
|
17003
17011
|
state.sourceFrame.fit(sourceFrameProjected);
|
|
17012
|
+
if (state.sourceFrame.width <= 0 || state.sourceFrame.height <= 0) {
|
|
17013
|
+
state.sourceFrame.width = 0;
|
|
17014
|
+
state.sourceFrame.height = 0;
|
|
17015
|
+
}
|
|
17016
|
+
}
|
|
17017
|
+
else if (!state.sourceFrame.intersects(sourceFrameProjected)) {
|
|
17018
|
+
state.sourceFrame.width = 0;
|
|
17019
|
+
state.sourceFrame.height = 0;
|
|
17004
17020
|
}
|
|
17005
17021
|
// Round sourceFrame in screen space based on render-texture.
|
|
17006
17022
|
this.roundFrame(state.sourceFrame, renderTextureSystem.current ? renderTextureSystem.current.resolution : renderer.resolution, renderTextureSystem.sourceFrame, renderTextureSystem.destinationFrame, renderer.projection.transform);
|
|
@@ -17244,10 +17260,10 @@ var PIXI = (function (exports) {
|
|
|
17244
17260
|
* @param rect - second param
|
|
17245
17261
|
*/
|
|
17246
17262
|
FilterSystem.prototype.transformAABB = function (matrix, rect) {
|
|
17247
|
-
var lt = tempPoints
|
|
17248
|
-
var lb = tempPoints
|
|
17249
|
-
var rt = tempPoints
|
|
17250
|
-
var rb = tempPoints
|
|
17263
|
+
var lt = tempPoints[0];
|
|
17264
|
+
var lb = tempPoints[1];
|
|
17265
|
+
var rt = tempPoints[2];
|
|
17266
|
+
var rb = tempPoints[3];
|
|
17251
17267
|
lt.set(rect.left, rect.top);
|
|
17252
17268
|
lb.set(rect.left, rect.bottom);
|
|
17253
17269
|
rt.set(rect.right, rect.top);
|
|
@@ -17278,7 +17294,7 @@ var PIXI = (function (exports) {
|
|
|
17278
17294
|
return;
|
|
17279
17295
|
}
|
|
17280
17296
|
}
|
|
17281
|
-
transform = transform ? tempMatrix.copyFrom(transform) : tempMatrix.identity();
|
|
17297
|
+
transform = transform ? tempMatrix$2.copyFrom(transform) : tempMatrix$2.identity();
|
|
17282
17298
|
// Get forward transform from world space to screen space
|
|
17283
17299
|
transform
|
|
17284
17300
|
.translate(-bindingSourceFrame.x, -bindingSourceFrame.y)
|
|
@@ -18141,7 +18157,7 @@ var PIXI = (function (exports) {
|
|
|
18141
18157
|
return FramebufferSystem;
|
|
18142
18158
|
}());
|
|
18143
18159
|
|
|
18144
|
-
var byteSizeMap
|
|
18160
|
+
var byteSizeMap = { 5126: 4, 5123: 2, 5121: 1 };
|
|
18145
18161
|
/**
|
|
18146
18162
|
* System plugin to the renderer to manage geometry.
|
|
18147
18163
|
*
|
|
@@ -18340,13 +18356,13 @@ var PIXI = (function (exports) {
|
|
|
18340
18356
|
else if (!attributes[j].size) {
|
|
18341
18357
|
console.warn("PIXI Geometry attribute '" + j + "' size cannot be determined (likely the bound shader does not have the attribute)"); // eslint-disable-line
|
|
18342
18358
|
}
|
|
18343
|
-
tempStride[attributes[j].buffer] += attributes[j].size * byteSizeMap
|
|
18359
|
+
tempStride[attributes[j].buffer] += attributes[j].size * byteSizeMap[attributes[j].type];
|
|
18344
18360
|
}
|
|
18345
18361
|
for (var j in attributes) {
|
|
18346
18362
|
var attribute = attributes[j];
|
|
18347
18363
|
var attribSize = attribute.size;
|
|
18348
18364
|
if (attribute.stride === undefined) {
|
|
18349
|
-
if (tempStride[attribute.buffer] === attribSize * byteSizeMap
|
|
18365
|
+
if (tempStride[attribute.buffer] === attribSize * byteSizeMap[attribute.type]) {
|
|
18350
18366
|
attribute.stride = 0;
|
|
18351
18367
|
}
|
|
18352
18368
|
else {
|
|
@@ -18355,7 +18371,7 @@ var PIXI = (function (exports) {
|
|
|
18355
18371
|
}
|
|
18356
18372
|
if (attribute.start === undefined) {
|
|
18357
18373
|
attribute.start = tempStart[attribute.buffer];
|
|
18358
|
-
tempStart[attribute.buffer] += attribSize * byteSizeMap
|
|
18374
|
+
tempStart[attribute.buffer] += attribSize * byteSizeMap[attribute.type];
|
|
18359
18375
|
}
|
|
18360
18376
|
}
|
|
18361
18377
|
vao = gl.createVertexArray();
|
|
@@ -19098,7 +19114,7 @@ var PIXI = (function (exports) {
|
|
|
19098
19114
|
return new Function('ud', 'uv', 'renderer', 'syncData', funcFragments.join('\n'));
|
|
19099
19115
|
}
|
|
19100
19116
|
|
|
19101
|
-
var fragTemplate = [
|
|
19117
|
+
var fragTemplate$1 = [
|
|
19102
19118
|
'precision mediump float;',
|
|
19103
19119
|
'void main(void){',
|
|
19104
19120
|
'float test = 0.1;',
|
|
@@ -19124,7 +19140,7 @@ var PIXI = (function (exports) {
|
|
|
19124
19140
|
var shader = gl.createShader(gl.FRAGMENT_SHADER);
|
|
19125
19141
|
while (true) // eslint-disable-line no-constant-condition
|
|
19126
19142
|
{
|
|
19127
|
-
var fragmentSrc = fragTemplate.replace(/%forloop%/gi, generateIfTestSrc(maxIfs));
|
|
19143
|
+
var fragmentSrc = fragTemplate$1.replace(/%forloop%/gi, generateIfTestSrc(maxIfs));
|
|
19128
19144
|
gl.shaderSource(shader, fragmentSrc);
|
|
19129
19145
|
gl.compileShader(shader);
|
|
19130
19146
|
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
|
@@ -19163,11 +19179,11 @@ var PIXI = (function (exports) {
|
|
|
19163
19179
|
return unsafeEval;
|
|
19164
19180
|
}
|
|
19165
19181
|
|
|
19166
|
-
var defaultFragment = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}";
|
|
19182
|
+
var defaultFragment$2 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}";
|
|
19167
19183
|
|
|
19168
|
-
var defaultVertex = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
|
|
19184
|
+
var defaultVertex$3 = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
|
|
19169
19185
|
|
|
19170
|
-
var UID$
|
|
19186
|
+
var UID$1 = 0;
|
|
19171
19187
|
var nameCache = {};
|
|
19172
19188
|
/**
|
|
19173
19189
|
* Helper class to create a shader program.
|
|
@@ -19182,7 +19198,7 @@ var PIXI = (function (exports) {
|
|
|
19182
19198
|
*/
|
|
19183
19199
|
function Program(vertexSrc, fragmentSrc, name) {
|
|
19184
19200
|
if (name === void 0) { name = 'pixi-shader'; }
|
|
19185
|
-
this.id = UID$
|
|
19201
|
+
this.id = UID$1++;
|
|
19186
19202
|
this.vertexSrc = vertexSrc || Program.defaultVertexSrc;
|
|
19187
19203
|
this.fragmentSrc = fragmentSrc || Program.defaultFragmentSrc;
|
|
19188
19204
|
this.vertexSrc = this.vertexSrc.trim();
|
|
@@ -19213,7 +19229,7 @@ var PIXI = (function (exports) {
|
|
|
19213
19229
|
* @constant
|
|
19214
19230
|
*/
|
|
19215
19231
|
get: function () {
|
|
19216
|
-
return defaultVertex;
|
|
19232
|
+
return defaultVertex$3;
|
|
19217
19233
|
},
|
|
19218
19234
|
enumerable: false,
|
|
19219
19235
|
configurable: true
|
|
@@ -19225,7 +19241,7 @@ var PIXI = (function (exports) {
|
|
|
19225
19241
|
* @constant
|
|
19226
19242
|
*/
|
|
19227
19243
|
get: function () {
|
|
19228
|
-
return defaultFragment;
|
|
19244
|
+
return defaultFragment$2;
|
|
19229
19245
|
},
|
|
19230
19246
|
enumerable: false,
|
|
19231
19247
|
configurable: true
|
|
@@ -19330,12 +19346,12 @@ var PIXI = (function (exports) {
|
|
|
19330
19346
|
}());
|
|
19331
19347
|
|
|
19332
19348
|
/* eslint-disable max-len */
|
|
19333
|
-
var BLEND = 0;
|
|
19334
|
-
var OFFSET = 1;
|
|
19335
|
-
var CULLING = 2;
|
|
19336
|
-
var DEPTH_TEST = 3;
|
|
19337
|
-
var WINDING = 4;
|
|
19338
|
-
var DEPTH_MASK = 5;
|
|
19349
|
+
var BLEND$1 = 0;
|
|
19350
|
+
var OFFSET$1 = 1;
|
|
19351
|
+
var CULLING$1 = 2;
|
|
19352
|
+
var DEPTH_TEST$1 = 3;
|
|
19353
|
+
var WINDING$1 = 4;
|
|
19354
|
+
var DEPTH_MASK$1 = 5;
|
|
19339
19355
|
/**
|
|
19340
19356
|
* This is a WebGL state, and is is passed to {@link PIXI.StateSystem}.
|
|
19341
19357
|
*
|
|
@@ -19360,11 +19376,11 @@ var PIXI = (function (exports) {
|
|
|
19360
19376
|
* @default true
|
|
19361
19377
|
*/
|
|
19362
19378
|
get: function () {
|
|
19363
|
-
return !!(this.data & (1 << BLEND));
|
|
19379
|
+
return !!(this.data & (1 << BLEND$1));
|
|
19364
19380
|
},
|
|
19365
19381
|
set: function (value) {
|
|
19366
|
-
if (!!(this.data & (1 << BLEND)) !== value) {
|
|
19367
|
-
this.data ^= (1 << BLEND);
|
|
19382
|
+
if (!!(this.data & (1 << BLEND$1)) !== value) {
|
|
19383
|
+
this.data ^= (1 << BLEND$1);
|
|
19368
19384
|
}
|
|
19369
19385
|
},
|
|
19370
19386
|
enumerable: false,
|
|
@@ -19377,11 +19393,11 @@ var PIXI = (function (exports) {
|
|
|
19377
19393
|
* @default false
|
|
19378
19394
|
*/
|
|
19379
19395
|
get: function () {
|
|
19380
|
-
return !!(this.data & (1 << OFFSET));
|
|
19396
|
+
return !!(this.data & (1 << OFFSET$1));
|
|
19381
19397
|
},
|
|
19382
19398
|
set: function (value) {
|
|
19383
|
-
if (!!(this.data & (1 << OFFSET)) !== value) {
|
|
19384
|
-
this.data ^= (1 << OFFSET);
|
|
19399
|
+
if (!!(this.data & (1 << OFFSET$1)) !== value) {
|
|
19400
|
+
this.data ^= (1 << OFFSET$1);
|
|
19385
19401
|
}
|
|
19386
19402
|
},
|
|
19387
19403
|
enumerable: false,
|
|
@@ -19394,11 +19410,11 @@ var PIXI = (function (exports) {
|
|
|
19394
19410
|
* @default false
|
|
19395
19411
|
*/
|
|
19396
19412
|
get: function () {
|
|
19397
|
-
return !!(this.data & (1 << CULLING));
|
|
19413
|
+
return !!(this.data & (1 << CULLING$1));
|
|
19398
19414
|
},
|
|
19399
19415
|
set: function (value) {
|
|
19400
|
-
if (!!(this.data & (1 << CULLING)) !== value) {
|
|
19401
|
-
this.data ^= (1 << CULLING);
|
|
19416
|
+
if (!!(this.data & (1 << CULLING$1)) !== value) {
|
|
19417
|
+
this.data ^= (1 << CULLING$1);
|
|
19402
19418
|
}
|
|
19403
19419
|
},
|
|
19404
19420
|
enumerable: false,
|
|
@@ -19411,11 +19427,11 @@ var PIXI = (function (exports) {
|
|
|
19411
19427
|
* @default false
|
|
19412
19428
|
*/
|
|
19413
19429
|
get: function () {
|
|
19414
|
-
return !!(this.data & (1 << DEPTH_TEST));
|
|
19430
|
+
return !!(this.data & (1 << DEPTH_TEST$1));
|
|
19415
19431
|
},
|
|
19416
19432
|
set: function (value) {
|
|
19417
|
-
if (!!(this.data & (1 << DEPTH_TEST)) !== value) {
|
|
19418
|
-
this.data ^= (1 << DEPTH_TEST);
|
|
19433
|
+
if (!!(this.data & (1 << DEPTH_TEST$1)) !== value) {
|
|
19434
|
+
this.data ^= (1 << DEPTH_TEST$1);
|
|
19419
19435
|
}
|
|
19420
19436
|
},
|
|
19421
19437
|
enumerable: false,
|
|
@@ -19428,11 +19444,11 @@ var PIXI = (function (exports) {
|
|
|
19428
19444
|
* @default true
|
|
19429
19445
|
*/
|
|
19430
19446
|
get: function () {
|
|
19431
|
-
return !!(this.data & (1 << DEPTH_MASK));
|
|
19447
|
+
return !!(this.data & (1 << DEPTH_MASK$1));
|
|
19432
19448
|
},
|
|
19433
19449
|
set: function (value) {
|
|
19434
|
-
if (!!(this.data & (1 << DEPTH_MASK)) !== value) {
|
|
19435
|
-
this.data ^= (1 << DEPTH_MASK);
|
|
19450
|
+
if (!!(this.data & (1 << DEPTH_MASK$1)) !== value) {
|
|
19451
|
+
this.data ^= (1 << DEPTH_MASK$1);
|
|
19436
19452
|
}
|
|
19437
19453
|
},
|
|
19438
19454
|
enumerable: false,
|
|
@@ -19445,11 +19461,11 @@ var PIXI = (function (exports) {
|
|
|
19445
19461
|
* @default false
|
|
19446
19462
|
*/
|
|
19447
19463
|
get: function () {
|
|
19448
|
-
return !!(this.data & (1 << WINDING));
|
|
19464
|
+
return !!(this.data & (1 << WINDING$1));
|
|
19449
19465
|
},
|
|
19450
19466
|
set: function (value) {
|
|
19451
|
-
if (!!(this.data & (1 << WINDING)) !== value) {
|
|
19452
|
-
this.data ^= (1 << WINDING);
|
|
19467
|
+
if (!!(this.data & (1 << WINDING$1)) !== value) {
|
|
19468
|
+
this.data ^= (1 << WINDING$1);
|
|
19453
19469
|
}
|
|
19454
19470
|
},
|
|
19455
19471
|
enumerable: false,
|
|
@@ -19506,7 +19522,7 @@ var PIXI = (function (exports) {
|
|
|
19506
19522
|
return State;
|
|
19507
19523
|
}());
|
|
19508
19524
|
|
|
19509
|
-
var defaultVertex$
|
|
19525
|
+
var defaultVertex$2 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n";
|
|
19510
19526
|
|
|
19511
19527
|
var defaultFragment$1 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n";
|
|
19512
19528
|
|
|
@@ -19681,7 +19697,7 @@ var PIXI = (function (exports) {
|
|
|
19681
19697
|
* @memberof PIXI
|
|
19682
19698
|
*/
|
|
19683
19699
|
var Filter = /** @class */ (function (_super) {
|
|
19684
|
-
__extends$
|
|
19700
|
+
__extends$h(Filter, _super);
|
|
19685
19701
|
/**
|
|
19686
19702
|
* @param vertexSrc - The source of the vertex shader.
|
|
19687
19703
|
* @param fragmentSrc - The source of the fragment shader.
|
|
@@ -19751,7 +19767,7 @@ var PIXI = (function (exports) {
|
|
|
19751
19767
|
* @constant
|
|
19752
19768
|
*/
|
|
19753
19769
|
get: function () {
|
|
19754
|
-
return defaultVertex$
|
|
19770
|
+
return defaultVertex$2;
|
|
19755
19771
|
},
|
|
19756
19772
|
enumerable: false,
|
|
19757
19773
|
configurable: true
|
|
@@ -19771,11 +19787,11 @@ var PIXI = (function (exports) {
|
|
|
19771
19787
|
return Filter;
|
|
19772
19788
|
}(Shader));
|
|
19773
19789
|
|
|
19774
|
-
var vertex = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n";
|
|
19790
|
+
var vertex$4 = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n";
|
|
19775
19791
|
|
|
19776
|
-
var fragment = "varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n";
|
|
19792
|
+
var fragment$7 = "varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n";
|
|
19777
19793
|
|
|
19778
|
-
var tempMat = new Matrix();
|
|
19794
|
+
var tempMat$1 = new Matrix();
|
|
19779
19795
|
/**
|
|
19780
19796
|
* Class controls uv mapping from Texture normal space to BaseTexture normal space.
|
|
19781
19797
|
*
|
|
@@ -19862,8 +19878,8 @@ var PIXI = (function (exports) {
|
|
|
19862
19878
|
var orig = tex.orig;
|
|
19863
19879
|
var trim = tex.trim;
|
|
19864
19880
|
if (trim) {
|
|
19865
|
-
tempMat.set(orig.width / trim.width, 0, 0, orig.height / trim.height, -trim.x / trim.width, -trim.y / trim.height);
|
|
19866
|
-
this.mapCoord.append(tempMat);
|
|
19881
|
+
tempMat$1.set(orig.width / trim.width, 0, 0, orig.height / trim.height, -trim.x / trim.width, -trim.y / trim.height);
|
|
19882
|
+
this.mapCoord.append(tempMat$1);
|
|
19867
19883
|
}
|
|
19868
19884
|
var texBase = tex.baseTexture;
|
|
19869
19885
|
var frame = this.uClampFrame;
|
|
@@ -19891,7 +19907,7 @@ var PIXI = (function (exports) {
|
|
|
19891
19907
|
* @memberof PIXI
|
|
19892
19908
|
*/
|
|
19893
19909
|
var SpriteMaskFilter = /** @class */ (function (_super) {
|
|
19894
|
-
__extends$
|
|
19910
|
+
__extends$h(SpriteMaskFilter, _super);
|
|
19895
19911
|
/** @ignore */
|
|
19896
19912
|
function SpriteMaskFilter(vertexSrc, fragmentSrc, uniforms) {
|
|
19897
19913
|
var _this = this;
|
|
@@ -19902,7 +19918,7 @@ var PIXI = (function (exports) {
|
|
|
19902
19918
|
fragmentSrc = undefined;
|
|
19903
19919
|
uniforms = undefined;
|
|
19904
19920
|
}
|
|
19905
|
-
_this = _super.call(this, vertexSrc || vertex, fragmentSrc || fragment, uniforms) || this;
|
|
19921
|
+
_this = _super.call(this, vertexSrc || vertex$4, fragmentSrc || fragment$7, uniforms) || this;
|
|
19906
19922
|
_this.maskSprite = sprite;
|
|
19907
19923
|
_this.maskMatrix = new Matrix();
|
|
19908
19924
|
return _this;
|
|
@@ -20221,7 +20237,7 @@ var PIXI = (function (exports) {
|
|
|
20221
20237
|
* @memberof PIXI
|
|
20222
20238
|
*/
|
|
20223
20239
|
var ScissorSystem = /** @class */ (function (_super) {
|
|
20224
|
-
__extends$
|
|
20240
|
+
__extends$h(ScissorSystem, _super);
|
|
20225
20241
|
/**
|
|
20226
20242
|
* @param {PIXI.Renderer} renderer - The renderer this System works for.
|
|
20227
20243
|
*/
|
|
@@ -20365,7 +20381,7 @@ var PIXI = (function (exports) {
|
|
|
20365
20381
|
* @memberof PIXI
|
|
20366
20382
|
*/
|
|
20367
20383
|
var StencilSystem = /** @class */ (function (_super) {
|
|
20368
|
-
__extends$
|
|
20384
|
+
__extends$h(StencilSystem, _super);
|
|
20369
20385
|
/**
|
|
20370
20386
|
* @param renderer - The renderer this System works for.
|
|
20371
20387
|
*/
|
|
@@ -20957,7 +20973,7 @@ var PIXI = (function (exports) {
|
|
|
20957
20973
|
return glProgram;
|
|
20958
20974
|
}
|
|
20959
20975
|
|
|
20960
|
-
var UID
|
|
20976
|
+
var UID = 0;
|
|
20961
20977
|
// default sync data so we don't create a new one each time!
|
|
20962
20978
|
var defaultSyncData = { textureCount: 0, uboCount: 0 };
|
|
20963
20979
|
/**
|
|
@@ -20977,7 +20993,7 @@ var PIXI = (function (exports) {
|
|
|
20977
20993
|
this.program = null;
|
|
20978
20994
|
this.cache = {};
|
|
20979
20995
|
this._uboCache = {};
|
|
20980
|
-
this.id = UID
|
|
20996
|
+
this.id = UID++;
|
|
20981
20997
|
}
|
|
20982
20998
|
/**
|
|
20983
20999
|
* Overrideable function by `@pixi/unsafe-eval` to silence
|
|
@@ -21213,12 +21229,12 @@ var PIXI = (function (exports) {
|
|
|
21213
21229
|
return array;
|
|
21214
21230
|
}
|
|
21215
21231
|
|
|
21216
|
-
var BLEND
|
|
21217
|
-
var OFFSET
|
|
21218
|
-
var CULLING
|
|
21219
|
-
var DEPTH_TEST
|
|
21220
|
-
var WINDING
|
|
21221
|
-
var DEPTH_MASK
|
|
21232
|
+
var BLEND = 0;
|
|
21233
|
+
var OFFSET = 1;
|
|
21234
|
+
var CULLING = 2;
|
|
21235
|
+
var DEPTH_TEST = 3;
|
|
21236
|
+
var WINDING = 4;
|
|
21237
|
+
var DEPTH_MASK = 5;
|
|
21222
21238
|
/**
|
|
21223
21239
|
* System plugin to the renderer to manage WebGL state machines.
|
|
21224
21240
|
*
|
|
@@ -21233,12 +21249,12 @@ var PIXI = (function (exports) {
|
|
|
21233
21249
|
this._blendEq = false;
|
|
21234
21250
|
// map functions for when we set state..
|
|
21235
21251
|
this.map = [];
|
|
21236
|
-
this.map[BLEND
|
|
21237
|
-
this.map[OFFSET
|
|
21238
|
-
this.map[CULLING
|
|
21239
|
-
this.map[DEPTH_TEST
|
|
21240
|
-
this.map[WINDING
|
|
21241
|
-
this.map[DEPTH_MASK
|
|
21252
|
+
this.map[BLEND] = this.setBlend;
|
|
21253
|
+
this.map[OFFSET] = this.setOffset;
|
|
21254
|
+
this.map[CULLING] = this.setCullFace;
|
|
21255
|
+
this.map[DEPTH_TEST] = this.setDepthTest;
|
|
21256
|
+
this.map[WINDING] = this.setFrontFace;
|
|
21257
|
+
this.map[DEPTH_MASK] = this.setDepthMask;
|
|
21242
21258
|
this.checks = [];
|
|
21243
21259
|
this.defaultState = new State();
|
|
21244
21260
|
this.defaultState.blend = true;
|
|
@@ -21967,8 +21983,6 @@ var PIXI = (function (exports) {
|
|
|
21967
21983
|
return TextureSystem;
|
|
21968
21984
|
}());
|
|
21969
21985
|
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
21986
|
var _systems = {
|
|
21973
21987
|
__proto__: null,
|
|
21974
21988
|
FilterSystem: FilterSystem,
|
|
@@ -21987,7 +22001,7 @@ var PIXI = (function (exports) {
|
|
|
21987
22001
|
TextureSystem: TextureSystem
|
|
21988
22002
|
};
|
|
21989
22003
|
|
|
21990
|
-
var tempMatrix
|
|
22004
|
+
var tempMatrix = new Matrix();
|
|
21991
22005
|
/**
|
|
21992
22006
|
* The AbstractRenderer is the base for a PixiJS Renderer. It is extended by the {@link PIXI.CanvasRenderer}
|
|
21993
22007
|
* and {@link PIXI.Renderer} which can be used for rendering a PixiJS scene.
|
|
@@ -21998,7 +22012,7 @@ var PIXI = (function (exports) {
|
|
|
21998
22012
|
* @memberof PIXI
|
|
21999
22013
|
*/
|
|
22000
22014
|
var AbstractRenderer = /** @class */ (function (_super) {
|
|
22001
|
-
__extends$
|
|
22015
|
+
__extends$h(AbstractRenderer, _super);
|
|
22002
22016
|
/**
|
|
22003
22017
|
* @param system - The name of the system this renderer is for.
|
|
22004
22018
|
* @param [options] - The optional renderer parameters.
|
|
@@ -22221,12 +22235,12 @@ var PIXI = (function (exports) {
|
|
|
22221
22235
|
if (region.height === 0)
|
|
22222
22236
|
{ region.height = 1; }
|
|
22223
22237
|
var renderTexture = RenderTexture.create(__assign({ width: region.width, height: region.height }, textureOptions));
|
|
22224
|
-
tempMatrix
|
|
22225
|
-
tempMatrix
|
|
22238
|
+
tempMatrix.tx = -region.x;
|
|
22239
|
+
tempMatrix.ty = -region.y;
|
|
22226
22240
|
this.render(displayObject, {
|
|
22227
22241
|
renderTexture: renderTexture,
|
|
22228
22242
|
clear: false,
|
|
22229
|
-
transform: tempMatrix
|
|
22243
|
+
transform: tempMatrix,
|
|
22230
22244
|
skipUpdateTransform: !!displayObject.parent
|
|
22231
22245
|
});
|
|
22232
22246
|
return renderTexture;
|
|
@@ -22486,7 +22500,7 @@ var PIXI = (function (exports) {
|
|
|
22486
22500
|
* @memberof PIXI
|
|
22487
22501
|
*/
|
|
22488
22502
|
var Renderer = /** @class */ (function (_super) {
|
|
22489
|
-
__extends$
|
|
22503
|
+
__extends$h(Renderer, _super);
|
|
22490
22504
|
/**
|
|
22491
22505
|
* @param [options] - The optional renderer parameters.
|
|
22492
22506
|
* @param {number} [options.width=800] - The width of the screen.
|
|
@@ -22837,7 +22851,7 @@ var PIXI = (function (exports) {
|
|
|
22837
22851
|
*/
|
|
22838
22852
|
// NOTE: This black magic is so that @microsoft/api-extractor does not complain! This explicitly specifies the types
|
|
22839
22853
|
// of defaultVertex, defaultFilterVertex.
|
|
22840
|
-
var defaultVertex$
|
|
22854
|
+
var defaultVertex$1 = $defaultVertex;
|
|
22841
22855
|
var defaultFilterVertex = $defaultFilterVertex;
|
|
22842
22856
|
|
|
22843
22857
|
/**
|
|
@@ -23024,7 +23038,7 @@ var PIXI = (function (exports) {
|
|
|
23024
23038
|
* @memberof PIXI
|
|
23025
23039
|
*/
|
|
23026
23040
|
var AbstractBatchRenderer = /** @class */ (function (_super) {
|
|
23027
|
-
__extends$
|
|
23041
|
+
__extends$h(AbstractBatchRenderer, _super);
|
|
23028
23042
|
/**
|
|
23029
23043
|
* This will hook onto the renderer's `contextChange`
|
|
23030
23044
|
* and `prerender` signals.
|
|
@@ -23473,7 +23487,7 @@ var PIXI = (function (exports) {
|
|
|
23473
23487
|
* @memberof PIXI
|
|
23474
23488
|
*/
|
|
23475
23489
|
var BatchGeometry = /** @class */ (function (_super) {
|
|
23476
|
-
__extends$
|
|
23490
|
+
__extends$h(BatchGeometry, _super);
|
|
23477
23491
|
/**
|
|
23478
23492
|
* @param {boolean} [_static=false] - Optimization flag, where `false`
|
|
23479
23493
|
* is updated every frame, `true` doesn't change frame-to-frame.
|
|
@@ -23493,9 +23507,9 @@ var PIXI = (function (exports) {
|
|
|
23493
23507
|
return BatchGeometry;
|
|
23494
23508
|
}(Geometry));
|
|
23495
23509
|
|
|
23496
|
-
var defaultVertex
|
|
23510
|
+
var defaultVertex = "precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n";
|
|
23497
23511
|
|
|
23498
|
-
var defaultFragment
|
|
23512
|
+
var defaultFragment = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n";
|
|
23499
23513
|
|
|
23500
23514
|
/** @memberof PIXI */
|
|
23501
23515
|
var BatchPluginFactory = /** @class */ (function () {
|
|
@@ -23531,13 +23545,13 @@ var PIXI = (function (exports) {
|
|
|
23531
23545
|
*/
|
|
23532
23546
|
BatchPluginFactory.create = function (options) {
|
|
23533
23547
|
var _a = Object.assign({
|
|
23534
|
-
vertex: defaultVertex
|
|
23535
|
-
fragment: defaultFragment
|
|
23548
|
+
vertex: defaultVertex,
|
|
23549
|
+
fragment: defaultFragment,
|
|
23536
23550
|
geometryClass: BatchGeometry,
|
|
23537
23551
|
vertexSize: 6,
|
|
23538
23552
|
}, options), vertex = _a.vertex, fragment = _a.fragment, vertexSize = _a.vertexSize, geometryClass = _a.geometryClass;
|
|
23539
23553
|
return /** @class */ (function (_super) {
|
|
23540
|
-
__extends$
|
|
23554
|
+
__extends$h(BatchPlugin, _super);
|
|
23541
23555
|
function BatchPlugin(renderer) {
|
|
23542
23556
|
var _this = _super.call(this, renderer) || this;
|
|
23543
23557
|
_this.shaderGenerator = new BatchShaderGenerator(vertex, fragment);
|
|
@@ -23555,7 +23569,7 @@ var PIXI = (function (exports) {
|
|
|
23555
23569
|
* @readonly
|
|
23556
23570
|
*/
|
|
23557
23571
|
get: function () {
|
|
23558
|
-
return defaultVertex
|
|
23572
|
+
return defaultVertex;
|
|
23559
23573
|
},
|
|
23560
23574
|
enumerable: false,
|
|
23561
23575
|
configurable: true
|
|
@@ -23567,7 +23581,7 @@ var PIXI = (function (exports) {
|
|
|
23567
23581
|
* @readonly
|
|
23568
23582
|
*/
|
|
23569
23583
|
get: function () {
|
|
23570
|
-
return defaultFragment
|
|
23584
|
+
return defaultFragment;
|
|
23571
23585
|
},
|
|
23572
23586
|
enumerable: false,
|
|
23573
23587
|
configurable: true
|
|
@@ -23616,8 +23630,8 @@ var PIXI = (function (exports) {
|
|
|
23616
23630
|
}
|
|
23617
23631
|
|
|
23618
23632
|
/*!
|
|
23619
|
-
* @pixi/app - v6.3.
|
|
23620
|
-
* Compiled
|
|
23633
|
+
* @pixi/app - v6.3.1
|
|
23634
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
23621
23635
|
*
|
|
23622
23636
|
* @pixi/app is licensed under the MIT License.
|
|
23623
23637
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -23881,8 +23895,8 @@ var PIXI = (function (exports) {
|
|
|
23881
23895
|
Application.registerPlugin(ResizePlugin);
|
|
23882
23896
|
|
|
23883
23897
|
/*!
|
|
23884
|
-
* @pixi/extract - v6.3.
|
|
23885
|
-
* Compiled
|
|
23898
|
+
* @pixi/extract - v6.3.1
|
|
23899
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
23886
23900
|
*
|
|
23887
23901
|
* @pixi/extract is licensed under the MIT License.
|
|
23888
23902
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -24087,8 +24101,8 @@ var PIXI = (function (exports) {
|
|
|
24087
24101
|
}());
|
|
24088
24102
|
|
|
24089
24103
|
/*!
|
|
24090
|
-
* @pixi/loaders - v6.3.
|
|
24091
|
-
* Compiled
|
|
24104
|
+
* @pixi/loaders - v6.3.1
|
|
24105
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
24092
24106
|
*
|
|
24093
24107
|
* @pixi/loaders is licensed under the MIT License.
|
|
24094
24108
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -24320,8 +24334,8 @@ var PIXI = (function (exports) {
|
|
|
24320
24334
|
}
|
|
24321
24335
|
|
|
24322
24336
|
// tests if CORS is supported in XHR, if not we need to use XDR
|
|
24323
|
-
var useXdr
|
|
24324
|
-
var tempAnchor
|
|
24337
|
+
var useXdr;
|
|
24338
|
+
var tempAnchor = null;
|
|
24325
24339
|
// some status constants
|
|
24326
24340
|
var STATUS_NONE = 0;
|
|
24327
24341
|
var STATUS_OK = 200;
|
|
@@ -24329,7 +24343,7 @@ var PIXI = (function (exports) {
|
|
|
24329
24343
|
var STATUS_IE_BUG_EMPTY = 1223;
|
|
24330
24344
|
var STATUS_TYPE_OK = 2;
|
|
24331
24345
|
// noop
|
|
24332
|
-
function _noop() { }
|
|
24346
|
+
function _noop$1() { }
|
|
24333
24347
|
/**
|
|
24334
24348
|
* Quick helper to set a value on one of the extension maps. Ensures there is no
|
|
24335
24349
|
* dot at the start of the extension.
|
|
@@ -24391,7 +24405,7 @@ var PIXI = (function (exports) {
|
|
|
24391
24405
|
* @private
|
|
24392
24406
|
* @member {function}
|
|
24393
24407
|
*/
|
|
24394
|
-
this._dequeue = _noop;
|
|
24408
|
+
this._dequeue = _noop$1;
|
|
24395
24409
|
/**
|
|
24396
24410
|
* Used a storage place for the on load binding used privately by the loader.
|
|
24397
24411
|
*
|
|
@@ -24470,7 +24484,7 @@ var PIXI = (function (exports) {
|
|
|
24470
24484
|
this.progressChunk = 0;
|
|
24471
24485
|
// The `dequeue` method that will be used a storage place for the async queue dequeue method
|
|
24472
24486
|
// used privately by the loader.
|
|
24473
|
-
this._dequeue = _noop;
|
|
24487
|
+
this._dequeue = _noop$1;
|
|
24474
24488
|
// Used a storage place for the on load binding used privately by the loader.
|
|
24475
24489
|
this._onLoadBinding = null;
|
|
24476
24490
|
// The timer for element loads to check if they timeout.
|
|
@@ -24677,6 +24691,9 @@ var PIXI = (function (exports) {
|
|
|
24677
24691
|
case LoaderResource.LOAD_TYPE.XHR:
|
|
24678
24692
|
/* falls through */
|
|
24679
24693
|
default:
|
|
24694
|
+
if (typeof useXdr === 'undefined') {
|
|
24695
|
+
useXdr = !!(globalThis.XDomainRequest && !('withCredentials' in (new XMLHttpRequest())));
|
|
24696
|
+
}
|
|
24680
24697
|
if (useXdr && this.crossOrigin) {
|
|
24681
24698
|
this._loadXdr();
|
|
24682
24699
|
}
|
|
@@ -25025,14 +25042,14 @@ var PIXI = (function (exports) {
|
|
|
25025
25042
|
}
|
|
25026
25043
|
// default is globalThis.location
|
|
25027
25044
|
loc = loc || globalThis.location;
|
|
25028
|
-
if (!tempAnchor
|
|
25029
|
-
tempAnchor
|
|
25045
|
+
if (!tempAnchor) {
|
|
25046
|
+
tempAnchor = document.createElement('a');
|
|
25030
25047
|
}
|
|
25031
25048
|
// let the browser determine the full href for the url of this resource and then
|
|
25032
25049
|
// parse with the node url lib, we can't use the properties of the anchor element
|
|
25033
25050
|
// because they don't work in IE9 :(
|
|
25034
|
-
tempAnchor
|
|
25035
|
-
var parsedUrl = parseUri(tempAnchor
|
|
25051
|
+
tempAnchor.href = url;
|
|
25052
|
+
var parsedUrl = parseUri(tempAnchor.href, { strictMode: true });
|
|
25036
25053
|
var samePort = (!parsedUrl.port && loc.port === '') || (parsedUrl.port === loc.port);
|
|
25037
25054
|
var protocol = parsedUrl.protocol ? parsedUrl.protocol + ":" : '';
|
|
25038
25055
|
// if cross origin
|
|
@@ -25112,15 +25129,6 @@ var PIXI = (function (exports) {
|
|
|
25112
25129
|
}());
|
|
25113
25130
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
25114
25131
|
(function (LoaderResource) {
|
|
25115
|
-
/**
|
|
25116
|
-
* The types of resources a resource could represent.
|
|
25117
|
-
*
|
|
25118
|
-
* @static
|
|
25119
|
-
* @readonly
|
|
25120
|
-
* @enum {number}
|
|
25121
|
-
* @memberof PIXI.LoaderResource
|
|
25122
|
-
*/
|
|
25123
|
-
var STATUS_FLAGS;
|
|
25124
25132
|
(function (STATUS_FLAGS) {
|
|
25125
25133
|
/** None */
|
|
25126
25134
|
STATUS_FLAGS[STATUS_FLAGS["NONE"] = 0] = "NONE";
|
|
@@ -25130,16 +25138,7 @@ var PIXI = (function (exports) {
|
|
|
25130
25138
|
STATUS_FLAGS[STATUS_FLAGS["COMPLETE"] = 2] = "COMPLETE";
|
|
25131
25139
|
/** Loading */
|
|
25132
25140
|
STATUS_FLAGS[STATUS_FLAGS["LOADING"] = 4] = "LOADING";
|
|
25133
|
-
})(
|
|
25134
|
-
/**
|
|
25135
|
-
* The types of resources a resource could represent.
|
|
25136
|
-
*
|
|
25137
|
-
* @static
|
|
25138
|
-
* @readonly
|
|
25139
|
-
* @enum {number}
|
|
25140
|
-
* @memberof PIXI.LoaderResource
|
|
25141
|
-
*/
|
|
25142
|
-
var TYPE;
|
|
25141
|
+
})(LoaderResource.STATUS_FLAGS || (LoaderResource.STATUS_FLAGS = {}));
|
|
25143
25142
|
(function (TYPE) {
|
|
25144
25143
|
/** Unknown */
|
|
25145
25144
|
TYPE[TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
@@ -25155,16 +25154,7 @@ var PIXI = (function (exports) {
|
|
|
25155
25154
|
TYPE[TYPE["VIDEO"] = 5] = "VIDEO";
|
|
25156
25155
|
/** Plain text */
|
|
25157
25156
|
TYPE[TYPE["TEXT"] = 6] = "TEXT";
|
|
25158
|
-
})(
|
|
25159
|
-
/**
|
|
25160
|
-
* The types of loading a resource can use.
|
|
25161
|
-
*
|
|
25162
|
-
* @static
|
|
25163
|
-
* @readonly
|
|
25164
|
-
* @enum {number}
|
|
25165
|
-
* @memberof PIXI.LoaderResource
|
|
25166
|
-
*/
|
|
25167
|
-
var LOAD_TYPE;
|
|
25157
|
+
})(LoaderResource.TYPE || (LoaderResource.TYPE = {}));
|
|
25168
25158
|
(function (LOAD_TYPE) {
|
|
25169
25159
|
/** Uses XMLHttpRequest to load the resource. */
|
|
25170
25160
|
LOAD_TYPE[LOAD_TYPE["XHR"] = 1] = "XHR";
|
|
@@ -25174,16 +25164,7 @@ var PIXI = (function (exports) {
|
|
|
25174
25164
|
LOAD_TYPE[LOAD_TYPE["AUDIO"] = 3] = "AUDIO";
|
|
25175
25165
|
/** Uses a `Video` object to load the resource. */
|
|
25176
25166
|
LOAD_TYPE[LOAD_TYPE["VIDEO"] = 4] = "VIDEO";
|
|
25177
|
-
})(
|
|
25178
|
-
/**
|
|
25179
|
-
* The XHR ready states, used internally.
|
|
25180
|
-
*
|
|
25181
|
-
* @static
|
|
25182
|
-
* @readonly
|
|
25183
|
-
* @enum {string}
|
|
25184
|
-
* @memberof PIXI.LoaderResource
|
|
25185
|
-
*/
|
|
25186
|
-
var XHR_RESPONSE_TYPE;
|
|
25167
|
+
})(LoaderResource.LOAD_TYPE || (LoaderResource.LOAD_TYPE = {}));
|
|
25187
25168
|
(function (XHR_RESPONSE_TYPE) {
|
|
25188
25169
|
/** string */
|
|
25189
25170
|
XHR_RESPONSE_TYPE["DEFAULT"] = "text";
|
|
@@ -25197,7 +25178,7 @@ var PIXI = (function (exports) {
|
|
|
25197
25178
|
XHR_RESPONSE_TYPE["JSON"] = "json";
|
|
25198
25179
|
/** String */
|
|
25199
25180
|
XHR_RESPONSE_TYPE["TEXT"] = "text";
|
|
25200
|
-
})(
|
|
25181
|
+
})(LoaderResource.XHR_RESPONSE_TYPE || (LoaderResource.XHR_RESPONSE_TYPE = {}));
|
|
25201
25182
|
LoaderResource._loadTypeMap = {
|
|
25202
25183
|
// images
|
|
25203
25184
|
gif: LoaderResource.LOAD_TYPE.IMAGE,
|
|
@@ -25258,7 +25239,7 @@ var PIXI = (function (exports) {
|
|
|
25258
25239
|
* Smaller version of the async library constructs.
|
|
25259
25240
|
* @ignore
|
|
25260
25241
|
*/
|
|
25261
|
-
function _noop
|
|
25242
|
+
function _noop() {
|
|
25262
25243
|
}
|
|
25263
25244
|
/**
|
|
25264
25245
|
* Ensures a function is only called once.
|
|
@@ -25308,11 +25289,11 @@ var PIXI = (function (exports) {
|
|
|
25308
25289
|
var _this = this;
|
|
25309
25290
|
if (concurrency === void 0) { concurrency = 1; }
|
|
25310
25291
|
this.workers = 0;
|
|
25311
|
-
this.saturated = _noop
|
|
25312
|
-
this.unsaturated = _noop
|
|
25313
|
-
this.empty = _noop
|
|
25314
|
-
this.drain = _noop
|
|
25315
|
-
this.error = _noop
|
|
25292
|
+
this.saturated = _noop;
|
|
25293
|
+
this.unsaturated = _noop;
|
|
25294
|
+
this.empty = _noop;
|
|
25295
|
+
this.drain = _noop;
|
|
25296
|
+
this.error = _noop;
|
|
25316
25297
|
this.started = false;
|
|
25317
25298
|
this.paused = false;
|
|
25318
25299
|
this._tasks = [];
|
|
@@ -25327,7 +25308,7 @@ var PIXI = (function (exports) {
|
|
|
25327
25308
|
setTimeout(function () { return _this.drain(); }, 1);
|
|
25328
25309
|
return;
|
|
25329
25310
|
}
|
|
25330
|
-
var item = new AsyncQueueItem(data, typeof callback === 'function' ? callback : _noop
|
|
25311
|
+
var item = new AsyncQueueItem(data, typeof callback === 'function' ? callback : _noop);
|
|
25331
25312
|
if (insertAtFront) {
|
|
25332
25313
|
_this._tasks.unshift(item);
|
|
25333
25314
|
}
|
|
@@ -25390,7 +25371,7 @@ var PIXI = (function (exports) {
|
|
|
25390
25371
|
};
|
|
25391
25372
|
AsyncQueue.prototype.kill = function () {
|
|
25392
25373
|
this.workers = 0;
|
|
25393
|
-
this.drain = _noop
|
|
25374
|
+
this.drain = _noop;
|
|
25394
25375
|
this.started = false;
|
|
25395
25376
|
this._tasks = [];
|
|
25396
25377
|
};
|
|
@@ -26056,7 +26037,6 @@ var PIXI = (function (exports) {
|
|
|
26056
26037
|
return output;
|
|
26057
26038
|
}
|
|
26058
26039
|
|
|
26059
|
-
var Url$1 = self.URL || self.webkitURL;
|
|
26060
26040
|
/**
|
|
26061
26041
|
* A middleware for transforming XHR loaded Blobs into more useful objects
|
|
26062
26042
|
*
|
|
@@ -26095,7 +26075,8 @@ var PIXI = (function (exports) {
|
|
|
26095
26075
|
}
|
|
26096
26076
|
// if content type says this is an image, then we should transform the blob into an Image object
|
|
26097
26077
|
else if (resource.data.type.indexOf('image') === 0) {
|
|
26098
|
-
var
|
|
26078
|
+
var Url_1 = globalThis.URL || globalThis.webkitURL;
|
|
26079
|
+
var src_1 = Url_1.createObjectURL(resource.data);
|
|
26099
26080
|
resource.blob = resource.data;
|
|
26100
26081
|
resource.data = new Image();
|
|
26101
26082
|
resource.data.src = src_1;
|
|
@@ -26103,7 +26084,7 @@ var PIXI = (function (exports) {
|
|
|
26103
26084
|
// cleanup the no longer used blob after the image loads
|
|
26104
26085
|
// TODO: Is this correct? Will the image be invalid after revoking?
|
|
26105
26086
|
resource.data.onload = function () {
|
|
26106
|
-
|
|
26087
|
+
Url_1.revokeObjectURL(src_1);
|
|
26107
26088
|
resource.data.onload = null;
|
|
26108
26089
|
next();
|
|
26109
26090
|
};
|
|
@@ -26120,14 +26101,14 @@ var PIXI = (function (exports) {
|
|
|
26120
26101
|
Loader.registerPlugin(TextureLoader);
|
|
26121
26102
|
|
|
26122
26103
|
/*!
|
|
26123
|
-
* @pixi/compressed-textures - v6.3.
|
|
26124
|
-
* Compiled
|
|
26104
|
+
* @pixi/compressed-textures - v6.3.1
|
|
26105
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
26125
26106
|
*
|
|
26126
26107
|
* @pixi/compressed-textures is licensed under the MIT License.
|
|
26127
26108
|
* http://www.opensource.org/licenses/mit-license
|
|
26128
26109
|
*/
|
|
26129
26110
|
|
|
26130
|
-
var _a;
|
|
26111
|
+
var _a$2;
|
|
26131
26112
|
/**
|
|
26132
26113
|
* WebGL internal formats, including compressed texture formats provided by extensions
|
|
26133
26114
|
*
|
|
@@ -26162,7 +26143,7 @@ var PIXI = (function (exports) {
|
|
|
26162
26143
|
* @property {number} COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=0x8C92
|
|
26163
26144
|
* @property {number} COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=0x87EE
|
|
26164
26145
|
*/
|
|
26165
|
-
|
|
26146
|
+
exports.INTERNAL_FORMATS = void 0;
|
|
26166
26147
|
(function (INTERNAL_FORMATS) {
|
|
26167
26148
|
// WEBGL_compressed_texture_s3tc
|
|
26168
26149
|
INTERNAL_FORMATS[INTERNAL_FORMATS["COMPRESSED_RGB_S3TC_DXT1_EXT"] = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT";
|
|
@@ -26205,41 +26186,41 @@ var PIXI = (function (exports) {
|
|
|
26205
26186
|
* @static
|
|
26206
26187
|
* @ignore
|
|
26207
26188
|
*/
|
|
26208
|
-
var INTERNAL_FORMAT_TO_BYTES_PER_PIXEL = (_a = {},
|
|
26189
|
+
var INTERNAL_FORMAT_TO_BYTES_PER_PIXEL = (_a$2 = {},
|
|
26209
26190
|
// WEBGL_compressed_texture_s3tc
|
|
26210
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT] = 0.5,
|
|
26211
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT] = 0.5,
|
|
26212
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT] = 1,
|
|
26213
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT] = 1,
|
|
26191
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT] = 0.5,
|
|
26192
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT] = 0.5,
|
|
26193
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT] = 1,
|
|
26194
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT] = 1,
|
|
26214
26195
|
// WEBGL_compressed_texture_s3tc
|
|
26215
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT] = 0.5,
|
|
26216
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT] = 0.5,
|
|
26217
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT] = 1,
|
|
26218
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT] = 1,
|
|
26196
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT] = 0.5,
|
|
26197
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT] = 0.5,
|
|
26198
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT] = 1,
|
|
26199
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT] = 1,
|
|
26219
26200
|
// WEBGL_compressed_texture_etc
|
|
26220
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_R11_EAC] = 0.5,
|
|
26221
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC] = 0.5,
|
|
26222
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RG11_EAC] = 1,
|
|
26223
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC] = 1,
|
|
26224
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2] = 0.5,
|
|
26225
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC] = 1,
|
|
26226
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2] = 0.5,
|
|
26227
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC] = 1,
|
|
26228
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2] = 0.5,
|
|
26229
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2] = 0.5,
|
|
26201
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_R11_EAC] = 0.5,
|
|
26202
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC] = 0.5,
|
|
26203
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RG11_EAC] = 1,
|
|
26204
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC] = 1,
|
|
26205
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2] = 0.5,
|
|
26206
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC] = 1,
|
|
26207
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2] = 0.5,
|
|
26208
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC] = 1,
|
|
26209
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2] = 0.5,
|
|
26210
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2] = 0.5,
|
|
26230
26211
|
// WEBGL_compressed_texture_pvrtc
|
|
26231
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG] = 0.5,
|
|
26232
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG] = 0.5,
|
|
26233
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG] = 0.25,
|
|
26234
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG] = 0.25,
|
|
26212
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG] = 0.5,
|
|
26213
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG] = 0.5,
|
|
26214
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG] = 0.25,
|
|
26215
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG] = 0.25,
|
|
26235
26216
|
// WEBGL_compressed_texture_etc1
|
|
26236
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL] = 0.5,
|
|
26217
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL] = 0.5,
|
|
26237
26218
|
// @see https://www.khronos.org/registry/OpenGL/extensions/AMD/AMD_compressed_ATC_texture.txt
|
|
26238
26219
|
// WEBGL_compressed_texture_atc
|
|
26239
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL] = 0.5,
|
|
26240
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL] = 1,
|
|
26241
|
-
_a[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL] = 1,
|
|
26242
|
-
_a);
|
|
26220
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL] = 0.5,
|
|
26221
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL] = 1,
|
|
26222
|
+
_a$2[exports.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL] = 1,
|
|
26223
|
+
_a$2);
|
|
26243
26224
|
|
|
26244
26225
|
/*! *****************************************************************************
|
|
26245
26226
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -26257,15 +26238,15 @@ var PIXI = (function (exports) {
|
|
|
26257
26238
|
***************************************************************************** */
|
|
26258
26239
|
/* global Reflect, Promise */
|
|
26259
26240
|
|
|
26260
|
-
var extendStatics$
|
|
26261
|
-
extendStatics$
|
|
26241
|
+
var extendStatics$g = function(d, b) {
|
|
26242
|
+
extendStatics$g = Object.setPrototypeOf ||
|
|
26262
26243
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26263
26244
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
26264
|
-
return extendStatics$
|
|
26245
|
+
return extendStatics$g(d, b);
|
|
26265
26246
|
};
|
|
26266
26247
|
|
|
26267
|
-
function __extends$
|
|
26268
|
-
extendStatics$
|
|
26248
|
+
function __extends$g(d, b) {
|
|
26249
|
+
extendStatics$g(d, b);
|
|
26269
26250
|
function __() { this.constructor = d; }
|
|
26270
26251
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26271
26252
|
}
|
|
@@ -26315,7 +26296,7 @@ var PIXI = (function (exports) {
|
|
|
26315
26296
|
* @memberof PIXI
|
|
26316
26297
|
*/
|
|
26317
26298
|
var BlobResource = /** @class */ (function (_super) {
|
|
26318
|
-
__extends$
|
|
26299
|
+
__extends$g(BlobResource, _super);
|
|
26319
26300
|
/**
|
|
26320
26301
|
* @param {string} url - the URL of the texture file
|
|
26321
26302
|
* @param {boolean}[autoLoad] - whether to fetch the data immediately;
|
|
@@ -26439,7 +26420,7 @@ var PIXI = (function (exports) {
|
|
|
26439
26420
|
* @memberof PIXI
|
|
26440
26421
|
*/
|
|
26441
26422
|
var CompressedTextureResource = /** @class */ (function (_super) {
|
|
26442
|
-
__extends$
|
|
26423
|
+
__extends$g(CompressedTextureResource, _super);
|
|
26443
26424
|
/**
|
|
26444
26425
|
* @param source - the buffer/URL holding the compressed texture data
|
|
26445
26426
|
* @param options
|
|
@@ -26636,7 +26617,7 @@ var PIXI = (function (exports) {
|
|
|
26636
26617
|
metadata: resource.metadata.imageMetadata,
|
|
26637
26618
|
parentResource: resource
|
|
26638
26619
|
};
|
|
26639
|
-
var resourcePath = url
|
|
26620
|
+
var resourcePath = url.resolve(resource.url.replace(loader.baseUrl, ''), textureURL);
|
|
26640
26621
|
var resourceName = data.cacheID;
|
|
26641
26622
|
// The appropriate loader should register the texture
|
|
26642
26623
|
loader.add(resourceName, resourcePath, loadOptions, function (res) {
|
|
@@ -26655,39 +26636,54 @@ var PIXI = (function (exports) {
|
|
|
26655
26636
|
next();
|
|
26656
26637
|
}
|
|
26657
26638
|
};
|
|
26658
|
-
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
|
|
26668
|
-
|
|
26669
|
-
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
|
|
26673
|
-
|
|
26674
|
-
|
|
26675
|
-
|
|
26676
|
-
|
|
26677
|
-
|
|
26678
|
-
|
|
26679
|
-
|
|
26680
|
-
CompressedTextureLoader.textureExtensions = extensions;
|
|
26681
|
-
CompressedTextureLoader.textureFormats = {};
|
|
26682
|
-
// Assign all available compressed-texture formats
|
|
26683
|
-
for (var extensionName in extensions) {
|
|
26684
|
-
var extension = extensions[extensionName];
|
|
26685
|
-
if (!extension) {
|
|
26686
|
-
continue;
|
|
26639
|
+
Object.defineProperty(CompressedTextureLoader, "textureExtensions", {
|
|
26640
|
+
/** Map of available texture extensions. */
|
|
26641
|
+
get: function () {
|
|
26642
|
+
if (!CompressedTextureLoader._textureExtensions) {
|
|
26643
|
+
// Auto-detect WebGL compressed-texture extensions
|
|
26644
|
+
var canvas = document.createElement('canvas');
|
|
26645
|
+
var gl = canvas.getContext('webgl');
|
|
26646
|
+
if (!gl) {
|
|
26647
|
+
console.warn('WebGL not available for compressed textures. Silently failing.');
|
|
26648
|
+
return {};
|
|
26649
|
+
}
|
|
26650
|
+
var extensions = {
|
|
26651
|
+
s3tc: gl.getExtension('WEBGL_compressed_texture_s3tc'),
|
|
26652
|
+
s3tc_sRGB: gl.getExtension('WEBGL_compressed_texture_s3tc_srgb'),
|
|
26653
|
+
etc: gl.getExtension('WEBGL_compressed_texture_etc'),
|
|
26654
|
+
etc1: gl.getExtension('WEBGL_compressed_texture_etc1'),
|
|
26655
|
+
pvrtc: gl.getExtension('WEBGL_compressed_texture_pvrtc')
|
|
26656
|
+
|| gl.getExtension('WEBKIT_WEBGL_compressed_texture_pvrtc'),
|
|
26657
|
+
atc: gl.getExtension('WEBGL_compressed_texture_atc'),
|
|
26658
|
+
astc: gl.getExtension('WEBGL_compressed_texture_astc')
|
|
26659
|
+
};
|
|
26660
|
+
CompressedTextureLoader._textureExtensions = extensions;
|
|
26687
26661
|
}
|
|
26688
|
-
|
|
26689
|
-
}
|
|
26690
|
-
|
|
26662
|
+
return CompressedTextureLoader._textureExtensions;
|
|
26663
|
+
},
|
|
26664
|
+
enumerable: false,
|
|
26665
|
+
configurable: true
|
|
26666
|
+
});
|
|
26667
|
+
Object.defineProperty(CompressedTextureLoader, "textureFormats", {
|
|
26668
|
+
/** Map of available texture formats. */
|
|
26669
|
+
get: function () {
|
|
26670
|
+
if (!CompressedTextureLoader._textureFormats) {
|
|
26671
|
+
var extensions = CompressedTextureLoader.textureExtensions;
|
|
26672
|
+
CompressedTextureLoader._textureFormats = {};
|
|
26673
|
+
// Assign all available compressed-texture formats
|
|
26674
|
+
for (var extensionName in extensions) {
|
|
26675
|
+
var extension = extensions[extensionName];
|
|
26676
|
+
if (!extension) {
|
|
26677
|
+
continue;
|
|
26678
|
+
}
|
|
26679
|
+
Object.assign(CompressedTextureLoader._textureFormats, Object.getPrototypeOf(extension));
|
|
26680
|
+
}
|
|
26681
|
+
}
|
|
26682
|
+
return CompressedTextureLoader._textureFormats;
|
|
26683
|
+
},
|
|
26684
|
+
enumerable: false,
|
|
26685
|
+
configurable: true
|
|
26686
|
+
});
|
|
26691
26687
|
return CompressedTextureLoader;
|
|
26692
26688
|
}());
|
|
26693
26689
|
|
|
@@ -26729,7 +26725,7 @@ var PIXI = (function (exports) {
|
|
|
26729
26725
|
return result;
|
|
26730
26726
|
}
|
|
26731
26727
|
|
|
26732
|
-
var _a$1, _b;
|
|
26728
|
+
var _a$1, _b$1;
|
|
26733
26729
|
// Set DDS files to be loaded as an ArrayBuffer
|
|
26734
26730
|
exports.LoaderResource.setExtensionXhrType('dds', exports.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);
|
|
26735
26731
|
var DDS_MAGIC_SIZE = 4;
|
|
@@ -26949,19 +26945,19 @@ var PIXI = (function (exports) {
|
|
|
26949
26945
|
*
|
|
26950
26946
|
* @ignore
|
|
26951
26947
|
*/
|
|
26952
|
-
var DXGI_TO_FORMAT = (_b = {},
|
|
26948
|
+
var DXGI_TO_FORMAT = (_b$1 = {},
|
|
26953
26949
|
// WEBGL_compressed_texture_s3tc
|
|
26954
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC1_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,
|
|
26955
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,
|
|
26956
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC2_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,
|
|
26957
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,
|
|
26958
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC3_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,
|
|
26959
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,
|
|
26950
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC1_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,
|
|
26951
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,
|
|
26952
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC2_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,
|
|
26953
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,
|
|
26954
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC3_TYPELESS] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,
|
|
26955
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM] = exports.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,
|
|
26960
26956
|
// WEBGL_compressed_texture_s3tc_srgb
|
|
26961
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,
|
|
26962
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,
|
|
26963
|
-
_b[DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,
|
|
26964
|
-
_b);
|
|
26957
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,
|
|
26958
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,
|
|
26959
|
+
_b$1[DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM_SRGB] = exports.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,
|
|
26960
|
+
_b$1);
|
|
26965
26961
|
/**
|
|
26966
26962
|
* @class
|
|
26967
26963
|
* @memberof PIXI
|
|
@@ -27099,7 +27095,7 @@ var PIXI = (function (exports) {
|
|
|
27099
27095
|
return DDSLoader;
|
|
27100
27096
|
}());
|
|
27101
27097
|
|
|
27102
|
-
var _a$
|
|
27098
|
+
var _a$3, _b, _c;
|
|
27103
27099
|
// Set KTX files to be loaded as an ArrayBuffer
|
|
27104
27100
|
exports.LoaderResource.setExtensionXhrType('ktx', exports.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);
|
|
27105
27101
|
/**
|
|
@@ -27148,28 +27144,28 @@ var PIXI = (function (exports) {
|
|
|
27148
27144
|
*
|
|
27149
27145
|
* @ignore
|
|
27150
27146
|
*/
|
|
27151
|
-
var TYPES_TO_BYTES_PER_COMPONENT = (_a$
|
|
27152
|
-
_a$
|
|
27153
|
-
_a$
|
|
27154
|
-
_a$
|
|
27155
|
-
_a$
|
|
27156
|
-
_a$
|
|
27157
|
-
_a$
|
|
27158
|
-
_a$
|
|
27147
|
+
var TYPES_TO_BYTES_PER_COMPONENT = (_a$3 = {},
|
|
27148
|
+
_a$3[exports.TYPES.UNSIGNED_BYTE] = 1,
|
|
27149
|
+
_a$3[exports.TYPES.UNSIGNED_SHORT] = 2,
|
|
27150
|
+
_a$3[exports.TYPES.INT] = 4,
|
|
27151
|
+
_a$3[exports.TYPES.UNSIGNED_INT] = 4,
|
|
27152
|
+
_a$3[exports.TYPES.FLOAT] = 4,
|
|
27153
|
+
_a$3[exports.TYPES.HALF_FLOAT] = 8,
|
|
27154
|
+
_a$3);
|
|
27159
27155
|
/**
|
|
27160
27156
|
* Number of components in each {@link PIXI.FORMATS}
|
|
27161
27157
|
*
|
|
27162
27158
|
* @ignore
|
|
27163
27159
|
*/
|
|
27164
|
-
var FORMATS_TO_COMPONENTS = (_b
|
|
27165
|
-
_b
|
|
27166
|
-
_b
|
|
27167
|
-
_b
|
|
27168
|
-
_b
|
|
27169
|
-
_b
|
|
27170
|
-
_b
|
|
27171
|
-
_b
|
|
27172
|
-
_b
|
|
27160
|
+
var FORMATS_TO_COMPONENTS = (_b = {},
|
|
27161
|
+
_b[exports.FORMATS.RGBA] = 4,
|
|
27162
|
+
_b[exports.FORMATS.RGB] = 3,
|
|
27163
|
+
_b[exports.FORMATS.RG] = 2,
|
|
27164
|
+
_b[exports.FORMATS.RED] = 1,
|
|
27165
|
+
_b[exports.FORMATS.LUMINANCE] = 1,
|
|
27166
|
+
_b[exports.FORMATS.LUMINANCE_ALPHA] = 2,
|
|
27167
|
+
_b[exports.FORMATS.ALPHA] = 1,
|
|
27168
|
+
_b);
|
|
27173
27169
|
/**
|
|
27174
27170
|
* Number of bytes per pixel in bit-field types in {@link PIXI.TYPES}
|
|
27175
27171
|
*
|
|
@@ -27407,8 +27403,8 @@ var PIXI = (function (exports) {
|
|
|
27407
27403
|
}());
|
|
27408
27404
|
|
|
27409
27405
|
/*!
|
|
27410
|
-
* @pixi/particle-container - v6.3.
|
|
27411
|
-
* Compiled
|
|
27406
|
+
* @pixi/particle-container - v6.3.1
|
|
27407
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
27412
27408
|
*
|
|
27413
27409
|
* @pixi/particle-container is licensed under the MIT License.
|
|
27414
27410
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -27430,15 +27426,15 @@ var PIXI = (function (exports) {
|
|
|
27430
27426
|
***************************************************************************** */
|
|
27431
27427
|
/* global Reflect, Promise */
|
|
27432
27428
|
|
|
27433
|
-
var extendStatics$
|
|
27434
|
-
extendStatics$
|
|
27429
|
+
var extendStatics$f = function(d, b) {
|
|
27430
|
+
extendStatics$f = Object.setPrototypeOf ||
|
|
27435
27431
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27436
27432
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
27437
|
-
return extendStatics$
|
|
27433
|
+
return extendStatics$f(d, b);
|
|
27438
27434
|
};
|
|
27439
27435
|
|
|
27440
|
-
function __extends$
|
|
27441
|
-
extendStatics$
|
|
27436
|
+
function __extends$f(d, b) {
|
|
27437
|
+
extendStatics$f(d, b);
|
|
27442
27438
|
function __() { this.constructor = d; }
|
|
27443
27439
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27444
27440
|
}
|
|
@@ -27469,7 +27465,7 @@ var PIXI = (function (exports) {
|
|
|
27469
27465
|
* @memberof PIXI
|
|
27470
27466
|
*/
|
|
27471
27467
|
var ParticleContainer = /** @class */ (function (_super) {
|
|
27472
|
-
__extends$
|
|
27468
|
+
__extends$f(ParticleContainer, _super);
|
|
27473
27469
|
/**
|
|
27474
27470
|
* @param maxSize - The maximum number of particles that can be rendered by the container.
|
|
27475
27471
|
* Affects size of allocated buffers.
|
|
@@ -27754,9 +27750,9 @@ var PIXI = (function (exports) {
|
|
|
27754
27750
|
return ParticleBuffer;
|
|
27755
27751
|
}());
|
|
27756
27752
|
|
|
27757
|
-
var fragment$
|
|
27753
|
+
var fragment$6 = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n gl_FragColor = color;\n}";
|
|
27758
27754
|
|
|
27759
|
-
var vertex$
|
|
27755
|
+
var vertex$3 = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n vec2 v = vec2(x, y);\n v = v + aPositionCoord;\n\n gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor * uColor;\n}\n";
|
|
27760
27756
|
|
|
27761
27757
|
/*
|
|
27762
27758
|
* @author Mat Groves
|
|
@@ -27775,7 +27771,7 @@ var PIXI = (function (exports) {
|
|
|
27775
27771
|
* @memberof PIXI
|
|
27776
27772
|
*/
|
|
27777
27773
|
var ParticleRenderer = /** @class */ (function (_super) {
|
|
27778
|
-
__extends$
|
|
27774
|
+
__extends$f(ParticleRenderer, _super);
|
|
27779
27775
|
/**
|
|
27780
27776
|
* @param renderer - The renderer this sprite batch works for.
|
|
27781
27777
|
*/
|
|
@@ -27826,7 +27822,7 @@ var PIXI = (function (exports) {
|
|
|
27826
27822
|
uploadFunction: _this.uploadTint,
|
|
27827
27823
|
offset: 0,
|
|
27828
27824
|
} ];
|
|
27829
|
-
_this.shader = Shader.from(vertex$
|
|
27825
|
+
_this.shader = Shader.from(vertex$3, fragment$6, {});
|
|
27830
27826
|
_this.state = State.for2d();
|
|
27831
27827
|
return _this;
|
|
27832
27828
|
}
|
|
@@ -28081,8 +28077,8 @@ var PIXI = (function (exports) {
|
|
|
28081
28077
|
}(ObjectRenderer));
|
|
28082
28078
|
|
|
28083
28079
|
/*!
|
|
28084
|
-
* @pixi/graphics - v6.3.
|
|
28085
|
-
* Compiled
|
|
28080
|
+
* @pixi/graphics - v6.3.1
|
|
28081
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
28086
28082
|
*
|
|
28087
28083
|
* @pixi/graphics is licensed under the MIT License.
|
|
28088
28084
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -28102,7 +28098,7 @@ var PIXI = (function (exports) {
|
|
|
28102
28098
|
* @property {string} BEVEL - 'bevel': add a square butt at each end of line segment and fill the triangle at turn
|
|
28103
28099
|
* @property {string} ROUND - 'round': add an arc at the joint
|
|
28104
28100
|
*/
|
|
28105
|
-
|
|
28101
|
+
exports.LINE_JOIN = void 0;
|
|
28106
28102
|
(function (LINE_JOIN) {
|
|
28107
28103
|
LINE_JOIN["MITER"] = "miter";
|
|
28108
28104
|
LINE_JOIN["BEVEL"] = "bevel";
|
|
@@ -28121,7 +28117,7 @@ var PIXI = (function (exports) {
|
|
|
28121
28117
|
* @property {string} ROUND - 'round': add semicircle at ends
|
|
28122
28118
|
* @property {string} SQUARE - 'square': add square at end (like `BUTT` except more length at end)
|
|
28123
28119
|
*/
|
|
28124
|
-
|
|
28120
|
+
exports.LINE_CAP = void 0;
|
|
28125
28121
|
(function (LINE_CAP) {
|
|
28126
28122
|
LINE_CAP["BUTT"] = "butt";
|
|
28127
28123
|
LINE_CAP["ROUND"] = "round";
|
|
@@ -28237,15 +28233,15 @@ var PIXI = (function (exports) {
|
|
|
28237
28233
|
***************************************************************************** */
|
|
28238
28234
|
/* global Reflect, Promise */
|
|
28239
28235
|
|
|
28240
|
-
var extendStatics$
|
|
28241
|
-
extendStatics$
|
|
28236
|
+
var extendStatics$e = function(d, b) {
|
|
28237
|
+
extendStatics$e = Object.setPrototypeOf ||
|
|
28242
28238
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28243
28239
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
28244
|
-
return extendStatics$
|
|
28240
|
+
return extendStatics$e(d, b);
|
|
28245
28241
|
};
|
|
28246
28242
|
|
|
28247
|
-
function __extends$
|
|
28248
|
-
extendStatics$
|
|
28243
|
+
function __extends$e(d, b) {
|
|
28244
|
+
extendStatics$e(d, b);
|
|
28249
28245
|
function __() { this.constructor = d; }
|
|
28250
28246
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28251
28247
|
}
|
|
@@ -29335,20 +29331,20 @@ var PIXI = (function (exports) {
|
|
|
29335
29331
|
* @namespace graphicsUtils
|
|
29336
29332
|
* @memberof PIXI
|
|
29337
29333
|
*/
|
|
29338
|
-
var _a
|
|
29334
|
+
var _a;
|
|
29339
29335
|
/**
|
|
29340
29336
|
* Map of fill commands for each shape type.
|
|
29341
29337
|
*
|
|
29342
29338
|
* @memberof PIXI.graphicsUtils
|
|
29343
29339
|
* @member {Object} FILL_COMMANDS
|
|
29344
29340
|
*/
|
|
29345
|
-
var FILL_COMMANDS = (_a
|
|
29346
|
-
_a
|
|
29347
|
-
_a
|
|
29348
|
-
_a
|
|
29349
|
-
_a
|
|
29350
|
-
_a
|
|
29351
|
-
_a
|
|
29341
|
+
var FILL_COMMANDS = (_a = {},
|
|
29342
|
+
_a[exports.SHAPES.POLY] = buildPoly,
|
|
29343
|
+
_a[exports.SHAPES.CIRC] = buildCircle,
|
|
29344
|
+
_a[exports.SHAPES.ELIP] = buildCircle,
|
|
29345
|
+
_a[exports.SHAPES.RECT] = buildRectangle,
|
|
29346
|
+
_a[exports.SHAPES.RREC] = buildRoundedRectangle,
|
|
29347
|
+
_a);
|
|
29352
29348
|
/**
|
|
29353
29349
|
* Batch pool, stores unused batches for preventing allocations.
|
|
29354
29350
|
*
|
|
@@ -29423,7 +29419,7 @@ var PIXI = (function (exports) {
|
|
|
29423
29419
|
* @memberof PIXI
|
|
29424
29420
|
*/
|
|
29425
29421
|
var GraphicsGeometry = /** @class */ (function (_super) {
|
|
29426
|
-
__extends$
|
|
29422
|
+
__extends$e(GraphicsGeometry, _super);
|
|
29427
29423
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
29428
29424
|
function GraphicsGeometry() {
|
|
29429
29425
|
var _this = _super.call(this) || this;
|
|
@@ -29950,7 +29946,13 @@ var PIXI = (function (exports) {
|
|
|
29950
29946
|
var nextMatrix = data.matrix || Matrix.IDENTITY;
|
|
29951
29947
|
var lineWidth = 0.0;
|
|
29952
29948
|
if (lineStyle && lineStyle.visible) {
|
|
29953
|
-
lineWidth = lineStyle.width
|
|
29949
|
+
lineWidth = lineStyle.width;
|
|
29950
|
+
if (type !== exports.SHAPES.POLY || data.fillStyle.visible) {
|
|
29951
|
+
lineWidth *= Math.max(0, lineStyle.alignment);
|
|
29952
|
+
}
|
|
29953
|
+
else {
|
|
29954
|
+
lineWidth *= Math.max(lineStyle.alignment, 1 - lineStyle.alignment);
|
|
29955
|
+
}
|
|
29954
29956
|
}
|
|
29955
29957
|
if (curMatrix !== nextMatrix) {
|
|
29956
29958
|
if (!sequenceBounds.isEmpty()) {
|
|
@@ -30100,7 +30102,7 @@ var PIXI = (function (exports) {
|
|
|
30100
30102
|
* @memberof PIXI
|
|
30101
30103
|
*/
|
|
30102
30104
|
var LineStyle = /** @class */ (function (_super) {
|
|
30103
|
-
__extends$
|
|
30105
|
+
__extends$e(LineStyle, _super);
|
|
30104
30106
|
function LineStyle() {
|
|
30105
30107
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30106
30108
|
/** The width (thickness) of any lines drawn. */
|
|
@@ -30178,7 +30180,7 @@ var PIXI = (function (exports) {
|
|
|
30178
30180
|
* @memberof PIXI
|
|
30179
30181
|
*/
|
|
30180
30182
|
var Graphics = /** @class */ (function (_super) {
|
|
30181
|
-
__extends$
|
|
30183
|
+
__extends$e(Graphics, _super);
|
|
30182
30184
|
/**
|
|
30183
30185
|
* @param geometry - Geometry to use, if omitted will create a new GraphicsGeometry instance.
|
|
30184
30186
|
*/
|
|
@@ -30881,7 +30883,7 @@ var PIXI = (function (exports) {
|
|
|
30881
30883
|
// and that only gets created if we actually need it..
|
|
30882
30884
|
// but may be more than one plugins for graphics
|
|
30883
30885
|
if (!DEFAULT_SHADERS[pluginName]) {
|
|
30884
|
-
var MAX_TEXTURES = renderer.plugins.
|
|
30886
|
+
var MAX_TEXTURES = renderer.plugins[pluginName].MAX_TEXTURES;
|
|
30885
30887
|
var sampleValues = new Int32Array(MAX_TEXTURES);
|
|
30886
30888
|
for (var i = 0; i < MAX_TEXTURES; i++) {
|
|
30887
30889
|
sampleValues[i] = i;
|
|
@@ -31075,8 +31077,8 @@ var PIXI = (function (exports) {
|
|
|
31075
31077
|
};
|
|
31076
31078
|
|
|
31077
31079
|
/*!
|
|
31078
|
-
* @pixi/sprite - v6.3.
|
|
31079
|
-
* Compiled
|
|
31080
|
+
* @pixi/sprite - v6.3.1
|
|
31081
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
31080
31082
|
*
|
|
31081
31083
|
* @pixi/sprite is licensed under the MIT License.
|
|
31082
31084
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31098,20 +31100,20 @@ var PIXI = (function (exports) {
|
|
|
31098
31100
|
***************************************************************************** */
|
|
31099
31101
|
/* global Reflect, Promise */
|
|
31100
31102
|
|
|
31101
|
-
var extendStatics$
|
|
31102
|
-
extendStatics$
|
|
31103
|
+
var extendStatics$d = function(d, b) {
|
|
31104
|
+
extendStatics$d = Object.setPrototypeOf ||
|
|
31103
31105
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31104
31106
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
31105
|
-
return extendStatics$
|
|
31107
|
+
return extendStatics$d(d, b);
|
|
31106
31108
|
};
|
|
31107
31109
|
|
|
31108
|
-
function __extends$
|
|
31109
|
-
extendStatics$
|
|
31110
|
+
function __extends$d(d, b) {
|
|
31111
|
+
extendStatics$d(d, b);
|
|
31110
31112
|
function __() { this.constructor = d; }
|
|
31111
31113
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31112
31114
|
}
|
|
31113
31115
|
|
|
31114
|
-
var tempPoint = new Point();
|
|
31116
|
+
var tempPoint$2 = new Point();
|
|
31115
31117
|
var indices = new Uint16Array([0, 1, 2, 0, 2, 3]);
|
|
31116
31118
|
/**
|
|
31117
31119
|
* The Sprite object is the base for all textured objects that are rendered to the screen
|
|
@@ -31138,7 +31140,7 @@ var PIXI = (function (exports) {
|
|
|
31138
31140
|
* @memberof PIXI
|
|
31139
31141
|
*/
|
|
31140
31142
|
var Sprite = /** @class */ (function (_super) {
|
|
31141
|
-
__extends$
|
|
31143
|
+
__extends$d(Sprite, _super);
|
|
31142
31144
|
/** @param texture - The texture for this sprite. */
|
|
31143
31145
|
function Sprite(texture) {
|
|
31144
31146
|
var _this = _super.call(this) || this;
|
|
@@ -31179,10 +31181,10 @@ var PIXI = (function (exports) {
|
|
|
31179
31181
|
this._cachedTint = 0xFFFFFF;
|
|
31180
31182
|
// so if _width is 0 then width was not set..
|
|
31181
31183
|
if (this._width) {
|
|
31182
|
-
this.scale.x = sign
|
|
31184
|
+
this.scale.x = sign(this.scale.x) * this._width / this._texture.orig.width;
|
|
31183
31185
|
}
|
|
31184
31186
|
if (this._height) {
|
|
31185
|
-
this.scale.y = sign
|
|
31187
|
+
this.scale.y = sign(this.scale.y) * this._height / this._texture.orig.height;
|
|
31186
31188
|
}
|
|
31187
31189
|
};
|
|
31188
31190
|
/** Called when the anchor position updates. */
|
|
@@ -31355,14 +31357,14 @@ var PIXI = (function (exports) {
|
|
|
31355
31357
|
* @return The result of the test
|
|
31356
31358
|
*/
|
|
31357
31359
|
Sprite.prototype.containsPoint = function (point) {
|
|
31358
|
-
this.worldTransform.applyInverse(point, tempPoint);
|
|
31360
|
+
this.worldTransform.applyInverse(point, tempPoint$2);
|
|
31359
31361
|
var width = this._texture.orig.width;
|
|
31360
31362
|
var height = this._texture.orig.height;
|
|
31361
31363
|
var x1 = -width * this.anchor.x;
|
|
31362
31364
|
var y1 = 0;
|
|
31363
|
-
if (tempPoint.x >= x1 && tempPoint.x < x1 + width) {
|
|
31365
|
+
if (tempPoint$2.x >= x1 && tempPoint$2.x < x1 + width) {
|
|
31364
31366
|
y1 = -height * this.anchor.y;
|
|
31365
|
-
if (tempPoint.y >= y1 && tempPoint.y < y1 + height) {
|
|
31367
|
+
if (tempPoint$2.y >= y1 && tempPoint$2.y < y1 + height) {
|
|
31366
31368
|
return true;
|
|
31367
31369
|
}
|
|
31368
31370
|
}
|
|
@@ -31433,7 +31435,7 @@ var PIXI = (function (exports) {
|
|
|
31433
31435
|
return Math.abs(this.scale.x) * this._texture.orig.width;
|
|
31434
31436
|
},
|
|
31435
31437
|
set: function (value) {
|
|
31436
|
-
var s = sign
|
|
31438
|
+
var s = sign(this.scale.x) || 1;
|
|
31437
31439
|
this.scale.x = s * value / this._texture.orig.width;
|
|
31438
31440
|
this._width = value;
|
|
31439
31441
|
},
|
|
@@ -31446,7 +31448,7 @@ var PIXI = (function (exports) {
|
|
|
31446
31448
|
return Math.abs(this.scale.y) * this._texture.orig.height;
|
|
31447
31449
|
},
|
|
31448
31450
|
set: function (value) {
|
|
31449
|
-
var s = sign
|
|
31451
|
+
var s = sign(this.scale.y) || 1;
|
|
31450
31452
|
this.scale.y = s * value / this._texture.orig.height;
|
|
31451
31453
|
this._height = value;
|
|
31452
31454
|
},
|
|
@@ -31530,8 +31532,8 @@ var PIXI = (function (exports) {
|
|
|
31530
31532
|
}(Container));
|
|
31531
31533
|
|
|
31532
31534
|
/*!
|
|
31533
|
-
* @pixi/text - v6.3.
|
|
31534
|
-
* Compiled
|
|
31535
|
+
* @pixi/text - v6.3.1
|
|
31536
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
31535
31537
|
*
|
|
31536
31538
|
* @pixi/text is licensed under the MIT License.
|
|
31537
31539
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -31553,15 +31555,15 @@ var PIXI = (function (exports) {
|
|
|
31553
31555
|
***************************************************************************** */
|
|
31554
31556
|
/* global Reflect, Promise */
|
|
31555
31557
|
|
|
31556
|
-
var extendStatics$
|
|
31557
|
-
extendStatics$
|
|
31558
|
+
var extendStatics$c = function(d, b) {
|
|
31559
|
+
extendStatics$c = Object.setPrototypeOf ||
|
|
31558
31560
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31559
31561
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
31560
|
-
return extendStatics$
|
|
31562
|
+
return extendStatics$c(d, b);
|
|
31561
31563
|
};
|
|
31562
31564
|
|
|
31563
|
-
function __extends$
|
|
31564
|
-
extendStatics$
|
|
31565
|
+
function __extends$c(d, b) {
|
|
31566
|
+
extendStatics$c(d, b);
|
|
31565
31567
|
function __() { this.constructor = d; }
|
|
31566
31568
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31567
31569
|
}
|
|
@@ -31577,7 +31579,7 @@ var PIXI = (function (exports) {
|
|
|
31577
31579
|
* @property {number} LINEAR_VERTICAL Vertical gradient
|
|
31578
31580
|
* @property {number} LINEAR_HORIZONTAL Linear gradient
|
|
31579
31581
|
*/
|
|
31580
|
-
|
|
31582
|
+
exports.TEXT_GRADIENT = void 0;
|
|
31581
31583
|
(function (TEXT_GRADIENT) {
|
|
31582
31584
|
TEXT_GRADIENT[TEXT_GRADIENT["LINEAR_VERTICAL"] = 0] = "LINEAR_VERTICAL";
|
|
31583
31585
|
TEXT_GRADIENT[TEXT_GRADIENT["LINEAR_HORIZONTAL"] = 1] = "LINEAR_HORIZONTAL";
|
|
@@ -32768,6 +32770,51 @@ var PIXI = (function (exports) {
|
|
|
32768
32770
|
TextMetrics._fonts = {};
|
|
32769
32771
|
}
|
|
32770
32772
|
};
|
|
32773
|
+
Object.defineProperty(TextMetrics, "_canvas", {
|
|
32774
|
+
/**
|
|
32775
|
+
* Cached canvas element for measuring text
|
|
32776
|
+
* TODO: this should be private, but isn't because of backward compat, will fix later.
|
|
32777
|
+
*
|
|
32778
|
+
* @ignore
|
|
32779
|
+
*/
|
|
32780
|
+
get: function () {
|
|
32781
|
+
if (!TextMetrics.__canvas) {
|
|
32782
|
+
var canvas = void 0;
|
|
32783
|
+
try {
|
|
32784
|
+
// OffscreenCanvas2D measureText can be up to 40% faster.
|
|
32785
|
+
var c = new OffscreenCanvas(0, 0);
|
|
32786
|
+
var context = c.getContext('2d');
|
|
32787
|
+
if (context && context.measureText) {
|
|
32788
|
+
return c;
|
|
32789
|
+
}
|
|
32790
|
+
canvas = document.createElement('canvas');
|
|
32791
|
+
}
|
|
32792
|
+
catch (ex) {
|
|
32793
|
+
canvas = document.createElement('canvas');
|
|
32794
|
+
}
|
|
32795
|
+
canvas.width = canvas.height = 10;
|
|
32796
|
+
TextMetrics.__canvas = canvas;
|
|
32797
|
+
}
|
|
32798
|
+
return TextMetrics.__canvas;
|
|
32799
|
+
},
|
|
32800
|
+
enumerable: false,
|
|
32801
|
+
configurable: true
|
|
32802
|
+
});
|
|
32803
|
+
Object.defineProperty(TextMetrics, "_context", {
|
|
32804
|
+
/**
|
|
32805
|
+
* TODO: this should be private, but isn't because of backward compat, will fix later.
|
|
32806
|
+
*
|
|
32807
|
+
* @ignore
|
|
32808
|
+
*/
|
|
32809
|
+
get: function () {
|
|
32810
|
+
if (!TextMetrics.__context) {
|
|
32811
|
+
TextMetrics.__context = TextMetrics._canvas.getContext('2d');
|
|
32812
|
+
}
|
|
32813
|
+
return TextMetrics.__context;
|
|
32814
|
+
},
|
|
32815
|
+
enumerable: false,
|
|
32816
|
+
configurable: true
|
|
32817
|
+
});
|
|
32771
32818
|
return TextMetrics;
|
|
32772
32819
|
}());
|
|
32773
32820
|
/**
|
|
@@ -32780,37 +32827,6 @@ var PIXI = (function (exports) {
|
|
|
32780
32827
|
* @memberof PIXI.TextMetrics
|
|
32781
32828
|
* @private
|
|
32782
32829
|
*/
|
|
32783
|
-
var canvas = (function () {
|
|
32784
|
-
try {
|
|
32785
|
-
// OffscreenCanvas2D measureText can be up to 40% faster.
|
|
32786
|
-
var c = new OffscreenCanvas(0, 0);
|
|
32787
|
-
var context = c.getContext('2d');
|
|
32788
|
-
if (context && context.measureText) {
|
|
32789
|
-
return c;
|
|
32790
|
-
}
|
|
32791
|
-
return document.createElement('canvas');
|
|
32792
|
-
}
|
|
32793
|
-
catch (ex) {
|
|
32794
|
-
return document.createElement('canvas');
|
|
32795
|
-
}
|
|
32796
|
-
})();
|
|
32797
|
-
canvas.width = canvas.height = 10;
|
|
32798
|
-
/**
|
|
32799
|
-
* Cached canvas element for measuring text
|
|
32800
|
-
*
|
|
32801
|
-
* @memberof PIXI.TextMetrics
|
|
32802
|
-
* @type {HTMLCanvasElement}
|
|
32803
|
-
* @private
|
|
32804
|
-
*/
|
|
32805
|
-
TextMetrics._canvas = canvas;
|
|
32806
|
-
/**
|
|
32807
|
-
* Cache for context to use.
|
|
32808
|
-
*
|
|
32809
|
-
* @memberof PIXI.TextMetrics
|
|
32810
|
-
* @type {CanvasRenderingContext2D}
|
|
32811
|
-
* @private
|
|
32812
|
-
*/
|
|
32813
|
-
TextMetrics._context = canvas.getContext('2d');
|
|
32814
32830
|
/**
|
|
32815
32831
|
* Cache of {@see PIXI.TextMetrics.FontMetrics} objects.
|
|
32816
32832
|
*
|
|
@@ -32931,7 +32947,7 @@ var PIXI = (function (exports) {
|
|
|
32931
32947
|
* @memberof PIXI
|
|
32932
32948
|
*/
|
|
32933
32949
|
var Text = /** @class */ (function (_super) {
|
|
32934
|
-
__extends$
|
|
32950
|
+
__extends$c(Text, _super);
|
|
32935
32951
|
/**
|
|
32936
32952
|
* @param text - The string that you would like the text to display
|
|
32937
32953
|
* @param {object|PIXI.TextStyle} [style] - The style parameters
|
|
@@ -33336,7 +33352,7 @@ var PIXI = (function (exports) {
|
|
|
33336
33352
|
},
|
|
33337
33353
|
set: function (value) {
|
|
33338
33354
|
this.updateText(true);
|
|
33339
|
-
var s = sign
|
|
33355
|
+
var s = sign(this.scale.x) || 1;
|
|
33340
33356
|
this.scale.x = s * value / this._texture.orig.width;
|
|
33341
33357
|
this._width = value;
|
|
33342
33358
|
},
|
|
@@ -33351,7 +33367,7 @@ var PIXI = (function (exports) {
|
|
|
33351
33367
|
},
|
|
33352
33368
|
set: function (value) {
|
|
33353
33369
|
this.updateText(true);
|
|
33354
|
-
var s = sign
|
|
33370
|
+
var s = sign(this.scale.y) || 1;
|
|
33355
33371
|
this.scale.y = s * value / this._texture.orig.height;
|
|
33356
33372
|
this._height = value;
|
|
33357
33373
|
},
|
|
@@ -33439,8 +33455,8 @@ var PIXI = (function (exports) {
|
|
|
33439
33455
|
}(Sprite));
|
|
33440
33456
|
|
|
33441
33457
|
/*!
|
|
33442
|
-
* @pixi/prepare - v6.3.
|
|
33443
|
-
* Compiled
|
|
33458
|
+
* @pixi/prepare - v6.3.1
|
|
33459
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
33444
33460
|
*
|
|
33445
33461
|
* @pixi/prepare is licensed under the MIT License.
|
|
33446
33462
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -33473,15 +33489,15 @@ var PIXI = (function (exports) {
|
|
|
33473
33489
|
***************************************************************************** */
|
|
33474
33490
|
/* global Reflect, Promise */
|
|
33475
33491
|
|
|
33476
|
-
var extendStatics$
|
|
33477
|
-
extendStatics$
|
|
33492
|
+
var extendStatics$b = function(d, b) {
|
|
33493
|
+
extendStatics$b = Object.setPrototypeOf ||
|
|
33478
33494
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33479
33495
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
33480
|
-
return extendStatics$
|
|
33496
|
+
return extendStatics$b(d, b);
|
|
33481
33497
|
};
|
|
33482
33498
|
|
|
33483
|
-
function __extends$
|
|
33484
|
-
extendStatics$
|
|
33499
|
+
function __extends$b(d, b) {
|
|
33500
|
+
extendStatics$b(d, b);
|
|
33485
33501
|
function __() { this.constructor = d; }
|
|
33486
33502
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
33487
33503
|
}
|
|
@@ -33945,7 +33961,7 @@ var PIXI = (function (exports) {
|
|
|
33945
33961
|
* @memberof PIXI
|
|
33946
33962
|
*/
|
|
33947
33963
|
var Prepare = /** @class */ (function (_super) {
|
|
33948
|
-
__extends$
|
|
33964
|
+
__extends$b(Prepare, _super);
|
|
33949
33965
|
/**
|
|
33950
33966
|
* @param {PIXI.Renderer} renderer - A reference to the current renderer
|
|
33951
33967
|
*/
|
|
@@ -33989,8 +34005,8 @@ var PIXI = (function (exports) {
|
|
|
33989
34005
|
}());
|
|
33990
34006
|
|
|
33991
34007
|
/*!
|
|
33992
|
-
* @pixi/spritesheet - v6.3.
|
|
33993
|
-
* Compiled
|
|
34008
|
+
* @pixi/spritesheet - v6.3.1
|
|
34009
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
33994
34010
|
*
|
|
33995
34011
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
33996
34012
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34246,10 +34262,10 @@ var PIXI = (function (exports) {
|
|
|
34246
34262
|
return "continue";
|
|
34247
34263
|
}
|
|
34248
34264
|
var itemName = item.replace('.json', '');
|
|
34249
|
-
var itemUrl = url
|
|
34265
|
+
var itemUrl = url.resolve(resource.url.replace(loader.baseUrl, ''), item);
|
|
34250
34266
|
// Check if the file wasn't already added as multipacks are redundant
|
|
34251
34267
|
if (loader.resources[itemName]
|
|
34252
|
-
|| Object.values(loader.resources).some(function (r) { return url
|
|
34268
|
+
|| Object.values(loader.resources).some(function (r) { return url.format(url.parse(r.url)) === itemUrl; })) {
|
|
34253
34269
|
return "continue";
|
|
34254
34270
|
}
|
|
34255
34271
|
var options = {
|
|
@@ -34297,14 +34313,14 @@ var PIXI = (function (exports) {
|
|
|
34297
34313
|
if (resource.isDataUrl) {
|
|
34298
34314
|
return resource.data.meta.image;
|
|
34299
34315
|
}
|
|
34300
|
-
return url
|
|
34316
|
+
return url.resolve(resource.url.replace(baseUrl, ''), resource.data.meta.image);
|
|
34301
34317
|
};
|
|
34302
34318
|
return SpritesheetLoader;
|
|
34303
34319
|
}());
|
|
34304
34320
|
|
|
34305
34321
|
/*!
|
|
34306
|
-
* @pixi/sprite-tiling - v6.3.
|
|
34307
|
-
* Compiled
|
|
34322
|
+
* @pixi/sprite-tiling - v6.3.1
|
|
34323
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
34308
34324
|
*
|
|
34309
34325
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
|
34310
34326
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34326,15 +34342,15 @@ var PIXI = (function (exports) {
|
|
|
34326
34342
|
***************************************************************************** */
|
|
34327
34343
|
/* global Reflect, Promise */
|
|
34328
34344
|
|
|
34329
|
-
var extendStatics$
|
|
34330
|
-
extendStatics$
|
|
34345
|
+
var extendStatics$a = function(d, b) {
|
|
34346
|
+
extendStatics$a = Object.setPrototypeOf ||
|
|
34331
34347
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
34332
34348
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
34333
|
-
return extendStatics$
|
|
34349
|
+
return extendStatics$a(d, b);
|
|
34334
34350
|
};
|
|
34335
34351
|
|
|
34336
|
-
function __extends$
|
|
34337
|
-
extendStatics$
|
|
34352
|
+
function __extends$a(d, b) {
|
|
34353
|
+
extendStatics$a(d, b);
|
|
34338
34354
|
function __() { this.constructor = d; }
|
|
34339
34355
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34340
34356
|
}
|
|
@@ -34346,7 +34362,7 @@ var PIXI = (function (exports) {
|
|
|
34346
34362
|
* @memberof PIXI
|
|
34347
34363
|
*/
|
|
34348
34364
|
var TilingSprite = /** @class */ (function (_super) {
|
|
34349
|
-
__extends$
|
|
34365
|
+
__extends$a(TilingSprite, _super);
|
|
34350
34366
|
/**
|
|
34351
34367
|
* @param texture - The texture of the tiling sprite.
|
|
34352
34368
|
* @param width - The width of the tiling sprite.
|
|
@@ -34554,7 +34570,7 @@ var PIXI = (function (exports) {
|
|
|
34554
34570
|
|
|
34555
34571
|
var gl2FragmentSrc = "#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n";
|
|
34556
34572
|
|
|
34557
|
-
var tempMat
|
|
34573
|
+
var tempMat = new Matrix();
|
|
34558
34574
|
/**
|
|
34559
34575
|
* WebGL renderer plugin for tiling sprites
|
|
34560
34576
|
*
|
|
@@ -34563,7 +34579,7 @@ var PIXI = (function (exports) {
|
|
|
34563
34579
|
* @extends PIXI.ObjectRenderer
|
|
34564
34580
|
*/
|
|
34565
34581
|
var TilingSpriteRenderer = /** @class */ (function (_super) {
|
|
34566
|
-
__extends$
|
|
34582
|
+
__extends$a(TilingSpriteRenderer, _super);
|
|
34567
34583
|
/**
|
|
34568
34584
|
* constructor for renderer
|
|
34569
34585
|
*
|
|
@@ -34635,22 +34651,22 @@ var PIXI = (function (exports) {
|
|
|
34635
34651
|
var h = tex.height;
|
|
34636
34652
|
var W = ts._width;
|
|
34637
34653
|
var H = ts._height;
|
|
34638
|
-
tempMat
|
|
34654
|
+
tempMat.set(lt.a * w / W, lt.b * w / H, lt.c * h / W, lt.d * h / H, lt.tx / W, lt.ty / H);
|
|
34639
34655
|
// that part is the same as above:
|
|
34640
34656
|
// tempMat.identity();
|
|
34641
34657
|
// tempMat.scale(tex.width, tex.height);
|
|
34642
34658
|
// tempMat.prepend(lt);
|
|
34643
34659
|
// tempMat.scale(1.0 / ts._width, 1.0 / ts._height);
|
|
34644
|
-
tempMat
|
|
34660
|
+
tempMat.invert();
|
|
34645
34661
|
if (isSimple) {
|
|
34646
|
-
tempMat
|
|
34662
|
+
tempMat.prepend(uv.mapCoord);
|
|
34647
34663
|
}
|
|
34648
34664
|
else {
|
|
34649
34665
|
shader.uniforms.uMapCoord = uv.mapCoord.toArray(true);
|
|
34650
34666
|
shader.uniforms.uClampFrame = uv.uClampFrame;
|
|
34651
34667
|
shader.uniforms.uClampOffset = uv.uClampOffset;
|
|
34652
34668
|
}
|
|
34653
|
-
shader.uniforms.uTransform = tempMat
|
|
34669
|
+
shader.uniforms.uTransform = tempMat.toArray(true);
|
|
34654
34670
|
shader.uniforms.uColor = premultiplyTintToRgba(ts.tint, ts.worldAlpha, shader.uniforms.uColor, baseTex.alphaMode);
|
|
34655
34671
|
shader.uniforms.translationMatrix = ts.transform.worldTransform.toArray(true);
|
|
34656
34672
|
shader.uniforms.uSampler = tex;
|
|
@@ -34664,8 +34680,8 @@ var PIXI = (function (exports) {
|
|
|
34664
34680
|
}(ObjectRenderer));
|
|
34665
34681
|
|
|
34666
34682
|
/*!
|
|
34667
|
-
* @pixi/mesh - v6.3.
|
|
34668
|
-
* Compiled
|
|
34683
|
+
* @pixi/mesh - v6.3.1
|
|
34684
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
34669
34685
|
*
|
|
34670
34686
|
* @pixi/mesh is licensed under the MIT License.
|
|
34671
34687
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -34687,15 +34703,15 @@ var PIXI = (function (exports) {
|
|
|
34687
34703
|
***************************************************************************** */
|
|
34688
34704
|
/* global Reflect, Promise */
|
|
34689
34705
|
|
|
34690
|
-
var extendStatics$
|
|
34691
|
-
extendStatics$
|
|
34706
|
+
var extendStatics$9 = function(d, b) {
|
|
34707
|
+
extendStatics$9 = Object.setPrototypeOf ||
|
|
34692
34708
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
34693
34709
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
34694
|
-
return extendStatics$
|
|
34710
|
+
return extendStatics$9(d, b);
|
|
34695
34711
|
};
|
|
34696
34712
|
|
|
34697
|
-
function __extends$
|
|
34698
|
-
extendStatics$
|
|
34713
|
+
function __extends$9(d, b) {
|
|
34714
|
+
extendStatics$9(d, b);
|
|
34699
34715
|
function __() { this.constructor = d; }
|
|
34700
34716
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34701
34717
|
}
|
|
@@ -34741,7 +34757,7 @@ var PIXI = (function (exports) {
|
|
|
34741
34757
|
return MeshBatchUvs;
|
|
34742
34758
|
}());
|
|
34743
34759
|
|
|
34744
|
-
var tempPoint
|
|
34760
|
+
var tempPoint = new Point();
|
|
34745
34761
|
var tempPolygon = new Polygon();
|
|
34746
34762
|
/**
|
|
34747
34763
|
* Base mesh class.
|
|
@@ -34760,7 +34776,7 @@ var PIXI = (function (exports) {
|
|
|
34760
34776
|
* @memberof PIXI
|
|
34761
34777
|
*/
|
|
34762
34778
|
var Mesh = /** @class */ (function (_super) {
|
|
34763
|
-
__extends$
|
|
34779
|
+
__extends$9(Mesh, _super);
|
|
34764
34780
|
/**
|
|
34765
34781
|
* @param geometry - The geometry the mesh will use.
|
|
34766
34782
|
* @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
|
|
@@ -35051,7 +35067,7 @@ var PIXI = (function (exports) {
|
|
|
35051
35067
|
if (!this.getBounds().contains(point.x, point.y)) {
|
|
35052
35068
|
return false;
|
|
35053
35069
|
}
|
|
35054
|
-
this.worldTransform.applyInverse(point, tempPoint
|
|
35070
|
+
this.worldTransform.applyInverse(point, tempPoint);
|
|
35055
35071
|
var vertices = this.geometry.getBuffer('aVertexPosition').data;
|
|
35056
35072
|
var points = tempPolygon.points;
|
|
35057
35073
|
var indices = this.geometry.getIndex().data;
|
|
@@ -35067,7 +35083,7 @@ var PIXI = (function (exports) {
|
|
|
35067
35083
|
points[3] = vertices[ind1 + 1];
|
|
35068
35084
|
points[4] = vertices[ind2];
|
|
35069
35085
|
points[5] = vertices[ind2 + 1];
|
|
35070
|
-
if (tempPolygon.contains(tempPoint
|
|
35086
|
+
if (tempPolygon.contains(tempPoint.x, tempPoint.y)) {
|
|
35071
35087
|
return true;
|
|
35072
35088
|
}
|
|
35073
35089
|
}
|
|
@@ -35094,7 +35110,7 @@ var PIXI = (function (exports) {
|
|
|
35094
35110
|
return Mesh;
|
|
35095
35111
|
}(Container));
|
|
35096
35112
|
|
|
35097
|
-
var fragment$
|
|
35113
|
+
var fragment$5 = "varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n";
|
|
35098
35114
|
|
|
35099
35115
|
var vertex$2 = "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n";
|
|
35100
35116
|
|
|
@@ -35104,7 +35120,7 @@ var PIXI = (function (exports) {
|
|
|
35104
35120
|
* @memberof PIXI
|
|
35105
35121
|
*/
|
|
35106
35122
|
var MeshMaterial = /** @class */ (function (_super) {
|
|
35107
|
-
__extends$
|
|
35123
|
+
__extends$9(MeshMaterial, _super);
|
|
35108
35124
|
/**
|
|
35109
35125
|
* @param uSampler - Texture that material uses to render.
|
|
35110
35126
|
* @param options - Additional options
|
|
@@ -35131,7 +35147,7 @@ var PIXI = (function (exports) {
|
|
|
35131
35147
|
if (options.uniforms) {
|
|
35132
35148
|
Object.assign(uniforms, options.uniforms);
|
|
35133
35149
|
}
|
|
35134
|
-
_this = _super.call(this, options.program || Program.from(vertex$2, fragment$
|
|
35150
|
+
_this = _super.call(this, options.program || Program.from(vertex$2, fragment$5), uniforms) || this;
|
|
35135
35151
|
_this._colorDirty = false;
|
|
35136
35152
|
_this.uvMatrix = new TextureMatrix(uSampler);
|
|
35137
35153
|
_this.batchable = options.program === undefined;
|
|
@@ -35225,7 +35241,7 @@ var PIXI = (function (exports) {
|
|
|
35225
35241
|
* @memberof PIXI
|
|
35226
35242
|
*/
|
|
35227
35243
|
var MeshGeometry = /** @class */ (function (_super) {
|
|
35228
|
-
__extends$
|
|
35244
|
+
__extends$9(MeshGeometry, _super);
|
|
35229
35245
|
/**
|
|
35230
35246
|
* @param {Float32Array|number[]} [vertices] - Positional data on geometry.
|
|
35231
35247
|
* @param {Float32Array|number[]} [uvs] - Texture UVs.
|
|
@@ -35259,8 +35275,8 @@ var PIXI = (function (exports) {
|
|
|
35259
35275
|
}(Geometry));
|
|
35260
35276
|
|
|
35261
35277
|
/*!
|
|
35262
|
-
* @pixi/text-bitmap - v6.3.
|
|
35263
|
-
* Compiled
|
|
35278
|
+
* @pixi/text-bitmap - v6.3.1
|
|
35279
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
35264
35280
|
*
|
|
35265
35281
|
* @pixi/text-bitmap is licensed under the MIT License.
|
|
35266
35282
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -35282,15 +35298,15 @@ var PIXI = (function (exports) {
|
|
|
35282
35298
|
***************************************************************************** */
|
|
35283
35299
|
/* global Reflect, Promise */
|
|
35284
35300
|
|
|
35285
|
-
var extendStatics$
|
|
35286
|
-
extendStatics$
|
|
35301
|
+
var extendStatics$8 = function(d, b) {
|
|
35302
|
+
extendStatics$8 = Object.setPrototypeOf ||
|
|
35287
35303
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35288
35304
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
35289
|
-
return extendStatics$
|
|
35305
|
+
return extendStatics$8(d, b);
|
|
35290
35306
|
};
|
|
35291
35307
|
|
|
35292
|
-
function __extends$
|
|
35293
|
-
extendStatics$
|
|
35308
|
+
function __extends$8(d, b) {
|
|
35309
|
+
extendStatics$8(d, b);
|
|
35294
35310
|
function __() { this.constructor = d; }
|
|
35295
35311
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35296
35312
|
}
|
|
@@ -36144,7 +36160,7 @@ var PIXI = (function (exports) {
|
|
|
36144
36160
|
* @memberof PIXI
|
|
36145
36161
|
*/
|
|
36146
36162
|
var BitmapText = /** @class */ (function (_super) {
|
|
36147
|
-
__extends$
|
|
36163
|
+
__extends$8(BitmapText, _super);
|
|
36148
36164
|
/**
|
|
36149
36165
|
* @param text - A string that you would like the text to display.
|
|
36150
36166
|
* @param style - The style parameters.
|
|
@@ -36178,7 +36194,7 @@ var PIXI = (function (exports) {
|
|
|
36178
36194
|
_this._tint = tint;
|
|
36179
36195
|
_this._fontName = fontName;
|
|
36180
36196
|
_this._fontSize = fontSize || BitmapFont.available[fontName].size;
|
|
36181
|
-
_this.
|
|
36197
|
+
_this.text = text;
|
|
36182
36198
|
_this._maxWidth = maxWidth;
|
|
36183
36199
|
_this._maxLineHeight = 0;
|
|
36184
36200
|
_this._letterSpacing = letterSpacing;
|
|
@@ -36849,8 +36865,8 @@ var PIXI = (function (exports) {
|
|
|
36849
36865
|
}());
|
|
36850
36866
|
|
|
36851
36867
|
/*!
|
|
36852
|
-
* @pixi/filter-alpha - v6.3.
|
|
36853
|
-
* Compiled
|
|
36868
|
+
* @pixi/filter-alpha - v6.3.1
|
|
36869
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
36854
36870
|
*
|
|
36855
36871
|
* @pixi/filter-alpha is licensed under the MIT License.
|
|
36856
36872
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36872,20 +36888,20 @@ var PIXI = (function (exports) {
|
|
|
36872
36888
|
***************************************************************************** */
|
|
36873
36889
|
/* global Reflect, Promise */
|
|
36874
36890
|
|
|
36875
|
-
var extendStatics$
|
|
36876
|
-
extendStatics$
|
|
36891
|
+
var extendStatics$7 = function(d, b) {
|
|
36892
|
+
extendStatics$7 = Object.setPrototypeOf ||
|
|
36877
36893
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36878
36894
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
36879
|
-
return extendStatics$
|
|
36895
|
+
return extendStatics$7(d, b);
|
|
36880
36896
|
};
|
|
36881
36897
|
|
|
36882
|
-
function __extends$
|
|
36883
|
-
extendStatics$
|
|
36898
|
+
function __extends$7(d, b) {
|
|
36899
|
+
extendStatics$7(d, b);
|
|
36884
36900
|
function __() { this.constructor = d; }
|
|
36885
36901
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36886
36902
|
}
|
|
36887
36903
|
|
|
36888
|
-
var fragment$
|
|
36904
|
+
var fragment$4 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n";
|
|
36889
36905
|
|
|
36890
36906
|
/**
|
|
36891
36907
|
* Simplest filter - applies alpha.
|
|
@@ -36903,13 +36919,13 @@ var PIXI = (function (exports) {
|
|
|
36903
36919
|
* @memberof PIXI.filters
|
|
36904
36920
|
*/
|
|
36905
36921
|
var AlphaFilter = /** @class */ (function (_super) {
|
|
36906
|
-
__extends$
|
|
36922
|
+
__extends$7(AlphaFilter, _super);
|
|
36907
36923
|
/**
|
|
36908
36924
|
* @param alpha - Amount of alpha from 0 to 1, where 0 is transparent
|
|
36909
36925
|
*/
|
|
36910
36926
|
function AlphaFilter(alpha) {
|
|
36911
36927
|
if (alpha === void 0) { alpha = 1.0; }
|
|
36912
|
-
var _this = _super.call(this, defaultVertex$
|
|
36928
|
+
var _this = _super.call(this, defaultVertex$1, fragment$4, { uAlpha: 1 }) || this;
|
|
36913
36929
|
_this.alpha = alpha;
|
|
36914
36930
|
return _this;
|
|
36915
36931
|
}
|
|
@@ -36932,8 +36948,8 @@ var PIXI = (function (exports) {
|
|
|
36932
36948
|
}(Filter));
|
|
36933
36949
|
|
|
36934
36950
|
/*!
|
|
36935
|
-
* @pixi/filter-blur - v6.3.
|
|
36936
|
-
* Compiled
|
|
36951
|
+
* @pixi/filter-blur - v6.3.1
|
|
36952
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
36937
36953
|
*
|
|
36938
36954
|
* @pixi/filter-blur is licensed under the MIT License.
|
|
36939
36955
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -36955,15 +36971,15 @@ var PIXI = (function (exports) {
|
|
|
36955
36971
|
***************************************************************************** */
|
|
36956
36972
|
/* global Reflect, Promise */
|
|
36957
36973
|
|
|
36958
|
-
var extendStatics$
|
|
36959
|
-
extendStatics$
|
|
36974
|
+
var extendStatics$6 = function(d, b) {
|
|
36975
|
+
extendStatics$6 = Object.setPrototypeOf ||
|
|
36960
36976
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36961
36977
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
36962
|
-
return extendStatics$
|
|
36978
|
+
return extendStatics$6(d, b);
|
|
36963
36979
|
};
|
|
36964
36980
|
|
|
36965
|
-
function __extends$
|
|
36966
|
-
extendStatics$
|
|
36981
|
+
function __extends$6(d, b) {
|
|
36982
|
+
extendStatics$6(d, b);
|
|
36967
36983
|
function __() { this.constructor = d; }
|
|
36968
36984
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36969
36985
|
}
|
|
@@ -36999,7 +37015,7 @@ var PIXI = (function (exports) {
|
|
|
36999
37015
|
13: [0.002406, 0.009255, 0.027867, 0.065666, 0.121117, 0.174868, 0.197641],
|
|
37000
37016
|
15: [0.000489, 0.002403, 0.009246, 0.02784, 0.065602, 0.120999, 0.174697, 0.197448],
|
|
37001
37017
|
};
|
|
37002
|
-
var fragTemplate
|
|
37018
|
+
var fragTemplate = [
|
|
37003
37019
|
'varying vec2 vBlurTexCoords[%size%];',
|
|
37004
37020
|
'uniform sampler2D uSampler;',
|
|
37005
37021
|
'void main(void)',
|
|
@@ -37010,7 +37026,7 @@ var PIXI = (function (exports) {
|
|
|
37010
37026
|
function generateBlurFragSource(kernelSize) {
|
|
37011
37027
|
var kernel = GAUSSIAN_VALUES[kernelSize];
|
|
37012
37028
|
var halfLength = kernel.length;
|
|
37013
|
-
var fragSource = fragTemplate
|
|
37029
|
+
var fragSource = fragTemplate;
|
|
37014
37030
|
var blurLoop = '';
|
|
37015
37031
|
var template = 'gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;';
|
|
37016
37032
|
var value;
|
|
@@ -37030,8 +37046,8 @@ var PIXI = (function (exports) {
|
|
|
37030
37046
|
}
|
|
37031
37047
|
|
|
37032
37048
|
/*!
|
|
37033
|
-
* @pixi/constants - v6.3.
|
|
37034
|
-
* Compiled
|
|
37049
|
+
* @pixi/constants - v6.3.1
|
|
37050
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
37035
37051
|
*
|
|
37036
37052
|
* @pixi/constants is licensed under the MIT License.
|
|
37037
37053
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37048,12 +37064,12 @@ var PIXI = (function (exports) {
|
|
|
37048
37064
|
* @property {number} WEBGL - Version 1 of WebGL
|
|
37049
37065
|
* @property {number} WEBGL2 - Version 2 of WebGL
|
|
37050
37066
|
*/
|
|
37051
|
-
var ENV$
|
|
37067
|
+
var ENV$1;
|
|
37052
37068
|
(function (ENV) {
|
|
37053
37069
|
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
|
37054
37070
|
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
|
37055
37071
|
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
|
37056
|
-
})(ENV$
|
|
37072
|
+
})(ENV$1 || (ENV$1 = {}));
|
|
37057
37073
|
/**
|
|
37058
37074
|
* Constant to identify the Renderer Type.
|
|
37059
37075
|
*
|
|
@@ -37065,12 +37081,12 @@ var PIXI = (function (exports) {
|
|
|
37065
37081
|
* @property {number} WEBGL - WebGL render type.
|
|
37066
37082
|
* @property {number} CANVAS - Canvas render type.
|
|
37067
37083
|
*/
|
|
37068
|
-
var RENDERER_TYPE$
|
|
37084
|
+
var RENDERER_TYPE$1;
|
|
37069
37085
|
(function (RENDERER_TYPE) {
|
|
37070
37086
|
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
37071
37087
|
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
|
37072
37088
|
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
|
37073
|
-
})(RENDERER_TYPE$
|
|
37089
|
+
})(RENDERER_TYPE$1 || (RENDERER_TYPE$1 = {}));
|
|
37074
37090
|
/**
|
|
37075
37091
|
* Bitwise OR of masks that indicate the buffers to be cleared.
|
|
37076
37092
|
*
|
|
@@ -37082,12 +37098,12 @@ var PIXI = (function (exports) {
|
|
|
37082
37098
|
* @property {number} DEPTH - Indicates the depth buffer.
|
|
37083
37099
|
* @property {number} STENCIL - Indicates the stencil buffer.
|
|
37084
37100
|
*/
|
|
37085
|
-
var BUFFER_BITS$
|
|
37101
|
+
var BUFFER_BITS$1;
|
|
37086
37102
|
(function (BUFFER_BITS) {
|
|
37087
37103
|
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
|
37088
37104
|
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
|
37089
37105
|
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
|
37090
|
-
})(BUFFER_BITS$
|
|
37106
|
+
})(BUFFER_BITS$1 || (BUFFER_BITS$1 = {}));
|
|
37091
37107
|
/**
|
|
37092
37108
|
* Various blend modes supported by PIXI.
|
|
37093
37109
|
*
|
|
@@ -37130,7 +37146,7 @@ var PIXI = (function (exports) {
|
|
|
37130
37146
|
* @property {number} ERASE
|
|
37131
37147
|
* @property {number} XOR
|
|
37132
37148
|
*/
|
|
37133
|
-
var BLEND_MODES$
|
|
37149
|
+
var BLEND_MODES$1;
|
|
37134
37150
|
(function (BLEND_MODES) {
|
|
37135
37151
|
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
|
37136
37152
|
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
|
@@ -37164,7 +37180,7 @@ var PIXI = (function (exports) {
|
|
|
37164
37180
|
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
|
37165
37181
|
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
|
37166
37182
|
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
|
37167
|
-
})(BLEND_MODES$
|
|
37183
|
+
})(BLEND_MODES$1 || (BLEND_MODES$1 = {}));
|
|
37168
37184
|
/**
|
|
37169
37185
|
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
|
37170
37186
|
* under certain situations and renderers.
|
|
@@ -37181,7 +37197,7 @@ var PIXI = (function (exports) {
|
|
|
37181
37197
|
* @property {number} TRIANGLE_STRIP
|
|
37182
37198
|
* @property {number} TRIANGLE_FAN
|
|
37183
37199
|
*/
|
|
37184
|
-
var DRAW_MODES$
|
|
37200
|
+
var DRAW_MODES$1;
|
|
37185
37201
|
(function (DRAW_MODES) {
|
|
37186
37202
|
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
|
37187
37203
|
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
|
@@ -37190,7 +37206,7 @@ var PIXI = (function (exports) {
|
|
|
37190
37206
|
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
|
37191
37207
|
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
|
37192
37208
|
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
|
37193
|
-
})(DRAW_MODES$
|
|
37209
|
+
})(DRAW_MODES$1 || (DRAW_MODES$1 = {}));
|
|
37194
37210
|
/**
|
|
37195
37211
|
* Various GL texture/resources formats.
|
|
37196
37212
|
*
|
|
@@ -37212,7 +37228,7 @@ var PIXI = (function (exports) {
|
|
|
37212
37228
|
* @property {number} DEPTH_COMPONENT=6402
|
|
37213
37229
|
* @property {number} DEPTH_STENCIL=34041
|
|
37214
37230
|
*/
|
|
37215
|
-
var FORMATS$
|
|
37231
|
+
var FORMATS$1;
|
|
37216
37232
|
(function (FORMATS) {
|
|
37217
37233
|
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
|
37218
37234
|
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
|
@@ -37227,7 +37243,7 @@ var PIXI = (function (exports) {
|
|
|
37227
37243
|
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
|
37228
37244
|
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
|
37229
37245
|
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
|
37230
|
-
})(FORMATS$
|
|
37246
|
+
})(FORMATS$1 || (FORMATS$1 = {}));
|
|
37231
37247
|
/**
|
|
37232
37248
|
* Various GL target types.
|
|
37233
37249
|
*
|
|
@@ -37245,7 +37261,7 @@ var PIXI = (function (exports) {
|
|
|
37245
37261
|
* @property {number} TEXTURE_CUBE_MAP_POSITIVE_Z=34073
|
|
37246
37262
|
* @property {number} TEXTURE_CUBE_MAP_NEGATIVE_Z=34074
|
|
37247
37263
|
*/
|
|
37248
|
-
var TARGETS$
|
|
37264
|
+
var TARGETS$1;
|
|
37249
37265
|
(function (TARGETS) {
|
|
37250
37266
|
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
37251
37267
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
@@ -37256,7 +37272,7 @@ var PIXI = (function (exports) {
|
|
|
37256
37272
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
|
37257
37273
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
|
37258
37274
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
|
37259
|
-
})(TARGETS$
|
|
37275
|
+
})(TARGETS$1 || (TARGETS$1 = {}));
|
|
37260
37276
|
/**
|
|
37261
37277
|
* Various GL data format types.
|
|
37262
37278
|
*
|
|
@@ -37281,7 +37297,7 @@ var PIXI = (function (exports) {
|
|
|
37281
37297
|
* @property {number} FLOAT_32_UNSIGNED_INT_24_8_REV=36269
|
|
37282
37298
|
* @property {number} HALF_FLOAT=36193
|
|
37283
37299
|
*/
|
|
37284
|
-
var TYPES$
|
|
37300
|
+
var TYPES$1;
|
|
37285
37301
|
(function (TYPES) {
|
|
37286
37302
|
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
37287
37303
|
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
@@ -37299,7 +37315,7 @@ var PIXI = (function (exports) {
|
|
|
37299
37315
|
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
|
37300
37316
|
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
|
37301
37317
|
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
|
37302
|
-
})(TYPES$
|
|
37318
|
+
})(TYPES$1 || (TYPES$1 = {}));
|
|
37303
37319
|
/**
|
|
37304
37320
|
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
|
37305
37321
|
* WebGL1 works only with FLOAT.
|
|
@@ -37312,12 +37328,12 @@ var PIXI = (function (exports) {
|
|
|
37312
37328
|
* @property {number} INT=1
|
|
37313
37329
|
* @property {number} UINT=2
|
|
37314
37330
|
*/
|
|
37315
|
-
var SAMPLER_TYPES$
|
|
37331
|
+
var SAMPLER_TYPES$1;
|
|
37316
37332
|
(function (SAMPLER_TYPES) {
|
|
37317
37333
|
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
|
37318
37334
|
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
|
37319
37335
|
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
|
37320
|
-
})(SAMPLER_TYPES$
|
|
37336
|
+
})(SAMPLER_TYPES$1 || (SAMPLER_TYPES$1 = {}));
|
|
37321
37337
|
/**
|
|
37322
37338
|
* The scale modes that are supported by pixi.
|
|
37323
37339
|
*
|
|
@@ -37331,11 +37347,11 @@ var PIXI = (function (exports) {
|
|
|
37331
37347
|
* @property {number} LINEAR Smooth scaling
|
|
37332
37348
|
* @property {number} NEAREST Pixelating scaling
|
|
37333
37349
|
*/
|
|
37334
|
-
var SCALE_MODES$
|
|
37350
|
+
var SCALE_MODES$1;
|
|
37335
37351
|
(function (SCALE_MODES) {
|
|
37336
37352
|
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
|
37337
37353
|
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
|
37338
|
-
})(SCALE_MODES$
|
|
37354
|
+
})(SCALE_MODES$1 || (SCALE_MODES$1 = {}));
|
|
37339
37355
|
/**
|
|
37340
37356
|
* The wrap modes that are supported by pixi.
|
|
37341
37357
|
*
|
|
@@ -37354,12 +37370,12 @@ var PIXI = (function (exports) {
|
|
|
37354
37370
|
* @property {number} REPEAT - The texture uvs tile and repeat
|
|
37355
37371
|
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
|
37356
37372
|
*/
|
|
37357
|
-
var WRAP_MODES$
|
|
37373
|
+
var WRAP_MODES$1;
|
|
37358
37374
|
(function (WRAP_MODES) {
|
|
37359
37375
|
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
|
37360
37376
|
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
|
37361
37377
|
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
|
37362
|
-
})(WRAP_MODES$
|
|
37378
|
+
})(WRAP_MODES$1 || (WRAP_MODES$1 = {}));
|
|
37363
37379
|
/**
|
|
37364
37380
|
* Mipmap filtering modes that are supported by pixi.
|
|
37365
37381
|
*
|
|
@@ -37380,13 +37396,13 @@ var PIXI = (function (exports) {
|
|
|
37380
37396
|
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
|
37381
37397
|
* that supports buffering each level-of-detail.
|
|
37382
37398
|
*/
|
|
37383
|
-
var MIPMAP_MODES$
|
|
37399
|
+
var MIPMAP_MODES$1;
|
|
37384
37400
|
(function (MIPMAP_MODES) {
|
|
37385
37401
|
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
|
37386
37402
|
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
|
37387
37403
|
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
|
37388
37404
|
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
|
37389
|
-
})(MIPMAP_MODES$
|
|
37405
|
+
})(MIPMAP_MODES$1 || (MIPMAP_MODES$1 = {}));
|
|
37390
37406
|
/**
|
|
37391
37407
|
* How to treat textures with premultiplied alpha
|
|
37392
37408
|
*
|
|
@@ -37404,7 +37420,7 @@ var PIXI = (function (exports) {
|
|
|
37404
37420
|
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
|
37405
37421
|
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
|
37406
37422
|
*/
|
|
37407
|
-
var ALPHA_MODES$
|
|
37423
|
+
var ALPHA_MODES$1;
|
|
37408
37424
|
(function (ALPHA_MODES) {
|
|
37409
37425
|
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
|
37410
37426
|
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
|
@@ -37413,7 +37429,7 @@ var PIXI = (function (exports) {
|
|
|
37413
37429
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
|
37414
37430
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
|
37415
37431
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
|
37416
|
-
})(ALPHA_MODES$
|
|
37432
|
+
})(ALPHA_MODES$1 || (ALPHA_MODES$1 = {}));
|
|
37417
37433
|
/**
|
|
37418
37434
|
* Configure whether filter textures are cleared after binding.
|
|
37419
37435
|
*
|
|
@@ -37431,7 +37447,7 @@ var PIXI = (function (exports) {
|
|
|
37431
37447
|
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
|
37432
37448
|
* @property {number} AUTO - Alias for BLIT
|
|
37433
37449
|
*/
|
|
37434
|
-
var CLEAR_MODES$
|
|
37450
|
+
var CLEAR_MODES$1;
|
|
37435
37451
|
(function (CLEAR_MODES) {
|
|
37436
37452
|
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
|
37437
37453
|
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
|
@@ -37439,7 +37455,7 @@ var PIXI = (function (exports) {
|
|
|
37439
37455
|
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
|
37440
37456
|
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
|
37441
37457
|
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
|
37442
|
-
})(CLEAR_MODES$
|
|
37458
|
+
})(CLEAR_MODES$1 || (CLEAR_MODES$1 = {}));
|
|
37443
37459
|
/**
|
|
37444
37460
|
* The gc modes that are supported by pixi.
|
|
37445
37461
|
*
|
|
@@ -37459,11 +37475,11 @@ var PIXI = (function (exports) {
|
|
|
37459
37475
|
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
|
37460
37476
|
* @property {number} MANUAL - Garbage collection will need to be called manually
|
|
37461
37477
|
*/
|
|
37462
|
-
var GC_MODES$
|
|
37478
|
+
var GC_MODES$1;
|
|
37463
37479
|
(function (GC_MODES) {
|
|
37464
37480
|
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
|
37465
37481
|
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
|
37466
|
-
})(GC_MODES$
|
|
37482
|
+
})(GC_MODES$1 || (GC_MODES$1 = {}));
|
|
37467
37483
|
/**
|
|
37468
37484
|
* Constants that specify float precision in shaders.
|
|
37469
37485
|
*
|
|
@@ -37476,12 +37492,12 @@ var PIXI = (function (exports) {
|
|
|
37476
37492
|
* @property {string} MEDIUM='mediump'
|
|
37477
37493
|
* @property {string} HIGH='highp'
|
|
37478
37494
|
*/
|
|
37479
|
-
var PRECISION$
|
|
37495
|
+
var PRECISION$1;
|
|
37480
37496
|
(function (PRECISION) {
|
|
37481
37497
|
PRECISION["LOW"] = "lowp";
|
|
37482
37498
|
PRECISION["MEDIUM"] = "mediump";
|
|
37483
37499
|
PRECISION["HIGH"] = "highp";
|
|
37484
|
-
})(PRECISION$
|
|
37500
|
+
})(PRECISION$1 || (PRECISION$1 = {}));
|
|
37485
37501
|
/**
|
|
37486
37502
|
* Constants for mask implementations.
|
|
37487
37503
|
* We use `type` suffix because it leads to very different behaviours
|
|
@@ -37495,13 +37511,13 @@ var PIXI = (function (exports) {
|
|
|
37495
37511
|
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
|
37496
37512
|
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
|
37497
37513
|
*/
|
|
37498
|
-
var MASK_TYPES$
|
|
37514
|
+
var MASK_TYPES$1;
|
|
37499
37515
|
(function (MASK_TYPES) {
|
|
37500
37516
|
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
|
37501
37517
|
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
|
37502
37518
|
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
|
37503
37519
|
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
|
37504
|
-
})(MASK_TYPES$
|
|
37520
|
+
})(MASK_TYPES$1 || (MASK_TYPES$1 = {}));
|
|
37505
37521
|
/**
|
|
37506
37522
|
* Constants for multi-sampling antialiasing.
|
|
37507
37523
|
*
|
|
@@ -37516,13 +37532,13 @@ var PIXI = (function (exports) {
|
|
|
37516
37532
|
* @property {number} MEDIUM - Try 4 samples
|
|
37517
37533
|
* @property {number} HIGH - Try 8 samples
|
|
37518
37534
|
*/
|
|
37519
|
-
var MSAA_QUALITY$
|
|
37535
|
+
var MSAA_QUALITY$1;
|
|
37520
37536
|
(function (MSAA_QUALITY) {
|
|
37521
37537
|
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
|
37522
37538
|
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
|
37523
37539
|
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
|
37524
37540
|
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
|
37525
|
-
})(MSAA_QUALITY$
|
|
37541
|
+
})(MSAA_QUALITY$1 || (MSAA_QUALITY$1 = {}));
|
|
37526
37542
|
/**
|
|
37527
37543
|
* Constants for various buffer types in Pixi
|
|
37528
37544
|
*
|
|
@@ -37536,13 +37552,13 @@ var PIXI = (function (exports) {
|
|
|
37536
37552
|
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
|
37537
37553
|
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
|
37538
37554
|
*/
|
|
37539
|
-
var BUFFER_TYPE$
|
|
37555
|
+
var BUFFER_TYPE$1;
|
|
37540
37556
|
(function (BUFFER_TYPE) {
|
|
37541
37557
|
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
37542
37558
|
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
37543
37559
|
// NOT YET SUPPORTED
|
|
37544
37560
|
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
|
37545
|
-
})(BUFFER_TYPE$
|
|
37561
|
+
})(BUFFER_TYPE$1 || (BUFFER_TYPE$1 = {}));
|
|
37546
37562
|
|
|
37547
37563
|
/**
|
|
37548
37564
|
* The BlurFilterPass applies a horizontal or vertical Gaussian blur to an object.
|
|
@@ -37550,7 +37566,7 @@ var PIXI = (function (exports) {
|
|
|
37550
37566
|
* @memberof PIXI.filters
|
|
37551
37567
|
*/
|
|
37552
37568
|
var BlurFilterPass = /** @class */ (function (_super) {
|
|
37553
|
-
__extends$
|
|
37569
|
+
__extends$6(BlurFilterPass, _super);
|
|
37554
37570
|
/**
|
|
37555
37571
|
* @param horizontal - Do pass along the x-axis (`true`) or y-axis (`false`).
|
|
37556
37572
|
* @param strength - The strength of the blur filter.
|
|
@@ -37616,9 +37632,9 @@ var PIXI = (function (exports) {
|
|
|
37616
37632
|
var flip = input;
|
|
37617
37633
|
var flop = renderTarget;
|
|
37618
37634
|
this.state.blend = false;
|
|
37619
|
-
filterManager.applyFilter(this, flip, flop, CLEAR_MODES$
|
|
37635
|
+
filterManager.applyFilter(this, flip, flop, CLEAR_MODES$1.CLEAR);
|
|
37620
37636
|
for (var i = 1; i < this.passes - 1; i++) {
|
|
37621
|
-
filterManager.bindAndClear(flip, CLEAR_MODES$
|
|
37637
|
+
filterManager.bindAndClear(flip, CLEAR_MODES$1.BLIT);
|
|
37622
37638
|
this.uniforms.uSampler = flop;
|
|
37623
37639
|
var temp = flop;
|
|
37624
37640
|
flop = flip;
|
|
@@ -37675,7 +37691,7 @@ var PIXI = (function (exports) {
|
|
|
37675
37691
|
* @memberof PIXI.filters
|
|
37676
37692
|
*/
|
|
37677
37693
|
var BlurFilter = /** @class */ (function (_super) {
|
|
37678
|
-
__extends$
|
|
37694
|
+
__extends$6(BlurFilter, _super);
|
|
37679
37695
|
/**
|
|
37680
37696
|
* @param strength - The strength of the blur filter.
|
|
37681
37697
|
* @param quality - The quality of the blur filter.
|
|
@@ -37709,7 +37725,7 @@ var PIXI = (function (exports) {
|
|
|
37709
37725
|
var yStrength = Math.abs(this.blurYFilter.strength);
|
|
37710
37726
|
if (xStrength && yStrength) {
|
|
37711
37727
|
var renderTarget = filterManager.getFilterTexture();
|
|
37712
|
-
this.blurXFilter.apply(filterManager, input, renderTarget, CLEAR_MODES$
|
|
37728
|
+
this.blurXFilter.apply(filterManager, input, renderTarget, CLEAR_MODES$1.CLEAR);
|
|
37713
37729
|
this.blurYFilter.apply(filterManager, renderTarget, output, clearMode);
|
|
37714
37730
|
filterManager.returnFilterTexture(renderTarget);
|
|
37715
37731
|
}
|
|
@@ -37826,8 +37842,8 @@ var PIXI = (function (exports) {
|
|
|
37826
37842
|
}(Filter));
|
|
37827
37843
|
|
|
37828
37844
|
/*!
|
|
37829
|
-
* @pixi/filter-color-matrix - v6.3.
|
|
37830
|
-
* Compiled
|
|
37845
|
+
* @pixi/filter-color-matrix - v6.3.1
|
|
37846
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
37831
37847
|
*
|
|
37832
37848
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
|
37833
37849
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -37849,20 +37865,20 @@ var PIXI = (function (exports) {
|
|
|
37849
37865
|
***************************************************************************** */
|
|
37850
37866
|
/* global Reflect, Promise */
|
|
37851
37867
|
|
|
37852
|
-
var extendStatics$
|
|
37853
|
-
extendStatics$
|
|
37868
|
+
var extendStatics$5 = function(d, b) {
|
|
37869
|
+
extendStatics$5 = Object.setPrototypeOf ||
|
|
37854
37870
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
37855
37871
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
37856
|
-
return extendStatics$
|
|
37872
|
+
return extendStatics$5(d, b);
|
|
37857
37873
|
};
|
|
37858
37874
|
|
|
37859
|
-
function __extends$
|
|
37860
|
-
extendStatics$
|
|
37875
|
+
function __extends$5(d, b) {
|
|
37876
|
+
extendStatics$5(d, b);
|
|
37861
37877
|
function __() { this.constructor = d; }
|
|
37862
37878
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37863
37879
|
}
|
|
37864
37880
|
|
|
37865
|
-
var fragment$
|
|
37881
|
+
var fragment$3 = "varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n";
|
|
37866
37882
|
|
|
37867
37883
|
/**
|
|
37868
37884
|
* The ColorMatrixFilter class lets you apply a 5x4 matrix transformation on the RGBA
|
|
@@ -37878,7 +37894,7 @@ var PIXI = (function (exports) {
|
|
|
37878
37894
|
* @memberof PIXI.filters
|
|
37879
37895
|
*/
|
|
37880
37896
|
var ColorMatrixFilter = /** @class */ (function (_super) {
|
|
37881
|
-
__extends$
|
|
37897
|
+
__extends$5(ColorMatrixFilter, _super);
|
|
37882
37898
|
function ColorMatrixFilter() {
|
|
37883
37899
|
var _this = this;
|
|
37884
37900
|
var uniforms = {
|
|
@@ -37888,7 +37904,7 @@ var PIXI = (function (exports) {
|
|
|
37888
37904
|
0, 0, 0, 1, 0]),
|
|
37889
37905
|
uAlpha: 1,
|
|
37890
37906
|
};
|
|
37891
|
-
_this = _super.call(this, defaultFilterVertex, fragment$
|
|
37907
|
+
_this = _super.call(this, defaultFilterVertex, fragment$3, uniforms) || this;
|
|
37892
37908
|
_this.alpha = 1;
|
|
37893
37909
|
return _this;
|
|
37894
37910
|
}
|
|
@@ -38367,8 +38383,8 @@ var PIXI = (function (exports) {
|
|
|
38367
38383
|
ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
|
|
38368
38384
|
|
|
38369
38385
|
/*!
|
|
38370
|
-
* @pixi/filter-displacement - v6.3.
|
|
38371
|
-
* Compiled
|
|
38386
|
+
* @pixi/filter-displacement - v6.3.1
|
|
38387
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
38372
38388
|
*
|
|
38373
38389
|
* @pixi/filter-displacement is licensed under the MIT License.
|
|
38374
38390
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38390,22 +38406,22 @@ var PIXI = (function (exports) {
|
|
|
38390
38406
|
***************************************************************************** */
|
|
38391
38407
|
/* global Reflect, Promise */
|
|
38392
38408
|
|
|
38393
|
-
var extendStatics$
|
|
38394
|
-
extendStatics$
|
|
38409
|
+
var extendStatics$4 = function(d, b) {
|
|
38410
|
+
extendStatics$4 = Object.setPrototypeOf ||
|
|
38395
38411
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
38396
38412
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
38397
|
-
return extendStatics$
|
|
38413
|
+
return extendStatics$4(d, b);
|
|
38398
38414
|
};
|
|
38399
38415
|
|
|
38400
|
-
function __extends$
|
|
38401
|
-
extendStatics$
|
|
38416
|
+
function __extends$4(d, b) {
|
|
38417
|
+
extendStatics$4(d, b);
|
|
38402
38418
|
function __() { this.constructor = d; }
|
|
38403
38419
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
38404
38420
|
}
|
|
38405
38421
|
|
|
38406
|
-
var fragment$
|
|
38422
|
+
var fragment$2 = "varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n";
|
|
38407
38423
|
|
|
38408
|
-
var vertex$
|
|
38424
|
+
var vertex$1 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n";
|
|
38409
38425
|
|
|
38410
38426
|
/**
|
|
38411
38427
|
* The DisplacementFilter class uses the pixel values from the specified texture
|
|
@@ -38424,7 +38440,7 @@ var PIXI = (function (exports) {
|
|
|
38424
38440
|
* @memberof PIXI.filters
|
|
38425
38441
|
*/
|
|
38426
38442
|
var DisplacementFilter = /** @class */ (function (_super) {
|
|
38427
|
-
__extends$
|
|
38443
|
+
__extends$4(DisplacementFilter, _super);
|
|
38428
38444
|
/**
|
|
38429
38445
|
* @param {PIXI.Sprite} sprite - The sprite used for the displacement map. (make sure its added to the scene!)
|
|
38430
38446
|
* @param scale - The scale of the displacement
|
|
@@ -38433,7 +38449,7 @@ var PIXI = (function (exports) {
|
|
|
38433
38449
|
var _this = this;
|
|
38434
38450
|
var maskMatrix = new Matrix();
|
|
38435
38451
|
sprite.renderable = false;
|
|
38436
|
-
_this = _super.call(this, vertex$
|
|
38452
|
+
_this = _super.call(this, vertex$1, fragment$2, {
|
|
38437
38453
|
mapSampler: sprite._texture,
|
|
38438
38454
|
filterMatrix: maskMatrix,
|
|
38439
38455
|
scale: { x: 1, y: 1 },
|
|
@@ -38492,8 +38508,8 @@ var PIXI = (function (exports) {
|
|
|
38492
38508
|
}(Filter));
|
|
38493
38509
|
|
|
38494
38510
|
/*!
|
|
38495
|
-
* @pixi/filter-fxaa - v6.3.
|
|
38496
|
-
* Compiled
|
|
38511
|
+
* @pixi/filter-fxaa - v6.3.1
|
|
38512
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
38497
38513
|
*
|
|
38498
38514
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
|
38499
38515
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38515,22 +38531,22 @@ var PIXI = (function (exports) {
|
|
|
38515
38531
|
***************************************************************************** */
|
|
38516
38532
|
/* global Reflect, Promise */
|
|
38517
38533
|
|
|
38518
|
-
var extendStatics$
|
|
38519
|
-
extendStatics$
|
|
38534
|
+
var extendStatics$3 = function(d, b) {
|
|
38535
|
+
extendStatics$3 = Object.setPrototypeOf ||
|
|
38520
38536
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
38521
38537
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
38522
|
-
return extendStatics$
|
|
38538
|
+
return extendStatics$3(d, b);
|
|
38523
38539
|
};
|
|
38524
38540
|
|
|
38525
|
-
function __extends$
|
|
38526
|
-
extendStatics$
|
|
38541
|
+
function __extends$3(d, b) {
|
|
38542
|
+
extendStatics$3(d, b);
|
|
38527
38543
|
function __() { this.constructor = d; }
|
|
38528
38544
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
38529
38545
|
}
|
|
38530
38546
|
|
|
38531
|
-
var vertex
|
|
38547
|
+
var vertex = "\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n";
|
|
38532
38548
|
|
|
38533
|
-
var fragment$
|
|
38549
|
+
var fragment$1 = "varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it's\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n";
|
|
38534
38550
|
|
|
38535
38551
|
/**
|
|
38536
38552
|
* Basic FXAA (Fast Approximate Anti-Aliasing) implementation based on the code on geeks3d.com
|
|
@@ -38541,17 +38557,17 @@ var PIXI = (function (exports) {
|
|
|
38541
38557
|
* @memberof PIXI.filters
|
|
38542
38558
|
*/
|
|
38543
38559
|
var FXAAFilter = /** @class */ (function (_super) {
|
|
38544
|
-
__extends$
|
|
38560
|
+
__extends$3(FXAAFilter, _super);
|
|
38545
38561
|
function FXAAFilter() {
|
|
38546
38562
|
// TODO - needs work
|
|
38547
|
-
return _super.call(this, vertex
|
|
38563
|
+
return _super.call(this, vertex, fragment$1) || this;
|
|
38548
38564
|
}
|
|
38549
38565
|
return FXAAFilter;
|
|
38550
38566
|
}(Filter));
|
|
38551
38567
|
|
|
38552
38568
|
/*!
|
|
38553
|
-
* @pixi/filter-noise - v6.3.
|
|
38554
|
-
* Compiled
|
|
38569
|
+
* @pixi/filter-noise - v6.3.1
|
|
38570
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
38555
38571
|
*
|
|
38556
38572
|
* @pixi/filter-noise is licensed under the MIT License.
|
|
38557
38573
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38573,20 +38589,20 @@ var PIXI = (function (exports) {
|
|
|
38573
38589
|
***************************************************************************** */
|
|
38574
38590
|
/* global Reflect, Promise */
|
|
38575
38591
|
|
|
38576
|
-
var extendStatics$
|
|
38577
|
-
extendStatics$
|
|
38592
|
+
var extendStatics$2 = function(d, b) {
|
|
38593
|
+
extendStatics$2 = Object.setPrototypeOf ||
|
|
38578
38594
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
38579
38595
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
38580
|
-
return extendStatics$
|
|
38596
|
+
return extendStatics$2(d, b);
|
|
38581
38597
|
};
|
|
38582
38598
|
|
|
38583
|
-
function __extends$
|
|
38584
|
-
extendStatics$
|
|
38599
|
+
function __extends$2(d, b) {
|
|
38600
|
+
extendStatics$2(d, b);
|
|
38585
38601
|
function __() { this.constructor = d; }
|
|
38586
38602
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
38587
38603
|
}
|
|
38588
38604
|
|
|
38589
|
-
var fragment
|
|
38605
|
+
var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n";
|
|
38590
38606
|
|
|
38591
38607
|
/**
|
|
38592
38608
|
* A Noise effect filter.
|
|
@@ -38597,7 +38613,7 @@ var PIXI = (function (exports) {
|
|
|
38597
38613
|
* @author Vico @vicocotea
|
|
38598
38614
|
*/
|
|
38599
38615
|
var NoiseFilter = /** @class */ (function (_super) {
|
|
38600
|
-
__extends$
|
|
38616
|
+
__extends$2(NoiseFilter, _super);
|
|
38601
38617
|
/**
|
|
38602
38618
|
* @param {number} [noise=0.5] - The noise intensity, should be a normalized value in the range [0, 1].
|
|
38603
38619
|
* @param {number} [seed] - A random seed for the noise generation. Default is `Math.random()`.
|
|
@@ -38605,7 +38621,7 @@ var PIXI = (function (exports) {
|
|
|
38605
38621
|
function NoiseFilter(noise, seed) {
|
|
38606
38622
|
if (noise === void 0) { noise = 0.5; }
|
|
38607
38623
|
if (seed === void 0) { seed = Math.random(); }
|
|
38608
|
-
var _this = _super.call(this, defaultFilterVertex, fragment
|
|
38624
|
+
var _this = _super.call(this, defaultFilterVertex, fragment, {
|
|
38609
38625
|
uNoise: 0,
|
|
38610
38626
|
uSeed: 0,
|
|
38611
38627
|
}) || this;
|
|
@@ -38643,16 +38659,16 @@ var PIXI = (function (exports) {
|
|
|
38643
38659
|
}(Filter));
|
|
38644
38660
|
|
|
38645
38661
|
/*!
|
|
38646
|
-
* @pixi/mixin-cache-as-bitmap - v6.3.
|
|
38647
|
-
* Compiled
|
|
38662
|
+
* @pixi/mixin-cache-as-bitmap - v6.3.1
|
|
38663
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
38648
38664
|
*
|
|
38649
38665
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
|
38650
38666
|
* http://www.opensource.org/licenses/mit-license
|
|
38651
38667
|
*/
|
|
38652
38668
|
|
|
38653
38669
|
/*!
|
|
38654
|
-
* @pixi/constants - v6.3.
|
|
38655
|
-
* Compiled
|
|
38670
|
+
* @pixi/constants - v6.3.1
|
|
38671
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
38656
38672
|
*
|
|
38657
38673
|
* @pixi/constants is licensed under the MIT License.
|
|
38658
38674
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -38669,12 +38685,12 @@ var PIXI = (function (exports) {
|
|
|
38669
38685
|
* @property {number} WEBGL - Version 1 of WebGL
|
|
38670
38686
|
* @property {number} WEBGL2 - Version 2 of WebGL
|
|
38671
38687
|
*/
|
|
38672
|
-
var ENV
|
|
38688
|
+
var ENV;
|
|
38673
38689
|
(function (ENV) {
|
|
38674
38690
|
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
|
38675
38691
|
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
|
38676
38692
|
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
|
38677
|
-
})(ENV
|
|
38693
|
+
})(ENV || (ENV = {}));
|
|
38678
38694
|
/**
|
|
38679
38695
|
* Constant to identify the Renderer Type.
|
|
38680
38696
|
*
|
|
@@ -38686,12 +38702,12 @@ var PIXI = (function (exports) {
|
|
|
38686
38702
|
* @property {number} WEBGL - WebGL render type.
|
|
38687
38703
|
* @property {number} CANVAS - Canvas render type.
|
|
38688
38704
|
*/
|
|
38689
|
-
var RENDERER_TYPE
|
|
38705
|
+
var RENDERER_TYPE;
|
|
38690
38706
|
(function (RENDERER_TYPE) {
|
|
38691
38707
|
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
|
38692
38708
|
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
|
38693
38709
|
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
|
38694
|
-
})(RENDERER_TYPE
|
|
38710
|
+
})(RENDERER_TYPE || (RENDERER_TYPE = {}));
|
|
38695
38711
|
/**
|
|
38696
38712
|
* Bitwise OR of masks that indicate the buffers to be cleared.
|
|
38697
38713
|
*
|
|
@@ -38703,12 +38719,12 @@ var PIXI = (function (exports) {
|
|
|
38703
38719
|
* @property {number} DEPTH - Indicates the depth buffer.
|
|
38704
38720
|
* @property {number} STENCIL - Indicates the stencil buffer.
|
|
38705
38721
|
*/
|
|
38706
|
-
var BUFFER_BITS
|
|
38722
|
+
var BUFFER_BITS;
|
|
38707
38723
|
(function (BUFFER_BITS) {
|
|
38708
38724
|
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
|
38709
38725
|
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
|
38710
38726
|
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
|
38711
|
-
})(BUFFER_BITS
|
|
38727
|
+
})(BUFFER_BITS || (BUFFER_BITS = {}));
|
|
38712
38728
|
/**
|
|
38713
38729
|
* Various blend modes supported by PIXI.
|
|
38714
38730
|
*
|
|
@@ -38751,7 +38767,7 @@ var PIXI = (function (exports) {
|
|
|
38751
38767
|
* @property {number} ERASE
|
|
38752
38768
|
* @property {number} XOR
|
|
38753
38769
|
*/
|
|
38754
|
-
var BLEND_MODES
|
|
38770
|
+
var BLEND_MODES;
|
|
38755
38771
|
(function (BLEND_MODES) {
|
|
38756
38772
|
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
|
38757
38773
|
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
|
@@ -38785,7 +38801,7 @@ var PIXI = (function (exports) {
|
|
|
38785
38801
|
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
|
38786
38802
|
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
|
38787
38803
|
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
|
38788
|
-
})(BLEND_MODES
|
|
38804
|
+
})(BLEND_MODES || (BLEND_MODES = {}));
|
|
38789
38805
|
/**
|
|
38790
38806
|
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
|
38791
38807
|
* under certain situations and renderers.
|
|
@@ -38802,7 +38818,7 @@ var PIXI = (function (exports) {
|
|
|
38802
38818
|
* @property {number} TRIANGLE_STRIP
|
|
38803
38819
|
* @property {number} TRIANGLE_FAN
|
|
38804
38820
|
*/
|
|
38805
|
-
var DRAW_MODES
|
|
38821
|
+
var DRAW_MODES;
|
|
38806
38822
|
(function (DRAW_MODES) {
|
|
38807
38823
|
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
|
38808
38824
|
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
|
@@ -38811,7 +38827,7 @@ var PIXI = (function (exports) {
|
|
|
38811
38827
|
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
|
38812
38828
|
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
|
38813
38829
|
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
|
38814
|
-
})(DRAW_MODES
|
|
38830
|
+
})(DRAW_MODES || (DRAW_MODES = {}));
|
|
38815
38831
|
/**
|
|
38816
38832
|
* Various GL texture/resources formats.
|
|
38817
38833
|
*
|
|
@@ -38833,7 +38849,7 @@ var PIXI = (function (exports) {
|
|
|
38833
38849
|
* @property {number} DEPTH_COMPONENT=6402
|
|
38834
38850
|
* @property {number} DEPTH_STENCIL=34041
|
|
38835
38851
|
*/
|
|
38836
|
-
var FORMATS
|
|
38852
|
+
var FORMATS;
|
|
38837
38853
|
(function (FORMATS) {
|
|
38838
38854
|
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
|
38839
38855
|
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
|
@@ -38848,7 +38864,7 @@ var PIXI = (function (exports) {
|
|
|
38848
38864
|
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
|
38849
38865
|
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
|
38850
38866
|
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
|
38851
|
-
})(FORMATS
|
|
38867
|
+
})(FORMATS || (FORMATS = {}));
|
|
38852
38868
|
/**
|
|
38853
38869
|
* Various GL target types.
|
|
38854
38870
|
*
|
|
@@ -38866,7 +38882,7 @@ var PIXI = (function (exports) {
|
|
|
38866
38882
|
* @property {number} TEXTURE_CUBE_MAP_POSITIVE_Z=34073
|
|
38867
38883
|
* @property {number} TEXTURE_CUBE_MAP_NEGATIVE_Z=34074
|
|
38868
38884
|
*/
|
|
38869
|
-
var TARGETS
|
|
38885
|
+
var TARGETS;
|
|
38870
38886
|
(function (TARGETS) {
|
|
38871
38887
|
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
38872
38888
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
@@ -38877,7 +38893,7 @@ var PIXI = (function (exports) {
|
|
|
38877
38893
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
|
38878
38894
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
|
38879
38895
|
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
|
38880
|
-
})(TARGETS
|
|
38896
|
+
})(TARGETS || (TARGETS = {}));
|
|
38881
38897
|
/**
|
|
38882
38898
|
* Various GL data format types.
|
|
38883
38899
|
*
|
|
@@ -38902,7 +38918,7 @@ var PIXI = (function (exports) {
|
|
|
38902
38918
|
* @property {number} FLOAT_32_UNSIGNED_INT_24_8_REV=36269
|
|
38903
38919
|
* @property {number} HALF_FLOAT=36193
|
|
38904
38920
|
*/
|
|
38905
|
-
var TYPES
|
|
38921
|
+
var TYPES;
|
|
38906
38922
|
(function (TYPES) {
|
|
38907
38923
|
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
38908
38924
|
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
@@ -38920,7 +38936,7 @@ var PIXI = (function (exports) {
|
|
|
38920
38936
|
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
|
38921
38937
|
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
|
38922
38938
|
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
|
38923
|
-
})(TYPES
|
|
38939
|
+
})(TYPES || (TYPES = {}));
|
|
38924
38940
|
/**
|
|
38925
38941
|
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
|
38926
38942
|
* WebGL1 works only with FLOAT.
|
|
@@ -38933,12 +38949,12 @@ var PIXI = (function (exports) {
|
|
|
38933
38949
|
* @property {number} INT=1
|
|
38934
38950
|
* @property {number} UINT=2
|
|
38935
38951
|
*/
|
|
38936
|
-
var SAMPLER_TYPES
|
|
38952
|
+
var SAMPLER_TYPES;
|
|
38937
38953
|
(function (SAMPLER_TYPES) {
|
|
38938
38954
|
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
|
38939
38955
|
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
|
38940
38956
|
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
|
38941
|
-
})(SAMPLER_TYPES
|
|
38957
|
+
})(SAMPLER_TYPES || (SAMPLER_TYPES = {}));
|
|
38942
38958
|
/**
|
|
38943
38959
|
* The scale modes that are supported by pixi.
|
|
38944
38960
|
*
|
|
@@ -38952,11 +38968,11 @@ var PIXI = (function (exports) {
|
|
|
38952
38968
|
* @property {number} LINEAR Smooth scaling
|
|
38953
38969
|
* @property {number} NEAREST Pixelating scaling
|
|
38954
38970
|
*/
|
|
38955
|
-
var SCALE_MODES
|
|
38971
|
+
var SCALE_MODES;
|
|
38956
38972
|
(function (SCALE_MODES) {
|
|
38957
38973
|
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
|
38958
38974
|
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
|
38959
|
-
})(SCALE_MODES
|
|
38975
|
+
})(SCALE_MODES || (SCALE_MODES = {}));
|
|
38960
38976
|
/**
|
|
38961
38977
|
* The wrap modes that are supported by pixi.
|
|
38962
38978
|
*
|
|
@@ -38975,12 +38991,12 @@ var PIXI = (function (exports) {
|
|
|
38975
38991
|
* @property {number} REPEAT - The texture uvs tile and repeat
|
|
38976
38992
|
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
|
38977
38993
|
*/
|
|
38978
|
-
var WRAP_MODES
|
|
38994
|
+
var WRAP_MODES;
|
|
38979
38995
|
(function (WRAP_MODES) {
|
|
38980
38996
|
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
|
38981
38997
|
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
|
38982
38998
|
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
|
38983
|
-
})(WRAP_MODES
|
|
38999
|
+
})(WRAP_MODES || (WRAP_MODES = {}));
|
|
38984
39000
|
/**
|
|
38985
39001
|
* Mipmap filtering modes that are supported by pixi.
|
|
38986
39002
|
*
|
|
@@ -39001,13 +39017,13 @@ var PIXI = (function (exports) {
|
|
|
39001
39017
|
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
|
39002
39018
|
* that supports buffering each level-of-detail.
|
|
39003
39019
|
*/
|
|
39004
|
-
var MIPMAP_MODES
|
|
39020
|
+
var MIPMAP_MODES;
|
|
39005
39021
|
(function (MIPMAP_MODES) {
|
|
39006
39022
|
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
|
39007
39023
|
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
|
39008
39024
|
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
|
39009
39025
|
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
|
39010
|
-
})(MIPMAP_MODES
|
|
39026
|
+
})(MIPMAP_MODES || (MIPMAP_MODES = {}));
|
|
39011
39027
|
/**
|
|
39012
39028
|
* How to treat textures with premultiplied alpha
|
|
39013
39029
|
*
|
|
@@ -39025,7 +39041,7 @@ var PIXI = (function (exports) {
|
|
|
39025
39041
|
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
|
39026
39042
|
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
|
39027
39043
|
*/
|
|
39028
|
-
var ALPHA_MODES
|
|
39044
|
+
var ALPHA_MODES;
|
|
39029
39045
|
(function (ALPHA_MODES) {
|
|
39030
39046
|
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
|
39031
39047
|
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
|
@@ -39034,7 +39050,7 @@ var PIXI = (function (exports) {
|
|
|
39034
39050
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
|
39035
39051
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
|
39036
39052
|
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
|
39037
|
-
})(ALPHA_MODES
|
|
39053
|
+
})(ALPHA_MODES || (ALPHA_MODES = {}));
|
|
39038
39054
|
/**
|
|
39039
39055
|
* Configure whether filter textures are cleared after binding.
|
|
39040
39056
|
*
|
|
@@ -39052,7 +39068,7 @@ var PIXI = (function (exports) {
|
|
|
39052
39068
|
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
|
39053
39069
|
* @property {number} AUTO - Alias for BLIT
|
|
39054
39070
|
*/
|
|
39055
|
-
var CLEAR_MODES
|
|
39071
|
+
var CLEAR_MODES;
|
|
39056
39072
|
(function (CLEAR_MODES) {
|
|
39057
39073
|
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
|
39058
39074
|
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
|
@@ -39060,7 +39076,7 @@ var PIXI = (function (exports) {
|
|
|
39060
39076
|
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
|
39061
39077
|
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
|
39062
39078
|
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
|
39063
|
-
})(CLEAR_MODES
|
|
39079
|
+
})(CLEAR_MODES || (CLEAR_MODES = {}));
|
|
39064
39080
|
/**
|
|
39065
39081
|
* The gc modes that are supported by pixi.
|
|
39066
39082
|
*
|
|
@@ -39080,11 +39096,11 @@ var PIXI = (function (exports) {
|
|
|
39080
39096
|
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
|
39081
39097
|
* @property {number} MANUAL - Garbage collection will need to be called manually
|
|
39082
39098
|
*/
|
|
39083
|
-
var GC_MODES
|
|
39099
|
+
var GC_MODES;
|
|
39084
39100
|
(function (GC_MODES) {
|
|
39085
39101
|
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
|
39086
39102
|
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
|
39087
|
-
})(GC_MODES
|
|
39103
|
+
})(GC_MODES || (GC_MODES = {}));
|
|
39088
39104
|
/**
|
|
39089
39105
|
* Constants that specify float precision in shaders.
|
|
39090
39106
|
*
|
|
@@ -39097,12 +39113,12 @@ var PIXI = (function (exports) {
|
|
|
39097
39113
|
* @property {string} MEDIUM='mediump'
|
|
39098
39114
|
* @property {string} HIGH='highp'
|
|
39099
39115
|
*/
|
|
39100
|
-
var PRECISION
|
|
39116
|
+
var PRECISION;
|
|
39101
39117
|
(function (PRECISION) {
|
|
39102
39118
|
PRECISION["LOW"] = "lowp";
|
|
39103
39119
|
PRECISION["MEDIUM"] = "mediump";
|
|
39104
39120
|
PRECISION["HIGH"] = "highp";
|
|
39105
|
-
})(PRECISION
|
|
39121
|
+
})(PRECISION || (PRECISION = {}));
|
|
39106
39122
|
/**
|
|
39107
39123
|
* Constants for mask implementations.
|
|
39108
39124
|
* We use `type` suffix because it leads to very different behaviours
|
|
@@ -39116,13 +39132,13 @@ var PIXI = (function (exports) {
|
|
|
39116
39132
|
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
|
39117
39133
|
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
|
39118
39134
|
*/
|
|
39119
|
-
var MASK_TYPES
|
|
39135
|
+
var MASK_TYPES;
|
|
39120
39136
|
(function (MASK_TYPES) {
|
|
39121
39137
|
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
|
39122
39138
|
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
|
39123
39139
|
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
|
39124
39140
|
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
|
39125
|
-
})(MASK_TYPES
|
|
39141
|
+
})(MASK_TYPES || (MASK_TYPES = {}));
|
|
39126
39142
|
/**
|
|
39127
39143
|
* Constants for multi-sampling antialiasing.
|
|
39128
39144
|
*
|
|
@@ -39137,13 +39153,13 @@ var PIXI = (function (exports) {
|
|
|
39137
39153
|
* @property {number} MEDIUM - Try 4 samples
|
|
39138
39154
|
* @property {number} HIGH - Try 8 samples
|
|
39139
39155
|
*/
|
|
39140
|
-
var MSAA_QUALITY
|
|
39156
|
+
var MSAA_QUALITY;
|
|
39141
39157
|
(function (MSAA_QUALITY) {
|
|
39142
39158
|
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
|
39143
39159
|
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
|
39144
39160
|
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
|
39145
39161
|
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
|
39146
|
-
})(MSAA_QUALITY
|
|
39162
|
+
})(MSAA_QUALITY || (MSAA_QUALITY = {}));
|
|
39147
39163
|
/**
|
|
39148
39164
|
* Constants for various buffer types in Pixi
|
|
39149
39165
|
*
|
|
@@ -39157,19 +39173,19 @@ var PIXI = (function (exports) {
|
|
|
39157
39173
|
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
|
39158
39174
|
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
|
39159
39175
|
*/
|
|
39160
|
-
var BUFFER_TYPE
|
|
39176
|
+
var BUFFER_TYPE;
|
|
39161
39177
|
(function (BUFFER_TYPE) {
|
|
39162
39178
|
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
39163
39179
|
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
39164
39180
|
// NOT YET SUPPORTED
|
|
39165
39181
|
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
|
39166
|
-
})(BUFFER_TYPE
|
|
39182
|
+
})(BUFFER_TYPE || (BUFFER_TYPE = {}));
|
|
39167
39183
|
|
|
39168
39184
|
var _tempMatrix = new Matrix();
|
|
39169
39185
|
DisplayObject.prototype._cacheAsBitmap = false;
|
|
39170
39186
|
DisplayObject.prototype._cacheData = null;
|
|
39171
39187
|
DisplayObject.prototype._cacheAsBitmapResolution = null;
|
|
39172
|
-
DisplayObject.prototype._cacheAsBitmapMultisample = MSAA_QUALITY
|
|
39188
|
+
DisplayObject.prototype._cacheAsBitmapMultisample = MSAA_QUALITY.NONE;
|
|
39173
39189
|
// figured there's no point adding ALL the extra variables to prototype.
|
|
39174
39190
|
// this model can hold the information needed. This can also be generated on demand as
|
|
39175
39191
|
// most objects are not cached as bitmaps.
|
|
@@ -39542,8 +39558,8 @@ var PIXI = (function (exports) {
|
|
|
39542
39558
|
};
|
|
39543
39559
|
|
|
39544
39560
|
/*!
|
|
39545
|
-
* @pixi/mixin-get-child-by-name - v6.3.
|
|
39546
|
-
* Compiled
|
|
39561
|
+
* @pixi/mixin-get-child-by-name - v6.3.1
|
|
39562
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
39547
39563
|
*
|
|
39548
39564
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
39549
39565
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39589,8 +39605,8 @@ var PIXI = (function (exports) {
|
|
|
39589
39605
|
};
|
|
39590
39606
|
|
|
39591
39607
|
/*!
|
|
39592
|
-
* @pixi/mixin-get-global-position - v6.3.
|
|
39593
|
-
* Compiled
|
|
39608
|
+
* @pixi/mixin-get-global-position - v6.3.1
|
|
39609
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
39594
39610
|
*
|
|
39595
39611
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
39596
39612
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39621,8 +39637,8 @@ var PIXI = (function (exports) {
|
|
|
39621
39637
|
};
|
|
39622
39638
|
|
|
39623
39639
|
/*!
|
|
39624
|
-
* @pixi/mesh-extras - v6.3.
|
|
39625
|
-
* Compiled
|
|
39640
|
+
* @pixi/mesh-extras - v6.3.1
|
|
39641
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
39626
39642
|
*
|
|
39627
39643
|
* @pixi/mesh-extras is licensed under the MIT License.
|
|
39628
39644
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -39644,15 +39660,15 @@ var PIXI = (function (exports) {
|
|
|
39644
39660
|
***************************************************************************** */
|
|
39645
39661
|
/* global Reflect, Promise */
|
|
39646
39662
|
|
|
39647
|
-
var extendStatics$
|
|
39648
|
-
extendStatics$
|
|
39663
|
+
var extendStatics$1 = function(d, b) {
|
|
39664
|
+
extendStatics$1 = Object.setPrototypeOf ||
|
|
39649
39665
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
39650
39666
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
39651
|
-
return extendStatics$
|
|
39667
|
+
return extendStatics$1(d, b);
|
|
39652
39668
|
};
|
|
39653
39669
|
|
|
39654
|
-
function __extends$
|
|
39655
|
-
extendStatics$
|
|
39670
|
+
function __extends$1(d, b) {
|
|
39671
|
+
extendStatics$1(d, b);
|
|
39656
39672
|
function __() { this.constructor = d; }
|
|
39657
39673
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39658
39674
|
}
|
|
@@ -39661,7 +39677,7 @@ var PIXI = (function (exports) {
|
|
|
39661
39677
|
* @memberof PIXI
|
|
39662
39678
|
*/
|
|
39663
39679
|
var PlaneGeometry = /** @class */ (function (_super) {
|
|
39664
|
-
__extends$
|
|
39680
|
+
__extends$1(PlaneGeometry, _super);
|
|
39665
39681
|
/**
|
|
39666
39682
|
* @param width - The width of the plane.
|
|
39667
39683
|
* @param height - The height of the plane.
|
|
@@ -39734,7 +39750,7 @@ var PIXI = (function (exports) {
|
|
|
39734
39750
|
* @memberof PIXI
|
|
39735
39751
|
*/
|
|
39736
39752
|
var RopeGeometry = /** @class */ (function (_super) {
|
|
39737
|
-
__extends$
|
|
39753
|
+
__extends$1(RopeGeometry, _super);
|
|
39738
39754
|
/**
|
|
39739
39755
|
* @param width - The width (i.e., thickness) of the rope.
|
|
39740
39756
|
* @param points - An array of {@link PIXI.Point} objects to construct this rope.
|
|
@@ -39894,7 +39910,7 @@ var PIXI = (function (exports) {
|
|
|
39894
39910
|
* @memberof PIXI
|
|
39895
39911
|
*/
|
|
39896
39912
|
var SimpleRope = /** @class */ (function (_super) {
|
|
39897
|
-
__extends$
|
|
39913
|
+
__extends$1(SimpleRope, _super);
|
|
39898
39914
|
/**
|
|
39899
39915
|
* @param texture - The texture to use on the rope.
|
|
39900
39916
|
* @param points - An array of {@link PIXI.Point} objects to construct this rope.
|
|
@@ -39944,7 +39960,7 @@ var PIXI = (function (exports) {
|
|
|
39944
39960
|
* @memberof PIXI
|
|
39945
39961
|
*/
|
|
39946
39962
|
var SimplePlane = /** @class */ (function (_super) {
|
|
39947
|
-
__extends$
|
|
39963
|
+
__extends$1(SimplePlane, _super);
|
|
39948
39964
|
/**
|
|
39949
39965
|
* @param texture - The texture to use on the SimplePlane.
|
|
39950
39966
|
* @param verticesX - The number of vertices in the x-axis
|
|
@@ -40017,7 +40033,7 @@ var PIXI = (function (exports) {
|
|
|
40017
40033
|
* @memberof PIXI
|
|
40018
40034
|
*/
|
|
40019
40035
|
var SimpleMesh = /** @class */ (function (_super) {
|
|
40020
|
-
__extends$
|
|
40036
|
+
__extends$1(SimpleMesh, _super);
|
|
40021
40037
|
/**
|
|
40022
40038
|
* @param texture - The texture to use
|
|
40023
40039
|
* @param {Float32Array} [vertices] - if you want to specify the vertices
|
|
@@ -40088,7 +40104,7 @@ var PIXI = (function (exports) {
|
|
|
40088
40104
|
* @memberof PIXI
|
|
40089
40105
|
*/
|
|
40090
40106
|
var NineSlicePlane = /** @class */ (function (_super) {
|
|
40091
|
-
__extends$
|
|
40107
|
+
__extends$1(NineSlicePlane, _super);
|
|
40092
40108
|
/**
|
|
40093
40109
|
* @param texture - The texture to use on the NineSlicePlane.
|
|
40094
40110
|
* @param {number} [leftWidth=10] - size of the left vertical bar (A)
|
|
@@ -40256,8 +40272,8 @@ var PIXI = (function (exports) {
|
|
|
40256
40272
|
}(SimplePlane));
|
|
40257
40273
|
|
|
40258
40274
|
/*!
|
|
40259
|
-
* @pixi/sprite-animated - v6.3.
|
|
40260
|
-
* Compiled
|
|
40275
|
+
* @pixi/sprite-animated - v6.3.1
|
|
40276
|
+
* Compiled Tue, 03 May 2022 13:21:19 UTC
|
|
40261
40277
|
*
|
|
40262
40278
|
* @pixi/sprite-animated is licensed under the MIT License.
|
|
40263
40279
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -40279,15 +40295,15 @@ var PIXI = (function (exports) {
|
|
|
40279
40295
|
***************************************************************************** */
|
|
40280
40296
|
/* global Reflect, Promise */
|
|
40281
40297
|
|
|
40282
|
-
var extendStatics
|
|
40283
|
-
extendStatics
|
|
40298
|
+
var extendStatics = function(d, b) {
|
|
40299
|
+
extendStatics = Object.setPrototypeOf ||
|
|
40284
40300
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
40285
40301
|
function (d, b) { for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } } };
|
|
40286
|
-
return extendStatics
|
|
40302
|
+
return extendStatics(d, b);
|
|
40287
40303
|
};
|
|
40288
40304
|
|
|
40289
|
-
function __extends
|
|
40290
|
-
extendStatics
|
|
40305
|
+
function __extends(d, b) {
|
|
40306
|
+
extendStatics(d, b);
|
|
40291
40307
|
function __() { this.constructor = d; }
|
|
40292
40308
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
40293
40309
|
}
|
|
@@ -40324,7 +40340,7 @@ var PIXI = (function (exports) {
|
|
|
40324
40340
|
* @memberof PIXI
|
|
40325
40341
|
*/
|
|
40326
40342
|
var AnimatedSprite = /** @class */ (function (_super) {
|
|
40327
|
-
__extends
|
|
40343
|
+
__extends(AnimatedSprite, _super);
|
|
40328
40344
|
/**
|
|
40329
40345
|
* @param textures - An array of {@link PIXI.Texture} or frame
|
|
40330
40346
|
* objects that make up the animation.
|
|
@@ -40629,7 +40645,7 @@ var PIXI = (function (exports) {
|
|
|
40629
40645
|
* @name VERSION
|
|
40630
40646
|
* @type {string}
|
|
40631
40647
|
*/
|
|
40632
|
-
var VERSION
|
|
40648
|
+
var VERSION = '6.3.1';
|
|
40633
40649
|
/**
|
|
40634
40650
|
* @namespace PIXI
|
|
40635
40651
|
*/
|
|
@@ -40804,7 +40820,7 @@ var PIXI = (function (exports) {
|
|
|
40804
40820
|
exports.TimeLimiter = TimeLimiter;
|
|
40805
40821
|
exports.Transform = Transform;
|
|
40806
40822
|
exports.UniformGroup = UniformGroup;
|
|
40807
|
-
exports.VERSION = VERSION
|
|
40823
|
+
exports.VERSION = VERSION;
|
|
40808
40824
|
exports.VideoResource = VideoResource;
|
|
40809
40825
|
exports.ViewableBuffer = ViewableBuffer;
|
|
40810
40826
|
exports.accessibleTarget = accessibleTarget;
|
|
@@ -40813,7 +40829,7 @@ var PIXI = (function (exports) {
|
|
|
40813
40829
|
exports.checkMaxIfStatementsInShader = checkMaxIfStatementsInShader;
|
|
40814
40830
|
exports.createUBOElements = createUBOElements;
|
|
40815
40831
|
exports.defaultFilterVertex = defaultFilterVertex;
|
|
40816
|
-
exports.defaultVertex = defaultVertex$
|
|
40832
|
+
exports.defaultVertex = defaultVertex$1;
|
|
40817
40833
|
exports.filters = filters;
|
|
40818
40834
|
exports.generateProgram = generateProgram;
|
|
40819
40835
|
exports.generateUniformBufferSync = generateUniformBufferSync;
|
|
@@ -40822,14 +40838,16 @@ var PIXI = (function (exports) {
|
|
|
40822
40838
|
exports.graphicsUtils = graphicsUtils;
|
|
40823
40839
|
exports.groupD8 = groupD8;
|
|
40824
40840
|
exports.interactiveTarget = interactiveTarget;
|
|
40825
|
-
exports.isMobile = isMobile
|
|
40841
|
+
exports.isMobile = isMobile;
|
|
40826
40842
|
exports.resources = resources;
|
|
40827
40843
|
exports.settings = settings;
|
|
40828
40844
|
exports.systems = systems;
|
|
40829
40845
|
exports.uniformParsers = uniformParsers;
|
|
40830
40846
|
exports.utils = utils;
|
|
40831
40847
|
|
|
40848
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
40849
|
+
|
|
40832
40850
|
return exports;
|
|
40833
40851
|
|
|
40834
|
-
}({})
|
|
40852
|
+
})({});
|
|
40835
40853
|
//# sourceMappingURL=pixi.js.map
|