lyb-pixi-js 1.11.33 → 1.12.0
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/Components/Base/LibPixiArc.d.ts +16 -0
- package/Components/Base/LibPixiArc.js +14 -0
- package/Components/Base/LibPixiOval.d.ts +5 -0
- package/Components/Base/LibPixiOval.js +10 -0
- package/Components/Base/LibPixiRound.d.ts +5 -0
- package/Components/Base/LibPixiRound.js +9 -0
- package/Components/Base/LibPixiRoundedRect.d.ts +5 -0
- package/Components/Base/LibPixiRoundedRect.js +10 -0
- package/Components/Custom/LibPixiScrollNum.js +1 -1
- package/Components/Custom/LibPixiTurntable.d.ts +6 -0
- package/Components/Custom/LibPixiTurntable.js +14 -0
- package/README.md +62 -27
- package/Utils/LibPixiDialogManager/ui/LibPixiDialog.js +1 -1
- package/libPixiJs.d.ts +52 -32
- package/libPixiJs.js +53 -32
- package/lyb-pixi.js +299 -251
- package/package.json +1 -1
package/lyb-pixi.js
CHANGED
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
var ys = arrObjKeys(obj, inspect2);
|
|
1316
1316
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1317
1317
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
1318
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
1318
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1319
1319
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
1320
1320
|
var tag2 = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
1321
1321
|
if (ys.length === 0) {
|
|
@@ -1336,29 +1336,26 @@
|
|
|
1336
1336
|
function quote(s2) {
|
|
1337
1337
|
return $replace$1.call(String(s2), /"/g, """);
|
|
1338
1338
|
}
|
|
1339
|
-
function canTrustToString(obj) {
|
|
1340
|
-
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
1341
|
-
}
|
|
1342
1339
|
function isArray$3(obj) {
|
|
1343
|
-
return toStr
|
|
1340
|
+
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1344
1341
|
}
|
|
1345
1342
|
function isDate(obj) {
|
|
1346
|
-
return toStr
|
|
1343
|
+
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1347
1344
|
}
|
|
1348
1345
|
function isRegExp$1(obj) {
|
|
1349
|
-
return toStr
|
|
1346
|
+
return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1350
1347
|
}
|
|
1351
1348
|
function isError(obj) {
|
|
1352
|
-
return toStr
|
|
1349
|
+
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1353
1350
|
}
|
|
1354
1351
|
function isString(obj) {
|
|
1355
|
-
return toStr
|
|
1352
|
+
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1356
1353
|
}
|
|
1357
1354
|
function isNumber(obj) {
|
|
1358
|
-
return toStr
|
|
1355
|
+
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1359
1356
|
}
|
|
1360
1357
|
function isBoolean(obj) {
|
|
1361
|
-
return toStr
|
|
1358
|
+
return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1362
1359
|
}
|
|
1363
1360
|
function isSymbol(obj) {
|
|
1364
1361
|
if (hasShammedSymbols) {
|
|
@@ -1394,7 +1391,7 @@
|
|
|
1394
1391
|
function has$3(obj, key) {
|
|
1395
1392
|
return hasOwn$1.call(obj, key);
|
|
1396
1393
|
}
|
|
1397
|
-
function toStr
|
|
1394
|
+
function toStr(obj) {
|
|
1398
1395
|
return objectToString.call(obj);
|
|
1399
1396
|
}
|
|
1400
1397
|
function nameOf(f2) {
|
|
@@ -1703,7 +1700,7 @@
|
|
|
1703
1700
|
var uri = URIError;
|
|
1704
1701
|
var abs$2 = Math.abs;
|
|
1705
1702
|
var floor$2 = Math.floor;
|
|
1706
|
-
var max$
|
|
1703
|
+
var max$2 = Math.max;
|
|
1707
1704
|
var min$2 = Math.min;
|
|
1708
1705
|
var pow$2 = Math.pow;
|
|
1709
1706
|
var round$3 = Math.round;
|
|
@@ -1836,78 +1833,102 @@
|
|
|
1836
1833
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
1837
1834
|
return Object_getPrototypeOf;
|
|
1838
1835
|
}
|
|
1839
|
-
var
|
|
1840
|
-
var
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
1854
|
-
var arr = [];
|
|
1855
|
-
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1856
|
-
arr[j2] = arrLike[i2];
|
|
1857
|
-
}
|
|
1858
|
-
return arr;
|
|
1859
|
-
};
|
|
1860
|
-
var joiny = function(arr, joiner) {
|
|
1861
|
-
var str = "";
|
|
1862
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1863
|
-
str += arr[i2];
|
|
1864
|
-
if (i2 + 1 < arr.length) {
|
|
1865
|
-
str += joiner;
|
|
1836
|
+
var implementation;
|
|
1837
|
+
var hasRequiredImplementation;
|
|
1838
|
+
function requireImplementation() {
|
|
1839
|
+
if (hasRequiredImplementation)
|
|
1840
|
+
return implementation;
|
|
1841
|
+
hasRequiredImplementation = 1;
|
|
1842
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
1843
|
+
var toStr2 = Object.prototype.toString;
|
|
1844
|
+
var max2 = Math.max;
|
|
1845
|
+
var funcType = "[object Function]";
|
|
1846
|
+
var concatty = function concatty2(a2, b2) {
|
|
1847
|
+
var arr = [];
|
|
1848
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
1849
|
+
arr[i2] = a2[i2];
|
|
1866
1850
|
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
if (
|
|
1884
|
-
|
|
1851
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
1852
|
+
arr[j2 + a2.length] = b2[j2];
|
|
1853
|
+
}
|
|
1854
|
+
return arr;
|
|
1855
|
+
};
|
|
1856
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
1857
|
+
var arr = [];
|
|
1858
|
+
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1859
|
+
arr[j2] = arrLike[i2];
|
|
1860
|
+
}
|
|
1861
|
+
return arr;
|
|
1862
|
+
};
|
|
1863
|
+
var joiny = function(arr, joiner) {
|
|
1864
|
+
var str = "";
|
|
1865
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1866
|
+
str += arr[i2];
|
|
1867
|
+
if (i2 + 1 < arr.length) {
|
|
1868
|
+
str += joiner;
|
|
1885
1869
|
}
|
|
1886
|
-
return this;
|
|
1887
1870
|
}
|
|
1888
|
-
return
|
|
1889
|
-
that,
|
|
1890
|
-
concatty(args, arguments)
|
|
1891
|
-
);
|
|
1871
|
+
return str;
|
|
1892
1872
|
};
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
var
|
|
1873
|
+
implementation = function bind2(that) {
|
|
1874
|
+
var target = this;
|
|
1875
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
1876
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1877
|
+
}
|
|
1878
|
+
var args = slicy(arguments, 1);
|
|
1879
|
+
var bound;
|
|
1880
|
+
var binder = function() {
|
|
1881
|
+
if (this instanceof bound) {
|
|
1882
|
+
var result = target.apply(
|
|
1883
|
+
this,
|
|
1884
|
+
concatty(args, arguments)
|
|
1885
|
+
);
|
|
1886
|
+
if (Object(result) === result) {
|
|
1887
|
+
return result;
|
|
1888
|
+
}
|
|
1889
|
+
return this;
|
|
1890
|
+
}
|
|
1891
|
+
return target.apply(
|
|
1892
|
+
that,
|
|
1893
|
+
concatty(args, arguments)
|
|
1894
|
+
);
|
|
1901
1895
|
};
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1896
|
+
var boundLength = max2(0, target.length - args.length);
|
|
1897
|
+
var boundArgs = [];
|
|
1898
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
1899
|
+
boundArgs[i2] = "$" + i2;
|
|
1900
|
+
}
|
|
1901
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
1902
|
+
if (target.prototype) {
|
|
1903
|
+
var Empty = function Empty2() {
|
|
1904
|
+
};
|
|
1905
|
+
Empty.prototype = target.prototype;
|
|
1906
|
+
bound.prototype = new Empty();
|
|
1907
|
+
Empty.prototype = null;
|
|
1908
|
+
}
|
|
1909
|
+
return bound;
|
|
1910
|
+
};
|
|
1911
|
+
return implementation;
|
|
1912
|
+
}
|
|
1913
|
+
var functionBind;
|
|
1914
|
+
var hasRequiredFunctionBind;
|
|
1915
|
+
function requireFunctionBind() {
|
|
1916
|
+
if (hasRequiredFunctionBind)
|
|
1917
|
+
return functionBind;
|
|
1918
|
+
hasRequiredFunctionBind = 1;
|
|
1919
|
+
var implementation2 = requireImplementation();
|
|
1920
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
1921
|
+
return functionBind;
|
|
1922
|
+
}
|
|
1923
|
+
var functionCall;
|
|
1924
|
+
var hasRequiredFunctionCall;
|
|
1925
|
+
function requireFunctionCall() {
|
|
1926
|
+
if (hasRequiredFunctionCall)
|
|
1927
|
+
return functionCall;
|
|
1928
|
+
hasRequiredFunctionCall = 1;
|
|
1929
|
+
functionCall = Function.prototype.call;
|
|
1930
|
+
return functionCall;
|
|
1931
|
+
}
|
|
1911
1932
|
var functionApply;
|
|
1912
1933
|
var hasRequiredFunctionApply;
|
|
1913
1934
|
function requireFunctionApply() {
|
|
@@ -1918,14 +1939,14 @@
|
|
|
1918
1939
|
return functionApply;
|
|
1919
1940
|
}
|
|
1920
1941
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
1921
|
-
var bind$2 =
|
|
1942
|
+
var bind$2 = requireFunctionBind();
|
|
1922
1943
|
var $apply$1 = requireFunctionApply();
|
|
1923
|
-
var $call$2 =
|
|
1944
|
+
var $call$2 = requireFunctionCall();
|
|
1924
1945
|
var $reflectApply = reflectApply;
|
|
1925
1946
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
1926
|
-
var bind$1 =
|
|
1947
|
+
var bind$1 = requireFunctionBind();
|
|
1927
1948
|
var $TypeError$4 = type;
|
|
1928
|
-
var $call$1 =
|
|
1949
|
+
var $call$1 = requireFunctionCall();
|
|
1929
1950
|
var $actualApply = actualApply;
|
|
1930
1951
|
var callBindApplyHelpers = function callBindBasic2(args) {
|
|
1931
1952
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -1994,7 +2015,7 @@
|
|
|
1994
2015
|
hasRequiredHasown = 1;
|
|
1995
2016
|
var call = Function.prototype.call;
|
|
1996
2017
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
1997
|
-
var bind2 =
|
|
2018
|
+
var bind2 = requireFunctionBind();
|
|
1998
2019
|
hasown = bind2.call(call, $hasOwn);
|
|
1999
2020
|
return hasown;
|
|
2000
2021
|
}
|
|
@@ -2009,7 +2030,7 @@
|
|
|
2009
2030
|
var $URIError = uri;
|
|
2010
2031
|
var abs$1 = abs$2;
|
|
2011
2032
|
var floor$1 = floor$2;
|
|
2012
|
-
var max$1 = max$
|
|
2033
|
+
var max$1 = max$2;
|
|
2013
2034
|
var min$1 = min$2;
|
|
2014
2035
|
var pow$1 = pow$2;
|
|
2015
2036
|
var round$2 = round$3;
|
|
@@ -2043,7 +2064,7 @@
|
|
|
2043
2064
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2044
2065
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2045
2066
|
var $apply = requireFunctionApply();
|
|
2046
|
-
var $call =
|
|
2067
|
+
var $call = requireFunctionCall();
|
|
2047
2068
|
var needsEval = {};
|
|
2048
2069
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2049
2070
|
var INTRINSICS = {
|
|
@@ -2072,7 +2093,6 @@
|
|
|
2072
2093
|
"%eval%": eval,
|
|
2073
2094
|
// eslint-disable-line no-eval
|
|
2074
2095
|
"%EvalError%": $EvalError,
|
|
2075
|
-
"%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
|
|
2076
2096
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
2077
2097
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
2078
2098
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -2214,7 +2234,7 @@
|
|
|
2214
2234
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2215
2235
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2216
2236
|
};
|
|
2217
|
-
var bind =
|
|
2237
|
+
var bind = requireFunctionBind();
|
|
2218
2238
|
var hasOwn = requireHasown();
|
|
2219
2239
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
2220
2240
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -2326,14 +2346,11 @@
|
|
|
2326
2346
|
var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
|
|
2327
2347
|
var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
|
|
2328
2348
|
var intrinsic = (
|
|
2329
|
-
/** @type {
|
|
2349
|
+
/** @type {Parameters<typeof callBindBasic>[0][0]} */
|
|
2330
2350
|
GetIntrinsic$2(name, !!allowMissing)
|
|
2331
2351
|
);
|
|
2332
2352
|
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
2333
|
-
return callBindBasic(
|
|
2334
|
-
/** @type {const} */
|
|
2335
|
-
[intrinsic]
|
|
2336
|
-
);
|
|
2353
|
+
return callBindBasic([intrinsic]);
|
|
2337
2354
|
}
|
|
2338
2355
|
return intrinsic;
|
|
2339
2356
|
};
|
|
@@ -10954,7 +10971,7 @@ void main(void)
|
|
|
10954
10971
|
*/
|
|
10955
10972
|
run(options) {
|
|
10956
10973
|
const { renderer } = this;
|
|
10957
|
-
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.
|
|
10974
|
+
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.2 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
|
|
10958
10975
|
}
|
|
10959
10976
|
destroy() {
|
|
10960
10977
|
}
|
|
@@ -18205,8 +18222,7 @@ void main()
|
|
|
18205
18222
|
if (keys.forEach((key2) => {
|
|
18206
18223
|
this._cacheMap.set(key2, cachedAssets);
|
|
18207
18224
|
}), cacheKeys.forEach((key2) => {
|
|
18208
|
-
|
|
18209
|
-
this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18225
|
+
this._cache.has(key2) && this._cache.get(key2) !== value && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18210
18226
|
}), value instanceof Texture) {
|
|
18211
18227
|
const texture = value;
|
|
18212
18228
|
keys.forEach((key2) => {
|
|
@@ -25722,11 +25738,12 @@ void main(void)\r
|
|
|
25722
25738
|
subClass.__proto__ = superClass;
|
|
25723
25739
|
}
|
|
25724
25740
|
/*!
|
|
25725
|
-
* GSAP 3.
|
|
25741
|
+
* GSAP 3.12.5
|
|
25726
25742
|
* https://gsap.com
|
|
25727
25743
|
*
|
|
25728
|
-
* @license Copyright 2008-
|
|
25729
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
25744
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
25745
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
25746
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
25730
25747
|
* @author: Jack Doyle, jack@greensock.com
|
|
25731
25748
|
*/
|
|
25732
25749
|
var _config = {
|
|
@@ -25817,11 +25834,9 @@ void main(void)\r
|
|
|
25817
25834
|
tween = a2[i2];
|
|
25818
25835
|
tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
|
|
25819
25836
|
}
|
|
25820
|
-
}, _isRevertWorthy = function _isRevertWorthy2(animation) {
|
|
25821
|
-
return !!(animation._initted || animation._startAt || animation.add);
|
|
25822
25837
|
}, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
|
|
25823
25838
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25824
|
-
animation.render(time, suppressEvents, force ||
|
|
25839
|
+
animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
|
|
25825
25840
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25826
25841
|
}, _numericIfPossible = function _numericIfPossible2(value) {
|
|
25827
25842
|
var n2 = parseFloat(value);
|
|
@@ -25944,7 +25959,7 @@ void main(void)\r
|
|
|
25944
25959
|
}, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
|
|
25945
25960
|
return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
|
|
25946
25961
|
}, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
|
|
25947
|
-
var whole = Math.floor(tTime
|
|
25962
|
+
var whole = Math.floor(tTime /= cycleDuration);
|
|
25948
25963
|
return tTime && whole === tTime ? whole - 1 : whole;
|
|
25949
25964
|
}, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
|
|
25950
25965
|
return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
|
|
@@ -26725,7 +26740,7 @@ void main(void)\r
|
|
|
26725
26740
|
}, easeOut);
|
|
26726
26741
|
})(7.5625, 2.75);
|
|
26727
26742
|
_insertEase("Expo", function(p2) {
|
|
26728
|
-
return Math.pow(2, 10 * (p2 - 1))
|
|
26743
|
+
return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
|
|
26729
26744
|
});
|
|
26730
26745
|
_insertEase("Circ", function(p2) {
|
|
26731
26746
|
return -(_sqrt(1 - p2 * p2) - 1);
|
|
@@ -26822,7 +26837,7 @@ void main(void)\r
|
|
|
26822
26837
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
|
|
26823
26838
|
};
|
|
26824
26839
|
_proto.totalProgress = function totalProgress(value, suppressEvents) {
|
|
26825
|
-
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime()
|
|
26840
|
+
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
|
|
26826
26841
|
};
|
|
26827
26842
|
_proto.progress = function progress(value, suppressEvents) {
|
|
26828
26843
|
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
@@ -26841,7 +26856,7 @@ void main(void)\r
|
|
|
26841
26856
|
var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
|
|
26842
26857
|
this._rts = +value || 0;
|
|
26843
26858
|
this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
|
|
26844
|
-
this.totalTime(_clamp(-Math.abs(this._delay), this.
|
|
26859
|
+
this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
|
|
26845
26860
|
_setEnd(this);
|
|
26846
26861
|
return _recacheAncestors(this);
|
|
26847
26862
|
};
|
|
@@ -26884,7 +26899,7 @@ void main(void)\r
|
|
|
26884
26899
|
}
|
|
26885
26900
|
var prevIsReverting = _reverting$1;
|
|
26886
26901
|
_reverting$1 = config2;
|
|
26887
|
-
if (
|
|
26902
|
+
if (this._initted || this._startAt) {
|
|
26888
26903
|
this.timeline && this.timeline.revert(config2);
|
|
26889
26904
|
this.totalTime(-0.01, config2.suppressEvents);
|
|
26890
26905
|
}
|
|
@@ -26927,9 +26942,7 @@ void main(void)\r
|
|
|
26927
26942
|
return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
|
|
26928
26943
|
};
|
|
26929
26944
|
_proto.restart = function restart(includeDelay, suppressEvents) {
|
|
26930
|
-
this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26931
|
-
this._dur || (this._zTime = -_tinyNum);
|
|
26932
|
-
return this;
|
|
26945
|
+
return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26933
26946
|
};
|
|
26934
26947
|
_proto.play = function play(from, suppressEvents) {
|
|
26935
26948
|
from != null && this.seek(from, suppressEvents);
|
|
@@ -27106,9 +27119,8 @@ void main(void)\r
|
|
|
27106
27119
|
iteration = this._repeat;
|
|
27107
27120
|
time = dur;
|
|
27108
27121
|
} else {
|
|
27109
|
-
|
|
27110
|
-
iteration
|
|
27111
|
-
if (iteration && iteration === prevIteration) {
|
|
27122
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27123
|
+
if (iteration && iteration === tTime / cycleDuration) {
|
|
27112
27124
|
time = dur;
|
|
27113
27125
|
iteration--;
|
|
27114
27126
|
}
|
|
@@ -27162,7 +27174,7 @@ void main(void)\r
|
|
|
27162
27174
|
this._zTime = totalTime;
|
|
27163
27175
|
prevTime = 0;
|
|
27164
27176
|
}
|
|
27165
|
-
if (!prevTime &&
|
|
27177
|
+
if (!prevTime && time && !suppressEvents && !iteration) {
|
|
27166
27178
|
_callback(this, "onStart");
|
|
27167
27179
|
if (this._tTime !== tTime) {
|
|
27168
27180
|
return this;
|
|
@@ -27194,7 +27206,7 @@ void main(void)\r
|
|
|
27194
27206
|
if (child.parent !== this) {
|
|
27195
27207
|
return this.render(totalTime, suppressEvents, force);
|
|
27196
27208
|
}
|
|
27197
|
-
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 &&
|
|
27209
|
+
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && (child._initted || child._startAt));
|
|
27198
27210
|
if (time !== this._time || !this._ts && !prevPaused) {
|
|
27199
27211
|
pauseTween = 0;
|
|
27200
27212
|
next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
|
|
@@ -27291,7 +27303,7 @@ void main(void)\r
|
|
|
27291
27303
|
if (_isFunction(child)) {
|
|
27292
27304
|
return this.killTweensOf(child);
|
|
27293
27305
|
}
|
|
27294
|
-
|
|
27306
|
+
_removeLinkedListItem(this, child);
|
|
27295
27307
|
if (child === this._recent) {
|
|
27296
27308
|
this._recent = this._last;
|
|
27297
27309
|
}
|
|
@@ -27893,7 +27905,7 @@ void main(void)\r
|
|
|
27893
27905
|
var prevTime = this._time, tDur = this._tDur, dur = this._dur, isNegative = totalTime < 0, tTime = totalTime > tDur - _tinyNum && !isNegative ? tDur : totalTime < _tinyNum ? 0 : totalTime, time, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;
|
|
27894
27906
|
if (!dur) {
|
|
27895
27907
|
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
|
|
27896
|
-
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative
|
|
27908
|
+
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
|
|
27897
27909
|
time = tTime;
|
|
27898
27910
|
timeline = this.timeline;
|
|
27899
27911
|
if (this._repeat) {
|
|
@@ -27906,14 +27918,12 @@ void main(void)\r
|
|
|
27906
27918
|
iteration = this._repeat;
|
|
27907
27919
|
time = dur;
|
|
27908
27920
|
} else {
|
|
27909
|
-
|
|
27910
|
-
iteration
|
|
27911
|
-
if (iteration && iteration === prevIteration) {
|
|
27921
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27922
|
+
if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
|
|
27912
27923
|
time = dur;
|
|
27913
27924
|
iteration--;
|
|
27914
|
-
} else if (time > dur) {
|
|
27915
|
-
time = dur;
|
|
27916
27925
|
}
|
|
27926
|
+
time > dur && (time = dur);
|
|
27917
27927
|
}
|
|
27918
27928
|
isYoyo = this._yoyo && iteration & 1;
|
|
27919
27929
|
if (isYoyo) {
|
|
@@ -27927,7 +27937,7 @@ void main(void)\r
|
|
|
27927
27937
|
}
|
|
27928
27938
|
if (iteration !== prevIteration) {
|
|
27929
27939
|
timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
|
|
27930
|
-
if (this.vars.repeatRefresh && !isYoyo && !this._lock &&
|
|
27940
|
+
if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
|
|
27931
27941
|
this._lock = force = 1;
|
|
27932
27942
|
this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
|
|
27933
27943
|
}
|
|
@@ -27955,7 +27965,7 @@ void main(void)\r
|
|
|
27955
27965
|
if (this._from) {
|
|
27956
27966
|
this.ratio = ratio = 1 - ratio;
|
|
27957
27967
|
}
|
|
27958
|
-
if (
|
|
27968
|
+
if (time && !prevTime && !suppressEvents && !iteration) {
|
|
27959
27969
|
_callback(this, "onStart");
|
|
27960
27970
|
if (this._tTime !== tTime) {
|
|
27961
27971
|
return this;
|
|
@@ -28012,8 +28022,7 @@ void main(void)\r
|
|
|
28012
28022
|
}
|
|
28013
28023
|
if (!targets && (!vars || vars === "all")) {
|
|
28014
28024
|
this._lazy = this._pt = 0;
|
|
28015
|
-
this.parent ? _interrupt(this) : this
|
|
28016
|
-
return this;
|
|
28025
|
+
return this.parent ? _interrupt(this) : this;
|
|
28017
28026
|
}
|
|
28018
28027
|
if (this.timeline) {
|
|
28019
28028
|
var tDur = this.timeline.totalDuration();
|
|
@@ -28460,8 +28469,8 @@ void main(void)\r
|
|
|
28460
28469
|
};
|
|
28461
28470
|
},
|
|
28462
28471
|
quickTo: function quickTo(target, property, vars) {
|
|
28463
|
-
var
|
|
28464
|
-
var tween = gsap.to(target,
|
|
28472
|
+
var _merge2;
|
|
28473
|
+
var tween = gsap.to(target, _merge((_merge2 = {}, _merge2[property] = "+=0.1", _merge2.paused = true, _merge2), vars || {})), func = function func2(value, start, startIsRelative) {
|
|
28465
28474
|
return tween.resetTo(property, value, start, startIsRelative);
|
|
28466
28475
|
};
|
|
28467
28476
|
func.tween = tween;
|
|
@@ -28623,7 +28632,6 @@ void main(void)\r
|
|
|
28623
28632
|
}, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
|
|
28624
28633
|
return {
|
|
28625
28634
|
name,
|
|
28626
|
-
headless: 1,
|
|
28627
28635
|
rawVars: 1,
|
|
28628
28636
|
//don't pre-process function-based values or "random()" strings.
|
|
28629
28637
|
init: function init2(target, vars, tween) {
|
|
@@ -28670,7 +28678,6 @@ void main(void)\r
|
|
|
28670
28678
|
}
|
|
28671
28679
|
}, {
|
|
28672
28680
|
name: "endArray",
|
|
28673
|
-
headless: 1,
|
|
28674
28681
|
init: function init2(target, value) {
|
|
28675
28682
|
var i2 = value.length;
|
|
28676
28683
|
while (i2--) {
|
|
@@ -28678,7 +28685,7 @@ void main(void)\r
|
|
|
28678
28685
|
}
|
|
28679
28686
|
}
|
|
28680
28687
|
}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
|
|
28681
|
-
Tween.version = Timeline$1.version = gsap.version = "3.
|
|
28688
|
+
Tween.version = Timeline$1.version = gsap.version = "3.12.5";
|
|
28682
28689
|
_coreReady = 1;
|
|
28683
28690
|
_windowExists$1() && _wake();
|
|
28684
28691
|
_easeMap.Power0;
|
|
@@ -28700,11 +28707,12 @@ void main(void)\r
|
|
|
28700
28707
|
_easeMap.Expo;
|
|
28701
28708
|
_easeMap.Circ;
|
|
28702
28709
|
/*!
|
|
28703
|
-
* CSSPlugin 3.
|
|
28710
|
+
* CSSPlugin 3.12.5
|
|
28704
28711
|
* https://gsap.com
|
|
28705
28712
|
*
|
|
28706
|
-
* Copyright 2008-
|
|
28707
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
28713
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
28714
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
28715
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
28708
28716
|
* @author: Jack Doyle, jack@greensock.com
|
|
28709
28717
|
*/
|
|
28710
28718
|
var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
|
|
@@ -28777,13 +28785,7 @@ void main(void)\r
|
|
|
28777
28785
|
}, _revertStyle = function _revertStyle2() {
|
|
28778
28786
|
var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
|
|
28779
28787
|
for (i2 = 0; i2 < props.length; i2 += 3) {
|
|
28780
|
-
|
|
28781
|
-
props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28782
|
-
} else if (props[i2 + 1] === 2) {
|
|
28783
|
-
target[props[i2]](props[i2 + 2]);
|
|
28784
|
-
} else {
|
|
28785
|
-
target[props[i2]] = props[i2 + 2];
|
|
28786
|
-
}
|
|
28788
|
+
props[i2 + 1] ? target[props[i2]] = props[i2 + 2] : props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28787
28789
|
}
|
|
28788
28790
|
if (this.tfm) {
|
|
28789
28791
|
for (p2 in this.tfm) {
|
|
@@ -28812,7 +28814,7 @@ void main(void)\r
|
|
|
28812
28814
|
save: _saveStyle
|
|
28813
28815
|
};
|
|
28814
28816
|
target._gsap || gsap.core.getCache(target);
|
|
28815
|
-
properties &&
|
|
28817
|
+
properties && properties.split(",").forEach(function(p2) {
|
|
28816
28818
|
return saver.save(p2);
|
|
28817
28819
|
});
|
|
28818
28820
|
return saver;
|
|
@@ -28847,17 +28849,30 @@ void main(void)\r
|
|
|
28847
28849
|
_reverting = gsap.core.reverting;
|
|
28848
28850
|
_pluginInitted = 1;
|
|
28849
28851
|
}
|
|
28850
|
-
},
|
|
28851
|
-
var
|
|
28852
|
-
clone2.style.display = "block";
|
|
28853
|
-
svg.appendChild(clone2);
|
|
28852
|
+
}, _getBBoxHack = function _getBBoxHack2(swapIfPossible) {
|
|
28853
|
+
var svg = _createElement("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), oldParent = this.parentNode, oldSibling = this.nextSibling, oldCSS = this.style.cssText, bbox;
|
|
28854
28854
|
_docElement.appendChild(svg);
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
28855
|
+
svg.appendChild(this);
|
|
28856
|
+
this.style.display = "block";
|
|
28857
|
+
if (swapIfPossible) {
|
|
28858
|
+
try {
|
|
28859
|
+
bbox = this.getBBox();
|
|
28860
|
+
this._gsapBBox = this.getBBox;
|
|
28861
|
+
this.getBBox = _getBBoxHack2;
|
|
28862
|
+
} catch (e2) {
|
|
28863
|
+
}
|
|
28864
|
+
} else if (this._gsapBBox) {
|
|
28865
|
+
bbox = this._gsapBBox();
|
|
28866
|
+
}
|
|
28867
|
+
if (oldParent) {
|
|
28868
|
+
if (oldSibling) {
|
|
28869
|
+
oldParent.insertBefore(this, oldSibling);
|
|
28870
|
+
} else {
|
|
28871
|
+
oldParent.appendChild(this);
|
|
28872
|
+
}
|
|
28858
28873
|
}
|
|
28859
|
-
svg.removeChild(clone2);
|
|
28860
28874
|
_docElement.removeChild(svg);
|
|
28875
|
+
this.style.cssText = oldCSS;
|
|
28861
28876
|
return bbox;
|
|
28862
28877
|
}, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
|
|
28863
28878
|
var i2 = attributesArray.length;
|
|
@@ -28867,14 +28882,13 @@ void main(void)\r
|
|
|
28867
28882
|
}
|
|
28868
28883
|
}
|
|
28869
28884
|
}, _getBBox = function _getBBox2(target) {
|
|
28870
|
-
var bounds
|
|
28885
|
+
var bounds;
|
|
28871
28886
|
try {
|
|
28872
28887
|
bounds = target.getBBox();
|
|
28873
28888
|
} catch (error) {
|
|
28874
|
-
bounds =
|
|
28875
|
-
cloned = 1;
|
|
28889
|
+
bounds = _getBBoxHack.call(target, true);
|
|
28876
28890
|
}
|
|
28877
|
-
bounds && (bounds.width || bounds.height) ||
|
|
28891
|
+
bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
|
|
28878
28892
|
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
|
|
28879
28893
|
x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
|
|
28880
28894
|
y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
|
|
@@ -28925,7 +28939,7 @@ void main(void)\r
|
|
|
28925
28939
|
return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
|
|
28926
28940
|
}
|
|
28927
28941
|
style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
|
|
28928
|
-
parent =
|
|
28942
|
+
parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
|
|
28929
28943
|
if (isSVG) {
|
|
28930
28944
|
parent = (target.ownerSVGElement || {}).parentNode;
|
|
28931
28945
|
}
|
|
@@ -28990,9 +29004,6 @@ void main(void)\r
|
|
|
28990
29004
|
pt.e = end;
|
|
28991
29005
|
start += "";
|
|
28992
29006
|
end += "";
|
|
28993
|
-
if (end.substring(0, 6) === "var(--") {
|
|
28994
|
-
end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
|
|
28995
|
-
}
|
|
28996
29007
|
if (end === "auto") {
|
|
28997
29008
|
startValue = target.style[prop];
|
|
28998
29009
|
target.style[prop] = end;
|
|
@@ -29086,7 +29097,6 @@ void main(void)\r
|
|
|
29086
29097
|
_removeProperty(target, _transformProp);
|
|
29087
29098
|
if (cache) {
|
|
29088
29099
|
cache.svg && target.removeAttribute("transform");
|
|
29089
|
-
style.scale = style.rotate = style.translate = "none";
|
|
29090
29100
|
_parseTransform(target, 1);
|
|
29091
29101
|
cache.uncache = 1;
|
|
29092
29102
|
_removeIndependentTransforms(style);
|
|
@@ -29182,7 +29192,7 @@ void main(void)\r
|
|
|
29182
29192
|
temp = style.display;
|
|
29183
29193
|
style.display = "block";
|
|
29184
29194
|
parent = target.parentNode;
|
|
29185
|
-
if (!parent || !target.offsetParent
|
|
29195
|
+
if (!parent || !target.offsetParent) {
|
|
29186
29196
|
addedToDOM = 1;
|
|
29187
29197
|
nextSibling = target.nextElementSibling;
|
|
29188
29198
|
_docElement.appendChild(target);
|
|
@@ -29618,10 +29628,6 @@ void main(void)\r
|
|
|
29618
29628
|
isTransformRelated = p2 in _transformProps;
|
|
29619
29629
|
if (isTransformRelated) {
|
|
29620
29630
|
this.styles.save(p2);
|
|
29621
|
-
if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
|
|
29622
|
-
endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
|
|
29623
|
-
endNum = parseFloat(endValue);
|
|
29624
|
-
}
|
|
29625
29631
|
if (!transformPropTween) {
|
|
29626
29632
|
cache = target._gsap;
|
|
29627
29633
|
cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
|
|
@@ -29685,7 +29691,7 @@ void main(void)\r
|
|
|
29685
29691
|
} else {
|
|
29686
29692
|
_tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
|
|
29687
29693
|
}
|
|
29688
|
-
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) :
|
|
29694
|
+
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
|
|
29689
29695
|
props.push(p2);
|
|
29690
29696
|
}
|
|
29691
29697
|
}
|
|
@@ -32892,11 +32898,7 @@ void main(void)\r
|
|
|
32892
32898
|
/**
|
|
32893
32899
|
* past Spine.globalDelayLimit
|
|
32894
32900
|
*/
|
|
32895
|
-
GLOBAL_DELAY_LIMIT: 0
|
|
32896
|
-
/**
|
|
32897
|
-
* shows error in console if atlas page loading somehow failed
|
|
32898
|
-
*/
|
|
32899
|
-
REPORT_TEXTURE_LOADER_ERROR: true
|
|
32901
|
+
GLOBAL_DELAY_LIMIT: 0
|
|
32900
32902
|
};
|
|
32901
32903
|
const tempRgb = [0, 0, 0];
|
|
32902
32904
|
class SpineSprite extends Sprite {
|
|
@@ -33291,9 +33293,6 @@ void main(void)\r
|
|
|
33291
33293
|
* @private
|
|
33292
33294
|
*/
|
|
33293
33295
|
createMesh(slot, attachment) {
|
|
33294
|
-
if (!attachment.region && attachment.sequence) {
|
|
33295
|
-
attachment.sequence.apply(slot, attachment);
|
|
33296
|
-
}
|
|
33297
33296
|
let region = attachment.region;
|
|
33298
33297
|
if (slot.hackAttachment === attachment) {
|
|
33299
33298
|
region = slot.hackRegion;
|
|
@@ -40001,16 +40000,9 @@ void main(void)\r
|
|
|
40001
40000
|
};
|
|
40002
40001
|
const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
|
|
40003
40002
|
return async (pageName, textureLoadedCallback) => {
|
|
40004
|
-
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
textureLoadedCallback(texture.baseTexture);
|
|
40008
|
-
} catch (e2) {
|
|
40009
|
-
{
|
|
40010
|
-
console.error("Spine: error in texture loader", e2);
|
|
40011
|
-
}
|
|
40012
|
-
textureLoadedCallback(null);
|
|
40013
|
-
}
|
|
40003
|
+
const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
|
|
40004
|
+
const texture = await loader.load({ src: url, data: imageMetadata });
|
|
40005
|
+
textureLoadedCallback(texture.baseTexture);
|
|
40014
40006
|
};
|
|
40015
40007
|
};
|
|
40016
40008
|
extensions$2.add(spineTextureAtlasLoader);
|
|
@@ -55331,10 +55323,10 @@ void main(void){
|
|
|
55331
55323
|
}
|
|
55332
55324
|
}
|
|
55333
55325
|
/*!
|
|
55334
|
-
* decimal.js v10.
|
|
55326
|
+
* decimal.js v10.4.3
|
|
55335
55327
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
55336
55328
|
* https://github.com/MikeMcl/decimal.js
|
|
55337
|
-
* Copyright (c)
|
|
55329
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
55338
55330
|
* MIT Licence
|
|
55339
55331
|
*/
|
|
55340
55332
|
var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
|
|
@@ -55603,7 +55595,7 @@ void main(void){
|
|
|
55603
55595
|
return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
|
|
55604
55596
|
};
|
|
55605
55597
|
P.inverseCosine = P.acos = function() {
|
|
55606
|
-
var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55598
|
+
var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55607
55599
|
if (k2 !== -1) {
|
|
55608
55600
|
return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
|
|
55609
55601
|
}
|
|
@@ -55611,10 +55603,11 @@ void main(void){
|
|
|
55611
55603
|
return getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55612
55604
|
Ctor.precision = pr + 6;
|
|
55613
55605
|
Ctor.rounding = 1;
|
|
55614
|
-
x2 =
|
|
55606
|
+
x2 = x2.asin();
|
|
55607
|
+
halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55615
55608
|
Ctor.precision = pr;
|
|
55616
55609
|
Ctor.rounding = rm;
|
|
55617
|
-
return
|
|
55610
|
+
return halfPi.minus(x2);
|
|
55618
55611
|
};
|
|
55619
55612
|
P.inverseHyperbolicCosine = P.acosh = function() {
|
|
55620
55613
|
var pr, rm, x2 = this, Ctor = x2.constructor;
|
|
@@ -56826,16 +56819,14 @@ void main(void){
|
|
|
56826
56819
|
function isOdd(n2) {
|
|
56827
56820
|
return n2.d[n2.d.length - 1] & 1;
|
|
56828
56821
|
}
|
|
56829
|
-
function maxOrMin(Ctor, args,
|
|
56830
|
-
var
|
|
56822
|
+
function maxOrMin(Ctor, args, ltgt) {
|
|
56823
|
+
var y2, x2 = new Ctor(args[0]), i2 = 0;
|
|
56831
56824
|
for (; ++i2 < args.length; ) {
|
|
56832
56825
|
y2 = new Ctor(args[i2]);
|
|
56833
56826
|
if (!y2.s) {
|
|
56834
56827
|
x2 = y2;
|
|
56835
56828
|
break;
|
|
56836
|
-
}
|
|
56837
|
-
k2 = x2.cmp(y2);
|
|
56838
|
-
if (k2 === n2 || k2 === 0 && x2.s === n2) {
|
|
56829
|
+
} else if (x2[ltgt](y2)) {
|
|
56839
56830
|
x2 = y2;
|
|
56840
56831
|
}
|
|
56841
56832
|
}
|
|
@@ -57416,8 +57407,7 @@ void main(void){
|
|
|
57416
57407
|
x2.d = [v2];
|
|
57417
57408
|
}
|
|
57418
57409
|
return;
|
|
57419
|
-
}
|
|
57420
|
-
if (v2 * 0 !== 0) {
|
|
57410
|
+
} else if (v2 * 0 !== 0) {
|
|
57421
57411
|
if (!v2)
|
|
57422
57412
|
x2.s = NaN;
|
|
57423
57413
|
x2.e = NaN;
|
|
@@ -57425,28 +57415,18 @@ void main(void){
|
|
|
57425
57415
|
return;
|
|
57426
57416
|
}
|
|
57427
57417
|
return parseDecimal(x2, v2.toString());
|
|
57418
|
+
} else if (t2 !== "string") {
|
|
57419
|
+
throw Error(invalidArgument + v2);
|
|
57428
57420
|
}
|
|
57429
|
-
if (
|
|
57430
|
-
|
|
57421
|
+
if ((i3 = v2.charCodeAt(0)) === 45) {
|
|
57422
|
+
v2 = v2.slice(1);
|
|
57423
|
+
x2.s = -1;
|
|
57424
|
+
} else {
|
|
57425
|
+
if (i3 === 43)
|
|
57431
57426
|
v2 = v2.slice(1);
|
|
57432
|
-
|
|
57433
|
-
} else {
|
|
57434
|
-
if (i3 === 43)
|
|
57435
|
-
v2 = v2.slice(1);
|
|
57436
|
-
x2.s = 1;
|
|
57437
|
-
}
|
|
57438
|
-
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57427
|
+
x2.s = 1;
|
|
57439
57428
|
}
|
|
57440
|
-
|
|
57441
|
-
if (v2 < 0) {
|
|
57442
|
-
v2 = -v2;
|
|
57443
|
-
x2.s = -1;
|
|
57444
|
-
} else {
|
|
57445
|
-
x2.s = 1;
|
|
57446
|
-
}
|
|
57447
|
-
return parseDecimal(x2, v2.toString());
|
|
57448
|
-
}
|
|
57449
|
-
throw Error(invalidArgument + v2);
|
|
57429
|
+
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57450
57430
|
}
|
|
57451
57431
|
Decimal2.prototype = P;
|
|
57452
57432
|
Decimal2.ROUND_UP = 0;
|
|
@@ -57556,10 +57536,10 @@ void main(void){
|
|
|
57556
57536
|
return new this(x2).log(10);
|
|
57557
57537
|
}
|
|
57558
57538
|
function max() {
|
|
57559
|
-
return maxOrMin(this, arguments,
|
|
57539
|
+
return maxOrMin(this, arguments, "lt");
|
|
57560
57540
|
}
|
|
57561
57541
|
function min() {
|
|
57562
|
-
return maxOrMin(this, arguments,
|
|
57542
|
+
return maxOrMin(this, arguments, "gt");
|
|
57563
57543
|
}
|
|
57564
57544
|
function mod(x2, y2) {
|
|
57565
57545
|
return new this(x2).mod(y2);
|
|
@@ -58014,24 +57994,78 @@ void main(void){
|
|
|
58014
57994
|
return dfs(root, 0);
|
|
58015
57995
|
}
|
|
58016
57996
|
}
|
|
57997
|
+
const libJsConvertAngle = (value, type2) => {
|
|
57998
|
+
if (type2 === "rad") {
|
|
57999
|
+
return value * (Math.PI / 180);
|
|
58000
|
+
} else if (type2 === "deg") {
|
|
58001
|
+
return value * (180 / Math.PI);
|
|
58002
|
+
} else {
|
|
58003
|
+
throw new Error("请使用正确类型");
|
|
58004
|
+
}
|
|
58005
|
+
};
|
|
58006
|
+
const LibPixiTurntable = (num, distance, layoutCallback) => {
|
|
58007
|
+
for (let i2 = 0; i2 < num; i2++) {
|
|
58008
|
+
const rotation = libJsConvertAngle(360 / num * i2, "rad");
|
|
58009
|
+
const cos2 = Math.cos(rotation + libJsConvertAngle(-90, "rad"));
|
|
58010
|
+
const sin2 = Math.sin(rotation + libJsConvertAngle(-90, "rad"));
|
|
58011
|
+
layoutCallback(cos2 * distance, sin2 * distance, rotation, i2);
|
|
58012
|
+
}
|
|
58013
|
+
};
|
|
58014
|
+
class LibPixiArc extends Graphics {
|
|
58015
|
+
constructor(params) {
|
|
58016
|
+
super();
|
|
58017
|
+
const { start, end, radius, color, strokeColor, thickness, alpha = 1, anticlockwise = false } = params;
|
|
58018
|
+
this.beginFill(color, alpha);
|
|
58019
|
+
strokeColor && this.lineStyle(thickness, strokeColor);
|
|
58020
|
+
this.moveTo(0, 0);
|
|
58021
|
+
this.arc(0, 0, radius, start, end, anticlockwise);
|
|
58022
|
+
this.closePath();
|
|
58023
|
+
this.endFill();
|
|
58024
|
+
}
|
|
58025
|
+
}
|
|
58026
|
+
class LibPixiOval extends Graphics {
|
|
58027
|
+
constructor(width, height, color) {
|
|
58028
|
+
super();
|
|
58029
|
+
this.beginFill(color);
|
|
58030
|
+
this.drawEllipse(0, 0, width, height);
|
|
58031
|
+
this.endFill();
|
|
58032
|
+
}
|
|
58033
|
+
}
|
|
58034
|
+
class LibPixiRound extends Graphics {
|
|
58035
|
+
constructor(width, radius, color) {
|
|
58036
|
+
super();
|
|
58037
|
+
this.lineStyle(width, color);
|
|
58038
|
+
this.drawCircle(0, 0, radius);
|
|
58039
|
+
}
|
|
58040
|
+
}
|
|
58041
|
+
class LibPixiRoundedRect extends Graphics {
|
|
58042
|
+
constructor(width, height, radius, color) {
|
|
58043
|
+
super();
|
|
58044
|
+
this.beginFill(color);
|
|
58045
|
+
this.drawRoundedRect(0, 0, width, height, radius);
|
|
58046
|
+
this.endFill();
|
|
58047
|
+
}
|
|
58048
|
+
}
|
|
58017
58049
|
const Components = {
|
|
58018
58050
|
Base: {
|
|
58051
|
+
/** (已废弃)
|
|
58052
|
+
* @description 自定义容器大小及背景色
|
|
58053
|
+
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiContainer-容器
|
|
58054
|
+
*/
|
|
58055
|
+
LibPixiContainer,
|
|
58056
|
+
/** (已废弃)
|
|
58057
|
+
* @description 自定义矩形背景色
|
|
58058
|
+
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiRectBgColor-矩形
|
|
58059
|
+
*/
|
|
58060
|
+
LibPixiRectBgColor,
|
|
58019
58061
|
/** @description 自定义位图文本
|
|
58020
58062
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiBitText-位图
|
|
58021
58063
|
*/
|
|
58022
58064
|
LibPixiBitText,
|
|
58023
|
-
/** @description 自定义容器大小及背景色
|
|
58024
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiContainer-容器
|
|
58025
|
-
*/
|
|
58026
|
-
LibPixiContainer,
|
|
58027
58065
|
/** @description 利用贝塞尔曲线实现粒子移动
|
|
58028
58066
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiParticleMove-粒子容器
|
|
58029
58067
|
*/
|
|
58030
58068
|
LibPixiParticleMove,
|
|
58031
|
-
/** @description 自定义矩形背景色
|
|
58032
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiRectBgColor-矩形
|
|
58033
|
-
*/
|
|
58034
|
-
LibPixiRectBgColor,
|
|
58035
58069
|
/** @description 矩形类,可用于一些场景的局部点击,传颜色是为了方便定位,最终可能需要将颜色隐藏掉
|
|
58036
58070
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiRectangle-矩形
|
|
58037
58071
|
*/
|
|
@@ -58044,6 +58078,18 @@ void main(void){
|
|
|
58044
58078
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiPolygon-多边形
|
|
58045
58079
|
*/
|
|
58046
58080
|
LibPixiPolygon,
|
|
58081
|
+
/** @description 胶囊体 */
|
|
58082
|
+
LibPixiCapsule,
|
|
58083
|
+
/** @description 三角形 */
|
|
58084
|
+
LibPixiTriangle,
|
|
58085
|
+
/** @description 弧形 */
|
|
58086
|
+
LibPixiArc,
|
|
58087
|
+
/** @description 椭圆 */
|
|
58088
|
+
LibPixiOval,
|
|
58089
|
+
/** @description 圆圈 */
|
|
58090
|
+
LibPixiRound,
|
|
58091
|
+
/** @description 圆角矩形 */
|
|
58092
|
+
LibPixiRoundedRect,
|
|
58047
58093
|
/** @description 自定义 Spine 动画
|
|
58048
58094
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSpine-动画
|
|
58049
58095
|
*/
|
|
@@ -58108,15 +58154,37 @@ void main(void){
|
|
|
58108
58154
|
LibPixiLabelValue,
|
|
58109
58155
|
/** @description 设计图背景拼接 */
|
|
58110
58156
|
LibPixiPuzzleBg,
|
|
58111
|
-
/** @description 胶囊体 */
|
|
58112
|
-
LibPixiCapsule,
|
|
58113
|
-
/** @description 三角形 */
|
|
58114
|
-
LibPixiTriangle,
|
|
58115
58157
|
/** @description 元素拖拽定位 */
|
|
58116
|
-
LibPixiDragLocate
|
|
58158
|
+
LibPixiDragLocate,
|
|
58159
|
+
/** @description 转盘布局 */
|
|
58160
|
+
LibPixiTurntable
|
|
58117
58161
|
}
|
|
58118
58162
|
};
|
|
58119
58163
|
const Utils = {
|
|
58164
|
+
/** (已废弃)
|
|
58165
|
+
* @description 为容器创建并应用一个矩形遮罩,用于隐藏溢出的内容,函数会返回遮罩,可控制是否显示遮罩
|
|
58166
|
+
* @param container 需要设置遮罩裁剪的容器
|
|
58167
|
+
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiOverflowHidden-溢出裁剪
|
|
58168
|
+
*/
|
|
58169
|
+
libPixiOverflowHidden,
|
|
58170
|
+
/** (已废弃)
|
|
58171
|
+
* @description 当前容器在父容器居中
|
|
58172
|
+
*/
|
|
58173
|
+
libContainerCenter,
|
|
58174
|
+
/** (已废弃)
|
|
58175
|
+
* @description 列表居中
|
|
58176
|
+
* @param parent 父容器
|
|
58177
|
+
* @param items 子元素数组
|
|
58178
|
+
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
58179
|
+
*/
|
|
58180
|
+
libPixiHVCenter,
|
|
58181
|
+
/**(已废弃)
|
|
58182
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔
|
|
58183
|
+
* @param items 要排列的元素数组。
|
|
58184
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
58185
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
58186
|
+
*/
|
|
58187
|
+
libPixiHVGap,
|
|
58120
58188
|
/** @description 音频播放器
|
|
58121
58189
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiAudio-音频播放器
|
|
58122
58190
|
*/
|
|
@@ -58152,11 +58220,6 @@ void main(void){
|
|
|
58152
58220
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiOutsideClick-失焦隐藏
|
|
58153
58221
|
*/
|
|
58154
58222
|
libPixiOutsideClick,
|
|
58155
|
-
/** @description 为容器创建并应用一个矩形遮罩,用于隐藏溢出的内容,函数会返回遮罩,可控制是否显示遮罩
|
|
58156
|
-
* @param container 需要设置遮罩裁剪的容器
|
|
58157
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiOverflowHidden-溢出裁剪
|
|
58158
|
-
*/
|
|
58159
|
-
libPixiOverflowHidden,
|
|
58160
58223
|
/** @description 基于 Ticker 和 Promise 的定时器
|
|
58161
58224
|
* @param delay 延迟时间
|
|
58162
58225
|
* @param callback 延迟后执行的函数
|
|
@@ -58226,22 +58289,7 @@ void main(void){
|
|
|
58226
58289
|
* @param event 事件名称
|
|
58227
58290
|
* @param payload 事件携带数据
|
|
58228
58291
|
*/
|
|
58229
|
-
LibPixiEmitContainerEvent
|
|
58230
|
-
/** @description 当前容器在父容器居中 */
|
|
58231
|
-
libContainerCenter,
|
|
58232
|
-
/** @description 列表居中
|
|
58233
|
-
* @param parent 父容器
|
|
58234
|
-
* @param items 子元素数组
|
|
58235
|
-
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
58236
|
-
*/
|
|
58237
|
-
libPixiHVCenter,
|
|
58238
|
-
/**
|
|
58239
|
-
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
58240
|
-
* @param items 要排列的元素数组。
|
|
58241
|
-
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
58242
|
-
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
58243
|
-
*/
|
|
58244
|
-
libPixiHVGap
|
|
58292
|
+
LibPixiEmitContainerEvent
|
|
58245
58293
|
};
|
|
58246
58294
|
const LibPixiJs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
58247
58295
|
__proto__: null,
|