lyb-pixi-js 1.11.29 → 1.11.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -54
- package/Utils/LibPixiEvent.js +12 -6
- package/Utils/LibPixiGridLayout.d.ts +2 -1
- package/Utils/LibPixiGridLayout.js +14 -9
- package/libPixiJs.d.ts +1 -6
- package/libPixiJs.js +0 -5
- package/lyb-pixi.js +119 -269
- package/package.json +1 -1
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
|
package/Utils/LibPixiEvent.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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) => {
|
|
@@ -5,5 +5,6 @@ import { Container } from "pixi.js";
|
|
|
5
5
|
* @param gap 每个元素之间的间隔
|
|
6
6
|
* @param cols 网格的列数,默认为元素数量
|
|
7
7
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
|
|
8
|
+
* @param direction 排列方向: "row" 行优先(默认) | "col" 列优先
|
|
8
9
|
*/
|
|
9
|
-
export declare const LibPixiGridLayout: (items: Container[], gap: number, cols?: number) => void;
|
|
10
|
+
export declare const LibPixiGridLayout: (items: Container[], gap: number, cols?: number, direction?: "row" | "col") => void;
|
|
@@ -4,19 +4,24 @@
|
|
|
4
4
|
* @param gap 每个元素之间的间隔
|
|
5
5
|
* @param cols 网格的列数,默认为元素数量
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
|
|
7
|
+
* @param direction 排列方向: "row" 行优先(默认) | "col" 列优先
|
|
7
8
|
*/
|
|
8
|
-
export const LibPixiGridLayout = (items, gap, cols = items.length) => {
|
|
9
|
-
|
|
9
|
+
export const LibPixiGridLayout = (items, gap, cols = items.length, direction = "row") => {
|
|
10
|
+
const rows = Math.ceil(items.length / cols); // 动态计算行数
|
|
10
11
|
items.forEach((item, index) => {
|
|
11
12
|
const itemWidth = item.width || 0;
|
|
12
13
|
const itemHeight = item.height || 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
let colIndex = 0;
|
|
15
|
+
let rowIndex = 0;
|
|
16
|
+
if (direction === "row") {
|
|
17
|
+
colIndex = index % cols;
|
|
18
|
+
rowIndex = Math.floor(index / cols);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
colIndex = Math.floor(index / rows);
|
|
22
|
+
rowIndex = index % rows;
|
|
20
23
|
}
|
|
24
|
+
item.x = colIndex * (itemWidth + gap);
|
|
25
|
+
item.y = rowIndex * (itemHeight + gap);
|
|
21
26
|
});
|
|
22
27
|
};
|
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
|
*/
|
|
@@ -236,7 +231,7 @@ export declare const Utils: {
|
|
|
236
231
|
* @param cols 网格的列数,默认为元素数量
|
|
237
232
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
|
|
238
233
|
*/
|
|
239
|
-
LibPixiGridLayout: (items: import("pixi.js").Container[], gap: number, cols?: number) => void;
|
|
234
|
+
LibPixiGridLayout: (items: import("pixi.js").Container[], gap: number, cols?: number, direction?: "row" | "col") => void;
|
|
240
235
|
/**
|
|
241
236
|
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
242
237
|
* @param items 要排列的元素数组。
|
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
|
@@ -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]" &&
|
|
1340
|
+
return toStr$1(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1344
1341
|
}
|
|
1345
1342
|
function isDate(obj) {
|
|
1346
|
-
return toStr$1(obj) === "[object Date]" &&
|
|
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$1(obj) === "[object RegExp]" &&
|
|
1346
|
+
return toStr$1(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1350
1347
|
}
|
|
1351
1348
|
function isError(obj) {
|
|
1352
|
-
return toStr$1(obj) === "[object Error]" &&
|
|
1349
|
+
return toStr$1(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1353
1350
|
}
|
|
1354
1351
|
function isString(obj) {
|
|
1355
|
-
return toStr$1(obj) === "[object String]" &&
|
|
1352
|
+
return toStr$1(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1356
1353
|
}
|
|
1357
1354
|
function isNumber(obj) {
|
|
1358
|
-
return toStr$1(obj) === "[object Number]" &&
|
|
1355
|
+
return toStr$1(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1359
1356
|
}
|
|
1360
1357
|
function isBoolean(obj) {
|
|
1361
|
-
return toStr$1(obj) === "[object Boolean]" &&
|
|
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) {
|
|
@@ -2072,7 +2069,6 @@
|
|
|
2072
2069
|
"%eval%": eval,
|
|
2073
2070
|
// eslint-disable-line no-eval
|
|
2074
2071
|
"%EvalError%": $EvalError,
|
|
2075
|
-
"%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
|
|
2076
2072
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
2077
2073
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
2078
2074
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -2326,14 +2322,11 @@
|
|
|
2326
2322
|
var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
|
|
2327
2323
|
var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
|
|
2328
2324
|
var intrinsic = (
|
|
2329
|
-
/** @type {
|
|
2325
|
+
/** @type {Parameters<typeof callBindBasic>[0][0]} */
|
|
2330
2326
|
GetIntrinsic$2(name, !!allowMissing)
|
|
2331
2327
|
);
|
|
2332
2328
|
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
2333
|
-
return callBindBasic(
|
|
2334
|
-
/** @type {const} */
|
|
2335
|
-
[intrinsic]
|
|
2336
|
-
);
|
|
2329
|
+
return callBindBasic([intrinsic]);
|
|
2337
2330
|
}
|
|
2338
2331
|
return intrinsic;
|
|
2339
2332
|
};
|
|
@@ -10954,7 +10947,7 @@ void main(void)
|
|
|
10954
10947
|
*/
|
|
10955
10948
|
run(options) {
|
|
10956
10949
|
const { renderer } = this;
|
|
10957
|
-
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.
|
|
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);
|
|
10958
10951
|
}
|
|
10959
10952
|
destroy() {
|
|
10960
10953
|
}
|
|
@@ -18205,8 +18198,7 @@ void main()
|
|
|
18205
18198
|
if (keys.forEach((key2) => {
|
|
18206
18199
|
this._cacheMap.set(key2, cachedAssets);
|
|
18207
18200
|
}), cacheKeys.forEach((key2) => {
|
|
18208
|
-
|
|
18209
|
-
this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18201
|
+
this._cache.has(key2) && this._cache.get(key2) !== value && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18210
18202
|
}), value instanceof Texture) {
|
|
18211
18203
|
const texture = value;
|
|
18212
18204
|
keys.forEach((key2) => {
|
|
@@ -25722,11 +25714,12 @@ void main(void)\r
|
|
|
25722
25714
|
subClass.__proto__ = superClass;
|
|
25723
25715
|
}
|
|
25724
25716
|
/*!
|
|
25725
|
-
* GSAP 3.
|
|
25717
|
+
* GSAP 3.12.5
|
|
25726
25718
|
* https://gsap.com
|
|
25727
25719
|
*
|
|
25728
|
-
* @license Copyright 2008-
|
|
25729
|
-
* 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.
|
|
25730
25723
|
* @author: Jack Doyle, jack@greensock.com
|
|
25731
25724
|
*/
|
|
25732
25725
|
var _config = {
|
|
@@ -25817,11 +25810,9 @@ void main(void)\r
|
|
|
25817
25810
|
tween = a2[i2];
|
|
25818
25811
|
tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
|
|
25819
25812
|
}
|
|
25820
|
-
}, _isRevertWorthy = function _isRevertWorthy2(animation) {
|
|
25821
|
-
return !!(animation._initted || animation._startAt || animation.add);
|
|
25822
25813
|
}, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
|
|
25823
25814
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25824
|
-
animation.render(time, suppressEvents, force ||
|
|
25815
|
+
animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
|
|
25825
25816
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25826
25817
|
}, _numericIfPossible = function _numericIfPossible2(value) {
|
|
25827
25818
|
var n2 = parseFloat(value);
|
|
@@ -25944,7 +25935,7 @@ void main(void)\r
|
|
|
25944
25935
|
}, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
|
|
25945
25936
|
return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
|
|
25946
25937
|
}, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
|
|
25947
|
-
var whole = Math.floor(tTime
|
|
25938
|
+
var whole = Math.floor(tTime /= cycleDuration);
|
|
25948
25939
|
return tTime && whole === tTime ? whole - 1 : whole;
|
|
25949
25940
|
}, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
|
|
25950
25941
|
return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
|
|
@@ -26725,7 +26716,7 @@ void main(void)\r
|
|
|
26725
26716
|
}, easeOut);
|
|
26726
26717
|
})(7.5625, 2.75);
|
|
26727
26718
|
_insertEase("Expo", function(p2) {
|
|
26728
|
-
return Math.pow(2, 10 * (p2 - 1))
|
|
26719
|
+
return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
|
|
26729
26720
|
});
|
|
26730
26721
|
_insertEase("Circ", function(p2) {
|
|
26731
26722
|
return -(_sqrt(1 - p2 * p2) - 1);
|
|
@@ -26822,7 +26813,7 @@ void main(void)\r
|
|
|
26822
26813
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
|
|
26823
26814
|
};
|
|
26824
26815
|
_proto.totalProgress = function totalProgress(value, suppressEvents) {
|
|
26825
|
-
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime()
|
|
26816
|
+
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
|
|
26826
26817
|
};
|
|
26827
26818
|
_proto.progress = function progress(value, suppressEvents) {
|
|
26828
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;
|
|
@@ -26841,7 +26832,7 @@ void main(void)\r
|
|
|
26841
26832
|
var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
|
|
26842
26833
|
this._rts = +value || 0;
|
|
26843
26834
|
this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
|
|
26844
|
-
this.totalTime(_clamp(-Math.abs(this._delay), this.
|
|
26835
|
+
this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
|
|
26845
26836
|
_setEnd(this);
|
|
26846
26837
|
return _recacheAncestors(this);
|
|
26847
26838
|
};
|
|
@@ -26884,7 +26875,7 @@ void main(void)\r
|
|
|
26884
26875
|
}
|
|
26885
26876
|
var prevIsReverting = _reverting$1;
|
|
26886
26877
|
_reverting$1 = config2;
|
|
26887
|
-
if (
|
|
26878
|
+
if (this._initted || this._startAt) {
|
|
26888
26879
|
this.timeline && this.timeline.revert(config2);
|
|
26889
26880
|
this.totalTime(-0.01, config2.suppressEvents);
|
|
26890
26881
|
}
|
|
@@ -26927,9 +26918,7 @@ void main(void)\r
|
|
|
26927
26918
|
return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
|
|
26928
26919
|
};
|
|
26929
26920
|
_proto.restart = function restart(includeDelay, suppressEvents) {
|
|
26930
|
-
this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26931
|
-
this._dur || (this._zTime = -_tinyNum);
|
|
26932
|
-
return this;
|
|
26921
|
+
return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26933
26922
|
};
|
|
26934
26923
|
_proto.play = function play(from, suppressEvents) {
|
|
26935
26924
|
from != null && this.seek(from, suppressEvents);
|
|
@@ -27106,9 +27095,8 @@ void main(void)\r
|
|
|
27106
27095
|
iteration = this._repeat;
|
|
27107
27096
|
time = dur;
|
|
27108
27097
|
} else {
|
|
27109
|
-
|
|
27110
|
-
iteration
|
|
27111
|
-
if (iteration && iteration === prevIteration) {
|
|
27098
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27099
|
+
if (iteration && iteration === tTime / cycleDuration) {
|
|
27112
27100
|
time = dur;
|
|
27113
27101
|
iteration--;
|
|
27114
27102
|
}
|
|
@@ -27162,7 +27150,7 @@ void main(void)\r
|
|
|
27162
27150
|
this._zTime = totalTime;
|
|
27163
27151
|
prevTime = 0;
|
|
27164
27152
|
}
|
|
27165
|
-
if (!prevTime &&
|
|
27153
|
+
if (!prevTime && time && !suppressEvents && !iteration) {
|
|
27166
27154
|
_callback(this, "onStart");
|
|
27167
27155
|
if (this._tTime !== tTime) {
|
|
27168
27156
|
return this;
|
|
@@ -27194,7 +27182,7 @@ void main(void)\r
|
|
|
27194
27182
|
if (child.parent !== this) {
|
|
27195
27183
|
return this.render(totalTime, suppressEvents, force);
|
|
27196
27184
|
}
|
|
27197
|
-
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 &&
|
|
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));
|
|
27198
27186
|
if (time !== this._time || !this._ts && !prevPaused) {
|
|
27199
27187
|
pauseTween = 0;
|
|
27200
27188
|
next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
|
|
@@ -27291,7 +27279,7 @@ void main(void)\r
|
|
|
27291
27279
|
if (_isFunction(child)) {
|
|
27292
27280
|
return this.killTweensOf(child);
|
|
27293
27281
|
}
|
|
27294
|
-
|
|
27282
|
+
_removeLinkedListItem(this, child);
|
|
27295
27283
|
if (child === this._recent) {
|
|
27296
27284
|
this._recent = this._last;
|
|
27297
27285
|
}
|
|
@@ -27893,7 +27881,7 @@ void main(void)\r
|
|
|
27893
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;
|
|
27894
27882
|
if (!dur) {
|
|
27895
27883
|
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
|
|
27896
|
-
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative
|
|
27884
|
+
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
|
|
27897
27885
|
time = tTime;
|
|
27898
27886
|
timeline = this.timeline;
|
|
27899
27887
|
if (this._repeat) {
|
|
@@ -27906,14 +27894,12 @@ void main(void)\r
|
|
|
27906
27894
|
iteration = this._repeat;
|
|
27907
27895
|
time = dur;
|
|
27908
27896
|
} else {
|
|
27909
|
-
|
|
27910
|
-
iteration
|
|
27911
|
-
if (iteration && iteration === prevIteration) {
|
|
27897
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27898
|
+
if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
|
|
27912
27899
|
time = dur;
|
|
27913
27900
|
iteration--;
|
|
27914
|
-
} else if (time > dur) {
|
|
27915
|
-
time = dur;
|
|
27916
27901
|
}
|
|
27902
|
+
time > dur && (time = dur);
|
|
27917
27903
|
}
|
|
27918
27904
|
isYoyo = this._yoyo && iteration & 1;
|
|
27919
27905
|
if (isYoyo) {
|
|
@@ -27927,7 +27913,7 @@ void main(void)\r
|
|
|
27927
27913
|
}
|
|
27928
27914
|
if (iteration !== prevIteration) {
|
|
27929
27915
|
timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
|
|
27930
|
-
if (this.vars.repeatRefresh && !isYoyo && !this._lock &&
|
|
27916
|
+
if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
|
|
27931
27917
|
this._lock = force = 1;
|
|
27932
27918
|
this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
|
|
27933
27919
|
}
|
|
@@ -27955,7 +27941,7 @@ void main(void)\r
|
|
|
27955
27941
|
if (this._from) {
|
|
27956
27942
|
this.ratio = ratio = 1 - ratio;
|
|
27957
27943
|
}
|
|
27958
|
-
if (
|
|
27944
|
+
if (time && !prevTime && !suppressEvents && !iteration) {
|
|
27959
27945
|
_callback(this, "onStart");
|
|
27960
27946
|
if (this._tTime !== tTime) {
|
|
27961
27947
|
return this;
|
|
@@ -28012,8 +27998,7 @@ void main(void)\r
|
|
|
28012
27998
|
}
|
|
28013
27999
|
if (!targets && (!vars || vars === "all")) {
|
|
28014
28000
|
this._lazy = this._pt = 0;
|
|
28015
|
-
this.parent ? _interrupt(this) : this
|
|
28016
|
-
return this;
|
|
28001
|
+
return this.parent ? _interrupt(this) : this;
|
|
28017
28002
|
}
|
|
28018
28003
|
if (this.timeline) {
|
|
28019
28004
|
var tDur = this.timeline.totalDuration();
|
|
@@ -28460,8 +28445,8 @@ void main(void)\r
|
|
|
28460
28445
|
};
|
|
28461
28446
|
},
|
|
28462
28447
|
quickTo: function quickTo(target, property, vars) {
|
|
28463
|
-
var
|
|
28464
|
-
var tween = gsap.to(target,
|
|
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) {
|
|
28465
28450
|
return tween.resetTo(property, value, start, startIsRelative);
|
|
28466
28451
|
};
|
|
28467
28452
|
func.tween = tween;
|
|
@@ -28623,7 +28608,6 @@ void main(void)\r
|
|
|
28623
28608
|
}, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
|
|
28624
28609
|
return {
|
|
28625
28610
|
name,
|
|
28626
|
-
headless: 1,
|
|
28627
28611
|
rawVars: 1,
|
|
28628
28612
|
//don't pre-process function-based values or "random()" strings.
|
|
28629
28613
|
init: function init2(target, vars, tween) {
|
|
@@ -28670,7 +28654,6 @@ void main(void)\r
|
|
|
28670
28654
|
}
|
|
28671
28655
|
}, {
|
|
28672
28656
|
name: "endArray",
|
|
28673
|
-
headless: 1,
|
|
28674
28657
|
init: function init2(target, value) {
|
|
28675
28658
|
var i2 = value.length;
|
|
28676
28659
|
while (i2--) {
|
|
@@ -28678,7 +28661,7 @@ void main(void)\r
|
|
|
28678
28661
|
}
|
|
28679
28662
|
}
|
|
28680
28663
|
}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
|
|
28681
|
-
Tween.version = Timeline$1.version = gsap.version = "3.
|
|
28664
|
+
Tween.version = Timeline$1.version = gsap.version = "3.12.5";
|
|
28682
28665
|
_coreReady = 1;
|
|
28683
28666
|
_windowExists$1() && _wake();
|
|
28684
28667
|
_easeMap.Power0;
|
|
@@ -28700,11 +28683,12 @@ void main(void)\r
|
|
|
28700
28683
|
_easeMap.Expo;
|
|
28701
28684
|
_easeMap.Circ;
|
|
28702
28685
|
/*!
|
|
28703
|
-
* CSSPlugin 3.
|
|
28686
|
+
* CSSPlugin 3.12.5
|
|
28704
28687
|
* https://gsap.com
|
|
28705
28688
|
*
|
|
28706
|
-
* Copyright 2008-
|
|
28707
|
-
* 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.
|
|
28708
28692
|
* @author: Jack Doyle, jack@greensock.com
|
|
28709
28693
|
*/
|
|
28710
28694
|
var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
|
|
@@ -28777,13 +28761,7 @@ void main(void)\r
|
|
|
28777
28761
|
}, _revertStyle = function _revertStyle2() {
|
|
28778
28762
|
var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
|
|
28779
28763
|
for (i2 = 0; i2 < props.length; i2 += 3) {
|
|
28780
|
-
|
|
28781
|
-
props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28782
|
-
} else if (props[i2 + 1] === 2) {
|
|
28783
|
-
target[props[i2]](props[i2 + 2]);
|
|
28784
|
-
} else {
|
|
28785
|
-
target[props[i2]] = props[i2 + 2];
|
|
28786
|
-
}
|
|
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());
|
|
28787
28765
|
}
|
|
28788
28766
|
if (this.tfm) {
|
|
28789
28767
|
for (p2 in this.tfm) {
|
|
@@ -28812,7 +28790,7 @@ void main(void)\r
|
|
|
28812
28790
|
save: _saveStyle
|
|
28813
28791
|
};
|
|
28814
28792
|
target._gsap || gsap.core.getCache(target);
|
|
28815
|
-
properties &&
|
|
28793
|
+
properties && properties.split(",").forEach(function(p2) {
|
|
28816
28794
|
return saver.save(p2);
|
|
28817
28795
|
});
|
|
28818
28796
|
return saver;
|
|
@@ -28847,17 +28825,30 @@ void main(void)\r
|
|
|
28847
28825
|
_reverting = gsap.core.reverting;
|
|
28848
28826
|
_pluginInitted = 1;
|
|
28849
28827
|
}
|
|
28850
|
-
},
|
|
28851
|
-
var
|
|
28852
|
-
clone2.style.display = "block";
|
|
28853
|
-
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;
|
|
28854
28830
|
_docElement.appendChild(svg);
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
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
|
+
}
|
|
28858
28849
|
}
|
|
28859
|
-
svg.removeChild(clone2);
|
|
28860
28850
|
_docElement.removeChild(svg);
|
|
28851
|
+
this.style.cssText = oldCSS;
|
|
28861
28852
|
return bbox;
|
|
28862
28853
|
}, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
|
|
28863
28854
|
var i2 = attributesArray.length;
|
|
@@ -28867,14 +28858,13 @@ void main(void)\r
|
|
|
28867
28858
|
}
|
|
28868
28859
|
}
|
|
28869
28860
|
}, _getBBox = function _getBBox2(target) {
|
|
28870
|
-
var bounds
|
|
28861
|
+
var bounds;
|
|
28871
28862
|
try {
|
|
28872
28863
|
bounds = target.getBBox();
|
|
28873
28864
|
} catch (error) {
|
|
28874
|
-
bounds =
|
|
28875
|
-
cloned = 1;
|
|
28865
|
+
bounds = _getBBoxHack.call(target, true);
|
|
28876
28866
|
}
|
|
28877
|
-
bounds && (bounds.width || bounds.height) ||
|
|
28867
|
+
bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
|
|
28878
28868
|
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
|
|
28879
28869
|
x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
|
|
28880
28870
|
y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
|
|
@@ -28925,7 +28915,7 @@ void main(void)\r
|
|
|
28925
28915
|
return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
|
|
28926
28916
|
}
|
|
28927
28917
|
style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
|
|
28928
|
-
parent =
|
|
28918
|
+
parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
|
|
28929
28919
|
if (isSVG) {
|
|
28930
28920
|
parent = (target.ownerSVGElement || {}).parentNode;
|
|
28931
28921
|
}
|
|
@@ -28990,9 +28980,6 @@ void main(void)\r
|
|
|
28990
28980
|
pt.e = end;
|
|
28991
28981
|
start += "";
|
|
28992
28982
|
end += "";
|
|
28993
|
-
if (end.substring(0, 6) === "var(--") {
|
|
28994
|
-
end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
|
|
28995
|
-
}
|
|
28996
28983
|
if (end === "auto") {
|
|
28997
28984
|
startValue = target.style[prop];
|
|
28998
28985
|
target.style[prop] = end;
|
|
@@ -29086,7 +29073,6 @@ void main(void)\r
|
|
|
29086
29073
|
_removeProperty(target, _transformProp);
|
|
29087
29074
|
if (cache) {
|
|
29088
29075
|
cache.svg && target.removeAttribute("transform");
|
|
29089
|
-
style.scale = style.rotate = style.translate = "none";
|
|
29090
29076
|
_parseTransform(target, 1);
|
|
29091
29077
|
cache.uncache = 1;
|
|
29092
29078
|
_removeIndependentTransforms(style);
|
|
@@ -29182,7 +29168,7 @@ void main(void)\r
|
|
|
29182
29168
|
temp = style.display;
|
|
29183
29169
|
style.display = "block";
|
|
29184
29170
|
parent = target.parentNode;
|
|
29185
|
-
if (!parent || !target.offsetParent
|
|
29171
|
+
if (!parent || !target.offsetParent) {
|
|
29186
29172
|
addedToDOM = 1;
|
|
29187
29173
|
nextSibling = target.nextElementSibling;
|
|
29188
29174
|
_docElement.appendChild(target);
|
|
@@ -29618,10 +29604,6 @@ void main(void)\r
|
|
|
29618
29604
|
isTransformRelated = p2 in _transformProps;
|
|
29619
29605
|
if (isTransformRelated) {
|
|
29620
29606
|
this.styles.save(p2);
|
|
29621
|
-
if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
|
|
29622
|
-
endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
|
|
29623
|
-
endNum = parseFloat(endValue);
|
|
29624
|
-
}
|
|
29625
29607
|
if (!transformPropTween) {
|
|
29626
29608
|
cache = target._gsap;
|
|
29627
29609
|
cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
|
|
@@ -29685,7 +29667,7 @@ void main(void)\r
|
|
|
29685
29667
|
} else {
|
|
29686
29668
|
_tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
|
|
29687
29669
|
}
|
|
29688
|
-
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) :
|
|
29670
|
+
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
|
|
29689
29671
|
props.push(p2);
|
|
29690
29672
|
}
|
|
29691
29673
|
}
|
|
@@ -32892,11 +32874,7 @@ void main(void)\r
|
|
|
32892
32874
|
/**
|
|
32893
32875
|
* past Spine.globalDelayLimit
|
|
32894
32876
|
*/
|
|
32895
|
-
GLOBAL_DELAY_LIMIT: 0
|
|
32896
|
-
/**
|
|
32897
|
-
* shows error in console if atlas page loading somehow failed
|
|
32898
|
-
*/
|
|
32899
|
-
REPORT_TEXTURE_LOADER_ERROR: true
|
|
32877
|
+
GLOBAL_DELAY_LIMIT: 0
|
|
32900
32878
|
};
|
|
32901
32879
|
const tempRgb = [0, 0, 0];
|
|
32902
32880
|
class SpineSprite extends Sprite {
|
|
@@ -33291,9 +33269,6 @@ void main(void)\r
|
|
|
33291
33269
|
* @private
|
|
33292
33270
|
*/
|
|
33293
33271
|
createMesh(slot, attachment) {
|
|
33294
|
-
if (!attachment.region && attachment.sequence) {
|
|
33295
|
-
attachment.sequence.apply(slot, attachment);
|
|
33296
|
-
}
|
|
33297
33272
|
let region = attachment.region;
|
|
33298
33273
|
if (slot.hackAttachment === attachment) {
|
|
33299
33274
|
region = slot.hackRegion;
|
|
@@ -40001,16 +39976,9 @@ void main(void)\r
|
|
|
40001
39976
|
};
|
|
40002
39977
|
const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
|
|
40003
39978
|
return async (pageName, textureLoadedCallback) => {
|
|
40004
|
-
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
textureLoadedCallback(texture.baseTexture);
|
|
40008
|
-
} catch (e2) {
|
|
40009
|
-
{
|
|
40010
|
-
console.error("Spine: error in texture loader", e2);
|
|
40011
|
-
}
|
|
40012
|
-
textureLoadedCallback(null);
|
|
40013
|
-
}
|
|
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);
|
|
40014
39982
|
};
|
|
40015
39983
|
};
|
|
40016
39984
|
extensions$2.add(spineTextureAtlasLoader);
|
|
@@ -48806,12 +48774,7 @@ void main(void)\r
|
|
|
48806
48774
|
};
|
|
48807
48775
|
};
|
|
48808
48776
|
const libPixiEvent = (v2, eventName, callback, params = {}) => {
|
|
48809
|
-
const {
|
|
48810
|
-
once = false,
|
|
48811
|
-
debounce = false,
|
|
48812
|
-
debounceTime = 1e3,
|
|
48813
|
-
preventDragClick = false
|
|
48814
|
-
} = params;
|
|
48777
|
+
const { once = false, debounce = false, debounceTime = 1e3, preventDragClick = false } = params;
|
|
48815
48778
|
v2.cursor = "pointer";
|
|
48816
48779
|
v2.eventMode = "static";
|
|
48817
48780
|
let lastX = 0;
|
|
@@ -48822,11 +48785,17 @@ void main(void)\r
|
|
|
48822
48785
|
isDragging = false;
|
|
48823
48786
|
lastX = e2.globalX;
|
|
48824
48787
|
lastY = e2.globalY;
|
|
48825
|
-
|
|
48826
|
-
|
|
48827
|
-
|
|
48828
|
-
|
|
48829
|
-
}
|
|
48788
|
+
const moveHandler = (ev) => {
|
|
48789
|
+
if (ev.globalX !== lastX || ev.globalY !== lastY) {
|
|
48790
|
+
isDragging = true;
|
|
48791
|
+
}
|
|
48792
|
+
};
|
|
48793
|
+
const upHandler = () => {
|
|
48794
|
+
v2.off("pointermove", moveHandler);
|
|
48795
|
+
v2.off("pointerup", upHandler);
|
|
48796
|
+
};
|
|
48797
|
+
v2.on("pointermove", moveHandler);
|
|
48798
|
+
v2.on("pointerup", upHandler);
|
|
48830
48799
|
});
|
|
48831
48800
|
}
|
|
48832
48801
|
const fn = (e2) => {
|
|
@@ -49890,112 +49859,6 @@ void main(void)\r
|
|
|
49890
49859
|
}
|
|
49891
49860
|
}
|
|
49892
49861
|
}
|
|
49893
|
-
class LibJsNumberStepper {
|
|
49894
|
-
/**
|
|
49895
|
-
* @param numsLength 数字长度
|
|
49896
|
-
* @param onChange 数字变动时触发
|
|
49897
|
-
*/
|
|
49898
|
-
constructor(numsLength, onChange) {
|
|
49899
|
-
this._currentIndex = 0;
|
|
49900
|
-
this._numsLength = 0;
|
|
49901
|
-
this._isDown = false;
|
|
49902
|
-
this._onChange = onChange;
|
|
49903
|
-
this._numsLength = numsLength;
|
|
49904
|
-
window.addEventListener("pointerup", () => {
|
|
49905
|
-
this._isDown && this._up();
|
|
49906
|
-
});
|
|
49907
|
-
}
|
|
49908
|
-
/** @description 按下
|
|
49909
|
-
* @param type 操作类型 add:加 sub:减
|
|
49910
|
-
*/
|
|
49911
|
-
down(type2) {
|
|
49912
|
-
this._isDown = true;
|
|
49913
|
-
this._handleChange(type2);
|
|
49914
|
-
this._timerId = setTimeout(() => {
|
|
49915
|
-
if (this._isDown) {
|
|
49916
|
-
this._intervalId = setInterval(() => {
|
|
49917
|
-
this._handleChange(type2);
|
|
49918
|
-
}, 100);
|
|
49919
|
-
}
|
|
49920
|
-
}, 100);
|
|
49921
|
-
}
|
|
49922
|
-
/** @description 更新索引 */
|
|
49923
|
-
updateIndex(index) {
|
|
49924
|
-
this._currentIndex = index;
|
|
49925
|
-
}
|
|
49926
|
-
/** @description 抬起 */
|
|
49927
|
-
_up() {
|
|
49928
|
-
this._isDown = false;
|
|
49929
|
-
clearTimeout(this._timerId);
|
|
49930
|
-
clearInterval(this._intervalId);
|
|
49931
|
-
}
|
|
49932
|
-
/** @description 处理数字变化
|
|
49933
|
-
* @param type 操作类型 add:加 sub:减
|
|
49934
|
-
*/
|
|
49935
|
-
_handleChange(type2) {
|
|
49936
|
-
if (type2 === "add") {
|
|
49937
|
-
if (this._currentIndex < this._numsLength - 1) {
|
|
49938
|
-
this._currentIndex++;
|
|
49939
|
-
this._onChange(this._currentIndex);
|
|
49940
|
-
}
|
|
49941
|
-
} else if (type2 === "sub") {
|
|
49942
|
-
if (this._currentIndex > 0) {
|
|
49943
|
-
this._currentIndex--;
|
|
49944
|
-
this._onChange(this._currentIndex);
|
|
49945
|
-
}
|
|
49946
|
-
}
|
|
49947
|
-
}
|
|
49948
|
-
}
|
|
49949
|
-
class LibPixiSubAddMinMax {
|
|
49950
|
-
constructor(params) {
|
|
49951
|
-
this._betAmountListLength = 0;
|
|
49952
|
-
const { initialBetIndex, betAmountListLength, onAmountIndex, onDisabled } = params;
|
|
49953
|
-
this._onAmountIndex = onAmountIndex;
|
|
49954
|
-
this._onDisabled = onDisabled;
|
|
49955
|
-
this._betAmountListLength = betAmountListLength;
|
|
49956
|
-
this._baseNumSteper = new LibJsNumberStepper(
|
|
49957
|
-
betAmountListLength,
|
|
49958
|
-
(index) => {
|
|
49959
|
-
this._onAmountIndex(index);
|
|
49960
|
-
this.minMaxUpdateIndex(index);
|
|
49961
|
-
}
|
|
49962
|
-
);
|
|
49963
|
-
this.minMaxUpdateIndex(initialBetIndex);
|
|
49964
|
-
this._baseNumSteper.updateIndex(initialBetIndex);
|
|
49965
|
-
}
|
|
49966
|
-
/** @description 点击最小按钮 */
|
|
49967
|
-
min() {
|
|
49968
|
-
this.minMaxUpdateIndex(0);
|
|
49969
|
-
this._onAmountIndex(0);
|
|
49970
|
-
}
|
|
49971
|
-
/** @description 点击最大按钮 */
|
|
49972
|
-
max() {
|
|
49973
|
-
const index = this._betAmountListLength - 1;
|
|
49974
|
-
this.minMaxUpdateIndex(index);
|
|
49975
|
-
this._onAmountIndex(index);
|
|
49976
|
-
}
|
|
49977
|
-
/** @description 点击减少按钮 */
|
|
49978
|
-
sub() {
|
|
49979
|
-
this._baseNumSteper.down("sub");
|
|
49980
|
-
}
|
|
49981
|
-
/** @description 点击增加按钮 */
|
|
49982
|
-
add() {
|
|
49983
|
-
this._baseNumSteper.down("add");
|
|
49984
|
-
}
|
|
49985
|
-
/** @description 改变最小最大按钮状态及回调
|
|
49986
|
-
* @param index 索引
|
|
49987
|
-
*/
|
|
49988
|
-
minMaxUpdateIndex(index) {
|
|
49989
|
-
if (index === 0) {
|
|
49990
|
-
this._onDisabled("min");
|
|
49991
|
-
} else if (index === this._betAmountListLength - 1) {
|
|
49992
|
-
this._onDisabled("max");
|
|
49993
|
-
} else {
|
|
49994
|
-
this._onDisabled();
|
|
49995
|
-
}
|
|
49996
|
-
this._baseNumSteper.updateIndex(index);
|
|
49997
|
-
}
|
|
49998
|
-
}
|
|
49999
49862
|
const libPixiScaleContainer = (scaleContainer, maxWidth, maxHeight) => {
|
|
50000
49863
|
const scaleX = maxWidth / scaleContainer.width * scaleContainer.scale.x;
|
|
50001
49864
|
const scaleY = maxHeight ? maxHeight / scaleContainer.height * scaleContainer.scale.y : scaleX;
|
|
@@ -55132,19 +54995,22 @@ void main(void){
|
|
|
55132
54995
|
});
|
|
55133
54996
|
});
|
|
55134
54997
|
};
|
|
55135
|
-
const LibPixiGridLayout = (items, gap, cols = items.length) => {
|
|
55136
|
-
|
|
54998
|
+
const LibPixiGridLayout = (items, gap, cols = items.length, direction = "row") => {
|
|
54999
|
+
const rows = Math.ceil(items.length / cols);
|
|
55137
55000
|
items.forEach((item, index) => {
|
|
55138
55001
|
const itemWidth = item.width || 0;
|
|
55139
55002
|
const itemHeight = item.height || 0;
|
|
55140
|
-
|
|
55141
|
-
|
|
55142
|
-
|
|
55143
|
-
|
|
55144
|
-
|
|
55145
|
-
|
|
55146
|
-
|
|
55003
|
+
let colIndex = 0;
|
|
55004
|
+
let rowIndex = 0;
|
|
55005
|
+
if (direction === "row") {
|
|
55006
|
+
colIndex = index % cols;
|
|
55007
|
+
rowIndex = Math.floor(index / cols);
|
|
55008
|
+
} else {
|
|
55009
|
+
colIndex = Math.floor(index / rows);
|
|
55010
|
+
rowIndex = index % rows;
|
|
55147
55011
|
}
|
|
55012
|
+
item.x = colIndex * (itemWidth + gap);
|
|
55013
|
+
item.y = rowIndex * (itemHeight + gap);
|
|
55148
55014
|
});
|
|
55149
55015
|
};
|
|
55150
55016
|
const LibPixiArrangeLinear = (items, gap, direction = "x") => {
|
|
@@ -55433,10 +55299,10 @@ void main(void){
|
|
|
55433
55299
|
}
|
|
55434
55300
|
}
|
|
55435
55301
|
/*!
|
|
55436
|
-
* decimal.js v10.
|
|
55302
|
+
* decimal.js v10.4.3
|
|
55437
55303
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
55438
55304
|
* https://github.com/MikeMcl/decimal.js
|
|
55439
|
-
* Copyright (c)
|
|
55305
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
55440
55306
|
* MIT Licence
|
|
55441
55307
|
*/
|
|
55442
55308
|
var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
|
|
@@ -55705,7 +55571,7 @@ void main(void){
|
|
|
55705
55571
|
return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
|
|
55706
55572
|
};
|
|
55707
55573
|
P.inverseCosine = P.acos = function() {
|
|
55708
|
-
var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55574
|
+
var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55709
55575
|
if (k2 !== -1) {
|
|
55710
55576
|
return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
|
|
55711
55577
|
}
|
|
@@ -55713,10 +55579,11 @@ void main(void){
|
|
|
55713
55579
|
return getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55714
55580
|
Ctor.precision = pr + 6;
|
|
55715
55581
|
Ctor.rounding = 1;
|
|
55716
|
-
x2 =
|
|
55582
|
+
x2 = x2.asin();
|
|
55583
|
+
halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55717
55584
|
Ctor.precision = pr;
|
|
55718
55585
|
Ctor.rounding = rm;
|
|
55719
|
-
return
|
|
55586
|
+
return halfPi.minus(x2);
|
|
55720
55587
|
};
|
|
55721
55588
|
P.inverseHyperbolicCosine = P.acosh = function() {
|
|
55722
55589
|
var pr, rm, x2 = this, Ctor = x2.constructor;
|
|
@@ -56928,16 +56795,14 @@ void main(void){
|
|
|
56928
56795
|
function isOdd(n2) {
|
|
56929
56796
|
return n2.d[n2.d.length - 1] & 1;
|
|
56930
56797
|
}
|
|
56931
|
-
function maxOrMin(Ctor, args,
|
|
56932
|
-
var
|
|
56798
|
+
function maxOrMin(Ctor, args, ltgt) {
|
|
56799
|
+
var y2, x2 = new Ctor(args[0]), i2 = 0;
|
|
56933
56800
|
for (; ++i2 < args.length; ) {
|
|
56934
56801
|
y2 = new Ctor(args[i2]);
|
|
56935
56802
|
if (!y2.s) {
|
|
56936
56803
|
x2 = y2;
|
|
56937
56804
|
break;
|
|
56938
|
-
}
|
|
56939
|
-
k2 = x2.cmp(y2);
|
|
56940
|
-
if (k2 === n2 || k2 === 0 && x2.s === n2) {
|
|
56805
|
+
} else if (x2[ltgt](y2)) {
|
|
56941
56806
|
x2 = y2;
|
|
56942
56807
|
}
|
|
56943
56808
|
}
|
|
@@ -57518,8 +57383,7 @@ void main(void){
|
|
|
57518
57383
|
x2.d = [v2];
|
|
57519
57384
|
}
|
|
57520
57385
|
return;
|
|
57521
|
-
}
|
|
57522
|
-
if (v2 * 0 !== 0) {
|
|
57386
|
+
} else if (v2 * 0 !== 0) {
|
|
57523
57387
|
if (!v2)
|
|
57524
57388
|
x2.s = NaN;
|
|
57525
57389
|
x2.e = NaN;
|
|
@@ -57527,28 +57391,18 @@ void main(void){
|
|
|
57527
57391
|
return;
|
|
57528
57392
|
}
|
|
57529
57393
|
return parseDecimal(x2, v2.toString());
|
|
57394
|
+
} else if (t2 !== "string") {
|
|
57395
|
+
throw Error(invalidArgument + v2);
|
|
57530
57396
|
}
|
|
57531
|
-
if (
|
|
57532
|
-
|
|
57397
|
+
if ((i3 = v2.charCodeAt(0)) === 45) {
|
|
57398
|
+
v2 = v2.slice(1);
|
|
57399
|
+
x2.s = -1;
|
|
57400
|
+
} else {
|
|
57401
|
+
if (i3 === 43)
|
|
57533
57402
|
v2 = v2.slice(1);
|
|
57534
|
-
|
|
57535
|
-
} else {
|
|
57536
|
-
if (i3 === 43)
|
|
57537
|
-
v2 = v2.slice(1);
|
|
57538
|
-
x2.s = 1;
|
|
57539
|
-
}
|
|
57540
|
-
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57541
|
-
}
|
|
57542
|
-
if (t2 === "bigint") {
|
|
57543
|
-
if (v2 < 0) {
|
|
57544
|
-
v2 = -v2;
|
|
57545
|
-
x2.s = -1;
|
|
57546
|
-
} else {
|
|
57547
|
-
x2.s = 1;
|
|
57548
|
-
}
|
|
57549
|
-
return parseDecimal(x2, v2.toString());
|
|
57403
|
+
x2.s = 1;
|
|
57550
57404
|
}
|
|
57551
|
-
|
|
57405
|
+
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57552
57406
|
}
|
|
57553
57407
|
Decimal2.prototype = P;
|
|
57554
57408
|
Decimal2.ROUND_UP = 0;
|
|
@@ -57658,10 +57512,10 @@ void main(void){
|
|
|
57658
57512
|
return new this(x2).log(10);
|
|
57659
57513
|
}
|
|
57660
57514
|
function max() {
|
|
57661
|
-
return maxOrMin(this, arguments,
|
|
57515
|
+
return maxOrMin(this, arguments, "lt");
|
|
57662
57516
|
}
|
|
57663
57517
|
function min() {
|
|
57664
|
-
return maxOrMin(this, arguments,
|
|
57518
|
+
return maxOrMin(this, arguments, "gt");
|
|
57665
57519
|
}
|
|
57666
57520
|
function mod(x2, y2) {
|
|
57667
57521
|
return new this(x2).mod(y2);
|
|
@@ -58214,10 +58068,6 @@ void main(void){
|
|
|
58214
58068
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlide-滑动页
|
|
58215
58069
|
*/
|
|
58216
58070
|
LibPixiSlide,
|
|
58217
|
-
/** @description 最小、最大按钮和增减按钮功能及置灰逻辑
|
|
58218
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSubAddMinMax-数字控制器
|
|
58219
|
-
*/
|
|
58220
|
-
LibPixiSubAddMinMax,
|
|
58221
58071
|
/** @description 绘制表格并填充数字
|
|
58222
58072
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiTable-数字表格
|
|
58223
58073
|
*/
|