lyb-pixi-js 1.10.8 → 1.10.10
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/LibContainerCenter.d.ts +3 -0
- package/Utils/LibContainerCenter.js +10 -0
- package/Utils/LibControlledDelayedCall.d.ts +5 -0
- package/Utils/LibControlledDelayedCall.js +20 -0
- package/Utils/LibPixiHVCenter.d.ts +7 -0
- package/Utils/LibPixiHVCenter.js +14 -0
- package/Utils/{LibArrangeLinear.d.ts → LibPixiHVGap.d.ts} +1 -2
- package/Utils/{LibArrangeLinear.js → LibPixiHVGap.js} +2 -5
- package/libPixiJs.d.ts +15 -0
- package/libPixiJs.js +18 -0
- package/lyb-pixi.js +191 -97
- package/package.json +1 -1
- package/Utils/LibEmitContainerEvent.d.ts +0 -7
- package/Utils/LibEmitContainerEvent.js +0 -13
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @description 当前容器在父容器居中 */
|
|
2
|
+
export const libContainerCenter = (parent, item, centerType = "xy") => {
|
|
3
|
+
const xy = centerType === "xy";
|
|
4
|
+
if (centerType === "x" || xy) {
|
|
5
|
+
item.x = parent.width / 2 - item.width / 2;
|
|
6
|
+
}
|
|
7
|
+
if (centerType === "y" || xy) {
|
|
8
|
+
item.y = parent.height / 2 - item.height / 2;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { libPixiTickerTimeout } from "./LibPixiTickerTimeout";
|
|
2
|
+
/** @description 可控延迟调用函数 */
|
|
3
|
+
export const libControlledDelayedCall = (time) => {
|
|
4
|
+
let _resolve;
|
|
5
|
+
let timer;
|
|
6
|
+
const start = new Promise((resolve) => {
|
|
7
|
+
_resolve = resolve;
|
|
8
|
+
timer = libPixiTickerTimeout(() => {
|
|
9
|
+
resolve();
|
|
10
|
+
}, time);
|
|
11
|
+
});
|
|
12
|
+
const stop = () => {
|
|
13
|
+
timer();
|
|
14
|
+
_resolve();
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
start,
|
|
18
|
+
stop,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @description 列表居中
|
|
2
|
+
* @param parent 父容器
|
|
3
|
+
* @param items 子元素数组
|
|
4
|
+
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
5
|
+
*/
|
|
6
|
+
export const libPixiHVCenter = (parent, items, direction) => {
|
|
7
|
+
items.forEach((item) => {
|
|
8
|
+
direction.forEach((d) => {
|
|
9
|
+
item[d] =
|
|
10
|
+
parent[d === "x" ? "width" : "height"] / 2 -
|
|
11
|
+
item[d === "x" ? "width" : "height"] / 2;
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
};
|
|
@@ -4,6 +4,5 @@ import { Container } from "pixi.js";
|
|
|
4
4
|
* @param items 要排列的元素数组。
|
|
5
5
|
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
6
6
|
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
7
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
|
|
8
7
|
*/
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const libPixiHVGap: (items: Container[], gap: number | number[], direction?: "x" | "y") => void;
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* @param items 要排列的元素数组。
|
|
4
4
|
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
5
5
|
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
6
|
-
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibArrangeLinear-间隔布局
|
|
7
6
|
*/
|
|
8
|
-
export const
|
|
7
|
+
export const libPixiHVGap = (items, gap, direction = "x") => {
|
|
9
8
|
if (Array.isArray(gap)) {
|
|
10
9
|
if (gap.length !== items.length - 1) {
|
|
11
10
|
console.error(new Error("间隔的数组长度只能等于元素数组长度-1"));
|
|
@@ -14,9 +13,7 @@ export const LibArrangeLinear = (items, gap, direction = "x") => {
|
|
|
14
13
|
}
|
|
15
14
|
let lastPosition = 0;
|
|
16
15
|
items.forEach((item, index) => {
|
|
17
|
-
const position = index === 0
|
|
18
|
-
? 0
|
|
19
|
-
: lastPosition + (Array.isArray(gap) ? gap[index - 1] : gap);
|
|
16
|
+
const position = index === 0 ? 0 : lastPosition + (Array.isArray(gap) ? gap[index - 1] : gap);
|
|
20
17
|
if (direction === "x") {
|
|
21
18
|
item.x = position;
|
|
22
19
|
lastPosition = item.x + item.width;
|
package/libPixiJs.d.ts
CHANGED
|
@@ -241,4 +241,19 @@ export declare const Utils: {
|
|
|
241
241
|
* @param payload 事件携带数据
|
|
242
242
|
*/
|
|
243
243
|
LibPixiEmitContainerEvent: (container: import("pixi.js").Container, event: string, payload?: any) => void;
|
|
244
|
+
/** @description 当前容器在父容器居中 */
|
|
245
|
+
libContainerCenter: (parent: import("pixi.js").Container, item: import("pixi.js").Container, centerType?: "x" | "y" | "xy") => void;
|
|
246
|
+
/** @description 列表居中
|
|
247
|
+
* @param parent 父容器
|
|
248
|
+
* @param items 子元素数组
|
|
249
|
+
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
250
|
+
*/
|
|
251
|
+
libPixiHVCenter: (parent: import("pixi.js").Container, items: import("pixi.js").Container[], direction: ("x" | "y")[]) => void;
|
|
252
|
+
/**
|
|
253
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
254
|
+
* @param items 要排列的元素数组。
|
|
255
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
256
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
257
|
+
*/
|
|
258
|
+
libPixiHVGap: (items: import("pixi.js").Container[], gap: number | number[], direction?: "x" | "y") => void;
|
|
244
259
|
};
|
package/libPixiJs.js
CHANGED
|
@@ -41,6 +41,9 @@ import { LibPixiSlide } from "./Components/Custom/LibPixiSlide";
|
|
|
41
41
|
import { LibPixiEmitContainerEvent } from "./Utils/LibPixiEmitContainerEvent";
|
|
42
42
|
import { LibPixiLabelValue } from "./Components/Custom/LibPixiLabelValue";
|
|
43
43
|
import { LibPixiPuzzleBg } from "./Components/Custom/LibPixiPuzzleBg";
|
|
44
|
+
import { libContainerCenter } from "./Utils/LibContainerCenter";
|
|
45
|
+
import { libPixiHVCenter } from "./Utils/LibPixiHVCenter";
|
|
46
|
+
import { libPixiHVGap } from "./Utils/LibPixiHVGap";
|
|
44
47
|
/** @description 组件 */
|
|
45
48
|
export const Components = {
|
|
46
49
|
Base: {
|
|
@@ -256,4 +259,19 @@ export const Utils = {
|
|
|
256
259
|
* @param payload 事件携带数据
|
|
257
260
|
*/
|
|
258
261
|
LibPixiEmitContainerEvent,
|
|
262
|
+
/** @description 当前容器在父容器居中 */
|
|
263
|
+
libContainerCenter,
|
|
264
|
+
/** @description 列表居中
|
|
265
|
+
* @param parent 父容器
|
|
266
|
+
* @param items 子元素数组
|
|
267
|
+
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
268
|
+
*/
|
|
269
|
+
libPixiHVCenter,
|
|
270
|
+
/**
|
|
271
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
272
|
+
* @param items 要排列的元素数组。
|
|
273
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
274
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
275
|
+
*/
|
|
276
|
+
libPixiHVGap,
|
|
259
277
|
};
|
package/lyb-pixi.js
CHANGED
|
@@ -1336,26 +1336,29 @@
|
|
|
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
|
+
}
|
|
1339
1342
|
function isArray$3(obj) {
|
|
1340
|
-
return toStr(obj) === "[object Array]" && (
|
|
1343
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
1341
1344
|
}
|
|
1342
1345
|
function isDate(obj) {
|
|
1343
|
-
return toStr(obj) === "[object Date]" && (
|
|
1346
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
1344
1347
|
}
|
|
1345
1348
|
function isRegExp$1(obj) {
|
|
1346
|
-
return toStr(obj) === "[object RegExp]" && (
|
|
1349
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
1347
1350
|
}
|
|
1348
1351
|
function isError(obj) {
|
|
1349
|
-
return toStr(obj) === "[object Error]" && (
|
|
1352
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
1350
1353
|
}
|
|
1351
1354
|
function isString(obj) {
|
|
1352
|
-
return toStr(obj) === "[object String]" && (
|
|
1355
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
1353
1356
|
}
|
|
1354
1357
|
function isNumber(obj) {
|
|
1355
|
-
return toStr(obj) === "[object Number]" && (
|
|
1358
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
1356
1359
|
}
|
|
1357
1360
|
function isBoolean(obj) {
|
|
1358
|
-
return toStr(obj) === "[object Boolean]" && (
|
|
1361
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
1359
1362
|
}
|
|
1360
1363
|
function isSymbol(obj) {
|
|
1361
1364
|
if (hasShammedSymbols) {
|
|
@@ -2093,6 +2096,7 @@
|
|
|
2093
2096
|
"%eval%": eval,
|
|
2094
2097
|
// eslint-disable-line no-eval
|
|
2095
2098
|
"%EvalError%": $EvalError,
|
|
2099
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
|
|
2096
2100
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
2097
2101
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
2098
2102
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -2346,11 +2350,14 @@
|
|
|
2346
2350
|
var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
|
|
2347
2351
|
var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
|
|
2348
2352
|
var intrinsic = (
|
|
2349
|
-
/** @type {
|
|
2353
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2350
2354
|
GetIntrinsic$2(name, !!allowMissing)
|
|
2351
2355
|
);
|
|
2352
2356
|
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
2353
|
-
return callBindBasic(
|
|
2357
|
+
return callBindBasic(
|
|
2358
|
+
/** @type {const} */
|
|
2359
|
+
[intrinsic]
|
|
2360
|
+
);
|
|
2354
2361
|
}
|
|
2355
2362
|
return intrinsic;
|
|
2356
2363
|
};
|
|
@@ -10971,7 +10978,7 @@ void main(void)
|
|
|
10971
10978
|
*/
|
|
10972
10979
|
run(options) {
|
|
10973
10980
|
const { renderer } = this;
|
|
10974
|
-
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.
|
|
10981
|
+
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.3 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
|
|
10975
10982
|
}
|
|
10976
10983
|
destroy() {
|
|
10977
10984
|
}
|
|
@@ -18222,7 +18229,8 @@ void main()
|
|
|
18222
18229
|
if (keys.forEach((key2) => {
|
|
18223
18230
|
this._cacheMap.set(key2, cachedAssets);
|
|
18224
18231
|
}), cacheKeys.forEach((key2) => {
|
|
18225
|
-
|
|
18232
|
+
const val = cacheableAssets ? cacheableAssets[key2] : value;
|
|
18233
|
+
this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
|
|
18226
18234
|
}), value instanceof Texture) {
|
|
18227
18235
|
const texture = value;
|
|
18228
18236
|
keys.forEach((key2) => {
|
|
@@ -25738,12 +25746,11 @@ void main(void)\r
|
|
|
25738
25746
|
subClass.__proto__ = superClass;
|
|
25739
25747
|
}
|
|
25740
25748
|
/*!
|
|
25741
|
-
* GSAP 3.
|
|
25749
|
+
* GSAP 3.13.0
|
|
25742
25750
|
* https://gsap.com
|
|
25743
25751
|
*
|
|
25744
|
-
* @license Copyright 2008-
|
|
25745
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
25746
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
25752
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
25753
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
25747
25754
|
* @author: Jack Doyle, jack@greensock.com
|
|
25748
25755
|
*/
|
|
25749
25756
|
var _config = {
|
|
@@ -25834,9 +25841,11 @@ void main(void)\r
|
|
|
25834
25841
|
tween = a2[i2];
|
|
25835
25842
|
tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
|
|
25836
25843
|
}
|
|
25844
|
+
}, _isRevertWorthy = function _isRevertWorthy2(animation) {
|
|
25845
|
+
return !!(animation._initted || animation._startAt || animation.add);
|
|
25837
25846
|
}, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
|
|
25838
25847
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25839
|
-
animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation
|
|
25848
|
+
animation.render(time, suppressEvents, force || !!(_reverting$1 && time < 0 && _isRevertWorthy(animation)));
|
|
25840
25849
|
_lazyTweens.length && !_reverting$1 && _lazyRender();
|
|
25841
25850
|
}, _numericIfPossible = function _numericIfPossible2(value) {
|
|
25842
25851
|
var n2 = parseFloat(value);
|
|
@@ -25959,7 +25968,7 @@ void main(void)\r
|
|
|
25959
25968
|
}, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
|
|
25960
25969
|
return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
|
|
25961
25970
|
}, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
|
|
25962
|
-
var whole = Math.floor(tTime
|
|
25971
|
+
var whole = Math.floor(tTime = _roundPrecise(tTime / cycleDuration));
|
|
25963
25972
|
return tTime && whole === tTime ? whole - 1 : whole;
|
|
25964
25973
|
}, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
|
|
25965
25974
|
return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
|
|
@@ -26740,7 +26749,7 @@ void main(void)\r
|
|
|
26740
26749
|
}, easeOut);
|
|
26741
26750
|
})(7.5625, 2.75);
|
|
26742
26751
|
_insertEase("Expo", function(p2) {
|
|
26743
|
-
return
|
|
26752
|
+
return Math.pow(2, 10 * (p2 - 1)) * p2 + p2 * p2 * p2 * p2 * p2 * p2 * (1 - p2);
|
|
26744
26753
|
});
|
|
26745
26754
|
_insertEase("Circ", function(p2) {
|
|
26746
26755
|
return -(_sqrt(1 - p2 * p2) - 1);
|
|
@@ -26837,7 +26846,7 @@ void main(void)\r
|
|
|
26837
26846
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
|
|
26838
26847
|
};
|
|
26839
26848
|
_proto.totalProgress = function totalProgress(value, suppressEvents) {
|
|
26840
|
-
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime()
|
|
26849
|
+
return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
|
|
26841
26850
|
};
|
|
26842
26851
|
_proto.progress = function progress(value, suppressEvents) {
|
|
26843
26852
|
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;
|
|
@@ -26856,7 +26865,7 @@ void main(void)\r
|
|
|
26856
26865
|
var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
|
|
26857
26866
|
this._rts = +value || 0;
|
|
26858
26867
|
this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
|
|
26859
|
-
this.totalTime(_clamp(-Math.abs(this._delay), this.
|
|
26868
|
+
this.totalTime(_clamp(-Math.abs(this._delay), this.totalDuration(), tTime), suppressEvents !== false);
|
|
26860
26869
|
_setEnd(this);
|
|
26861
26870
|
return _recacheAncestors(this);
|
|
26862
26871
|
};
|
|
@@ -26899,7 +26908,7 @@ void main(void)\r
|
|
|
26899
26908
|
}
|
|
26900
26909
|
var prevIsReverting = _reverting$1;
|
|
26901
26910
|
_reverting$1 = config2;
|
|
26902
|
-
if (this
|
|
26911
|
+
if (_isRevertWorthy(this)) {
|
|
26903
26912
|
this.timeline && this.timeline.revert(config2);
|
|
26904
26913
|
this.totalTime(-0.01, config2.suppressEvents);
|
|
26905
26914
|
}
|
|
@@ -26942,7 +26951,9 @@ void main(void)\r
|
|
|
26942
26951
|
return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
|
|
26943
26952
|
};
|
|
26944
26953
|
_proto.restart = function restart(includeDelay, suppressEvents) {
|
|
26945
|
-
|
|
26954
|
+
this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
|
|
26955
|
+
this._dur || (this._zTime = -_tinyNum);
|
|
26956
|
+
return this;
|
|
26946
26957
|
};
|
|
26947
26958
|
_proto.play = function play(from, suppressEvents) {
|
|
26948
26959
|
from != null && this.seek(from, suppressEvents);
|
|
@@ -27119,8 +27130,9 @@ void main(void)\r
|
|
|
27119
27130
|
iteration = this._repeat;
|
|
27120
27131
|
time = dur;
|
|
27121
27132
|
} else {
|
|
27122
|
-
|
|
27123
|
-
|
|
27133
|
+
prevIteration = _roundPrecise(tTime / cycleDuration);
|
|
27134
|
+
iteration = ~~prevIteration;
|
|
27135
|
+
if (iteration && iteration === prevIteration) {
|
|
27124
27136
|
time = dur;
|
|
27125
27137
|
iteration--;
|
|
27126
27138
|
}
|
|
@@ -27174,7 +27186,7 @@ void main(void)\r
|
|
|
27174
27186
|
this._zTime = totalTime;
|
|
27175
27187
|
prevTime = 0;
|
|
27176
27188
|
}
|
|
27177
|
-
if (!prevTime &&
|
|
27189
|
+
if (!prevTime && tTime && !suppressEvents && !prevIteration) {
|
|
27178
27190
|
_callback(this, "onStart");
|
|
27179
27191
|
if (this._tTime !== tTime) {
|
|
27180
27192
|
return this;
|
|
@@ -27206,7 +27218,7 @@ void main(void)\r
|
|
|
27206
27218
|
if (child.parent !== this) {
|
|
27207
27219
|
return this.render(totalTime, suppressEvents, force);
|
|
27208
27220
|
}
|
|
27209
|
-
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && (child
|
|
27221
|
+
child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && _isRevertWorthy(child));
|
|
27210
27222
|
if (time !== this._time || !this._ts && !prevPaused) {
|
|
27211
27223
|
pauseTween = 0;
|
|
27212
27224
|
next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
|
|
@@ -27303,7 +27315,7 @@ void main(void)\r
|
|
|
27303
27315
|
if (_isFunction(child)) {
|
|
27304
27316
|
return this.killTweensOf(child);
|
|
27305
27317
|
}
|
|
27306
|
-
_removeLinkedListItem(this, child);
|
|
27318
|
+
child.parent === this && _removeLinkedListItem(this, child);
|
|
27307
27319
|
if (child === this._recent) {
|
|
27308
27320
|
this._recent = this._last;
|
|
27309
27321
|
}
|
|
@@ -27905,7 +27917,7 @@ void main(void)\r
|
|
|
27905
27917
|
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;
|
|
27906
27918
|
if (!dur) {
|
|
27907
27919
|
_renderZeroDurationTween(this, totalTime, suppressEvents, force);
|
|
27908
|
-
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
|
|
27920
|
+
} else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative || this._lazy) {
|
|
27909
27921
|
time = tTime;
|
|
27910
27922
|
timeline = this.timeline;
|
|
27911
27923
|
if (this._repeat) {
|
|
@@ -27918,12 +27930,14 @@ void main(void)\r
|
|
|
27918
27930
|
iteration = this._repeat;
|
|
27919
27931
|
time = dur;
|
|
27920
27932
|
} else {
|
|
27921
|
-
|
|
27922
|
-
|
|
27933
|
+
prevIteration = _roundPrecise(tTime / cycleDuration);
|
|
27934
|
+
iteration = ~~prevIteration;
|
|
27935
|
+
if (iteration && iteration === prevIteration) {
|
|
27923
27936
|
time = dur;
|
|
27924
27937
|
iteration--;
|
|
27938
|
+
} else if (time > dur) {
|
|
27939
|
+
time = dur;
|
|
27925
27940
|
}
|
|
27926
|
-
time > dur && (time = dur);
|
|
27927
27941
|
}
|
|
27928
27942
|
isYoyo = this._yoyo && iteration & 1;
|
|
27929
27943
|
if (isYoyo) {
|
|
@@ -27937,7 +27951,7 @@ void main(void)\r
|
|
|
27937
27951
|
}
|
|
27938
27952
|
if (iteration !== prevIteration) {
|
|
27939
27953
|
timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
|
|
27940
|
-
if (this.vars.repeatRefresh && !isYoyo && !this._lock &&
|
|
27954
|
+
if (this.vars.repeatRefresh && !isYoyo && !this._lock && time !== cycleDuration && this._initted) {
|
|
27941
27955
|
this._lock = force = 1;
|
|
27942
27956
|
this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
|
|
27943
27957
|
}
|
|
@@ -27965,7 +27979,7 @@ void main(void)\r
|
|
|
27965
27979
|
if (this._from) {
|
|
27966
27980
|
this.ratio = ratio = 1 - ratio;
|
|
27967
27981
|
}
|
|
27968
|
-
if (
|
|
27982
|
+
if (!prevTime && tTime && !suppressEvents && !prevIteration) {
|
|
27969
27983
|
_callback(this, "onStart");
|
|
27970
27984
|
if (this._tTime !== tTime) {
|
|
27971
27985
|
return this;
|
|
@@ -28022,7 +28036,8 @@ void main(void)\r
|
|
|
28022
28036
|
}
|
|
28023
28037
|
if (!targets && (!vars || vars === "all")) {
|
|
28024
28038
|
this._lazy = this._pt = 0;
|
|
28025
|
-
|
|
28039
|
+
this.parent ? _interrupt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!_reverting$1);
|
|
28040
|
+
return this;
|
|
28026
28041
|
}
|
|
28027
28042
|
if (this.timeline) {
|
|
28028
28043
|
var tDur = this.timeline.totalDuration();
|
|
@@ -28469,8 +28484,8 @@ void main(void)\r
|
|
|
28469
28484
|
};
|
|
28470
28485
|
},
|
|
28471
28486
|
quickTo: function quickTo(target, property, vars) {
|
|
28472
|
-
var
|
|
28473
|
-
var tween = gsap.to(target,
|
|
28487
|
+
var _setDefaults2;
|
|
28488
|
+
var tween = gsap.to(target, _setDefaults((_setDefaults2 = {}, _setDefaults2[property] = "+=0.1", _setDefaults2.paused = true, _setDefaults2.stagger = 0, _setDefaults2), vars || {})), func = function func2(value, start, startIsRelative) {
|
|
28474
28489
|
return tween.resetTo(property, value, start, startIsRelative);
|
|
28475
28490
|
};
|
|
28476
28491
|
func.tween = tween;
|
|
@@ -28632,6 +28647,7 @@ void main(void)\r
|
|
|
28632
28647
|
}, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
|
|
28633
28648
|
return {
|
|
28634
28649
|
name,
|
|
28650
|
+
headless: 1,
|
|
28635
28651
|
rawVars: 1,
|
|
28636
28652
|
//don't pre-process function-based values or "random()" strings.
|
|
28637
28653
|
init: function init2(target, vars, tween) {
|
|
@@ -28678,6 +28694,7 @@ void main(void)\r
|
|
|
28678
28694
|
}
|
|
28679
28695
|
}, {
|
|
28680
28696
|
name: "endArray",
|
|
28697
|
+
headless: 1,
|
|
28681
28698
|
init: function init2(target, value) {
|
|
28682
28699
|
var i2 = value.length;
|
|
28683
28700
|
while (i2--) {
|
|
@@ -28685,7 +28702,7 @@ void main(void)\r
|
|
|
28685
28702
|
}
|
|
28686
28703
|
}
|
|
28687
28704
|
}, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
|
|
28688
|
-
Tween.version = Timeline$1.version = gsap.version = "3.
|
|
28705
|
+
Tween.version = Timeline$1.version = gsap.version = "3.13.0";
|
|
28689
28706
|
_coreReady = 1;
|
|
28690
28707
|
_windowExists$1() && _wake();
|
|
28691
28708
|
_easeMap.Power0;
|
|
@@ -28707,12 +28724,11 @@ void main(void)\r
|
|
|
28707
28724
|
_easeMap.Expo;
|
|
28708
28725
|
_easeMap.Circ;
|
|
28709
28726
|
/*!
|
|
28710
|
-
* CSSPlugin 3.
|
|
28727
|
+
* CSSPlugin 3.13.0
|
|
28711
28728
|
* https://gsap.com
|
|
28712
28729
|
*
|
|
28713
|
-
* Copyright 2008-
|
|
28714
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
28715
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
28730
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
28731
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
28716
28732
|
* @author: Jack Doyle, jack@greensock.com
|
|
28717
28733
|
*/
|
|
28718
28734
|
var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
|
|
@@ -28785,7 +28801,13 @@ void main(void)\r
|
|
|
28785
28801
|
}, _revertStyle = function _revertStyle2() {
|
|
28786
28802
|
var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
|
|
28787
28803
|
for (i2 = 0; i2 < props.length; i2 += 3) {
|
|
28788
|
-
props[i2 + 1]
|
|
28804
|
+
if (!props[i2 + 1]) {
|
|
28805
|
+
props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
|
|
28806
|
+
} else if (props[i2 + 1] === 2) {
|
|
28807
|
+
target[props[i2]](props[i2 + 2]);
|
|
28808
|
+
} else {
|
|
28809
|
+
target[props[i2]] = props[i2 + 2];
|
|
28810
|
+
}
|
|
28789
28811
|
}
|
|
28790
28812
|
if (this.tfm) {
|
|
28791
28813
|
for (p2 in this.tfm) {
|
|
@@ -28814,7 +28836,7 @@ void main(void)\r
|
|
|
28814
28836
|
save: _saveStyle
|
|
28815
28837
|
};
|
|
28816
28838
|
target._gsap || gsap.core.getCache(target);
|
|
28817
|
-
properties && properties.split(",").forEach(function(p2) {
|
|
28839
|
+
properties && target.style && target.nodeType && properties.split(",").forEach(function(p2) {
|
|
28818
28840
|
return saver.save(p2);
|
|
28819
28841
|
});
|
|
28820
28842
|
return saver;
|
|
@@ -28849,30 +28871,17 @@ void main(void)\r
|
|
|
28849
28871
|
_reverting = gsap.core.reverting;
|
|
28850
28872
|
_pluginInitted = 1;
|
|
28851
28873
|
}
|
|
28852
|
-
},
|
|
28853
|
-
var svg = _createElement("svg",
|
|
28874
|
+
}, _getReparentedCloneBBox = function _getReparentedCloneBBox2(target) {
|
|
28875
|
+
var owner = target.ownerSVGElement, svg = _createElement("svg", owner && owner.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), clone2 = target.cloneNode(true), bbox;
|
|
28876
|
+
clone2.style.display = "block";
|
|
28877
|
+
svg.appendChild(clone2);
|
|
28854
28878
|
_docElement.appendChild(svg);
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
28858
|
-
try {
|
|
28859
|
-
bbox = this.getBBox();
|
|
28860
|
-
this._gsapBBox = this.getBBox;
|
|
28861
|
-
this.getBBox = _getBBoxHack2;
|
|
28862
|
-
} catch (e2) {
|
|
28863
|
-
}
|
|
28864
|
-
} else if (this._gsapBBox) {
|
|
28865
|
-
bbox = this._gsapBBox();
|
|
28866
|
-
}
|
|
28867
|
-
if (oldParent) {
|
|
28868
|
-
if (oldSibling) {
|
|
28869
|
-
oldParent.insertBefore(this, oldSibling);
|
|
28870
|
-
} else {
|
|
28871
|
-
oldParent.appendChild(this);
|
|
28872
|
-
}
|
|
28879
|
+
try {
|
|
28880
|
+
bbox = clone2.getBBox();
|
|
28881
|
+
} catch (e2) {
|
|
28873
28882
|
}
|
|
28883
|
+
svg.removeChild(clone2);
|
|
28874
28884
|
_docElement.removeChild(svg);
|
|
28875
|
-
this.style.cssText = oldCSS;
|
|
28876
28885
|
return bbox;
|
|
28877
28886
|
}, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
|
|
28878
28887
|
var i2 = attributesArray.length;
|
|
@@ -28882,13 +28891,14 @@ void main(void)\r
|
|
|
28882
28891
|
}
|
|
28883
28892
|
}
|
|
28884
28893
|
}, _getBBox = function _getBBox2(target) {
|
|
28885
|
-
var bounds;
|
|
28894
|
+
var bounds, cloned;
|
|
28886
28895
|
try {
|
|
28887
28896
|
bounds = target.getBBox();
|
|
28888
28897
|
} catch (error) {
|
|
28889
|
-
bounds =
|
|
28898
|
+
bounds = _getReparentedCloneBBox(target);
|
|
28899
|
+
cloned = 1;
|
|
28890
28900
|
}
|
|
28891
|
-
bounds && (bounds.width || bounds.height) ||
|
|
28901
|
+
bounds && (bounds.width || bounds.height) || cloned || (bounds = _getReparentedCloneBBox(target));
|
|
28892
28902
|
return bounds && !bounds.width && !bounds.x && !bounds.y ? {
|
|
28893
28903
|
x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
|
|
28894
28904
|
y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
|
|
@@ -28939,7 +28949,7 @@ void main(void)\r
|
|
|
28939
28949
|
return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
|
|
28940
28950
|
}
|
|
28941
28951
|
style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
|
|
28942
|
-
parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
|
|
28952
|
+
parent = unit !== "rem" && ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
|
|
28943
28953
|
if (isSVG) {
|
|
28944
28954
|
parent = (target.ownerSVGElement || {}).parentNode;
|
|
28945
28955
|
}
|
|
@@ -29004,6 +29014,9 @@ void main(void)\r
|
|
|
29004
29014
|
pt.e = end;
|
|
29005
29015
|
start += "";
|
|
29006
29016
|
end += "";
|
|
29017
|
+
if (end.substring(0, 6) === "var(--") {
|
|
29018
|
+
end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
|
|
29019
|
+
}
|
|
29007
29020
|
if (end === "auto") {
|
|
29008
29021
|
startValue = target.style[prop];
|
|
29009
29022
|
target.style[prop] = end;
|
|
@@ -29097,6 +29110,7 @@ void main(void)\r
|
|
|
29097
29110
|
_removeProperty(target, _transformProp);
|
|
29098
29111
|
if (cache) {
|
|
29099
29112
|
cache.svg && target.removeAttribute("transform");
|
|
29113
|
+
style.scale = style.rotate = style.translate = "none";
|
|
29100
29114
|
_parseTransform(target, 1);
|
|
29101
29115
|
cache.uncache = 1;
|
|
29102
29116
|
_removeIndependentTransforms(style);
|
|
@@ -29192,7 +29206,7 @@ void main(void)\r
|
|
|
29192
29206
|
temp = style.display;
|
|
29193
29207
|
style.display = "block";
|
|
29194
29208
|
parent = target.parentNode;
|
|
29195
|
-
if (!parent || !target.offsetParent) {
|
|
29209
|
+
if (!parent || !target.offsetParent && !target.getBoundingClientRect().width) {
|
|
29196
29210
|
addedToDOM = 1;
|
|
29197
29211
|
nextSibling = target.nextElementSibling;
|
|
29198
29212
|
_docElement.appendChild(target);
|
|
@@ -29628,6 +29642,10 @@ void main(void)\r
|
|
|
29628
29642
|
isTransformRelated = p2 in _transformProps;
|
|
29629
29643
|
if (isTransformRelated) {
|
|
29630
29644
|
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
|
+
}
|
|
29631
29649
|
if (!transformPropTween) {
|
|
29632
29650
|
cache = target._gsap;
|
|
29633
29651
|
cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
|
|
@@ -29691,7 +29709,7 @@ void main(void)\r
|
|
|
29691
29709
|
} else {
|
|
29692
29710
|
_tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
|
|
29693
29711
|
}
|
|
29694
|
-
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
|
|
29712
|
+
isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : typeof target[p2] === "function" ? inlineProps.push(p2, 2, target[p2]()) : inlineProps.push(p2, 1, startValue || target[p2]));
|
|
29695
29713
|
props.push(p2);
|
|
29696
29714
|
}
|
|
29697
29715
|
}
|
|
@@ -32898,7 +32916,11 @@ void main(void)\r
|
|
|
32898
32916
|
/**
|
|
32899
32917
|
* past Spine.globalDelayLimit
|
|
32900
32918
|
*/
|
|
32901
|
-
GLOBAL_DELAY_LIMIT: 0
|
|
32919
|
+
GLOBAL_DELAY_LIMIT: 0,
|
|
32920
|
+
/**
|
|
32921
|
+
* shows error in console if atlas page loading somehow failed
|
|
32922
|
+
*/
|
|
32923
|
+
REPORT_TEXTURE_LOADER_ERROR: true
|
|
32902
32924
|
};
|
|
32903
32925
|
const tempRgb = [0, 0, 0];
|
|
32904
32926
|
class SpineSprite extends Sprite {
|
|
@@ -33293,6 +33315,9 @@ void main(void)\r
|
|
|
33293
33315
|
* @private
|
|
33294
33316
|
*/
|
|
33295
33317
|
createMesh(slot, attachment) {
|
|
33318
|
+
if (!attachment.region && attachment.sequence) {
|
|
33319
|
+
attachment.sequence.apply(slot, attachment);
|
|
33320
|
+
}
|
|
33296
33321
|
let region = attachment.region;
|
|
33297
33322
|
if (slot.hackAttachment === attachment) {
|
|
33298
33323
|
region = slot.hackRegion;
|
|
@@ -40000,9 +40025,16 @@ void main(void)\r
|
|
|
40000
40025
|
};
|
|
40001
40026
|
const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
|
|
40002
40027
|
return async (pageName, textureLoadedCallback) => {
|
|
40003
|
-
|
|
40004
|
-
|
|
40005
|
-
|
|
40028
|
+
try {
|
|
40029
|
+
const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
|
|
40030
|
+
const texture = await loader.load({ src: url, data: imageMetadata });
|
|
40031
|
+
textureLoadedCallback(texture.baseTexture);
|
|
40032
|
+
} catch (e2) {
|
|
40033
|
+
{
|
|
40034
|
+
console.error("Spine: error in texture loader", e2);
|
|
40035
|
+
}
|
|
40036
|
+
textureLoadedCallback(null);
|
|
40037
|
+
}
|
|
40006
40038
|
};
|
|
40007
40039
|
};
|
|
40008
40040
|
extensions$2.add(spineTextureAtlasLoader);
|
|
@@ -55420,10 +55452,10 @@ void main(void){
|
|
|
55420
55452
|
}
|
|
55421
55453
|
}
|
|
55422
55454
|
/*!
|
|
55423
|
-
* decimal.js v10.
|
|
55455
|
+
* decimal.js v10.5.0
|
|
55424
55456
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
55425
55457
|
* https://github.com/MikeMcl/decimal.js
|
|
55426
|
-
* Copyright (c)
|
|
55458
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
55427
55459
|
* MIT Licence
|
|
55428
55460
|
*/
|
|
55429
55461
|
var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
|
|
@@ -55692,7 +55724,7 @@ void main(void){
|
|
|
55692
55724
|
return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
|
|
55693
55725
|
};
|
|
55694
55726
|
P.inverseCosine = P.acos = function() {
|
|
55695
|
-
var
|
|
55727
|
+
var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
|
|
55696
55728
|
if (k2 !== -1) {
|
|
55697
55729
|
return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
|
|
55698
55730
|
}
|
|
@@ -55700,11 +55732,10 @@ void main(void){
|
|
|
55700
55732
|
return getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55701
55733
|
Ctor.precision = pr + 6;
|
|
55702
55734
|
Ctor.rounding = 1;
|
|
55703
|
-
x2 = x2.
|
|
55704
|
-
halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
|
|
55735
|
+
x2 = new Ctor(1).minus(x2).div(x2.plus(1)).sqrt().atan();
|
|
55705
55736
|
Ctor.precision = pr;
|
|
55706
55737
|
Ctor.rounding = rm;
|
|
55707
|
-
return
|
|
55738
|
+
return x2.times(2);
|
|
55708
55739
|
};
|
|
55709
55740
|
P.inverseHyperbolicCosine = P.acosh = function() {
|
|
55710
55741
|
var pr, rm, x2 = this, Ctor = x2.constructor;
|
|
@@ -56916,14 +56947,16 @@ void main(void){
|
|
|
56916
56947
|
function isOdd(n2) {
|
|
56917
56948
|
return n2.d[n2.d.length - 1] & 1;
|
|
56918
56949
|
}
|
|
56919
|
-
function maxOrMin(Ctor, args,
|
|
56920
|
-
var y2, x2 = new Ctor(args[0]), i2 = 0;
|
|
56950
|
+
function maxOrMin(Ctor, args, n2) {
|
|
56951
|
+
var k2, y2, x2 = new Ctor(args[0]), i2 = 0;
|
|
56921
56952
|
for (; ++i2 < args.length; ) {
|
|
56922
56953
|
y2 = new Ctor(args[i2]);
|
|
56923
56954
|
if (!y2.s) {
|
|
56924
56955
|
x2 = y2;
|
|
56925
56956
|
break;
|
|
56926
|
-
}
|
|
56957
|
+
}
|
|
56958
|
+
k2 = x2.cmp(y2);
|
|
56959
|
+
if (k2 === n2 || k2 === 0 && x2.s === n2) {
|
|
56927
56960
|
x2 = y2;
|
|
56928
56961
|
}
|
|
56929
56962
|
}
|
|
@@ -57504,7 +57537,8 @@ void main(void){
|
|
|
57504
57537
|
x2.d = [v2];
|
|
57505
57538
|
}
|
|
57506
57539
|
return;
|
|
57507
|
-
}
|
|
57540
|
+
}
|
|
57541
|
+
if (v2 * 0 !== 0) {
|
|
57508
57542
|
if (!v2)
|
|
57509
57543
|
x2.s = NaN;
|
|
57510
57544
|
x2.e = NaN;
|
|
@@ -57512,18 +57546,28 @@ void main(void){
|
|
|
57512
57546
|
return;
|
|
57513
57547
|
}
|
|
57514
57548
|
return parseDecimal(x2, v2.toString());
|
|
57515
|
-
} else if (t2 !== "string") {
|
|
57516
|
-
throw Error(invalidArgument + v2);
|
|
57517
57549
|
}
|
|
57518
|
-
if (
|
|
57519
|
-
|
|
57520
|
-
x2.s = -1;
|
|
57521
|
-
} else {
|
|
57522
|
-
if (i3 === 43)
|
|
57550
|
+
if (t2 === "string") {
|
|
57551
|
+
if ((i3 = v2.charCodeAt(0)) === 45) {
|
|
57523
57552
|
v2 = v2.slice(1);
|
|
57524
|
-
|
|
57553
|
+
x2.s = -1;
|
|
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);
|
|
57525
57560
|
}
|
|
57526
|
-
|
|
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());
|
|
57569
|
+
}
|
|
57570
|
+
throw Error(invalidArgument + v2);
|
|
57527
57571
|
}
|
|
57528
57572
|
Decimal2.prototype = P;
|
|
57529
57573
|
Decimal2.ROUND_UP = 0;
|
|
@@ -57633,10 +57677,10 @@ void main(void){
|
|
|
57633
57677
|
return new this(x2).log(10);
|
|
57634
57678
|
}
|
|
57635
57679
|
function max() {
|
|
57636
|
-
return maxOrMin(this, arguments,
|
|
57680
|
+
return maxOrMin(this, arguments, -1);
|
|
57637
57681
|
}
|
|
57638
57682
|
function min() {
|
|
57639
|
-
return maxOrMin(this, arguments,
|
|
57683
|
+
return maxOrMin(this, arguments, 1);
|
|
57640
57684
|
}
|
|
57641
57685
|
function mod(x2, y2) {
|
|
57642
57686
|
return new this(x2).mod(y2);
|
|
@@ -57760,7 +57804,7 @@ void main(void){
|
|
|
57760
57804
|
}
|
|
57761
57805
|
};
|
|
57762
57806
|
const result = calc[operator](new Decimal(num1), new Decimal(num2));
|
|
57763
|
-
return Number(result.toFixed(point));
|
|
57807
|
+
return Number(result.toFixed(point, Decimal.ROUND_DOWN));
|
|
57764
57808
|
};
|
|
57765
57809
|
class LibPixiPuzzleBg extends Container {
|
|
57766
57810
|
constructor() {
|
|
@@ -57794,6 +57838,41 @@ void main(void){
|
|
|
57794
57838
|
});
|
|
57795
57839
|
}
|
|
57796
57840
|
}
|
|
57841
|
+
const libContainerCenter = (parent, item, centerType = "xy") => {
|
|
57842
|
+
const xy = centerType === "xy";
|
|
57843
|
+
if (centerType === "x" || xy) {
|
|
57844
|
+
item.x = parent.width / 2 - item.width / 2;
|
|
57845
|
+
}
|
|
57846
|
+
if (centerType === "y" || xy) {
|
|
57847
|
+
item.y = parent.height / 2 - item.height / 2;
|
|
57848
|
+
}
|
|
57849
|
+
};
|
|
57850
|
+
const libPixiHVCenter = (parent, items, direction) => {
|
|
57851
|
+
items.forEach((item) => {
|
|
57852
|
+
direction.forEach((d2) => {
|
|
57853
|
+
item[d2] = parent[d2 === "x" ? "width" : "height"] / 2 - item[d2 === "x" ? "width" : "height"] / 2;
|
|
57854
|
+
});
|
|
57855
|
+
});
|
|
57856
|
+
};
|
|
57857
|
+
const libPixiHVGap = (items, gap, direction = "x") => {
|
|
57858
|
+
if (Array.isArray(gap)) {
|
|
57859
|
+
if (gap.length !== items.length - 1) {
|
|
57860
|
+
console.error(new Error("间隔的数组长度只能等于元素数组长度-1"));
|
|
57861
|
+
return;
|
|
57862
|
+
}
|
|
57863
|
+
}
|
|
57864
|
+
let lastPosition = 0;
|
|
57865
|
+
items.forEach((item, index) => {
|
|
57866
|
+
const position = index === 0 ? 0 : lastPosition + (Array.isArray(gap) ? gap[index - 1] : gap);
|
|
57867
|
+
if (direction === "x") {
|
|
57868
|
+
item.x = position;
|
|
57869
|
+
lastPosition = item.x + item.width;
|
|
57870
|
+
} else {
|
|
57871
|
+
item.y = position;
|
|
57872
|
+
lastPosition = item.y + item.height;
|
|
57873
|
+
}
|
|
57874
|
+
});
|
|
57875
|
+
};
|
|
57797
57876
|
const Components = {
|
|
57798
57877
|
Base: {
|
|
57799
57878
|
/** @description 自定义位图文本
|
|
@@ -58006,7 +58085,22 @@ void main(void){
|
|
|
58006
58085
|
* @param event 事件名称
|
|
58007
58086
|
* @param payload 事件携带数据
|
|
58008
58087
|
*/
|
|
58009
|
-
LibPixiEmitContainerEvent
|
|
58088
|
+
LibPixiEmitContainerEvent,
|
|
58089
|
+
/** @description 当前容器在父容器居中 */
|
|
58090
|
+
libContainerCenter,
|
|
58091
|
+
/** @description 列表居中
|
|
58092
|
+
* @param parent 父容器
|
|
58093
|
+
* @param items 子元素数组
|
|
58094
|
+
* @param direction 方向数组,"x"表示水平,"y"表示垂直
|
|
58095
|
+
*/
|
|
58096
|
+
libPixiHVCenter,
|
|
58097
|
+
/**
|
|
58098
|
+
* @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
|
|
58099
|
+
* @param items 要排列的元素数组。
|
|
58100
|
+
* @param gap 元素之间的间隔,可以是固定间隔或自定义的间隔数组。
|
|
58101
|
+
* @param direction 排列方向,"x"表示水平,"y"表示垂直,默认为水平。
|
|
58102
|
+
*/
|
|
58103
|
+
libPixiHVGap
|
|
58010
58104
|
};
|
|
58011
58105
|
const LibPixiJs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
58012
58106
|
__proto__: null,
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|