lyb-pixi-js 1.11.28 → 1.11.30

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.
@@ -42,6 +42,10 @@ export declare class LibPixiScrollContainerY extends LibPixiContainer {
42
42
  private _scrollbarDragging;
43
43
  /** 滚动条拖动偏移量 */
44
44
  private _scrollbarDragOffset;
45
+ /** 滚动条右边距 */
46
+ private _scrollbarRgiht;
47
+ /** 滚动条宽度 */
48
+ private _scrollbarWidth;
45
49
  /** 滚动容器 */
46
50
  _scrollContent: Container;
47
51
  /** 遮罩 */
@@ -8,7 +8,7 @@ import { LibPixiRectangle } from "../Base/LibPixiRectangle";
8
8
  */
9
9
  export class LibPixiScrollContainerY extends LibPixiContainer {
10
10
  constructor(params) {
11
- const { width, height, scrollbar = false, scrollContent, scrollbarRgiht, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, bgColor, bottomMargin = 0, } = params;
11
+ const { width, height, scrollbar = false, scrollContent, scrollbarRgiht = 0, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, bgColor, bottomMargin = 0, } = params;
12
12
  super(width, height, bgColor);
13
13
  /** 开始位置 */
14
14
  this._startY = 0;
@@ -26,6 +26,8 @@ export class LibPixiScrollContainerY extends LibPixiContainer {
26
26
  this._scrollbarDragging = false;
27
27
  /** 滚动条拖动偏移量 */
28
28
  this._scrollbarDragOffset = 0;
29
+ this._scrollbarRgiht = scrollbarRgiht;
30
+ this._scrollbarWidth = scrollbarWidth;
29
31
  this._scrollContent = scrollContent;
30
32
  this._scrollbarColor = scrollbarColor;
31
33
  this._onScroll = onScroll;
@@ -96,7 +98,7 @@ export class LibPixiScrollContainerY extends LibPixiContainer {
96
98
  this._maskGraphics.drawRect(0, 0, width, height);
97
99
  this._maskGraphics.endFill();
98
100
  this.setSize(width, height);
99
- this._scrollbar.x = width - 50;
101
+ this._scrollbar.x = width - (this._scrollbarRgiht || this._scrollbarWidth);
100
102
  }
101
103
  /** @description 返回顶部 */
102
104
  scrollToTop() {
package/README.md CHANGED
@@ -112,9 +112,9 @@ app.stage.addChild(box);
112
112
 
113
113
  \- [LibPixiProgress-进度条](#LibPixiProgress-进度条)
114
114
 
115
- \- [LibPixiScrollContainerX-X轴滚动容器](#LibPixiScrollContainerX-X轴滚动容器)
115
+ \- [LibPixiScrollContainerX-X 轴滚动容器](#LibPixiScrollContainerX-X轴滚动容器)
116
116
 
117
- \- [LibPixiScrollContainerY-Y轴滚动容器](#LibPixiScrollContainerY-Y轴滚动容器)
117
+ \- [LibPixiScrollContainerY-Y 轴滚动容器](#LibPixiScrollContainerY-Y轴滚动容器)
118
118
 
119
119
  \- [LibPixiScrollNum-数字滑动](#LibPixiScrollNum-数字滑动)
120
120
 
@@ -122,8 +122,6 @@ app.stage.addChild(box);
122
122
 
123
123
  \- [LibPixiSlide-滑动页](#LibPixiSlide-滑动页)
124
124
 
125
- \- [LibPixiSubAddMinMax-数字控制器](#LibPixiSubAddMinMax-数字控制器)
126
-
127
125
  \- [LibPixiTable-数字表格](#LibPixiTable-数字表格)
128
126
 
129
127
  \- [LibPixiLabelValue-标签值](#LibPixiLabelValue-标签值)
@@ -323,14 +321,20 @@ const libPixiRectangle = new LibPixiRectangle(100, 100, "#fff");
323
321
  > 多边形类,可用于一些场景的局部点击,传颜色是为了方便定位,最终可能需要将颜色隐藏掉
324
322
 
325
323
  ```ts
326
- const polygonVertices = new LibPixiPolygon([
327
- 0, 0, 604, 0, 596, 32, 616, 30, 611, 62, 644, 57, 643, 87, 697, 82, 702, 102, 724, 86, 744, 83, 753, 91, 756, 83,
328
- 772, 85, 793, 100, 797, 114, 794, 316, 798, 336, 799, 476, 796, 491, 801, 507, 797, 635, 742, 656, 723, 683, 659,
329
- 687, 638, 678, 646, 712, 617, 707, 611, 717, 618, 741, 596, 734, 595, 746, 601, 762, 14, 763, 18, 739, -4, 741, 4,
330
- 712, -5, 705, -28, 711, -22, 686, -34, 679, -47, 686, -195, 686, -189, 667, -192, 647, -195, 506, -192, 499, -194,
331
- 476, -192, 331, -187, 323, -193, 307, -194, 110, -188, 103, -189, 93, -172, 81, -112, 82, -98, 95, -93, 80, -56,
332
- 82, -40, 89, -36, 80, -41, 57, -30, 57, -16, 62, -8, 58, -16, 29, 1, 35, 8, 25, 0, 0,
333
- ], "#000");
324
+ const polygonVertices = new LibPixiPolygon(
325
+ [
326
+ 0, 0, 604, 0, 596, 32, 616, 30, 611, 62, 644, 57, 643, 87, 697, 82, 702,
327
+ 102, 724, 86, 744, 83, 753, 91, 756, 83, 772, 85, 793, 100, 797, 114, 794,
328
+ 316, 798, 336, 799, 476, 796, 491, 801, 507, 797, 635, 742, 656, 723, 683,
329
+ 659, 687, 638, 678, 646, 712, 617, 707, 611, 717, 618, 741, 596, 734, 595,
330
+ 746, 601, 762, 14, 763, 18, 739, -4, 741, 4, 712, -5, 705, -28, 711, -22,
331
+ 686, -34, 679, -47, 686, -195, 686, -189, 667, -192, 647, -195, 506, -192,
332
+ 499, -194, 476, -192, 331, -187, 323, -193, 307, -194, 110, -188, 103, -189,
333
+ 93, -172, 81, -112, 82, -98, 95, -93, 80, -56, 82, -40, 89, -36, 80, -41,
334
+ 57, -30, 57, -16, 62, -8, 58, -16, 29, 1, 35, 8, 25, 0, 0,
335
+ ],
336
+ "#000"
337
+ );
334
338
  ```
335
339
 
336
340
  ### LibPixiCircular-圆形
@@ -662,7 +666,7 @@ progress.setProgress(0.5); //50% 完成
662
666
  app.stage.addChild(progress);
663
667
  ```
664
668
 
665
- ### LibPixiScrollContainerX-X轴滚动容器
669
+ ### LibPixiScrollContainerX-X 轴滚动容器
666
670
 
667
671
  > 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹
668
672
 
@@ -692,7 +696,7 @@ scrollContainer.setDimensions(800, 600);
692
696
  scrollContainer.addContent(new Sprite(Texture.from("new-content.png")));
693
697
  ```
694
698
 
695
- ### LibPixiScrollContainerY-Y轴滚动容器
699
+ ### LibPixiScrollContainerY-Y 轴滚动容器
696
700
 
697
701
  > 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹
698
702
 
@@ -815,42 +819,6 @@ const three = new LibPixiSlide({
815
819
  });
816
820
  ```
817
821
 
818
- ### LibPixiSubAddMinMax-数字控制器
819
-
820
- > 最小、最大按钮和增减按钮功能及置灰逻辑
821
-
822
- ```ts
823
- import { LibPixiSubAddMinMax } from "lyb-pixi-js";
824
-
825
- //创建按钮实例
826
- const betControl = new LibPixiSubAddMinMax({
827
- initialBetIndex: 0, //初始下注索引
828
- betAmountListLength: 10, //下注金额列表长度
829
- onAmountIndex: (index) => {
830
- console.log("当前下注金额索引:", index);
831
- },
832
- onDisabled: (type) => {
833
- if (type === "min") {
834
- minButton.tint = 0x999999; //禁用最小按钮
835
- } else if (type === "max") {
836
- maxButton.tint = 0x999999; //禁用最大按钮
837
- } else {
838
- minButton.tint = 0xffffff; //启用最小按钮
839
- maxButton.tint = 0xffffff; //启用最大按钮
840
- }
841
- },
842
- });
843
-
844
- //设置初始状态
845
- betControl.min(); //设置为最小值
846
- betControl.max(); //设置为最大值
847
- betControl.sub(); //减少下注
848
- betControl.add(); //增加下注
849
-
850
- //添加到Pixi舞台
851
- app.stage.addChild(minButton, maxButton, subButton, addButton);
852
- ```
853
-
854
822
  ### LibPixiTable-数字表格
855
823
 
856
824
  > 绘制表格并填充数字
@@ -1202,8 +1170,7 @@ const amountAnimation = _digitalIncreasingAnimation({
1202
1170
  onChange: (v) => {
1203
1171
  this._winAmountText.text = v;
1204
1172
  },
1205
- onComplete: () => {
1206
- },
1173
+ onComplete: () => {},
1207
1174
  });
1208
1175
  ```
1209
1176
 
@@ -1236,6 +1203,5 @@ LibPixiArrangeLinear(cardList, 20, "y"); //间隔20,y轴排列
1236
1203
  > 递归调用后代的事件发射器
1237
1204
 
1238
1205
  ```ts
1239
- LibPixiEmitContainerEvent(this, "EVENT_NAME", {})
1206
+ LibPixiEmitContainerEvent(this, "EVENT_NAME", {});
1240
1207
  ```
1241
-
@@ -21,7 +21,7 @@ const debounceImmediate = (func, wait) => {
21
21
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiEvent-事件注册
22
22
  */
23
23
  export const libPixiEvent = (v, eventName, callback, params = {}) => {
24
- const { once = false, debounce = false, debounceTime = 1000, preventDragClick = false, } = params;
24
+ const { once = false, debounce = false, debounceTime = 1000, preventDragClick = false } = params;
25
25
  v.cursor = "pointer";
26
26
  v.eventMode = "static";
27
27
  let lastX = 0;
@@ -32,11 +32,17 @@ export const libPixiEvent = (v, eventName, callback, params = {}) => {
32
32
  isDragging = false;
33
33
  lastX = e.globalX;
34
34
  lastY = e.globalY;
35
- });
36
- v.on("pointermove", (e) => {
37
- if (e.globalX !== lastX || e.globalY !== lastY) {
38
- isDragging = true;
39
- }
35
+ const moveHandler = (ev) => {
36
+ if (ev.globalX !== lastX || ev.globalY !== lastY) {
37
+ isDragging = true;
38
+ }
39
+ };
40
+ const upHandler = () => {
41
+ v.off("pointermove", moveHandler);
42
+ v.off("pointerup", upHandler);
43
+ };
44
+ v.on("pointermove", moveHandler);
45
+ v.on("pointerup", upHandler);
40
46
  });
41
47
  }
42
48
  const fn = (e) => {
package/libPixiJs.d.ts CHANGED
@@ -13,7 +13,6 @@ import { LibPixiScrollContainerX } from "./Components/Custom/LibPixiScrollContai
13
13
  import { LibPixiScrollContainerY } from "./Components/Custom/LibPixiScrollContainerY";
14
14
  import { LibPixiScrollNum } from "./Components/Custom/LibPixiScrollNum";
15
15
  import { LibPixiSlider } from "./Components/Custom/LibPixiSlider";
16
- import { LibPixiSubAddMinMax } from "./Components/Custom/LibPixiSubAddMinMax";
17
16
  import { LibPixiTable } from "./Components/Custom/LibPixiTable";
18
17
  import { LibPixiAudio } from "./Utils/LibPixiAudio";
19
18
  import { LibPixiSlideInput } from "./Utils/LibPixiSlideInput";
@@ -117,10 +116,6 @@ export declare const Components: {
117
116
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlide-滑动页
118
117
  */
119
118
  LibPixiSlide: typeof LibPixiSlide;
120
- /** @description 最小、最大按钮和增减按钮功能及置灰逻辑
121
- * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSubAddMinMax-数字控制器
122
- */
123
- LibPixiSubAddMinMax: typeof LibPixiSubAddMinMax;
124
119
  /** @description 绘制表格并填充数字
125
120
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiTable-数字表格
126
121
  */
package/libPixiJs.js CHANGED
@@ -13,7 +13,6 @@ import { LibPixiScrollContainerX } from "./Components/Custom/LibPixiScrollContai
13
13
  import { LibPixiScrollContainerY } from "./Components/Custom/LibPixiScrollContainerY";
14
14
  import { LibPixiScrollNum } from "./Components/Custom/LibPixiScrollNum";
15
15
  import { LibPixiSlider } from "./Components/Custom/LibPixiSlider";
16
- import { LibPixiSubAddMinMax } from "./Components/Custom/LibPixiSubAddMinMax";
17
16
  import { LibPixiTable } from "./Components/Custom/LibPixiTable";
18
17
  import { LibPixiAudio } from "./Utils/LibPixiAudio";
19
18
  import { libPixiCreateNineGrid } from "./Utils/LibPixiCreateNineGrid";
@@ -135,10 +134,6 @@ export const Components = {
135
134
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlide-滑动页
136
135
  */
137
136
  LibPixiSlide,
138
- /** @description 最小、最大按钮和增减按钮功能及置灰逻辑
139
- * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSubAddMinMax-数字控制器
140
- */
141
- LibPixiSubAddMinMax,
142
137
  /** @description 绘制表格并填充数字
143
138
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiTable-数字表格
144
139
  */
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$1(obj), 8, -1) : protoTag ? "Object" : "";
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$1(obj) === "[object Array]" && canTrustToString(obj);
1340
+ return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1344
1341
  }
1345
1342
  function isDate(obj) {
1346
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
1343
+ return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1347
1344
  }
1348
1345
  function isRegExp$1(obj) {
1349
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
1346
+ return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1350
1347
  }
1351
1348
  function isError(obj) {
1352
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
1349
+ return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1353
1350
  }
1354
1351
  function isString(obj) {
1355
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
1352
+ return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1356
1353
  }
1357
1354
  function isNumber(obj) {
1358
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
1355
+ return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1359
1356
  }
1360
1357
  function isBoolean(obj) {
1361
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
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$1(obj) {
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$3 = Math.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,77 +1833,93 @@
1836
1833
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
1837
1834
  return Object_getPrototypeOf;
1838
1835
  }
1839
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1840
- var toStr = Object.prototype.toString;
1841
- var max$2 = Math.max;
1842
- var funcType = "[object Function]";
1843
- var concatty = function concatty2(a2, b2) {
1844
- var arr = [];
1845
- for (var i2 = 0; i2 < a2.length; i2 += 1) {
1846
- arr[i2] = a2[i2];
1847
- }
1848
- for (var j2 = 0; j2 < b2.length; j2 += 1) {
1849
- arr[j2 + a2.length] = b2[j2];
1850
- }
1851
- return arr;
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
- return str;
1869
- };
1870
- var implementation$1 = function bind2(that) {
1871
- var target = this;
1872
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
1873
- throw new TypeError(ERROR_MESSAGE + target);
1874
- }
1875
- var args = slicy(arguments, 1);
1876
- var bound;
1877
- var binder = function() {
1878
- if (this instanceof bound) {
1879
- var result = target.apply(
1880
- this,
1881
- concatty(args, arguments)
1882
- );
1883
- if (Object(result) === result) {
1884
- return result;
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 target.apply(
1889
- that,
1890
- concatty(args, arguments)
1891
- );
1871
+ return str;
1892
1872
  };
1893
- var boundLength = max$2(0, target.length - args.length);
1894
- var boundArgs = [];
1895
- for (var i2 = 0; i2 < boundLength; i2++) {
1896
- boundArgs[i2] = "$" + i2;
1897
- }
1898
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1899
- if (target.prototype) {
1900
- var Empty = function Empty2() {
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
- Empty.prototype = target.prototype;
1903
- bound.prototype = new Empty();
1904
- Empty.prototype = null;
1905
- }
1906
- return bound;
1907
- };
1908
- var implementation = implementation$1;
1909
- var functionBind = Function.prototype.bind || implementation;
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
+ }
1910
1923
  var functionCall;
1911
1924
  var hasRequiredFunctionCall;
1912
1925
  function requireFunctionCall() {
@@ -1926,12 +1939,12 @@
1926
1939
  return functionApply;
1927
1940
  }
1928
1941
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1929
- var bind$2 = functionBind;
1942
+ var bind$2 = requireFunctionBind();
1930
1943
  var $apply$1 = requireFunctionApply();
1931
1944
  var $call$2 = requireFunctionCall();
1932
1945
  var $reflectApply = reflectApply;
1933
1946
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
1934
- var bind$1 = functionBind;
1947
+ var bind$1 = requireFunctionBind();
1935
1948
  var $TypeError$4 = type;
1936
1949
  var $call$1 = requireFunctionCall();
1937
1950
  var $actualApply = actualApply;
@@ -2002,7 +2015,7 @@
2002
2015
  hasRequiredHasown = 1;
2003
2016
  var call = Function.prototype.call;
2004
2017
  var $hasOwn = Object.prototype.hasOwnProperty;
2005
- var bind2 = functionBind;
2018
+ var bind2 = requireFunctionBind();
2006
2019
  hasown = bind2.call(call, $hasOwn);
2007
2020
  return hasown;
2008
2021
  }
@@ -2017,7 +2030,7 @@
2017
2030
  var $URIError = uri;
2018
2031
  var abs$1 = abs$2;
2019
2032
  var floor$1 = floor$2;
2020
- var max$1 = max$3;
2033
+ var max$1 = max$2;
2021
2034
  var min$1 = min$2;
2022
2035
  var pow$1 = pow$2;
2023
2036
  var round$2 = round$3;
@@ -2080,7 +2093,6 @@
2080
2093
  "%eval%": eval,
2081
2094
  // eslint-disable-line no-eval
2082
2095
  "%EvalError%": $EvalError,
2083
- "%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
2084
2096
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
2085
2097
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
2086
2098
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -2222,7 +2234,7 @@
2222
2234
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2223
2235
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2224
2236
  };
2225
- var bind = functionBind;
2237
+ var bind = requireFunctionBind();
2226
2238
  var hasOwn = requireHasown();
2227
2239
  var $concat = bind.call($call, Array.prototype.concat);
2228
2240
  var $spliceApply = bind.call($apply, Array.prototype.splice);
@@ -2334,14 +2346,11 @@
2334
2346
  var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
2335
2347
  var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
2336
2348
  var intrinsic = (
2337
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2349
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
2338
2350
  GetIntrinsic$2(name, !!allowMissing)
2339
2351
  );
2340
2352
  if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
2341
- return callBindBasic(
2342
- /** @type {const} */
2343
- [intrinsic]
2344
- );
2353
+ return callBindBasic([intrinsic]);
2345
2354
  }
2346
2355
  return intrinsic;
2347
2356
  };
@@ -10962,7 +10971,7 @@ void main(void)
10962
10971
  */
10963
10972
  run(options) {
10964
10973
  const { renderer } = this;
10965
- 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);
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);
10966
10975
  }
10967
10976
  destroy() {
10968
10977
  }
@@ -18213,8 +18222,7 @@ void main()
18213
18222
  if (keys.forEach((key2) => {
18214
18223
  this._cacheMap.set(key2, cachedAssets);
18215
18224
  }), cacheKeys.forEach((key2) => {
18216
- const val = cacheableAssets ? cacheableAssets[key2] : value;
18217
- 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]);
18218
18226
  }), value instanceof Texture) {
18219
18227
  const texture = value;
18220
18228
  keys.forEach((key2) => {
@@ -25730,11 +25738,12 @@ void main(void)\r
25730
25738
  subClass.__proto__ = superClass;
25731
25739
  }
25732
25740
  /*!
25733
- * GSAP 3.13.0
25741
+ * GSAP 3.12.5
25734
25742
  * https://gsap.com
25735
25743
  *
25736
- * @license Copyright 2008-2025, GreenSock. All rights reserved.
25737
- * 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.
25738
25747
  * @author: Jack Doyle, jack@greensock.com
25739
25748
  */
25740
25749
  var _config = {
@@ -25825,11 +25834,9 @@ void main(void)\r
25825
25834
  tween = a2[i2];
25826
25835
  tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
25827
25836
  }
25828
- }, _isRevertWorthy = function _isRevertWorthy2(animation) {
25829
- return !!(animation._initted || animation._startAt || animation.add);
25830
25837
  }, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
25831
25838
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25832
- animation.render(time, suppressEvents, force || !!(_reverting$1 && time < 0 && _isRevertWorthy(animation)));
25839
+ animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
25833
25840
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25834
25841
  }, _numericIfPossible = function _numericIfPossible2(value) {
25835
25842
  var n2 = parseFloat(value);
@@ -25952,7 +25959,7 @@ void main(void)\r
25952
25959
  }, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
25953
25960
  return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
25954
25961
  }, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
25955
- var whole = Math.floor(tTime = _roundPrecise(tTime / cycleDuration));
25962
+ var whole = Math.floor(tTime /= cycleDuration);
25956
25963
  return tTime && whole === tTime ? whole - 1 : whole;
25957
25964
  }, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
25958
25965
  return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
@@ -26733,7 +26740,7 @@ void main(void)\r
26733
26740
  }, easeOut);
26734
26741
  })(7.5625, 2.75);
26735
26742
  _insertEase("Expo", function(p2) {
26736
- return Math.pow(2, 10 * (p2 - 1)) * p2 + p2 * p2 * p2 * p2 * p2 * p2 * (1 - p2);
26743
+ return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
26737
26744
  });
26738
26745
  _insertEase("Circ", function(p2) {
26739
26746
  return -(_sqrt(1 - p2 * p2) - 1);
@@ -26830,7 +26837,7 @@ void main(void)\r
26830
26837
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
26831
26838
  };
26832
26839
  _proto.totalProgress = function totalProgress(value, suppressEvents) {
26833
- 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;
26840
+ return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
26834
26841
  };
26835
26842
  _proto.progress = function progress(value, suppressEvents) {
26836
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;
@@ -26849,7 +26856,7 @@ void main(void)\r
26849
26856
  var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
26850
26857
  this._rts = +value || 0;
26851
26858
  this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
26852
- this.totalTime(_clamp(-Math.abs(this._delay), this.totalDuration(), tTime), suppressEvents !== false);
26859
+ this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
26853
26860
  _setEnd(this);
26854
26861
  return _recacheAncestors(this);
26855
26862
  };
@@ -26892,7 +26899,7 @@ void main(void)\r
26892
26899
  }
26893
26900
  var prevIsReverting = _reverting$1;
26894
26901
  _reverting$1 = config2;
26895
- if (_isRevertWorthy(this)) {
26902
+ if (this._initted || this._startAt) {
26896
26903
  this.timeline && this.timeline.revert(config2);
26897
26904
  this.totalTime(-0.01, config2.suppressEvents);
26898
26905
  }
@@ -26935,9 +26942,7 @@ void main(void)\r
26935
26942
  return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
26936
26943
  };
26937
26944
  _proto.restart = function restart(includeDelay, suppressEvents) {
26938
- this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26939
- this._dur || (this._zTime = -_tinyNum);
26940
- return this;
26945
+ return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26941
26946
  };
26942
26947
  _proto.play = function play(from, suppressEvents) {
26943
26948
  from != null && this.seek(from, suppressEvents);
@@ -27114,9 +27119,8 @@ void main(void)\r
27114
27119
  iteration = this._repeat;
27115
27120
  time = dur;
27116
27121
  } else {
27117
- prevIteration = _roundPrecise(tTime / cycleDuration);
27118
- iteration = ~~prevIteration;
27119
- if (iteration && iteration === prevIteration) {
27122
+ iteration = ~~(tTime / cycleDuration);
27123
+ if (iteration && iteration === tTime / cycleDuration) {
27120
27124
  time = dur;
27121
27125
  iteration--;
27122
27126
  }
@@ -27170,7 +27174,7 @@ void main(void)\r
27170
27174
  this._zTime = totalTime;
27171
27175
  prevTime = 0;
27172
27176
  }
27173
- if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27177
+ if (!prevTime && time && !suppressEvents && !iteration) {
27174
27178
  _callback(this, "onStart");
27175
27179
  if (this._tTime !== tTime) {
27176
27180
  return this;
@@ -27202,7 +27206,7 @@ void main(void)\r
27202
27206
  if (child.parent !== this) {
27203
27207
  return this.render(totalTime, suppressEvents, force);
27204
27208
  }
27205
- 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));
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));
27206
27210
  if (time !== this._time || !this._ts && !prevPaused) {
27207
27211
  pauseTween = 0;
27208
27212
  next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
@@ -27299,7 +27303,7 @@ void main(void)\r
27299
27303
  if (_isFunction(child)) {
27300
27304
  return this.killTweensOf(child);
27301
27305
  }
27302
- child.parent === this && _removeLinkedListItem(this, child);
27306
+ _removeLinkedListItem(this, child);
27303
27307
  if (child === this._recent) {
27304
27308
  this._recent = this._last;
27305
27309
  }
@@ -27901,7 +27905,7 @@ void main(void)\r
27901
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;
27902
27906
  if (!dur) {
27903
27907
  _renderZeroDurationTween(this, totalTime, suppressEvents, force);
27904
- } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative || this._lazy) {
27908
+ } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
27905
27909
  time = tTime;
27906
27910
  timeline = this.timeline;
27907
27911
  if (this._repeat) {
@@ -27914,14 +27918,12 @@ void main(void)\r
27914
27918
  iteration = this._repeat;
27915
27919
  time = dur;
27916
27920
  } else {
27917
- prevIteration = _roundPrecise(tTime / cycleDuration);
27918
- iteration = ~~prevIteration;
27919
- if (iteration && iteration === prevIteration) {
27921
+ iteration = ~~(tTime / cycleDuration);
27922
+ if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
27920
27923
  time = dur;
27921
27924
  iteration--;
27922
- } else if (time > dur) {
27923
- time = dur;
27924
27925
  }
27926
+ time > dur && (time = dur);
27925
27927
  }
27926
27928
  isYoyo = this._yoyo && iteration & 1;
27927
27929
  if (isYoyo) {
@@ -27935,7 +27937,7 @@ void main(void)\r
27935
27937
  }
27936
27938
  if (iteration !== prevIteration) {
27937
27939
  timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
27938
- if (this.vars.repeatRefresh && !isYoyo && !this._lock && time !== cycleDuration && this._initted) {
27940
+ if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
27939
27941
  this._lock = force = 1;
27940
27942
  this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
27941
27943
  }
@@ -27963,7 +27965,7 @@ void main(void)\r
27963
27965
  if (this._from) {
27964
27966
  this.ratio = ratio = 1 - ratio;
27965
27967
  }
27966
- if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27968
+ if (time && !prevTime && !suppressEvents && !iteration) {
27967
27969
  _callback(this, "onStart");
27968
27970
  if (this._tTime !== tTime) {
27969
27971
  return this;
@@ -28020,8 +28022,7 @@ void main(void)\r
28020
28022
  }
28021
28023
  if (!targets && (!vars || vars === "all")) {
28022
28024
  this._lazy = this._pt = 0;
28023
- this.parent ? _interrupt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!_reverting$1);
28024
- return this;
28025
+ return this.parent ? _interrupt(this) : this;
28025
28026
  }
28026
28027
  if (this.timeline) {
28027
28028
  var tDur = this.timeline.totalDuration();
@@ -28468,8 +28469,8 @@ void main(void)\r
28468
28469
  };
28469
28470
  },
28470
28471
  quickTo: function quickTo(target, property, vars) {
28471
- var _setDefaults2;
28472
- 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) {
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) {
28473
28474
  return tween.resetTo(property, value, start, startIsRelative);
28474
28475
  };
28475
28476
  func.tween = tween;
@@ -28631,7 +28632,6 @@ void main(void)\r
28631
28632
  }, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
28632
28633
  return {
28633
28634
  name,
28634
- headless: 1,
28635
28635
  rawVars: 1,
28636
28636
  //don't pre-process function-based values or "random()" strings.
28637
28637
  init: function init2(target, vars, tween) {
@@ -28678,7 +28678,6 @@ void main(void)\r
28678
28678
  }
28679
28679
  }, {
28680
28680
  name: "endArray",
28681
- headless: 1,
28682
28681
  init: function init2(target, value) {
28683
28682
  var i2 = value.length;
28684
28683
  while (i2--) {
@@ -28686,7 +28685,7 @@ void main(void)\r
28686
28685
  }
28687
28686
  }
28688
28687
  }, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
28689
- Tween.version = Timeline$1.version = gsap.version = "3.13.0";
28688
+ Tween.version = Timeline$1.version = gsap.version = "3.12.5";
28690
28689
  _coreReady = 1;
28691
28690
  _windowExists$1() && _wake();
28692
28691
  _easeMap.Power0;
@@ -28708,11 +28707,12 @@ void main(void)\r
28708
28707
  _easeMap.Expo;
28709
28708
  _easeMap.Circ;
28710
28709
  /*!
28711
- * CSSPlugin 3.13.0
28710
+ * CSSPlugin 3.12.5
28712
28711
  * https://gsap.com
28713
28712
  *
28714
- * Copyright 2008-2025, GreenSock. All rights reserved.
28715
- * 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.
28716
28716
  * @author: Jack Doyle, jack@greensock.com
28717
28717
  */
28718
28718
  var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
@@ -28785,13 +28785,7 @@ void main(void)\r
28785
28785
  }, _revertStyle = function _revertStyle2() {
28786
28786
  var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
28787
28787
  for (i2 = 0; i2 < props.length; i2 += 3) {
28788
- if (!props[i2 + 1]) {
28789
- props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
28790
- } else if (props[i2 + 1] === 2) {
28791
- target[props[i2]](props[i2 + 2]);
28792
- } else {
28793
- target[props[i2]] = props[i2 + 2];
28794
- }
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());
28795
28789
  }
28796
28790
  if (this.tfm) {
28797
28791
  for (p2 in this.tfm) {
@@ -28820,7 +28814,7 @@ void main(void)\r
28820
28814
  save: _saveStyle
28821
28815
  };
28822
28816
  target._gsap || gsap.core.getCache(target);
28823
- properties && target.style && target.nodeType && properties.split(",").forEach(function(p2) {
28817
+ properties && properties.split(",").forEach(function(p2) {
28824
28818
  return saver.save(p2);
28825
28819
  });
28826
28820
  return saver;
@@ -28855,17 +28849,30 @@ void main(void)\r
28855
28849
  _reverting = gsap.core.reverting;
28856
28850
  _pluginInitted = 1;
28857
28851
  }
28858
- }, _getReparentedCloneBBox = function _getReparentedCloneBBox2(target) {
28859
- var owner = target.ownerSVGElement, svg = _createElement("svg", owner && owner.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), clone2 = target.cloneNode(true), bbox;
28860
- clone2.style.display = "block";
28861
- 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;
28862
28854
  _docElement.appendChild(svg);
28863
- try {
28864
- bbox = clone2.getBBox();
28865
- } catch (e2) {
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
+ }
28866
28873
  }
28867
- svg.removeChild(clone2);
28868
28874
  _docElement.removeChild(svg);
28875
+ this.style.cssText = oldCSS;
28869
28876
  return bbox;
28870
28877
  }, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
28871
28878
  var i2 = attributesArray.length;
@@ -28875,14 +28882,13 @@ void main(void)\r
28875
28882
  }
28876
28883
  }
28877
28884
  }, _getBBox = function _getBBox2(target) {
28878
- var bounds, cloned;
28885
+ var bounds;
28879
28886
  try {
28880
28887
  bounds = target.getBBox();
28881
28888
  } catch (error) {
28882
- bounds = _getReparentedCloneBBox(target);
28883
- cloned = 1;
28889
+ bounds = _getBBoxHack.call(target, true);
28884
28890
  }
28885
- bounds && (bounds.width || bounds.height) || cloned || (bounds = _getReparentedCloneBBox(target));
28891
+ bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
28886
28892
  return bounds && !bounds.width && !bounds.x && !bounds.y ? {
28887
28893
  x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
28888
28894
  y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
@@ -28933,7 +28939,7 @@ void main(void)\r
28933
28939
  return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
28934
28940
  }
28935
28941
  style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
28936
- parent = unit !== "rem" && ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28942
+ parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28937
28943
  if (isSVG) {
28938
28944
  parent = (target.ownerSVGElement || {}).parentNode;
28939
28945
  }
@@ -28998,9 +29004,6 @@ void main(void)\r
28998
29004
  pt.e = end;
28999
29005
  start += "";
29000
29006
  end += "";
29001
- if (end.substring(0, 6) === "var(--") {
29002
- end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
29003
- }
29004
29007
  if (end === "auto") {
29005
29008
  startValue = target.style[prop];
29006
29009
  target.style[prop] = end;
@@ -29094,7 +29097,6 @@ void main(void)\r
29094
29097
  _removeProperty(target, _transformProp);
29095
29098
  if (cache) {
29096
29099
  cache.svg && target.removeAttribute("transform");
29097
- style.scale = style.rotate = style.translate = "none";
29098
29100
  _parseTransform(target, 1);
29099
29101
  cache.uncache = 1;
29100
29102
  _removeIndependentTransforms(style);
@@ -29190,7 +29192,7 @@ void main(void)\r
29190
29192
  temp = style.display;
29191
29193
  style.display = "block";
29192
29194
  parent = target.parentNode;
29193
- if (!parent || !target.offsetParent && !target.getBoundingClientRect().width) {
29195
+ if (!parent || !target.offsetParent) {
29194
29196
  addedToDOM = 1;
29195
29197
  nextSibling = target.nextElementSibling;
29196
29198
  _docElement.appendChild(target);
@@ -29626,10 +29628,6 @@ void main(void)\r
29626
29628
  isTransformRelated = p2 in _transformProps;
29627
29629
  if (isTransformRelated) {
29628
29630
  this.styles.save(p2);
29629
- if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
29630
- endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
29631
- endNum = parseFloat(endValue);
29632
- }
29633
29631
  if (!transformPropTween) {
29634
29632
  cache = target._gsap;
29635
29633
  cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
@@ -29693,7 +29691,7 @@ void main(void)\r
29693
29691
  } else {
29694
29692
  _tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
29695
29693
  }
29696
- 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]));
29694
+ isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
29697
29695
  props.push(p2);
29698
29696
  }
29699
29697
  }
@@ -32900,11 +32898,7 @@ void main(void)\r
32900
32898
  /**
32901
32899
  * past Spine.globalDelayLimit
32902
32900
  */
32903
- GLOBAL_DELAY_LIMIT: 0,
32904
- /**
32905
- * shows error in console if atlas page loading somehow failed
32906
- */
32907
- REPORT_TEXTURE_LOADER_ERROR: true
32901
+ GLOBAL_DELAY_LIMIT: 0
32908
32902
  };
32909
32903
  const tempRgb = [0, 0, 0];
32910
32904
  class SpineSprite extends Sprite {
@@ -33299,9 +33293,6 @@ void main(void)\r
33299
33293
  * @private
33300
33294
  */
33301
33295
  createMesh(slot, attachment) {
33302
- if (!attachment.region && attachment.sequence) {
33303
- attachment.sequence.apply(slot, attachment);
33304
- }
33305
33296
  let region = attachment.region;
33306
33297
  if (slot.hackAttachment === attachment) {
33307
33298
  region = slot.hackRegion;
@@ -40009,16 +40000,9 @@ void main(void)\r
40009
40000
  };
40010
40001
  const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
40011
40002
  return async (pageName, textureLoadedCallback) => {
40012
- try {
40013
- const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
40014
- const texture = await loader.load({ src: url, data: imageMetadata });
40015
- textureLoadedCallback(texture.baseTexture);
40016
- } catch (e2) {
40017
- {
40018
- console.error("Spine: error in texture loader", e2);
40019
- }
40020
- textureLoadedCallback(null);
40021
- }
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);
40022
40006
  };
40023
40007
  };
40024
40008
  extensions$2.add(spineTextureAtlasLoader);
@@ -48814,12 +48798,7 @@ void main(void)\r
48814
48798
  };
48815
48799
  };
48816
48800
  const libPixiEvent = (v2, eventName, callback, params = {}) => {
48817
- const {
48818
- once = false,
48819
- debounce = false,
48820
- debounceTime = 1e3,
48821
- preventDragClick = false
48822
- } = params;
48801
+ const { once = false, debounce = false, debounceTime = 1e3, preventDragClick = false } = params;
48823
48802
  v2.cursor = "pointer";
48824
48803
  v2.eventMode = "static";
48825
48804
  let lastX = 0;
@@ -48830,11 +48809,17 @@ void main(void)\r
48830
48809
  isDragging = false;
48831
48810
  lastX = e2.globalX;
48832
48811
  lastY = e2.globalY;
48833
- });
48834
- v2.on("pointermove", (e2) => {
48835
- if (e2.globalX !== lastX || e2.globalY !== lastY) {
48836
- isDragging = true;
48837
- }
48812
+ const moveHandler = (ev) => {
48813
+ if (ev.globalX !== lastX || ev.globalY !== lastY) {
48814
+ isDragging = true;
48815
+ }
48816
+ };
48817
+ const upHandler = () => {
48818
+ v2.off("pointermove", moveHandler);
48819
+ v2.off("pointerup", upHandler);
48820
+ };
48821
+ v2.on("pointermove", moveHandler);
48822
+ v2.on("pointerup", upHandler);
48838
48823
  });
48839
48824
  }
48840
48825
  const fn = (e2) => {
@@ -49292,7 +49277,7 @@ void main(void)\r
49292
49277
  height,
49293
49278
  scrollbar = false,
49294
49279
  scrollContent,
49295
- scrollbarRgiht,
49280
+ scrollbarRgiht = 0,
49296
49281
  scrollbarWidth = 10,
49297
49282
  scrollbarColor = "#ffffff",
49298
49283
  onScroll,
@@ -49308,6 +49293,8 @@ void main(void)\r
49308
49293
  this._isDragging = false;
49309
49294
  this._scrollbarDragging = false;
49310
49295
  this._scrollbarDragOffset = 0;
49296
+ this._scrollbarRgiht = scrollbarRgiht;
49297
+ this._scrollbarWidth = scrollbarWidth;
49311
49298
  this._scrollContent = scrollContent;
49312
49299
  this._scrollbarColor = scrollbarColor;
49313
49300
  this._onScroll = onScroll;
@@ -49379,7 +49366,7 @@ void main(void)\r
49379
49366
  this._maskGraphics.drawRect(0, 0, width, height);
49380
49367
  this._maskGraphics.endFill();
49381
49368
  this.setSize(width, height);
49382
- this._scrollbar.x = width - 50;
49369
+ this._scrollbar.x = width - (this._scrollbarRgiht || this._scrollbarWidth);
49383
49370
  }
49384
49371
  /** @description 返回顶部 */
49385
49372
  scrollToTop() {
@@ -49896,112 +49883,6 @@ void main(void)\r
49896
49883
  }
49897
49884
  }
49898
49885
  }
49899
- class LibJsNumberStepper {
49900
- /**
49901
- * @param numsLength 数字长度
49902
- * @param onChange 数字变动时触发
49903
- */
49904
- constructor(numsLength, onChange) {
49905
- this._currentIndex = 0;
49906
- this._numsLength = 0;
49907
- this._isDown = false;
49908
- this._onChange = onChange;
49909
- this._numsLength = numsLength;
49910
- window.addEventListener("pointerup", () => {
49911
- this._isDown && this._up();
49912
- });
49913
- }
49914
- /** @description 按下
49915
- * @param type 操作类型 add:加 sub:减
49916
- */
49917
- down(type2) {
49918
- this._isDown = true;
49919
- this._handleChange(type2);
49920
- this._timerId = setTimeout(() => {
49921
- if (this._isDown) {
49922
- this._intervalId = setInterval(() => {
49923
- this._handleChange(type2);
49924
- }, 100);
49925
- }
49926
- }, 100);
49927
- }
49928
- /** @description 更新索引 */
49929
- updateIndex(index) {
49930
- this._currentIndex = index;
49931
- }
49932
- /** @description 抬起 */
49933
- _up() {
49934
- this._isDown = false;
49935
- clearTimeout(this._timerId);
49936
- clearInterval(this._intervalId);
49937
- }
49938
- /** @description 处理数字变化
49939
- * @param type 操作类型 add:加 sub:减
49940
- */
49941
- _handleChange(type2) {
49942
- if (type2 === "add") {
49943
- if (this._currentIndex < this._numsLength - 1) {
49944
- this._currentIndex++;
49945
- this._onChange(this._currentIndex);
49946
- }
49947
- } else if (type2 === "sub") {
49948
- if (this._currentIndex > 0) {
49949
- this._currentIndex--;
49950
- this._onChange(this._currentIndex);
49951
- }
49952
- }
49953
- }
49954
- }
49955
- class LibPixiSubAddMinMax {
49956
- constructor(params) {
49957
- this._betAmountListLength = 0;
49958
- const { initialBetIndex, betAmountListLength, onAmountIndex, onDisabled } = params;
49959
- this._onAmountIndex = onAmountIndex;
49960
- this._onDisabled = onDisabled;
49961
- this._betAmountListLength = betAmountListLength;
49962
- this._baseNumSteper = new LibJsNumberStepper(
49963
- betAmountListLength,
49964
- (index) => {
49965
- this._onAmountIndex(index);
49966
- this.minMaxUpdateIndex(index);
49967
- }
49968
- );
49969
- this.minMaxUpdateIndex(initialBetIndex);
49970
- this._baseNumSteper.updateIndex(initialBetIndex);
49971
- }
49972
- /** @description 点击最小按钮 */
49973
- min() {
49974
- this.minMaxUpdateIndex(0);
49975
- this._onAmountIndex(0);
49976
- }
49977
- /** @description 点击最大按钮 */
49978
- max() {
49979
- const index = this._betAmountListLength - 1;
49980
- this.minMaxUpdateIndex(index);
49981
- this._onAmountIndex(index);
49982
- }
49983
- /** @description 点击减少按钮 */
49984
- sub() {
49985
- this._baseNumSteper.down("sub");
49986
- }
49987
- /** @description 点击增加按钮 */
49988
- add() {
49989
- this._baseNumSteper.down("add");
49990
- }
49991
- /** @description 改变最小最大按钮状态及回调
49992
- * @param index 索引
49993
- */
49994
- minMaxUpdateIndex(index) {
49995
- if (index === 0) {
49996
- this._onDisabled("min");
49997
- } else if (index === this._betAmountListLength - 1) {
49998
- this._onDisabled("max");
49999
- } else {
50000
- this._onDisabled();
50001
- }
50002
- this._baseNumSteper.updateIndex(index);
50003
- }
50004
- }
50005
49886
  const libPixiScaleContainer = (scaleContainer, maxWidth, maxHeight) => {
50006
49887
  const scaleX = maxWidth / scaleContainer.width * scaleContainer.scale.x;
50007
49888
  const scaleY = maxHeight ? maxHeight / scaleContainer.height * scaleContainer.scale.y : scaleX;
@@ -55439,10 +55320,10 @@ void main(void){
55439
55320
  }
55440
55321
  }
55441
55322
  /*!
55442
- * decimal.js v10.5.0
55323
+ * decimal.js v10.4.3
55443
55324
  * An arbitrary-precision Decimal type for JavaScript.
55444
55325
  * https://github.com/MikeMcl/decimal.js
55445
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
55326
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
55446
55327
  * MIT Licence
55447
55328
  */
55448
55329
  var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
@@ -55711,7 +55592,7 @@ void main(void){
55711
55592
  return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
55712
55593
  };
55713
55594
  P.inverseCosine = P.acos = function() {
55714
- var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55595
+ var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55715
55596
  if (k2 !== -1) {
55716
55597
  return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
55717
55598
  }
@@ -55719,10 +55600,11 @@ void main(void){
55719
55600
  return getPi(Ctor, pr + 4, rm).times(0.5);
55720
55601
  Ctor.precision = pr + 6;
55721
55602
  Ctor.rounding = 1;
55722
- x2 = new Ctor(1).minus(x2).div(x2.plus(1)).sqrt().atan();
55603
+ x2 = x2.asin();
55604
+ halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
55723
55605
  Ctor.precision = pr;
55724
55606
  Ctor.rounding = rm;
55725
- return x2.times(2);
55607
+ return halfPi.minus(x2);
55726
55608
  };
55727
55609
  P.inverseHyperbolicCosine = P.acosh = function() {
55728
55610
  var pr, rm, x2 = this, Ctor = x2.constructor;
@@ -56934,16 +56816,14 @@ void main(void){
56934
56816
  function isOdd(n2) {
56935
56817
  return n2.d[n2.d.length - 1] & 1;
56936
56818
  }
56937
- function maxOrMin(Ctor, args, n2) {
56938
- var k2, y2, x2 = new Ctor(args[0]), i2 = 0;
56819
+ function maxOrMin(Ctor, args, ltgt) {
56820
+ var y2, x2 = new Ctor(args[0]), i2 = 0;
56939
56821
  for (; ++i2 < args.length; ) {
56940
56822
  y2 = new Ctor(args[i2]);
56941
56823
  if (!y2.s) {
56942
56824
  x2 = y2;
56943
56825
  break;
56944
- }
56945
- k2 = x2.cmp(y2);
56946
- if (k2 === n2 || k2 === 0 && x2.s === n2) {
56826
+ } else if (x2[ltgt](y2)) {
56947
56827
  x2 = y2;
56948
56828
  }
56949
56829
  }
@@ -57524,8 +57404,7 @@ void main(void){
57524
57404
  x2.d = [v2];
57525
57405
  }
57526
57406
  return;
57527
- }
57528
- if (v2 * 0 !== 0) {
57407
+ } else if (v2 * 0 !== 0) {
57529
57408
  if (!v2)
57530
57409
  x2.s = NaN;
57531
57410
  x2.e = NaN;
@@ -57533,28 +57412,18 @@ void main(void){
57533
57412
  return;
57534
57413
  }
57535
57414
  return parseDecimal(x2, v2.toString());
57415
+ } else if (t2 !== "string") {
57416
+ throw Error(invalidArgument + v2);
57536
57417
  }
57537
- if (t2 === "string") {
57538
- if ((i3 = v2.charCodeAt(0)) === 45) {
57418
+ if ((i3 = v2.charCodeAt(0)) === 45) {
57419
+ v2 = v2.slice(1);
57420
+ x2.s = -1;
57421
+ } else {
57422
+ if (i3 === 43)
57539
57423
  v2 = v2.slice(1);
57540
- x2.s = -1;
57541
- } else {
57542
- if (i3 === 43)
57543
- v2 = v2.slice(1);
57544
- x2.s = 1;
57545
- }
57546
- return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57547
- }
57548
- if (t2 === "bigint") {
57549
- if (v2 < 0) {
57550
- v2 = -v2;
57551
- x2.s = -1;
57552
- } else {
57553
- x2.s = 1;
57554
- }
57555
- return parseDecimal(x2, v2.toString());
57424
+ x2.s = 1;
57556
57425
  }
57557
- throw Error(invalidArgument + v2);
57426
+ return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57558
57427
  }
57559
57428
  Decimal2.prototype = P;
57560
57429
  Decimal2.ROUND_UP = 0;
@@ -57664,10 +57533,10 @@ void main(void){
57664
57533
  return new this(x2).log(10);
57665
57534
  }
57666
57535
  function max() {
57667
- return maxOrMin(this, arguments, -1);
57536
+ return maxOrMin(this, arguments, "lt");
57668
57537
  }
57669
57538
  function min() {
57670
- return maxOrMin(this, arguments, 1);
57539
+ return maxOrMin(this, arguments, "gt");
57671
57540
  }
57672
57541
  function mod(x2, y2) {
57673
57542
  return new this(x2).mod(y2);
@@ -58220,10 +58089,6 @@ void main(void){
58220
58089
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlide-滑动页
58221
58090
  */
58222
58091
  LibPixiSlide,
58223
- /** @description 最小、最大按钮和增减按钮功能及置灰逻辑
58224
- * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSubAddMinMax-数字控制器
58225
- */
58226
- LibPixiSubAddMinMax,
58227
58092
  /** @description 绘制表格并填充数字
58228
58093
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiTable-数字表格
58229
58094
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.28",
3
+ "version": "1.11.30",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {