lyb-pixi-js 1.11.4 → 1.11.6

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.
@@ -0,0 +1,9 @@
1
+ import { Container } from "pixi.js";
2
+ /**
3
+ * @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
4
+ * @param items 要排列的元素数组。
5
+ * @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
6
+ * @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
7
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
8
+ */
9
+ export declare const LibArrangeLinear: (items: Container[], gap: number | number[], direction?: "x" | "y") => void;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
3
+ * @param items 要排列的元素数组。
4
+ * @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
5
+ * @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
6
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
7
+ */
8
+ export const LibArrangeLinear = (items, gap, direction = "x") => {
9
+ if (Array.isArray(gap)) {
10
+ if (gap.length !== items.length - 1) {
11
+ console.error(new Error("间隔的数组长度只能等于元素数组长度-1"));
12
+ return;
13
+ }
14
+ }
15
+ let lastPosition = 0;
16
+ items.forEach((item, index) => {
17
+ const position = index === 0
18
+ ? 0
19
+ : lastPosition + (Array.isArray(gap) ? gap[index - 1] : gap);
20
+ if (direction === "x") {
21
+ item.x = position;
22
+ lastPosition = item.x + item.width;
23
+ }
24
+ else {
25
+ item.y = position;
26
+ lastPosition = item.y + item.height;
27
+ }
28
+ });
29
+ };
@@ -0,0 +1,7 @@
1
+ import { Container } from "pixi.js";
2
+ /** @description 触发后代监听
3
+ * @param container 容器
4
+ * @param event 事件名称
5
+ * @param payload 事件携带数据
6
+ */
7
+ export declare const LibEmitContainerEvent: (container: Container, event: string, payload?: any) => void;
@@ -0,0 +1,13 @@
1
+ /** @description 触发后代监听
2
+ * @param container 容器
3
+ * @param event 事件名称
4
+ * @param payload 事件携带数据
5
+ */
6
+ export const LibEmitContainerEvent = (container, event, payload) => {
7
+ container.children.forEach((child) => {
8
+ child.emit(event, payload);
9
+ if ("children" in child) {
10
+ LibEmitContainerEvent(child, event, payload);
11
+ }
12
+ });
13
+ };
@@ -15,6 +15,8 @@ export declare class LibPixiDialog extends LibPixiBaseContainer {
15
15
  /** 动画时长 */
16
16
  static durationIn: number;
17
17
  static durationOut: number;
18
+ /** 是否支持横竖版 */
19
+ static adaptation: boolean;
18
20
  /** 蒙版UI */
19
21
  private _maskUI;
20
22
  /** 内容容器 */
@@ -63,7 +63,7 @@ export class LibPixiDialog extends LibPixiBaseContainer {
63
63
  duration: LibPixiDialog.durationIn,
64
64
  alpha: 1,
65
65
  });
66
- const resize = new LibJsResizeWatcher();
66
+ const resize = new LibJsResizeWatcher(LibPixiDialog.adaptation ? "hv" : "h");
67
67
  this._offResize = resize.on((w, h) => {
68
68
  const halfW = 1920 / 2;
69
69
  const halfH = 1080 / 2;
@@ -125,3 +125,5 @@ LibPixiDialog.bgAlpha = 0.5;
125
125
  /** 动画时长 */
126
126
  LibPixiDialog.durationIn = 0.5;
127
127
  LibPixiDialog.durationOut = 0.5;
128
+ /** 是否支持横竖版 */
129
+ LibPixiDialog.adaptation = true;
@@ -24,13 +24,19 @@ export const libPixiEvent = (v, eventName, callback, params = {}) => {
24
24
  const { once = false, debounce = false, debounceTime = 1000, preventDragClick = false } = params;
25
25
  v.cursor = "pointer";
26
26
  v.eventMode = "static";
27
+ let lastX = 0;
28
+ let lastY = 0;
27
29
  let isDragging = false;
28
30
  if (preventDragClick) {
29
- v.on("pointerdown", () => {
31
+ v.on("pointerdown", (e) => {
30
32
  isDragging = false;
33
+ lastX = e.globalX;
34
+ lastY = e.globalY;
31
35
  });
32
- v.on("pointermove", () => {
33
- isDragging = true;
36
+ v.on("pointermove", (e) => {
37
+ if (e.globalX !== lastX || e.globalY !== lastY) {
38
+ isDragging = true;
39
+ }
34
40
  });
35
41
  }
36
42
  const fn = (e) => {
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(obj), 8, -1) : protoTag ? "Object" : "";
1318
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(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(obj) === "[object Array]" && canTrustToString(obj);
1340
+ return toStr$1(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1344
1341
  }
1345
1342
  function isDate(obj) {
1346
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
1343
+ return toStr$1(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1347
1344
  }
1348
1345
  function isRegExp$1(obj) {
1349
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
1346
+ return toStr$1(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1350
1347
  }
1351
1348
  function isError(obj) {
1352
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
1349
+ return toStr$1(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1353
1350
  }
1354
1351
  function isString(obj) {
1355
- return toStr(obj) === "[object String]" && canTrustToString(obj);
1352
+ return toStr$1(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1356
1353
  }
1357
1354
  function isNumber(obj) {
1358
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
1355
+ return toStr$1(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1359
1356
  }
1360
1357
  function isBoolean(obj) {
1361
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
1358
+ return toStr$1(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(obj) {
1394
+ function toStr$1(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$2 = Math.max;
1703
+ var max$3 = Math.max;
1707
1704
  var min$2 = Math.min;
1708
1705
  var pow$2 = Math.pow;
1709
1706
  var round$3 = Math.round;
@@ -1836,102 +1833,78 @@
1836
1833
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
1837
1834
  return Object_getPrototypeOf;
1838
1835
  }
1839
- var implementation;
1840
- var hasRequiredImplementation;
1841
- function requireImplementation() {
1842
- if (hasRequiredImplementation)
1843
- return implementation;
1844
- hasRequiredImplementation = 1;
1845
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1846
- var toStr2 = Object.prototype.toString;
1847
- var max2 = Math.max;
1848
- var funcType = "[object Function]";
1849
- var concatty = function concatty2(a2, b2) {
1850
- var arr = [];
1851
- for (var i2 = 0; i2 < a2.length; i2 += 1) {
1852
- arr[i2] = a2[i2];
1853
- }
1854
- for (var j2 = 0; j2 < b2.length; j2 += 1) {
1855
- arr[j2 + a2.length] = b2[j2];
1856
- }
1857
- return arr;
1858
- };
1859
- var slicy = function slicy2(arrLike, offset) {
1860
- var arr = [];
1861
- for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1862
- arr[j2] = arrLike[i2];
1863
- }
1864
- return arr;
1865
- };
1866
- var joiny = function(arr, joiner) {
1867
- var str = "";
1868
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
1869
- str += arr[i2];
1870
- if (i2 + 1 < arr.length) {
1871
- str += joiner;
1872
- }
1836
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1837
+ var toStr = Object.prototype.toString;
1838
+ var max$2 = Math.max;
1839
+ var funcType = "[object Function]";
1840
+ var concatty = function concatty2(a2, b2) {
1841
+ var arr = [];
1842
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
1843
+ arr[i2] = a2[i2];
1844
+ }
1845
+ for (var j2 = 0; j2 < b2.length; j2 += 1) {
1846
+ arr[j2 + a2.length] = b2[j2];
1847
+ }
1848
+ return arr;
1849
+ };
1850
+ var slicy = function slicy2(arrLike, offset) {
1851
+ var arr = [];
1852
+ for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1853
+ arr[j2] = arrLike[i2];
1854
+ }
1855
+ return arr;
1856
+ };
1857
+ var joiny = function(arr, joiner) {
1858
+ var str = "";
1859
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
1860
+ str += arr[i2];
1861
+ if (i2 + 1 < arr.length) {
1862
+ str += joiner;
1873
1863
  }
1874
- return str;
1875
- };
1876
- implementation = function bind2(that) {
1877
- var target = this;
1878
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
1879
- throw new TypeError(ERROR_MESSAGE + target);
1880
- }
1881
- var args = slicy(arguments, 1);
1882
- var bound;
1883
- var binder = function() {
1884
- if (this instanceof bound) {
1885
- var result = target.apply(
1886
- this,
1887
- concatty(args, arguments)
1888
- );
1889
- if (Object(result) === result) {
1890
- return result;
1891
- }
1892
- return this;
1893
- }
1894
- return target.apply(
1895
- that,
1864
+ }
1865
+ return str;
1866
+ };
1867
+ var implementation$1 = function bind2(that) {
1868
+ var target = this;
1869
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
1870
+ throw new TypeError(ERROR_MESSAGE + target);
1871
+ }
1872
+ var args = slicy(arguments, 1);
1873
+ var bound;
1874
+ var binder = function() {
1875
+ if (this instanceof bound) {
1876
+ var result = target.apply(
1877
+ this,
1896
1878
  concatty(args, arguments)
1897
1879
  );
1898
- };
1899
- var boundLength = max2(0, target.length - args.length);
1900
- var boundArgs = [];
1901
- for (var i2 = 0; i2 < boundLength; i2++) {
1902
- boundArgs[i2] = "$" + i2;
1903
- }
1904
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1905
- if (target.prototype) {
1906
- var Empty = function Empty2() {
1907
- };
1908
- Empty.prototype = target.prototype;
1909
- bound.prototype = new Empty();
1910
- Empty.prototype = null;
1880
+ if (Object(result) === result) {
1881
+ return result;
1882
+ }
1883
+ return this;
1911
1884
  }
1912
- return bound;
1885
+ return target.apply(
1886
+ that,
1887
+ concatty(args, arguments)
1888
+ );
1913
1889
  };
1914
- return implementation;
1915
- }
1916
- var functionBind;
1917
- var hasRequiredFunctionBind;
1918
- function requireFunctionBind() {
1919
- if (hasRequiredFunctionBind)
1920
- return functionBind;
1921
- hasRequiredFunctionBind = 1;
1922
- var implementation2 = requireImplementation();
1923
- functionBind = Function.prototype.bind || implementation2;
1924
- return functionBind;
1925
- }
1926
- var functionCall;
1927
- var hasRequiredFunctionCall;
1928
- function requireFunctionCall() {
1929
- if (hasRequiredFunctionCall)
1930
- return functionCall;
1931
- hasRequiredFunctionCall = 1;
1932
- functionCall = Function.prototype.call;
1933
- return functionCall;
1934
- }
1890
+ var boundLength = max$2(0, target.length - args.length);
1891
+ var boundArgs = [];
1892
+ for (var i2 = 0; i2 < boundLength; i2++) {
1893
+ boundArgs[i2] = "$" + i2;
1894
+ }
1895
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1896
+ if (target.prototype) {
1897
+ var Empty = function Empty2() {
1898
+ };
1899
+ Empty.prototype = target.prototype;
1900
+ bound.prototype = new Empty();
1901
+ Empty.prototype = null;
1902
+ }
1903
+ return bound;
1904
+ };
1905
+ var implementation = implementation$1;
1906
+ var functionBind = Function.prototype.bind || implementation;
1907
+ var functionCall = Function.prototype.call;
1935
1908
  var functionApply;
1936
1909
  var hasRequiredFunctionApply;
1937
1910
  function requireFunctionApply() {
@@ -1942,14 +1915,14 @@
1942
1915
  return functionApply;
1943
1916
  }
1944
1917
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1945
- var bind$2 = requireFunctionBind();
1918
+ var bind$2 = functionBind;
1946
1919
  var $apply$1 = requireFunctionApply();
1947
- var $call$2 = requireFunctionCall();
1920
+ var $call$2 = functionCall;
1948
1921
  var $reflectApply = reflectApply;
1949
1922
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
1950
- var bind$1 = requireFunctionBind();
1923
+ var bind$1 = functionBind;
1951
1924
  var $TypeError$4 = type;
1952
- var $call$1 = requireFunctionCall();
1925
+ var $call$1 = functionCall;
1953
1926
  var $actualApply = actualApply;
1954
1927
  var callBindApplyHelpers = function callBindBasic2(args) {
1955
1928
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2018,7 +1991,7 @@
2018
1991
  hasRequiredHasown = 1;
2019
1992
  var call = Function.prototype.call;
2020
1993
  var $hasOwn = Object.prototype.hasOwnProperty;
2021
- var bind2 = requireFunctionBind();
1994
+ var bind2 = functionBind;
2022
1995
  hasown = bind2.call(call, $hasOwn);
2023
1996
  return hasown;
2024
1997
  }
@@ -2033,7 +2006,7 @@
2033
2006
  var $URIError = uri;
2034
2007
  var abs$1 = abs$2;
2035
2008
  var floor$1 = floor$2;
2036
- var max$1 = max$2;
2009
+ var max$1 = max$3;
2037
2010
  var min$1 = min$2;
2038
2011
  var pow$1 = pow$2;
2039
2012
  var round$2 = round$3;
@@ -2067,7 +2040,7 @@
2067
2040
  var $ObjectGPO = requireObject_getPrototypeOf();
2068
2041
  var $ReflectGPO = requireReflect_getPrototypeOf();
2069
2042
  var $apply = requireFunctionApply();
2070
- var $call = requireFunctionCall();
2043
+ var $call = functionCall;
2071
2044
  var needsEval = {};
2072
2045
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2073
2046
  var INTRINSICS = {
@@ -2096,7 +2069,6 @@
2096
2069
  "%eval%": eval,
2097
2070
  // eslint-disable-line no-eval
2098
2071
  "%EvalError%": $EvalError,
2099
- "%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
2100
2072
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
2101
2073
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
2102
2074
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -2238,7 +2210,7 @@
2238
2210
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2239
2211
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2240
2212
  };
2241
- var bind = requireFunctionBind();
2213
+ var bind = functionBind;
2242
2214
  var hasOwn = requireHasown();
2243
2215
  var $concat = bind.call($call, Array.prototype.concat);
2244
2216
  var $spliceApply = bind.call($apply, Array.prototype.splice);
@@ -2350,14 +2322,11 @@
2350
2322
  var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
2351
2323
  var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
2352
2324
  var intrinsic = (
2353
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2325
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
2354
2326
  GetIntrinsic$2(name, !!allowMissing)
2355
2327
  );
2356
2328
  if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
2357
- return callBindBasic(
2358
- /** @type {const} */
2359
- [intrinsic]
2360
- );
2329
+ return callBindBasic([intrinsic]);
2361
2330
  }
2362
2331
  return intrinsic;
2363
2332
  };
@@ -10978,7 +10947,7 @@ void main(void)
10978
10947
  */
10979
10948
  run(options) {
10980
10949
  const { renderer } = this;
10981
- renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.3 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
10950
+ 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);
10982
10951
  }
10983
10952
  destroy() {
10984
10953
  }
@@ -18229,8 +18198,7 @@ void main()
18229
18198
  if (keys.forEach((key2) => {
18230
18199
  this._cacheMap.set(key2, cachedAssets);
18231
18200
  }), cacheKeys.forEach((key2) => {
18232
- const val = cacheableAssets ? cacheableAssets[key2] : value;
18233
- this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
18201
+ this._cache.has(key2) && this._cache.get(key2) !== value && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
18234
18202
  }), value instanceof Texture) {
18235
18203
  const texture = value;
18236
18204
  keys.forEach((key2) => {
@@ -25746,11 +25714,12 @@ void main(void)\r
25746
25714
  subClass.__proto__ = superClass;
25747
25715
  }
25748
25716
  /*!
25749
- * GSAP 3.13.0
25717
+ * GSAP 3.12.5
25750
25718
  * https://gsap.com
25751
25719
  *
25752
- * @license Copyright 2008-2025, GreenSock. All rights reserved.
25753
- * Subject to the terms at https://gsap.com/standard-license
25720
+ * @license Copyright 2008-2024, GreenSock. All rights reserved.
25721
+ * Subject to the terms at https://gsap.com/standard-license or for
25722
+ * Club GSAP members, the agreement issued with that membership.
25754
25723
  * @author: Jack Doyle, jack@greensock.com
25755
25724
  */
25756
25725
  var _config = {
@@ -25841,11 +25810,9 @@ void main(void)\r
25841
25810
  tween = a2[i2];
25842
25811
  tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
25843
25812
  }
25844
- }, _isRevertWorthy = function _isRevertWorthy2(animation) {
25845
- return !!(animation._initted || animation._startAt || animation.add);
25846
25813
  }, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
25847
25814
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25848
- animation.render(time, suppressEvents, force || !!(_reverting$1 && time < 0 && _isRevertWorthy(animation)));
25815
+ animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
25849
25816
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25850
25817
  }, _numericIfPossible = function _numericIfPossible2(value) {
25851
25818
  var n2 = parseFloat(value);
@@ -25968,7 +25935,7 @@ void main(void)\r
25968
25935
  }, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
25969
25936
  return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
25970
25937
  }, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
25971
- var whole = Math.floor(tTime = _roundPrecise(tTime / cycleDuration));
25938
+ var whole = Math.floor(tTime /= cycleDuration);
25972
25939
  return tTime && whole === tTime ? whole - 1 : whole;
25973
25940
  }, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
25974
25941
  return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
@@ -26749,7 +26716,7 @@ void main(void)\r
26749
26716
  }, easeOut);
26750
26717
  })(7.5625, 2.75);
26751
26718
  _insertEase("Expo", function(p2) {
26752
- return Math.pow(2, 10 * (p2 - 1)) * p2 + p2 * p2 * p2 * p2 * p2 * p2 * (1 - p2);
26719
+ return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
26753
26720
  });
26754
26721
  _insertEase("Circ", function(p2) {
26755
26722
  return -(_sqrt(1 - p2 * p2) - 1);
@@ -26846,7 +26813,7 @@ void main(void)\r
26846
26813
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
26847
26814
  };
26848
26815
  _proto.totalProgress = function totalProgress(value, suppressEvents) {
26849
- return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
26816
+ return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
26850
26817
  };
26851
26818
  _proto.progress = function progress(value, suppressEvents) {
26852
26819
  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;
@@ -26865,7 +26832,7 @@ void main(void)\r
26865
26832
  var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
26866
26833
  this._rts = +value || 0;
26867
26834
  this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
26868
- this.totalTime(_clamp(-Math.abs(this._delay), this.totalDuration(), tTime), suppressEvents !== false);
26835
+ this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
26869
26836
  _setEnd(this);
26870
26837
  return _recacheAncestors(this);
26871
26838
  };
@@ -26908,7 +26875,7 @@ void main(void)\r
26908
26875
  }
26909
26876
  var prevIsReverting = _reverting$1;
26910
26877
  _reverting$1 = config2;
26911
- if (_isRevertWorthy(this)) {
26878
+ if (this._initted || this._startAt) {
26912
26879
  this.timeline && this.timeline.revert(config2);
26913
26880
  this.totalTime(-0.01, config2.suppressEvents);
26914
26881
  }
@@ -26951,9 +26918,7 @@ void main(void)\r
26951
26918
  return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
26952
26919
  };
26953
26920
  _proto.restart = function restart(includeDelay, suppressEvents) {
26954
- this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26955
- this._dur || (this._zTime = -_tinyNum);
26956
- return this;
26921
+ return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26957
26922
  };
26958
26923
  _proto.play = function play(from, suppressEvents) {
26959
26924
  from != null && this.seek(from, suppressEvents);
@@ -27130,9 +27095,8 @@ void main(void)\r
27130
27095
  iteration = this._repeat;
27131
27096
  time = dur;
27132
27097
  } else {
27133
- prevIteration = _roundPrecise(tTime / cycleDuration);
27134
- iteration = ~~prevIteration;
27135
- if (iteration && iteration === prevIteration) {
27098
+ iteration = ~~(tTime / cycleDuration);
27099
+ if (iteration && iteration === tTime / cycleDuration) {
27136
27100
  time = dur;
27137
27101
  iteration--;
27138
27102
  }
@@ -27186,7 +27150,7 @@ void main(void)\r
27186
27150
  this._zTime = totalTime;
27187
27151
  prevTime = 0;
27188
27152
  }
27189
- if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27153
+ if (!prevTime && time && !suppressEvents && !iteration) {
27190
27154
  _callback(this, "onStart");
27191
27155
  if (this._tTime !== tTime) {
27192
27156
  return this;
@@ -27218,7 +27182,7 @@ void main(void)\r
27218
27182
  if (child.parent !== this) {
27219
27183
  return this.render(totalTime, suppressEvents, force);
27220
27184
  }
27221
- 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 && _isRevertWorthy(child));
27185
+ 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));
27222
27186
  if (time !== this._time || !this._ts && !prevPaused) {
27223
27187
  pauseTween = 0;
27224
27188
  next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
@@ -27315,7 +27279,7 @@ void main(void)\r
27315
27279
  if (_isFunction(child)) {
27316
27280
  return this.killTweensOf(child);
27317
27281
  }
27318
- child.parent === this && _removeLinkedListItem(this, child);
27282
+ _removeLinkedListItem(this, child);
27319
27283
  if (child === this._recent) {
27320
27284
  this._recent = this._last;
27321
27285
  }
@@ -27917,7 +27881,7 @@ void main(void)\r
27917
27881
  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;
27918
27882
  if (!dur) {
27919
27883
  _renderZeroDurationTween(this, totalTime, suppressEvents, force);
27920
- } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative || this._lazy) {
27884
+ } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
27921
27885
  time = tTime;
27922
27886
  timeline = this.timeline;
27923
27887
  if (this._repeat) {
@@ -27930,14 +27894,12 @@ void main(void)\r
27930
27894
  iteration = this._repeat;
27931
27895
  time = dur;
27932
27896
  } else {
27933
- prevIteration = _roundPrecise(tTime / cycleDuration);
27934
- iteration = ~~prevIteration;
27935
- if (iteration && iteration === prevIteration) {
27897
+ iteration = ~~(tTime / cycleDuration);
27898
+ if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
27936
27899
  time = dur;
27937
27900
  iteration--;
27938
- } else if (time > dur) {
27939
- time = dur;
27940
27901
  }
27902
+ time > dur && (time = dur);
27941
27903
  }
27942
27904
  isYoyo = this._yoyo && iteration & 1;
27943
27905
  if (isYoyo) {
@@ -27951,7 +27913,7 @@ void main(void)\r
27951
27913
  }
27952
27914
  if (iteration !== prevIteration) {
27953
27915
  timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
27954
- if (this.vars.repeatRefresh && !isYoyo && !this._lock && time !== cycleDuration && this._initted) {
27916
+ if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
27955
27917
  this._lock = force = 1;
27956
27918
  this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
27957
27919
  }
@@ -27979,7 +27941,7 @@ void main(void)\r
27979
27941
  if (this._from) {
27980
27942
  this.ratio = ratio = 1 - ratio;
27981
27943
  }
27982
- if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27944
+ if (time && !prevTime && !suppressEvents && !iteration) {
27983
27945
  _callback(this, "onStart");
27984
27946
  if (this._tTime !== tTime) {
27985
27947
  return this;
@@ -28036,8 +27998,7 @@ void main(void)\r
28036
27998
  }
28037
27999
  if (!targets && (!vars || vars === "all")) {
28038
28000
  this._lazy = this._pt = 0;
28039
- this.parent ? _interrupt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!_reverting$1);
28040
- return this;
28001
+ return this.parent ? _interrupt(this) : this;
28041
28002
  }
28042
28003
  if (this.timeline) {
28043
28004
  var tDur = this.timeline.totalDuration();
@@ -28484,8 +28445,8 @@ void main(void)\r
28484
28445
  };
28485
28446
  },
28486
28447
  quickTo: function quickTo(target, property, vars) {
28487
- var _setDefaults2;
28488
- var tween = gsap.to(target, _setDefaults((_setDefaults2 = {}, _setDefaults2[property] = "+=0.1", _setDefaults2.paused = true, _setDefaults2.stagger = 0, _setDefaults2), vars || {})), func = function func2(value, start, startIsRelative) {
28448
+ var _merge2;
28449
+ var tween = gsap.to(target, _merge((_merge2 = {}, _merge2[property] = "+=0.1", _merge2.paused = true, _merge2), vars || {})), func = function func2(value, start, startIsRelative) {
28489
28450
  return tween.resetTo(property, value, start, startIsRelative);
28490
28451
  };
28491
28452
  func.tween = tween;
@@ -28647,7 +28608,6 @@ void main(void)\r
28647
28608
  }, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
28648
28609
  return {
28649
28610
  name,
28650
- headless: 1,
28651
28611
  rawVars: 1,
28652
28612
  //don't pre-process function-based values or "random()" strings.
28653
28613
  init: function init2(target, vars, tween) {
@@ -28694,7 +28654,6 @@ void main(void)\r
28694
28654
  }
28695
28655
  }, {
28696
28656
  name: "endArray",
28697
- headless: 1,
28698
28657
  init: function init2(target, value) {
28699
28658
  var i2 = value.length;
28700
28659
  while (i2--) {
@@ -28702,7 +28661,7 @@ void main(void)\r
28702
28661
  }
28703
28662
  }
28704
28663
  }, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
28705
- Tween.version = Timeline$1.version = gsap.version = "3.13.0";
28664
+ Tween.version = Timeline$1.version = gsap.version = "3.12.5";
28706
28665
  _coreReady = 1;
28707
28666
  _windowExists$1() && _wake();
28708
28667
  _easeMap.Power0;
@@ -28724,11 +28683,12 @@ void main(void)\r
28724
28683
  _easeMap.Expo;
28725
28684
  _easeMap.Circ;
28726
28685
  /*!
28727
- * CSSPlugin 3.13.0
28686
+ * CSSPlugin 3.12.5
28728
28687
  * https://gsap.com
28729
28688
  *
28730
- * Copyright 2008-2025, GreenSock. All rights reserved.
28731
- * Subject to the terms at https://gsap.com/standard-license
28689
+ * Copyright 2008-2024, GreenSock. All rights reserved.
28690
+ * Subject to the terms at https://gsap.com/standard-license or for
28691
+ * Club GSAP members, the agreement issued with that membership.
28732
28692
  * @author: Jack Doyle, jack@greensock.com
28733
28693
  */
28734
28694
  var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
@@ -28801,13 +28761,7 @@ void main(void)\r
28801
28761
  }, _revertStyle = function _revertStyle2() {
28802
28762
  var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
28803
28763
  for (i2 = 0; i2 < props.length; i2 += 3) {
28804
- if (!props[i2 + 1]) {
28805
- props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
28806
- } else if (props[i2 + 1] === 2) {
28807
- target[props[i2]](props[i2 + 2]);
28808
- } else {
28809
- target[props[i2]] = props[i2 + 2];
28810
- }
28764
+ 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());
28811
28765
  }
28812
28766
  if (this.tfm) {
28813
28767
  for (p2 in this.tfm) {
@@ -28836,7 +28790,7 @@ void main(void)\r
28836
28790
  save: _saveStyle
28837
28791
  };
28838
28792
  target._gsap || gsap.core.getCache(target);
28839
- properties && target.style && target.nodeType && properties.split(",").forEach(function(p2) {
28793
+ properties && properties.split(",").forEach(function(p2) {
28840
28794
  return saver.save(p2);
28841
28795
  });
28842
28796
  return saver;
@@ -28871,17 +28825,30 @@ void main(void)\r
28871
28825
  _reverting = gsap.core.reverting;
28872
28826
  _pluginInitted = 1;
28873
28827
  }
28874
- }, _getReparentedCloneBBox = function _getReparentedCloneBBox2(target) {
28875
- var owner = target.ownerSVGElement, svg = _createElement("svg", owner && owner.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), clone2 = target.cloneNode(true), bbox;
28876
- clone2.style.display = "block";
28877
- svg.appendChild(clone2);
28828
+ }, _getBBoxHack = function _getBBoxHack2(swapIfPossible) {
28829
+ 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;
28878
28830
  _docElement.appendChild(svg);
28879
- try {
28880
- bbox = clone2.getBBox();
28881
- } catch (e2) {
28831
+ svg.appendChild(this);
28832
+ this.style.display = "block";
28833
+ if (swapIfPossible) {
28834
+ try {
28835
+ bbox = this.getBBox();
28836
+ this._gsapBBox = this.getBBox;
28837
+ this.getBBox = _getBBoxHack2;
28838
+ } catch (e2) {
28839
+ }
28840
+ } else if (this._gsapBBox) {
28841
+ bbox = this._gsapBBox();
28842
+ }
28843
+ if (oldParent) {
28844
+ if (oldSibling) {
28845
+ oldParent.insertBefore(this, oldSibling);
28846
+ } else {
28847
+ oldParent.appendChild(this);
28848
+ }
28882
28849
  }
28883
- svg.removeChild(clone2);
28884
28850
  _docElement.removeChild(svg);
28851
+ this.style.cssText = oldCSS;
28885
28852
  return bbox;
28886
28853
  }, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
28887
28854
  var i2 = attributesArray.length;
@@ -28891,14 +28858,13 @@ void main(void)\r
28891
28858
  }
28892
28859
  }
28893
28860
  }, _getBBox = function _getBBox2(target) {
28894
- var bounds, cloned;
28861
+ var bounds;
28895
28862
  try {
28896
28863
  bounds = target.getBBox();
28897
28864
  } catch (error) {
28898
- bounds = _getReparentedCloneBBox(target);
28899
- cloned = 1;
28865
+ bounds = _getBBoxHack.call(target, true);
28900
28866
  }
28901
- bounds && (bounds.width || bounds.height) || cloned || (bounds = _getReparentedCloneBBox(target));
28867
+ bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
28902
28868
  return bounds && !bounds.width && !bounds.x && !bounds.y ? {
28903
28869
  x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
28904
28870
  y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
@@ -28949,7 +28915,7 @@ void main(void)\r
28949
28915
  return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
28950
28916
  }
28951
28917
  style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
28952
- parent = unit !== "rem" && ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28918
+ parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28953
28919
  if (isSVG) {
28954
28920
  parent = (target.ownerSVGElement || {}).parentNode;
28955
28921
  }
@@ -29014,9 +28980,6 @@ void main(void)\r
29014
28980
  pt.e = end;
29015
28981
  start += "";
29016
28982
  end += "";
29017
- if (end.substring(0, 6) === "var(--") {
29018
- end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
29019
- }
29020
28983
  if (end === "auto") {
29021
28984
  startValue = target.style[prop];
29022
28985
  target.style[prop] = end;
@@ -29110,7 +29073,6 @@ void main(void)\r
29110
29073
  _removeProperty(target, _transformProp);
29111
29074
  if (cache) {
29112
29075
  cache.svg && target.removeAttribute("transform");
29113
- style.scale = style.rotate = style.translate = "none";
29114
29076
  _parseTransform(target, 1);
29115
29077
  cache.uncache = 1;
29116
29078
  _removeIndependentTransforms(style);
@@ -29206,7 +29168,7 @@ void main(void)\r
29206
29168
  temp = style.display;
29207
29169
  style.display = "block";
29208
29170
  parent = target.parentNode;
29209
- if (!parent || !target.offsetParent && !target.getBoundingClientRect().width) {
29171
+ if (!parent || !target.offsetParent) {
29210
29172
  addedToDOM = 1;
29211
29173
  nextSibling = target.nextElementSibling;
29212
29174
  _docElement.appendChild(target);
@@ -29642,10 +29604,6 @@ void main(void)\r
29642
29604
  isTransformRelated = p2 in _transformProps;
29643
29605
  if (isTransformRelated) {
29644
29606
  this.styles.save(p2);
29645
- if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
29646
- endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
29647
- endNum = parseFloat(endValue);
29648
- }
29649
29607
  if (!transformPropTween) {
29650
29608
  cache = target._gsap;
29651
29609
  cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
@@ -29709,7 +29667,7 @@ void main(void)\r
29709
29667
  } else {
29710
29668
  _tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
29711
29669
  }
29712
- isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : typeof target[p2] === "function" ? inlineProps.push(p2, 2, target[p2]()) : inlineProps.push(p2, 1, startValue || target[p2]));
29670
+ isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
29713
29671
  props.push(p2);
29714
29672
  }
29715
29673
  }
@@ -32916,11 +32874,7 @@ void main(void)\r
32916
32874
  /**
32917
32875
  * past Spine.globalDelayLimit
32918
32876
  */
32919
- GLOBAL_DELAY_LIMIT: 0,
32920
- /**
32921
- * shows error in console if atlas page loading somehow failed
32922
- */
32923
- REPORT_TEXTURE_LOADER_ERROR: true
32877
+ GLOBAL_DELAY_LIMIT: 0
32924
32878
  };
32925
32879
  const tempRgb = [0, 0, 0];
32926
32880
  class SpineSprite extends Sprite {
@@ -33315,9 +33269,6 @@ void main(void)\r
33315
33269
  * @private
33316
33270
  */
33317
33271
  createMesh(slot, attachment) {
33318
- if (!attachment.region && attachment.sequence) {
33319
- attachment.sequence.apply(slot, attachment);
33320
- }
33321
33272
  let region = attachment.region;
33322
33273
  if (slot.hackAttachment === attachment) {
33323
33274
  region = slot.hackRegion;
@@ -40025,16 +39976,9 @@ void main(void)\r
40025
39976
  };
40026
39977
  const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
40027
39978
  return async (pageName, textureLoadedCallback) => {
40028
- try {
40029
- const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
40030
- const texture = await loader.load({ src: url, data: imageMetadata });
40031
- textureLoadedCallback(texture.baseTexture);
40032
- } catch (e2) {
40033
- {
40034
- console.error("Spine: error in texture loader", e2);
40035
- }
40036
- textureLoadedCallback(null);
40037
- }
39979
+ const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
39980
+ const texture = await loader.load({ src: url, data: imageMetadata });
39981
+ textureLoadedCallback(texture.baseTexture);
40038
39982
  };
40039
39983
  };
40040
39984
  extensions$2.add(spineTextureAtlasLoader);
@@ -48833,13 +48777,19 @@ void main(void)\r
48833
48777
  const { once = false, debounce = false, debounceTime = 1e3, preventDragClick = false } = params;
48834
48778
  v2.cursor = "pointer";
48835
48779
  v2.eventMode = "static";
48780
+ let lastX = 0;
48781
+ let lastY = 0;
48836
48782
  let isDragging = false;
48837
48783
  if (preventDragClick) {
48838
- v2.on("pointerdown", () => {
48784
+ v2.on("pointerdown", (e2) => {
48839
48785
  isDragging = false;
48786
+ lastX = e2.globalX;
48787
+ lastY = e2.globalY;
48840
48788
  });
48841
- v2.on("pointermove", () => {
48842
- isDragging = true;
48789
+ v2.on("pointermove", (e2) => {
48790
+ if (e2.globalX !== lastX || e2.globalY !== lastY) {
48791
+ isDragging = true;
48792
+ }
48843
48793
  });
48844
48794
  }
48845
48795
  const fn = (e2) => {
@@ -55456,10 +55406,10 @@ void main(void){
55456
55406
  }
55457
55407
  }
55458
55408
  /*!
55459
- * decimal.js v10.5.0
55409
+ * decimal.js v10.4.3
55460
55410
  * An arbitrary-precision Decimal type for JavaScript.
55461
55411
  * https://github.com/MikeMcl/decimal.js
55462
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
55412
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
55463
55413
  * MIT Licence
55464
55414
  */
55465
55415
  var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
@@ -55728,7 +55678,7 @@ void main(void){
55728
55678
  return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
55729
55679
  };
55730
55680
  P.inverseCosine = P.acos = function() {
55731
- var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55681
+ var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55732
55682
  if (k2 !== -1) {
55733
55683
  return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
55734
55684
  }
@@ -55736,10 +55686,11 @@ void main(void){
55736
55686
  return getPi(Ctor, pr + 4, rm).times(0.5);
55737
55687
  Ctor.precision = pr + 6;
55738
55688
  Ctor.rounding = 1;
55739
- x2 = new Ctor(1).minus(x2).div(x2.plus(1)).sqrt().atan();
55689
+ x2 = x2.asin();
55690
+ halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
55740
55691
  Ctor.precision = pr;
55741
55692
  Ctor.rounding = rm;
55742
- return x2.times(2);
55693
+ return halfPi.minus(x2);
55743
55694
  };
55744
55695
  P.inverseHyperbolicCosine = P.acosh = function() {
55745
55696
  var pr, rm, x2 = this, Ctor = x2.constructor;
@@ -56951,16 +56902,14 @@ void main(void){
56951
56902
  function isOdd(n2) {
56952
56903
  return n2.d[n2.d.length - 1] & 1;
56953
56904
  }
56954
- function maxOrMin(Ctor, args, n2) {
56955
- var k2, y2, x2 = new Ctor(args[0]), i2 = 0;
56905
+ function maxOrMin(Ctor, args, ltgt) {
56906
+ var y2, x2 = new Ctor(args[0]), i2 = 0;
56956
56907
  for (; ++i2 < args.length; ) {
56957
56908
  y2 = new Ctor(args[i2]);
56958
56909
  if (!y2.s) {
56959
56910
  x2 = y2;
56960
56911
  break;
56961
- }
56962
- k2 = x2.cmp(y2);
56963
- if (k2 === n2 || k2 === 0 && x2.s === n2) {
56912
+ } else if (x2[ltgt](y2)) {
56964
56913
  x2 = y2;
56965
56914
  }
56966
56915
  }
@@ -57541,8 +57490,7 @@ void main(void){
57541
57490
  x2.d = [v2];
57542
57491
  }
57543
57492
  return;
57544
- }
57545
- if (v2 * 0 !== 0) {
57493
+ } else if (v2 * 0 !== 0) {
57546
57494
  if (!v2)
57547
57495
  x2.s = NaN;
57548
57496
  x2.e = NaN;
@@ -57550,28 +57498,18 @@ void main(void){
57550
57498
  return;
57551
57499
  }
57552
57500
  return parseDecimal(x2, v2.toString());
57501
+ } else if (t2 !== "string") {
57502
+ throw Error(invalidArgument + v2);
57553
57503
  }
57554
- if (t2 === "string") {
57555
- if ((i3 = v2.charCodeAt(0)) === 45) {
57504
+ if ((i3 = v2.charCodeAt(0)) === 45) {
57505
+ v2 = v2.slice(1);
57506
+ x2.s = -1;
57507
+ } else {
57508
+ if (i3 === 43)
57556
57509
  v2 = v2.slice(1);
57557
- x2.s = -1;
57558
- } else {
57559
- if (i3 === 43)
57560
- v2 = v2.slice(1);
57561
- x2.s = 1;
57562
- }
57563
- return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57564
- }
57565
- if (t2 === "bigint") {
57566
- if (v2 < 0) {
57567
- v2 = -v2;
57568
- x2.s = -1;
57569
- } else {
57570
- x2.s = 1;
57571
- }
57572
- return parseDecimal(x2, v2.toString());
57510
+ x2.s = 1;
57573
57511
  }
57574
- throw Error(invalidArgument + v2);
57512
+ return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57575
57513
  }
57576
57514
  Decimal2.prototype = P;
57577
57515
  Decimal2.ROUND_UP = 0;
@@ -57681,10 +57619,10 @@ void main(void){
57681
57619
  return new this(x2).log(10);
57682
57620
  }
57683
57621
  function max() {
57684
- return maxOrMin(this, arguments, -1);
57622
+ return maxOrMin(this, arguments, "lt");
57685
57623
  }
57686
57624
  function min() {
57687
- return maxOrMin(this, arguments, 1);
57625
+ return maxOrMin(this, arguments, "gt");
57688
57626
  }
57689
57627
  function mod(x2, y2) {
57690
57628
  return new this(x2).mod(y2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.4",
3
+ "version": "1.11.6",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "decimal.js": "^10.4.3",
38
38
  "gsap": "^3.12.5",
39
39
  "howler": "^2.2.4",
40
- "lyb-js": "^1.6.4",
40
+ "lyb-js": "^1.6.5",
41
41
  "pixi-spine": "^4.0.4",
42
42
  "pixi.js": "^7.4.2",
43
43
  "vite": "^4.5.5"