lyb-pixi-js 1.10.10 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Utils/LibArrangeLinear.d.ts +9 -0
- package/Utils/LibArrangeLinear.js +29 -0
- package/Utils/LibEmitContainerEvent.d.ts +7 -0
- package/Utils/LibEmitContainerEvent.js +13 -0
- package/Utils/LibPixiDialogManager/index.d.ts +2 -7
- package/Utils/LibPixiDialogManager/index.js +16 -45
- package/Utils/LibPixiDialogManager/ui/LibPixiBaseContainer.d.ts +7 -9
- package/Utils/LibPixiDialogManager/ui/LibPixiBaseContainer.js +24 -8
- package/Utils/LibPixiDialogManager/ui/LibPixiDialog.d.ts +2 -0
- package/Utils/LibPixiDialogManager/ui/LibPixiDialog.js +22 -18
- package/lyb-pixi.js +173 -241
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Container } from "pixi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
4
|
+
* @param items 要排列的元素数组。
|
|
5
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
6
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
7
|
+
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
|
|
8
|
+
*/
|
|
9
|
+
export declare const LibArrangeLinear: (items: Container[], gap: number | number[], direction?: "x" | "y") => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
3
|
+
* @param items 要排列的元素数组。
|
|
4
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
5
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
6
|
+
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
|
|
7
|
+
*/
|
|
8
|
+
export const LibArrangeLinear = (items, gap, direction = "x") => {
|
|
9
|
+
if (Array.isArray(gap)) {
|
|
10
|
+
if (gap.length !== items.length - 1) {
|
|
11
|
+
console.error(new Error("间隔的数组长度只能等于元素数组长度-1"));
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
let lastPosition = 0;
|
|
16
|
+
items.forEach((item, index) => {
|
|
17
|
+
const position = index === 0
|
|
18
|
+
? 0
|
|
19
|
+
: lastPosition + (Array.isArray(gap) ? gap[index - 1] : gap);
|
|
20
|
+
if (direction === "x") {
|
|
21
|
+
item.x = position;
|
|
22
|
+
lastPosition = item.x + item.width;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
item.y = position;
|
|
26
|
+
lastPosition = item.y + item.height;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @description 触发后代监听
|
|
2
|
+
* @param container 容器
|
|
3
|
+
* @param event 事件名称
|
|
4
|
+
* @param payload 事件携带数据
|
|
5
|
+
*/
|
|
6
|
+
export const LibEmitContainerEvent = (container, event, payload) => {
|
|
7
|
+
container.children.forEach((child) => {
|
|
8
|
+
child.emit(event, payload);
|
|
9
|
+
if ("children" in child) {
|
|
10
|
+
LibEmitContainerEvent(child, event, payload);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -9,13 +9,9 @@ interface IViewCtor {
|
|
|
9
9
|
export declare class LibPixiDialogManager {
|
|
10
10
|
/** 视图表 */
|
|
11
11
|
private views;
|
|
12
|
-
/** 上一次方向 */
|
|
13
|
-
private lastOrientation;
|
|
14
12
|
/** open时显示的元素的父容器 */
|
|
15
13
|
private _openContainer;
|
|
16
|
-
|
|
17
|
-
private _hv;
|
|
18
|
-
constructor(parent: Container, hv?: boolean);
|
|
14
|
+
constructor(parent: Container);
|
|
19
15
|
/**
|
|
20
16
|
* 打开界面
|
|
21
17
|
* @param View 实例类型或构造方法
|
|
@@ -25,6 +21,5 @@ export declare class LibPixiDialogManager {
|
|
|
25
21
|
/** @description 关闭页面,会调用页面的 onBeforeUnmount 事件,里面会做关闭动画,动画结束后会自动销毁
|
|
26
22
|
* @param id 页面名称
|
|
27
23
|
*/
|
|
28
|
-
close(id: string): void
|
|
29
|
-
private resize;
|
|
24
|
+
close(id: string): Promise<void>;
|
|
30
25
|
}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
export { LibPixiBaseContainer } from "./ui/LibPixiBaseContainer";
|
|
2
11
|
export { LibPixiDialog } from "./ui/LibPixiDialog";
|
|
3
12
|
/** @description 弹窗管理器 */
|
|
4
13
|
export class LibPixiDialogManager {
|
|
5
|
-
constructor(parent
|
|
14
|
+
constructor(parent) {
|
|
6
15
|
/** 视图表 */
|
|
7
16
|
this.views = {};
|
|
8
|
-
/** 上一次方向 */
|
|
9
|
-
this.lastOrientation = "h";
|
|
10
|
-
/** 是否适配横竖屏 */
|
|
11
|
-
this._hv = false;
|
|
12
17
|
this._openContainer = parent;
|
|
13
|
-
this._hv = hv;
|
|
14
|
-
if (hv) {
|
|
15
|
-
window.addEventListener("resize", () => {
|
|
16
|
-
var _a;
|
|
17
|
-
const w = window.innerWidth;
|
|
18
|
-
const h = window.innerHeight;
|
|
19
|
-
const orientation = w > h ? "h" : "v";
|
|
20
|
-
if (orientation !== this.lastOrientation) {
|
|
21
|
-
(_a = this.resize) === null || _a === void 0 ? void 0 : _a.call(this, window.innerWidth, window.innerHeight);
|
|
22
|
-
this.lastOrientation = orientation;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
18
|
}
|
|
27
19
|
/**
|
|
28
20
|
* 打开界面
|
|
@@ -30,15 +22,8 @@ export class LibPixiDialogManager {
|
|
|
30
22
|
* @param args 实例参数
|
|
31
23
|
*/
|
|
32
24
|
open(View, id, ...args) {
|
|
33
|
-
var _a, _b;
|
|
34
25
|
const view = new View(...args);
|
|
35
26
|
this._openContainer.addChild(view);
|
|
36
|
-
if (this._hv) {
|
|
37
|
-
(_a = view.resize) === null || _a === void 0 ? void 0 : _a.call(view, window.innerWidth, window.innerHeight);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
(_b = view.resize) === null || _b === void 0 ? void 0 : _b.call(view, 1920, 1080);
|
|
41
|
-
}
|
|
42
27
|
this.views[id] = view;
|
|
43
28
|
return view;
|
|
44
29
|
}
|
|
@@ -46,27 +31,13 @@ export class LibPixiDialogManager {
|
|
|
46
31
|
* @param id 页面名称
|
|
47
32
|
*/
|
|
48
33
|
close(id) {
|
|
49
|
-
|
|
50
|
-
if (view) {
|
|
51
|
-
if (view.beforeUnmount) {
|
|
52
|
-
view.beforeUnmount(() => {
|
|
53
|
-
requestAnimationFrame(() => {
|
|
54
|
-
view.destroy({ children: true });
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
requestAnimationFrame(() => {
|
|
60
|
-
view.destroy({ children: true });
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
delete this.views[id];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
resize(w, h) {
|
|
67
|
-
Object.values(this.views).forEach((view) => {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
35
|
var _a;
|
|
69
|
-
|
|
36
|
+
const view = this.views[id];
|
|
37
|
+
if (view) {
|
|
38
|
+
yield ((_a = view.destroy) === null || _a === void 0 ? void 0 : _a.call(view));
|
|
39
|
+
delete this.views[id];
|
|
40
|
+
}
|
|
70
41
|
});
|
|
71
42
|
}
|
|
72
43
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
|
-
/** @description
|
|
2
|
+
/** @description */
|
|
3
3
|
export declare class LibPixiBaseContainer extends Container {
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
4
|
+
/** 销毁之前 */
|
|
5
|
+
protected _onBeforeDestroy?: () => void | Promise<void>;
|
|
6
|
+
/** 已销毁 */
|
|
7
|
+
protected _onDestroyed?: () => void;
|
|
8
8
|
constructor();
|
|
9
|
-
/** @description
|
|
10
|
-
|
|
11
|
-
/** @description 窗口大小发生改变后回调 */
|
|
12
|
-
protected _onResize(resize: (w: number, h: number) => void): void;
|
|
9
|
+
/** @description 销毁 */
|
|
10
|
+
destroy(): Promise<void>;
|
|
13
11
|
}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import { Container } from "pixi.js";
|
|
2
|
-
/** @description
|
|
11
|
+
/** @description */
|
|
3
12
|
export class LibPixiBaseContainer extends Container {
|
|
4
13
|
constructor() {
|
|
5
14
|
super();
|
|
6
15
|
}
|
|
7
|
-
/** @description
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
/** @description 销毁 */
|
|
17
|
+
destroy() {
|
|
18
|
+
const _super = Object.create(null, {
|
|
19
|
+
destroy: { get: () => super.destroy }
|
|
20
|
+
});
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
var _a;
|
|
23
|
+
yield ((_a = this._onBeforeDestroy) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
24
|
+
requestAnimationFrame(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
_super.destroy.call(this, { children: true });
|
|
27
|
+
(_a = this._onDestroyed) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
14
30
|
}
|
|
15
31
|
}
|
|
@@ -25,6 +25,8 @@ export declare class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
25
25
|
private _initialSize;
|
|
26
26
|
/** 是否处于关闭动画状态 */
|
|
27
27
|
private _isCloseAnimating;
|
|
28
|
+
/** 停止监听窗口 */
|
|
29
|
+
private _offResize;
|
|
28
30
|
constructor(params?: Params);
|
|
29
31
|
/** @description 设置弹窗内容 */
|
|
30
32
|
setDialogContent(content: Container): void;
|
|
@@ -12,6 +12,7 @@ import gsap from "gsap";
|
|
|
12
12
|
import { LibPixiRectBgColor } from "../../../Components/Base/LibPixiRectBgColor";
|
|
13
13
|
import { libPixiEvent } from "../../LibPixiEvent";
|
|
14
14
|
import { LibPixiBaseContainer } from "./LibPixiBaseContainer";
|
|
15
|
+
import { LibJsResizeWatcher } from "lyb-js/Base/LibJsResizeWatcher";
|
|
15
16
|
/** @description 弹窗组件 */
|
|
16
17
|
export class LibPixiDialog extends LibPixiBaseContainer {
|
|
17
18
|
constructor(params) {
|
|
@@ -37,30 +38,15 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
37
38
|
if (this._isCloseAnimating)
|
|
38
39
|
return;
|
|
39
40
|
onClickMask === null || onClickMask === void 0 ? void 0 : onClickMask();
|
|
41
|
+
this._offResize();
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
44
|
//弹窗内容容器
|
|
43
45
|
this._dialogContainer = new Container();
|
|
44
46
|
this.addChild(this._dialogContainer);
|
|
45
47
|
this._dialogContainer.eventMode = "static";
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
setDialogContent(content) {
|
|
49
|
-
this._dialogContainer.addChild(content);
|
|
50
|
-
const w = this._dialogContainer.width / 2;
|
|
51
|
-
const h = this._dialogContainer.height / 2;
|
|
52
|
-
this._dialogContainer.pivot.set(w, h);
|
|
53
|
-
this._dialogContainer.scale.set(0);
|
|
54
|
-
this._dialogContainer.alpha = 0;
|
|
55
|
-
gsap.to(this._maskUI, {
|
|
56
|
-
duration: LibPixiDialog.durationIn,
|
|
57
|
-
alpha: LibPixiDialog.bgAlpha,
|
|
58
|
-
});
|
|
59
|
-
gsap.to(this._dialogContainer, {
|
|
60
|
-
duration: LibPixiDialog.durationIn,
|
|
61
|
-
alpha: 1,
|
|
62
|
-
});
|
|
63
|
-
this._onResize((w, h) => {
|
|
48
|
+
const resize = new LibJsResizeWatcher();
|
|
49
|
+
this._offResize = resize.on((w, h) => {
|
|
64
50
|
const halfW = 1920 / 2;
|
|
65
51
|
const halfH = 1080 / 2;
|
|
66
52
|
if (w > h) {
|
|
@@ -89,11 +75,29 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
89
75
|
});
|
|
90
76
|
});
|
|
91
77
|
}
|
|
78
|
+
/** @description 设置弹窗内容 */
|
|
79
|
+
setDialogContent(content) {
|
|
80
|
+
this._dialogContainer.addChild(content);
|
|
81
|
+
const w = this._dialogContainer.width / 2;
|
|
82
|
+
const h = this._dialogContainer.height / 2;
|
|
83
|
+
this._dialogContainer.pivot.set(w, h);
|
|
84
|
+
this._dialogContainer.scale.set(0);
|
|
85
|
+
this._dialogContainer.alpha = 0;
|
|
86
|
+
gsap.to(this._maskUI, {
|
|
87
|
+
duration: LibPixiDialog.durationIn,
|
|
88
|
+
alpha: LibPixiDialog.bgAlpha,
|
|
89
|
+
});
|
|
90
|
+
gsap.to(this._dialogContainer, {
|
|
91
|
+
duration: LibPixiDialog.durationIn,
|
|
92
|
+
alpha: 1,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
92
95
|
/** @description 关闭 */
|
|
93
96
|
close() {
|
|
94
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
98
|
if (this._isCloseAnimating)
|
|
96
99
|
return;
|
|
100
|
+
this._offResize();
|
|
97
101
|
this._isCloseAnimating = true;
|
|
98
102
|
gsap.to(this._dialogContainer.scale, {
|
|
99
103
|
duration: LibPixiDialog.durationOut,
|
package/lyb-pixi.js
CHANGED
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
var ys = arrObjKeys(obj, inspect2);
|
|
1316
1316
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1317
1317
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
1318
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1318
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1319
1319
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
1320
1320
|
var tag2 = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
1321
1321
|
if (ys.length === 0) {
|
|
@@ -1336,29 +1336,26 @@
|
|
|
1336
1336
|
function quote(s2) {
|
|
1337
1337
|
return $replace$1.call(String(s2), /"/g, """);
|
|
1338
1338
|
}
|
|
1339
|
-
function canTrustToString(obj) {
|
|
1340
|
-
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
1341
|
-
}
|
|
1342
1339
|
function isArray$3(obj) {
|
|
1343
|
-
return toStr(obj) === "[object Array]" &&
|
|
1340
|
+
return toStr$1(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1344
1341
|
}
|
|
1345
1342
|
function isDate(obj) {
|
|
1346
|
-
return toStr(obj) === "[object Date]" &&
|
|
1343
|
+
return toStr$1(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1347
1344
|
}
|
|
1348
1345
|
function isRegExp$1(obj) {
|
|
1349
|
-
return toStr(obj) === "[object RegExp]" &&
|
|
1346
|
+
return toStr$1(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1350
1347
|
}
|
|
1351
1348
|
function isError(obj) {
|
|
1352
|
-
return toStr(obj) === "[object Error]" &&
|
|
1349
|
+
return toStr$1(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1353
1350
|
}
|
|
1354
1351
|
function isString(obj) {
|
|
1355
|
-
return toStr(obj) === "[object String]" &&
|
|
1352
|
+
return toStr$1(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1356
1353
|
}
|
|
1357
1354
|
function isNumber(obj) {
|
|
1358
|
-
return toStr(obj) === "[object Number]" &&
|
|
1355
|
+
return toStr$1(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1359
1356
|
}
|
|
1360
1357
|
function isBoolean(obj) {
|
|
1361
|
-
return toStr(obj) === "[object Boolean]" &&
|
|
1358
|
+
return toStr$1(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1362
1359
|
}
|
|
1363
1360
|
function isSymbol(obj) {
|
|
1364
1361
|
if (hasShammedSymbols) {
|
|
@@ -1394,7 +1391,7 @@
|
|
|
1394
1391
|
function has$3(obj, key) {
|
|
1395
1392
|
return hasOwn$1.call(obj, key);
|
|
1396
1393
|
}
|
|
1397
|
-
function toStr(obj) {
|
|
1394
|
+
function toStr$1(obj) {
|
|
1398
1395
|
return objectToString.call(obj);
|
|
1399
1396
|
}
|
|
1400
1397
|
function nameOf(f2) {
|
|
@@ -1703,7 +1700,7 @@
|
|
|
1703
1700
|
var uri = URIError;
|
|
1704
1701
|
var abs$2 = Math.abs;
|
|
1705
1702
|
var floor$2 = Math.floor;
|
|
1706
|
-
var max$
|
|
1703
|
+
var max$3 = Math.max;
|
|
1707
1704
|
var min$2 = Math.min;
|
|
1708
1705
|
var pow$2 = Math.pow;
|
|
1709
1706
|
var round$3 = Math.round;
|
|
@@ -1836,102 +1833,78 @@
|
|
|
1836
1833
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
1837
1834
|
return Object_getPrototypeOf;
|
|
1838
1835
|
}
|
|
1839
|
-
var
|
|
1840
|
-
var
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
var
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
var
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
var joiny = function(arr, joiner) {
|
|
1867
|
-
var str = "";
|
|
1868
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1869
|
-
str += arr[i2];
|
|
1870
|
-
if (i2 + 1 < arr.length) {
|
|
1871
|
-
str += joiner;
|
|
1872
|
-
}
|
|
1836
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
1837
|
+
var toStr = Object.prototype.toString;
|
|
1838
|
+
var max$2 = Math.max;
|
|
1839
|
+
var funcType = "[object Function]";
|
|
1840
|
+
var concatty = function concatty2(a2, b2) {
|
|
1841
|
+
var arr = [];
|
|
1842
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
1843
|
+
arr[i2] = a2[i2];
|
|
1844
|
+
}
|
|
1845
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
1846
|
+
arr[j2 + a2.length] = b2[j2];
|
|
1847
|
+
}
|
|
1848
|
+
return arr;
|
|
1849
|
+
};
|
|
1850
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
1851
|
+
var arr = [];
|
|
1852
|
+
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1853
|
+
arr[j2] = arrLike[i2];
|
|
1854
|
+
}
|
|
1855
|
+
return arr;
|
|
1856
|
+
};
|
|
1857
|
+
var joiny = function(arr, joiner) {
|
|
1858
|
+
var str = "";
|
|
1859
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1860
|
+
str += arr[i2];
|
|
1861
|
+
if (i2 + 1 < arr.length) {
|
|
1862
|
+
str += joiner;
|
|
1873
1863
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
);
|
|
1889
|
-
if (Object(result) === result) {
|
|
1890
|
-
return result;
|
|
1891
|
-
}
|
|
1892
|
-
return this;
|
|
1893
|
-
}
|
|
1894
|
-
return target.apply(
|
|
1895
|
-
that,
|
|
1864
|
+
}
|
|
1865
|
+
return str;
|
|
1866
|
+
};
|
|
1867
|
+
var implementation$1 = function bind2(that) {
|
|
1868
|
+
var target = this;
|
|
1869
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
1870
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1871
|
+
}
|
|
1872
|
+
var args = slicy(arguments, 1);
|
|
1873
|
+
var bound;
|
|
1874
|
+
var binder = function() {
|
|
1875
|
+
if (this instanceof bound) {
|
|
1876
|
+
var result = target.apply(
|
|
1877
|
+
this,
|
|
1896
1878
|
concatty(args, arguments)
|
|
1897
1879
|
);
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
boundArgs[i2] = "$" + i2;
|
|
1903
|
-
}
|
|
1904
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
1905
|
-
if (target.prototype) {
|
|
1906
|
-
var Empty = function Empty2() {
|
|
1907
|
-
};
|
|
1908
|
-
Empty.prototype = target.prototype;
|
|
1909
|
-
bound.prototype = new Empty();
|
|
1910
|
-
Empty.prototype = null;
|
|
1880
|
+
if (Object(result) === result) {
|
|
1881
|
+
return result;
|
|
1882
|
+
}
|
|
1883
|
+
return this;
|
|
1911
1884
|
}
|
|
1912
|
-
return
|
|
1885
|
+
return target.apply(
|
|
1886
|
+
that,
|
|
1887
|
+
concatty(args, arguments)
|
|
1888
|
+
);
|
|
1913
1889
|
};
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
functionCall = Function.prototype.call;
|
|
1933
|
-
return functionCall;
|
|
1934
|
-
}
|
|
1890
|
+
var boundLength = max$2(0, target.length - args.length);
|
|
1891
|
+
var boundArgs = [];
|
|
1892
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
1893
|
+
boundArgs[i2] = "$" + i2;
|
|
1894
|
+
}
|
|
1895
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
1896
|
+
if (target.prototype) {
|
|
1897
|
+
var Empty = function Empty2() {
|
|
1898
|
+
};
|
|
1899
|
+
Empty.prototype = target.prototype;
|
|
1900
|
+
bound.prototype = new Empty();
|
|
1901
|
+
Empty.prototype = null;
|
|
1902
|
+
}
|
|
1903
|
+
return bound;
|
|
1904
|
+
};
|
|
1905
|
+
var implementation = implementation$1;
|
|
1906
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
1907
|
+
var functionCall = Function.prototype.call;
|
|
1935
1908
|
var functionApply;
|
|
1936
1909
|
var hasRequiredFunctionApply;
|
|
1937
1910
|
function requireFunctionApply() {
|
|
@@ -1942,14 +1915,14 @@
|
|
|
1942
1915
|
return functionApply;
|
|
1943
1916
|
}
|
|
1944
1917
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
1945
|
-
var bind$2 =
|
|
1918
|
+
var bind$2 = functionBind;
|
|
1946
1919
|
var $apply$1 = requireFunctionApply();
|
|
1947
|
-
var $call$2 =
|
|
1920
|
+
var $call$2 = functionCall;
|
|
1948
1921
|
var $reflectApply = reflectApply;
|
|
1949
1922
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
1950
|
-
var bind$1 =
|
|
1923
|
+
var bind$1 = functionBind;
|
|
1951
1924
|
var $TypeError$4 = type;
|
|
1952
|
-
var $call$1 =
|
|
1925
|
+
var $call$1 = functionCall;
|
|
1953
1926
|
var $actualApply = actualApply;
|
|
1954
1927
|
var callBindApplyHelpers = function callBindBasic2(args) {
|
|
1955
1928
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -2018,7 +1991,7 @@
|
|
|
2018
1991
|
hasRequiredHasown = 1;
|
|
2019
1992
|
var call = Function.prototype.call;
|
|
2020
1993
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2021
|
-
var bind2 =
|
|
1994
|
+
var bind2 = functionBind;
|
|
2022
1995
|
hasown = bind2.call(call, $hasOwn);
|
|
2023
1996
|
return hasown;
|
|
2024
1997
|
}
|
|
@@ -2033,7 +2006,7 @@
|
|
|
2033
2006
|
var $URIError = uri;
|
|
2034
2007
|
var abs$1 = abs$2;
|
|
2035
2008
|
var floor$1 = floor$2;
|
|
2036
|
-
var max$1 = max$
|
|
2009
|
+
var max$1 = max$3;
|
|
2037
2010
|
var min$1 = min$2;
|
|
2038
2011
|
var pow$1 = pow$2;
|
|
2039
2012
|
var round$2 = round$3;
|
|
@@ -2067,7 +2040,7 @@
|
|
|
2067
2040
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2068
2041
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2069
2042
|
var $apply = requireFunctionApply();
|
|
2070
|
-
var $call =
|
|
2043
|
+
var $call = functionCall;
|
|
2071
2044
|
var needsEval = {};
|
|
2072
2045
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2073
2046
|
var INTRINSICS = {
|
|
@@ -2096,7 +2069,6 @@
|
|
|
2096
2069
|
"%eval%": eval,
|
|
2097
2070
|
// eslint-disable-line no-eval
|
|
2098
2071
|
"%EvalError%": $EvalError,
|
|
2099
|
-
"%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
|
|
2100
2072
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
2101
2073
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
2102
2074
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -2238,7 +2210,7 @@
|
|
|
2238
2210
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2239
2211
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2240
2212
|
};
|
|
2241
|
-
var bind =
|
|
2213
|
+
var bind = functionBind;
|
|
2242
2214
|
var hasOwn = requireHasown();
|
|
2243
2215
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
2244
2216
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -2350,14 +2322,11 @@
|
|
|
2350
2322
|
var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
|
|
2351
2323
|
var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
|
|
2352
2324
|
var intrinsic = (
|
|
2353
|
-
/** @type {
|
|
2325
|
+
/** @type {Parameters<typeof callBindBasic>[0][0]} */
|
|
2354
2326
|
GetIntrinsic$2(name, !!allowMissing)
|
|
2355
2327
|
);
|
|
2356
2328
|
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
2357
|
-
return callBindBasic(
|
|
2358
|
-
/** @type {const} */
|
|
2359
|
-
[intrinsic]
|
|
2360
|
-
);
|
|
2329
|
+
return callBindBasic([intrinsic]);
|
|
2361
2330
|
}
|
|
2362
2331
|
return intrinsic;
|
|
2363
2332
|
};
|
|
@@ -10978,7 +10947,7 @@ void main(void)
|
|
|
10978
10947
|
*/
|
|
10979
10948
|
run(options) {
|
|
10980
10949
|
const { renderer } = this;
|
|
10981
|
-
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.
|
|
10950
|
+
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.2 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
|
|
10982
10951
|
}
|
|
10983
10952
|
destroy() {
|
|
10984
10953
|
}
|
|
@@ -18229,8 +18198,7 @@ void main()
|
|
|
18229
18198
|
if (keys.forEach((key2) => {
|
|
18230
18199
|
this._cacheMap.set(key2, cachedAssets);
|
|
18231
18200
|
}), cacheKeys.forEach((key2) => {
|
|
18232
|
-
|
|
18233
|
-
this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18201
|
+
this._cache.has(key2) && this._cache.get(key2) !== value && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18234
18202
|
}), value instanceof Texture) {
|
|
18235
18203
|
const texture = value;
|
|
18236
18204
|
keys.forEach((key2) => {
|
|
@@ -25746,11 +25714,12 @@ void main(void)\r
|
|
|
25746
25714
|
subClass.__proto__ = superClass;
|
|
25747
25715
|
}
|
|
25748
25716
|
/*!
|
|
25749
|
-
* GSAP 3.
|
|
25717
|
+
* GSAP 3.12.5
|
|
25750
25718
|
* https://gsap.com
|
|
25751
25719
|
*
|
|
25752
|
-
* @license Copyright 2008-
|
|
25753
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
25720
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
25721
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
25722
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
25754
25723
|
* @author: Jack Doyle, jack@greensock.com
|
|
25755
25724
|
*/
|
|
25756
25725
|
var _config = {
|
|
@@ -25841,11 +25810,9 @@ void main(void)\r
|
|
|
25841
25810
|
tween = a2[i2];
|
|
25842
25811
|
tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
|
|
25843
25812
|
}
|
|
25844
|
-
}, _isRevertWorthy = function _isRevertWorthy2(animation) {
|
|
25845
|
-
return !!(animation._initted || animation._startAt || animation.add);
|
|
25846
25813
|
}, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
|
|
25847
25814
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25848
|
-
animation.render(time, suppressEvents, force ||
|
|
25815
|
+
animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
|
|
25849
25816
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25850
25817
|
}, _numericIfPossible = function _numericIfPossible2(value) {
|
|
25851
25818
|
var n2 = parseFloat(value);
|
|
@@ -25968,7 +25935,7 @@ void main(void)\r
|
|
|
25968
25935
|
}, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
|
|
25969
25936
|
return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
|
|
25970
25937
|
}, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
|
|
25971
|
-
var whole = Math.floor(tTime
|
|
25938
|
+
var whole = Math.floor(tTime /= cycleDuration);
|
|
25972
25939
|
return tTime && whole === tTime ? whole - 1 : whole;
|
|
25973
25940
|
}, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
|
|
25974
25941
|
return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
|
|
@@ -26749,7 +26716,7 @@ void main(void)\r
|
|
|
26749
26716
|
}, easeOut);
|
|
26750
26717
|
})(7.5625, 2.75);
|
|
26751
26718
|
_insertEase("Expo", function(p2) {
|
|
26752
|
-
return Math.pow(2, 10 * (p2 - 1))
|
|
26719
|
+
return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
|
|
26753
26720
|
});
|
|
26754
26721
|
_insertEase("Circ", function(p2) {
|
|
26755
26722
|
return -(_sqrt(1 - p2 * p2) - 1);
|
|
@@ -26846,7 +26813,7 @@ void main(void)\r
|
|
|
26846
26813
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
|
|
26847
26814
|
};
|
|
26848
26815
|
_proto.totalProgress = function totalProgress(value, suppressEvents) {
|
|
26849
|
-
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime()
|
|
26816
|
+
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
|
|
26850
26817
|
};
|
|
26851
26818
|
_proto.progress = function progress(value, suppressEvents) {
|
|
26852
26819
|
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
@@ -26865,7 +26832,7 @@ void main(void)\r
|
|
|
26865
26832
|
var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
|
|
26866
26833
|
this._rts = +value || 0;
|
|
26867
26834
|
this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
|
|
26868
|
-
this.totalTime(_clamp(-Math.abs(this._delay), this.
|
|
26835
|
+
this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
|
|
26869
26836
|
_setEnd(this);
|
|
26870
26837
|
return _recacheAncestors(this);
|
|
26871
26838
|
};
|
|
@@ -26908,7 +26875,7 @@ void main(void)\r
|
|
|
26908
26875
|
}
|
|
26909
26876
|
var prevIsReverting = _reverting$1;
|
|
26910
26877
|
_reverting$1 = config2;
|
|
26911
|
-
if (
|
|
26878
|
+
if (this._initted || this._startAt) {
|
|
26912
26879
|
this.timeline && this.timeline.revert(config2);
|
|
26913
26880
|
this.totalTime(-0.01, config2.suppressEvents);
|
|
26914
26881
|
}
|
|
@@ -26951,9 +26918,7 @@ void main(void)\r
|
|
|
26951
26918
|
return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
|
|
26952
26919
|
};
|
|
26953
26920
|
_proto.restart = function restart(includeDelay, suppressEvents) {
|
|
26954
|
-
this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26955
|
-
this._dur || (this._zTime = -_tinyNum);
|
|
26956
|
-
return this;
|
|
26921
|
+
return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26957
26922
|
};
|
|
26958
26923
|
_proto.play = function play(from, suppressEvents) {
|
|
26959
26924
|
from != null && this.seek(from, suppressEvents);
|
|
@@ -27130,9 +27095,8 @@ void main(void)\r
|
|
|
27130
27095
|
iteration = this._repeat;
|
|
27131
27096
|
time = dur;
|
|
27132
27097
|
} else {
|
|
27133
|
-
|
|
27134
|
-
iteration
|
|
27135
|
-
if (iteration && iteration === prevIteration) {
|
|
27098
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27099
|
+
if (iteration && iteration === tTime / cycleDuration) {
|
|
27136
27100
|
time = dur;
|
|
27137
27101
|
iteration--;
|
|
27138
27102
|
}
|
|
@@ -27186,7 +27150,7 @@ void main(void)\r
|
|
|
27186
27150
|
this._zTime = totalTime;
|
|
27187
27151
|
prevTime = 0;
|
|
27188
27152
|
}
|
|
27189
|
-
if (!prevTime &&
|
|
27153
|
+
if (!prevTime && time && !suppressEvents && !iteration) {
|
|
27190
27154
|
_callback(this, "onStart");
|
|
27191
27155
|
if (this._tTime !== tTime) {
|
|
27192
27156
|
return this;
|
|
@@ -27218,7 +27182,7 @@ void main(void)\r
|
|
|
27218
27182
|
if (child.parent !== this) {
|
|
27219
27183
|
return this.render(totalTime, suppressEvents, force);
|
|
27220
27184
|
}
|
|
27221
|
-
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 &&
|
|
27185
|
+
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && (child._initted || child._startAt));
|
|
27222
27186
|
if (time !== this._time || !this._ts && !prevPaused) {
|
|
27223
27187
|
pauseTween = 0;
|
|
27224
27188
|
next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
|
|
@@ -27315,7 +27279,7 @@ void main(void)\r
|
|
|
27315
27279
|
if (_isFunction(child)) {
|
|
27316
27280
|
return this.killTweensOf(child);
|
|
27317
27281
|
}
|
|
27318
|
-
|
|
27282
|
+
_removeLinkedListItem(this, child);
|
|
27319
27283
|
if (child === this._recent) {
|
|
27320
27284
|
this._recent = this._last;
|
|
27321
27285
|
}
|
|
@@ -27917,7 +27881,7 @@ void main(void)\r
|
|
|
27917
27881
|
var prevTime = this._time, tDur = this._tDur, dur = this._dur, isNegative = totalTime < 0, tTime = totalTime > tDur - _tinyNum && !isNegative ? tDur : totalTime < _tinyNum ? 0 : totalTime, time, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;
|
|
27918
27882
|
if (!dur) {
|
|
27919
27883
|
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
|
|
27920
|
-
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative
|
|
27884
|
+
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
|
|
27921
27885
|
time = tTime;
|
|
27922
27886
|
timeline = this.timeline;
|
|
27923
27887
|
if (this._repeat) {
|
|
@@ -27930,14 +27894,12 @@ void main(void)\r
|
|
|
27930
27894
|
iteration = this._repeat;
|
|
27931
27895
|
time = dur;
|
|
27932
27896
|
} else {
|
|
27933
|
-
|
|
27934
|
-
iteration
|
|
27935
|
-
if (iteration && iteration === prevIteration) {
|
|
27897
|
+
iteration = ~~(tTime / cycleDuration);
|
|
27898
|
+
if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
|
|
27936
27899
|
time = dur;
|
|
27937
27900
|
iteration--;
|
|
27938
|
-
} else if (time > dur) {
|
|
27939
|
-
time = dur;
|
|
27940
27901
|
}
|
|
27902
|
+
time > dur && (time = dur);
|
|
27941
27903
|
}
|
|
27942
27904
|
isYoyo = this._yoyo && iteration & 1;
|
|
27943
27905
|
if (isYoyo) {
|
|
@@ -27951,7 +27913,7 @@ void main(void)\r
|
|
|
27951
27913
|
}
|
|
27952
27914
|
if (iteration !== prevIteration) {
|
|
27953
27915
|
timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
|
|
27954
|
-
if (this.vars.repeatRefresh && !isYoyo && !this._lock &&
|
|
27916
|
+
if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
|
|
27955
27917
|
this._lock = force = 1;
|
|
27956
27918
|
this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
|
|
27957
27919
|
}
|
|
@@ -27979,7 +27941,7 @@ void main(void)\r
|
|
|
27979
27941
|
if (this._from) {
|
|
27980
27942
|
this.ratio = ratio = 1 - ratio;
|
|
27981
27943
|
}
|
|
27982
|
-
if (
|
|
27944
|
+
if (time && !prevTime && !suppressEvents && !iteration) {
|
|
27983
27945
|
_callback(this, "onStart");
|
|
27984
27946
|
if (this._tTime !== tTime) {
|
|
27985
27947
|
return this;
|
|
@@ -28036,8 +27998,7 @@ void main(void)\r
|
|
|
28036
27998
|
}
|
|
28037
27999
|
if (!targets && (!vars || vars === "all")) {
|
|
28038
28000
|
this._lazy = this._pt = 0;
|
|
28039
|
-
this.parent ? _interrupt(this) : this
|
|
28040
|
-
return this;
|
|
28001
|
+
return this.parent ? _interrupt(this) : this;
|
|
28041
28002
|
}
|
|
28042
28003
|
if (this.timeline) {
|
|
28043
28004
|
var tDur = this.timeline.totalDuration();
|
|
@@ -28484,8 +28445,8 @@ void main(void)\r
|
|
|
28484
28445
|
};
|
|
28485
28446
|
},
|
|
28486
28447
|
quickTo: function quickTo(target, property, vars) {
|
|
28487
|
-
var
|
|
28488
|
-
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) {
|
|
28489
28450
|
return tween.resetTo(property, value, start, startIsRelative);
|
|
28490
28451
|
};
|
|
28491
28452
|
func.tween = tween;
|
|
@@ -28647,7 +28608,6 @@ void main(void)\r
|
|
|
28647
28608
|
}, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
|
|
28648
28609
|
return {
|
|
28649
28610
|
name,
|
|
28650
|
-
headless: 1,
|
|
28651
28611
|
rawVars: 1,
|
|
28652
28612
|
//don't pre-process function-based values or "random()" strings.
|
|
28653
28613
|
init: function init2(target, vars, tween) {
|
|
@@ -28694,7 +28654,6 @@ void main(void)\r
|
|
|
28694
28654
|
}
|
|
28695
28655
|
}, {
|
|
28696
28656
|
name: "endArray",
|
|
28697
|
-
headless: 1,
|
|
28698
28657
|
init: function init2(target, value) {
|
|
28699
28658
|
var i2 = value.length;
|
|
28700
28659
|
while (i2--) {
|
|
@@ -28702,7 +28661,7 @@ void main(void)\r
|
|
|
28702
28661
|
}
|
|
28703
28662
|
}
|
|
28704
28663
|
}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
|
|
28705
|
-
Tween.version = Timeline$1.version = gsap.version = "3.
|
|
28664
|
+
Tween.version = Timeline$1.version = gsap.version = "3.12.5";
|
|
28706
28665
|
_coreReady = 1;
|
|
28707
28666
|
_windowExists$1() && _wake();
|
|
28708
28667
|
_easeMap.Power0;
|
|
@@ -28724,11 +28683,12 @@ void main(void)\r
|
|
|
28724
28683
|
_easeMap.Expo;
|
|
28725
28684
|
_easeMap.Circ;
|
|
28726
28685
|
/*!
|
|
28727
|
-
* CSSPlugin 3.
|
|
28686
|
+
* CSSPlugin 3.12.5
|
|
28728
28687
|
* https://gsap.com
|
|
28729
28688
|
*
|
|
28730
|
-
* Copyright 2008-
|
|
28731
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
28689
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
28690
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
28691
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
28732
28692
|
* @author: Jack Doyle, jack@greensock.com
|
|
28733
28693
|
*/
|
|
28734
28694
|
var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
|
|
@@ -28801,13 +28761,7 @@ void main(void)\r
|
|
|
28801
28761
|
}, _revertStyle = function _revertStyle2() {
|
|
28802
28762
|
var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
|
|
28803
28763
|
for (i2 = 0; i2 < props.length; i2 += 3) {
|
|
28804
|
-
|
|
28805
|
-
props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28806
|
-
} else if (props[i2 + 1] === 2) {
|
|
28807
|
-
target[props[i2]](props[i2 + 2]);
|
|
28808
|
-
} else {
|
|
28809
|
-
target[props[i2]] = props[i2 + 2];
|
|
28810
|
-
}
|
|
28764
|
+
props[i2 + 1] ? target[props[i2]] = props[i2 + 2] : props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28811
28765
|
}
|
|
28812
28766
|
if (this.tfm) {
|
|
28813
28767
|
for (p2 in this.tfm) {
|
|
@@ -28836,7 +28790,7 @@ void main(void)\r
|
|
|
28836
28790
|
save: _saveStyle
|
|
28837
28791
|
};
|
|
28838
28792
|
target._gsap || gsap.core.getCache(target);
|
|
28839
|
-
properties &&
|
|
28793
|
+
properties && properties.split(",").forEach(function(p2) {
|
|
28840
28794
|
return saver.save(p2);
|
|
28841
28795
|
});
|
|
28842
28796
|
return saver;
|
|
@@ -28871,17 +28825,30 @@ void main(void)\r
|
|
|
28871
28825
|
_reverting = gsap.core.reverting;
|
|
28872
28826
|
_pluginInitted = 1;
|
|
28873
28827
|
}
|
|
28874
|
-
},
|
|
28875
|
-
var
|
|
28876
|
-
clone2.style.display = "block";
|
|
28877
|
-
svg.appendChild(clone2);
|
|
28828
|
+
}, _getBBoxHack = function _getBBoxHack2(swapIfPossible) {
|
|
28829
|
+
var svg = _createElement("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), oldParent = this.parentNode, oldSibling = this.nextSibling, oldCSS = this.style.cssText, bbox;
|
|
28878
28830
|
_docElement.appendChild(svg);
|
|
28879
|
-
|
|
28880
|
-
|
|
28881
|
-
|
|
28831
|
+
svg.appendChild(this);
|
|
28832
|
+
this.style.display = "block";
|
|
28833
|
+
if (swapIfPossible) {
|
|
28834
|
+
try {
|
|
28835
|
+
bbox = this.getBBox();
|
|
28836
|
+
this._gsapBBox = this.getBBox;
|
|
28837
|
+
this.getBBox = _getBBoxHack2;
|
|
28838
|
+
} catch (e2) {
|
|
28839
|
+
}
|
|
28840
|
+
} else if (this._gsapBBox) {
|
|
28841
|
+
bbox = this._gsapBBox();
|
|
28842
|
+
}
|
|
28843
|
+
if (oldParent) {
|
|
28844
|
+
if (oldSibling) {
|
|
28845
|
+
oldParent.insertBefore(this, oldSibling);
|
|
28846
|
+
} else {
|
|
28847
|
+
oldParent.appendChild(this);
|
|
28848
|
+
}
|
|
28882
28849
|
}
|
|
28883
|
-
svg.removeChild(clone2);
|
|
28884
28850
|
_docElement.removeChild(svg);
|
|
28851
|
+
this.style.cssText = oldCSS;
|
|
28885
28852
|
return bbox;
|
|
28886
28853
|
}, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
|
|
28887
28854
|
var i2 = attributesArray.length;
|
|
@@ -28891,14 +28858,13 @@ void main(void)\r
|
|
|
28891
28858
|
}
|
|
28892
28859
|
}
|
|
28893
28860
|
}, _getBBox = function _getBBox2(target) {
|
|
28894
|
-
var bounds
|
|
28861
|
+
var bounds;
|
|
28895
28862
|
try {
|
|
28896
28863
|
bounds = target.getBBox();
|
|
28897
28864
|
} catch (error) {
|
|
28898
|
-
bounds =
|
|
28899
|
-
cloned = 1;
|
|
28865
|
+
bounds = _getBBoxHack.call(target, true);
|
|
28900
28866
|
}
|
|
28901
|
-
bounds && (bounds.width || bounds.height) ||
|
|
28867
|
+
bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
|
|
28902
28868
|
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
|
|
28903
28869
|
x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
|
|
28904
28870
|
y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
|
|
@@ -28949,7 +28915,7 @@ void main(void)\r
|
|
|
28949
28915
|
return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
|
|
28950
28916
|
}
|
|
28951
28917
|
style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
|
|
28952
|
-
parent =
|
|
28918
|
+
parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
|
|
28953
28919
|
if (isSVG) {
|
|
28954
28920
|
parent = (target.ownerSVGElement || {}).parentNode;
|
|
28955
28921
|
}
|
|
@@ -29014,9 +28980,6 @@ void main(void)\r
|
|
|
29014
28980
|
pt.e = end;
|
|
29015
28981
|
start += "";
|
|
29016
28982
|
end += "";
|
|
29017
|
-
if (end.substring(0, 6) === "var(--") {
|
|
29018
|
-
end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
|
|
29019
|
-
}
|
|
29020
28983
|
if (end === "auto") {
|
|
29021
28984
|
startValue = target.style[prop];
|
|
29022
28985
|
target.style[prop] = end;
|
|
@@ -29110,7 +29073,6 @@ void main(void)\r
|
|
|
29110
29073
|
_removeProperty(target, _transformProp);
|
|
29111
29074
|
if (cache) {
|
|
29112
29075
|
cache.svg && target.removeAttribute("transform");
|
|
29113
|
-
style.scale = style.rotate = style.translate = "none";
|
|
29114
29076
|
_parseTransform(target, 1);
|
|
29115
29077
|
cache.uncache = 1;
|
|
29116
29078
|
_removeIndependentTransforms(style);
|
|
@@ -29206,7 +29168,7 @@ void main(void)\r
|
|
|
29206
29168
|
temp = style.display;
|
|
29207
29169
|
style.display = "block";
|
|
29208
29170
|
parent = target.parentNode;
|
|
29209
|
-
if (!parent || !target.offsetParent
|
|
29171
|
+
if (!parent || !target.offsetParent) {
|
|
29210
29172
|
addedToDOM = 1;
|
|
29211
29173
|
nextSibling = target.nextElementSibling;
|
|
29212
29174
|
_docElement.appendChild(target);
|
|
@@ -29642,10 +29604,6 @@ void main(void)\r
|
|
|
29642
29604
|
isTransformRelated = p2 in _transformProps;
|
|
29643
29605
|
if (isTransformRelated) {
|
|
29644
29606
|
this.styles.save(p2);
|
|
29645
|
-
if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
|
|
29646
|
-
endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
|
|
29647
|
-
endNum = parseFloat(endValue);
|
|
29648
|
-
}
|
|
29649
29607
|
if (!transformPropTween) {
|
|
29650
29608
|
cache = target._gsap;
|
|
29651
29609
|
cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
|
|
@@ -29709,7 +29667,7 @@ void main(void)\r
|
|
|
29709
29667
|
} else {
|
|
29710
29668
|
_tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
|
|
29711
29669
|
}
|
|
29712
|
-
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) :
|
|
29670
|
+
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
|
|
29713
29671
|
props.push(p2);
|
|
29714
29672
|
}
|
|
29715
29673
|
}
|
|
@@ -32916,11 +32874,7 @@ void main(void)\r
|
|
|
32916
32874
|
/**
|
|
32917
32875
|
* past Spine.globalDelayLimit
|
|
32918
32876
|
*/
|
|
32919
|
-
GLOBAL_DELAY_LIMIT: 0
|
|
32920
|
-
/**
|
|
32921
|
-
* shows error in console if atlas page loading somehow failed
|
|
32922
|
-
*/
|
|
32923
|
-
REPORT_TEXTURE_LOADER_ERROR: true
|
|
32877
|
+
GLOBAL_DELAY_LIMIT: 0
|
|
32924
32878
|
};
|
|
32925
32879
|
const tempRgb = [0, 0, 0];
|
|
32926
32880
|
class SpineSprite extends Sprite {
|
|
@@ -33315,9 +33269,6 @@ void main(void)\r
|
|
|
33315
33269
|
* @private
|
|
33316
33270
|
*/
|
|
33317
33271
|
createMesh(slot, attachment) {
|
|
33318
|
-
if (!attachment.region && attachment.sequence) {
|
|
33319
|
-
attachment.sequence.apply(slot, attachment);
|
|
33320
|
-
}
|
|
33321
33272
|
let region = attachment.region;
|
|
33322
33273
|
if (slot.hackAttachment === attachment) {
|
|
33323
33274
|
region = slot.hackRegion;
|
|
@@ -40025,16 +39976,9 @@ void main(void)\r
|
|
|
40025
39976
|
};
|
|
40026
39977
|
const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
|
|
40027
39978
|
return async (pageName, textureLoadedCallback) => {
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
textureLoadedCallback(texture.baseTexture);
|
|
40032
|
-
} catch (e2) {
|
|
40033
|
-
{
|
|
40034
|
-
console.error("Spine: error in texture loader", e2);
|
|
40035
|
-
}
|
|
40036
|
-
textureLoadedCallback(null);
|
|
40037
|
-
}
|
|
39979
|
+
const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
|
|
39980
|
+
const texture = await loader.load({ src: url, data: imageMetadata });
|
|
39981
|
+
textureLoadedCallback(texture.baseTexture);
|
|
40038
39982
|
};
|
|
40039
39983
|
};
|
|
40040
39984
|
extensions$2.add(spineTextureAtlasLoader);
|
|
@@ -55452,10 +55396,10 @@ void main(void){
|
|
|
55452
55396
|
}
|
|
55453
55397
|
}
|
|
55454
55398
|
/*!
|
|
55455
|
-
* decimal.js v10.
|
|
55399
|
+
* decimal.js v10.4.3
|
|
55456
55400
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
55457
55401
|
* https://github.com/MikeMcl/decimal.js
|
|
55458
|
-
* Copyright (c)
|
|
55402
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
55459
55403
|
* MIT Licence
|
|
55460
55404
|
*/
|
|
55461
55405
|
var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
|
|
@@ -55724,7 +55668,7 @@ void main(void){
|
|
|
55724
55668
|
return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
|
|
55725
55669
|
};
|
|
55726
55670
|
P.inverseCosine = P.acos = function() {
|
|
55727
|
-
var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55671
|
+
var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55728
55672
|
if (k2 !== -1) {
|
|
55729
55673
|
return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
|
|
55730
55674
|
}
|
|
@@ -55732,10 +55676,11 @@ void main(void){
|
|
|
55732
55676
|
return getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55733
55677
|
Ctor.precision = pr + 6;
|
|
55734
55678
|
Ctor.rounding = 1;
|
|
55735
|
-
x2 =
|
|
55679
|
+
x2 = x2.asin();
|
|
55680
|
+
halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55736
55681
|
Ctor.precision = pr;
|
|
55737
55682
|
Ctor.rounding = rm;
|
|
55738
|
-
return
|
|
55683
|
+
return halfPi.minus(x2);
|
|
55739
55684
|
};
|
|
55740
55685
|
P.inverseHyperbolicCosine = P.acosh = function() {
|
|
55741
55686
|
var pr, rm, x2 = this, Ctor = x2.constructor;
|
|
@@ -56947,16 +56892,14 @@ void main(void){
|
|
|
56947
56892
|
function isOdd(n2) {
|
|
56948
56893
|
return n2.d[n2.d.length - 1] & 1;
|
|
56949
56894
|
}
|
|
56950
|
-
function maxOrMin(Ctor, args,
|
|
56951
|
-
var
|
|
56895
|
+
function maxOrMin(Ctor, args, ltgt) {
|
|
56896
|
+
var y2, x2 = new Ctor(args[0]), i2 = 0;
|
|
56952
56897
|
for (; ++i2 < args.length; ) {
|
|
56953
56898
|
y2 = new Ctor(args[i2]);
|
|
56954
56899
|
if (!y2.s) {
|
|
56955
56900
|
x2 = y2;
|
|
56956
56901
|
break;
|
|
56957
|
-
}
|
|
56958
|
-
k2 = x2.cmp(y2);
|
|
56959
|
-
if (k2 === n2 || k2 === 0 && x2.s === n2) {
|
|
56902
|
+
} else if (x2[ltgt](y2)) {
|
|
56960
56903
|
x2 = y2;
|
|
56961
56904
|
}
|
|
56962
56905
|
}
|
|
@@ -57537,8 +57480,7 @@ void main(void){
|
|
|
57537
57480
|
x2.d = [v2];
|
|
57538
57481
|
}
|
|
57539
57482
|
return;
|
|
57540
|
-
}
|
|
57541
|
-
if (v2 * 0 !== 0) {
|
|
57483
|
+
} else if (v2 * 0 !== 0) {
|
|
57542
57484
|
if (!v2)
|
|
57543
57485
|
x2.s = NaN;
|
|
57544
57486
|
x2.e = NaN;
|
|
@@ -57546,28 +57488,18 @@ void main(void){
|
|
|
57546
57488
|
return;
|
|
57547
57489
|
}
|
|
57548
57490
|
return parseDecimal(x2, v2.toString());
|
|
57491
|
+
} else if (t2 !== "string") {
|
|
57492
|
+
throw Error(invalidArgument + v2);
|
|
57549
57493
|
}
|
|
57550
|
-
if (
|
|
57551
|
-
|
|
57494
|
+
if ((i3 = v2.charCodeAt(0)) === 45) {
|
|
57495
|
+
v2 = v2.slice(1);
|
|
57496
|
+
x2.s = -1;
|
|
57497
|
+
} else {
|
|
57498
|
+
if (i3 === 43)
|
|
57552
57499
|
v2 = v2.slice(1);
|
|
57553
|
-
|
|
57554
|
-
} else {
|
|
57555
|
-
if (i3 === 43)
|
|
57556
|
-
v2 = v2.slice(1);
|
|
57557
|
-
x2.s = 1;
|
|
57558
|
-
}
|
|
57559
|
-
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57560
|
-
}
|
|
57561
|
-
if (t2 === "bigint") {
|
|
57562
|
-
if (v2 < 0) {
|
|
57563
|
-
v2 = -v2;
|
|
57564
|
-
x2.s = -1;
|
|
57565
|
-
} else {
|
|
57566
|
-
x2.s = 1;
|
|
57567
|
-
}
|
|
57568
|
-
return parseDecimal(x2, v2.toString());
|
|
57500
|
+
x2.s = 1;
|
|
57569
57501
|
}
|
|
57570
|
-
|
|
57502
|
+
return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
|
|
57571
57503
|
}
|
|
57572
57504
|
Decimal2.prototype = P;
|
|
57573
57505
|
Decimal2.ROUND_UP = 0;
|
|
@@ -57677,10 +57609,10 @@ void main(void){
|
|
|
57677
57609
|
return new this(x2).log(10);
|
|
57678
57610
|
}
|
|
57679
57611
|
function max() {
|
|
57680
|
-
return maxOrMin(this, arguments,
|
|
57612
|
+
return maxOrMin(this, arguments, "lt");
|
|
57681
57613
|
}
|
|
57682
57614
|
function min() {
|
|
57683
|
-
return maxOrMin(this, arguments,
|
|
57615
|
+
return maxOrMin(this, arguments, "gt");
|
|
57684
57616
|
}
|
|
57685
57617
|
function mod(x2, y2) {
|
|
57686
57618
|
return new this(x2).mod(y2);
|