lyb-pixi-js 1.11.0 → 1.11.2
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/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 +7 -1
- package/lyb-pixi.js +85 -109
- package/package.json +2 -19
|
@@ -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) {
|
|
@@ -34,9 +35,11 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
34
35
|
this._maskUI.visible = needBg;
|
|
35
36
|
if (onClickMask) {
|
|
36
37
|
libPixiEvent(this._maskUI, "pointertap", () => {
|
|
38
|
+
var _a;
|
|
37
39
|
if (this._isCloseAnimating)
|
|
38
40
|
return;
|
|
39
41
|
onClickMask === null || onClickMask === void 0 ? void 0 : onClickMask();
|
|
42
|
+
(_a = this._offResize) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
40
43
|
});
|
|
41
44
|
}
|
|
42
45
|
//弹窗内容容器
|
|
@@ -60,7 +63,8 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
60
63
|
duration: LibPixiDialog.durationIn,
|
|
61
64
|
alpha: 1,
|
|
62
65
|
});
|
|
63
|
-
|
|
66
|
+
const resize = new LibJsResizeWatcher();
|
|
67
|
+
this._offResize = resize.on((w, h) => {
|
|
64
68
|
const halfW = 1920 / 2;
|
|
65
69
|
const halfH = 1080 / 2;
|
|
66
70
|
if (w > h) {
|
|
@@ -92,8 +96,10 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
92
96
|
/** @description 关闭 */
|
|
93
97
|
close() {
|
|
94
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
var _a;
|
|
95
100
|
if (this._isCloseAnimating)
|
|
96
101
|
return;
|
|
102
|
+
(_a = this._offResize) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
97
103
|
this._isCloseAnimating = true;
|
|
98
104
|
gsap.to(this._dialogContainer.scale, {
|
|
99
105
|
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) {
|
|
@@ -1340,25 +1340,25 @@
|
|
|
1340
1340
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
1341
1341
|
}
|
|
1342
1342
|
function isArray$3(obj) {
|
|
1343
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
1343
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
1344
1344
|
}
|
|
1345
1345
|
function isDate(obj) {
|
|
1346
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
1346
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
1347
1347
|
}
|
|
1348
1348
|
function isRegExp$1(obj) {
|
|
1349
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
1349
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
1350
1350
|
}
|
|
1351
1351
|
function isError(obj) {
|
|
1352
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
1352
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
1353
1353
|
}
|
|
1354
1354
|
function isString(obj) {
|
|
1355
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
1355
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
1356
1356
|
}
|
|
1357
1357
|
function isNumber(obj) {
|
|
1358
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
1358
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
1359
1359
|
}
|
|
1360
1360
|
function isBoolean(obj) {
|
|
1361
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
1361
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
1362
1362
|
}
|
|
1363
1363
|
function isSymbol(obj) {
|
|
1364
1364
|
if (hasShammedSymbols) {
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
function has$3(obj, key) {
|
|
1395
1395
|
return hasOwn$1.call(obj, key);
|
|
1396
1396
|
}
|
|
1397
|
-
function toStr(obj) {
|
|
1397
|
+
function toStr$1(obj) {
|
|
1398
1398
|
return objectToString.call(obj);
|
|
1399
1399
|
}
|
|
1400
1400
|
function nameOf(f2) {
|
|
@@ -1703,7 +1703,7 @@
|
|
|
1703
1703
|
var uri = URIError;
|
|
1704
1704
|
var abs$2 = Math.abs;
|
|
1705
1705
|
var floor$2 = Math.floor;
|
|
1706
|
-
var max$
|
|
1706
|
+
var max$3 = Math.max;
|
|
1707
1707
|
var min$2 = Math.min;
|
|
1708
1708
|
var pow$2 = Math.pow;
|
|
1709
1709
|
var round$3 = Math.round;
|
|
@@ -1836,102 +1836,78 @@
|
|
|
1836
1836
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
1837
1837
|
return Object_getPrototypeOf;
|
|
1838
1838
|
}
|
|
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
|
-
}
|
|
1839
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
1840
|
+
var toStr = Object.prototype.toString;
|
|
1841
|
+
var max$2 = Math.max;
|
|
1842
|
+
var funcType = "[object Function]";
|
|
1843
|
+
var concatty = function concatty2(a2, b2) {
|
|
1844
|
+
var arr = [];
|
|
1845
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
1846
|
+
arr[i2] = a2[i2];
|
|
1847
|
+
}
|
|
1848
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
1849
|
+
arr[j2 + a2.length] = b2[j2];
|
|
1850
|
+
}
|
|
1851
|
+
return arr;
|
|
1852
|
+
};
|
|
1853
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
1854
|
+
var arr = [];
|
|
1855
|
+
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1856
|
+
arr[j2] = arrLike[i2];
|
|
1857
|
+
}
|
|
1858
|
+
return arr;
|
|
1859
|
+
};
|
|
1860
|
+
var joiny = function(arr, joiner) {
|
|
1861
|
+
var str = "";
|
|
1862
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1863
|
+
str += arr[i2];
|
|
1864
|
+
if (i2 + 1 < arr.length) {
|
|
1865
|
+
str += joiner;
|
|
1873
1866
|
}
|
|
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,
|
|
1867
|
+
}
|
|
1868
|
+
return str;
|
|
1869
|
+
};
|
|
1870
|
+
var implementation$1 = function bind2(that) {
|
|
1871
|
+
var target = this;
|
|
1872
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
1873
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1874
|
+
}
|
|
1875
|
+
var args = slicy(arguments, 1);
|
|
1876
|
+
var bound;
|
|
1877
|
+
var binder = function() {
|
|
1878
|
+
if (this instanceof bound) {
|
|
1879
|
+
var result = target.apply(
|
|
1880
|
+
this,
|
|
1896
1881
|
concatty(args, arguments)
|
|
1897
1882
|
);
|
|
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;
|
|
1883
|
+
if (Object(result) === result) {
|
|
1884
|
+
return result;
|
|
1885
|
+
}
|
|
1886
|
+
return this;
|
|
1911
1887
|
}
|
|
1912
|
-
return
|
|
1888
|
+
return target.apply(
|
|
1889
|
+
that,
|
|
1890
|
+
concatty(args, arguments)
|
|
1891
|
+
);
|
|
1913
1892
|
};
|
|
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
|
-
}
|
|
1893
|
+
var boundLength = max$2(0, target.length - args.length);
|
|
1894
|
+
var boundArgs = [];
|
|
1895
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
1896
|
+
boundArgs[i2] = "$" + i2;
|
|
1897
|
+
}
|
|
1898
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
1899
|
+
if (target.prototype) {
|
|
1900
|
+
var Empty = function Empty2() {
|
|
1901
|
+
};
|
|
1902
|
+
Empty.prototype = target.prototype;
|
|
1903
|
+
bound.prototype = new Empty();
|
|
1904
|
+
Empty.prototype = null;
|
|
1905
|
+
}
|
|
1906
|
+
return bound;
|
|
1907
|
+
};
|
|
1908
|
+
var implementation = implementation$1;
|
|
1909
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
1910
|
+
var functionCall = Function.prototype.call;
|
|
1935
1911
|
var functionApply;
|
|
1936
1912
|
var hasRequiredFunctionApply;
|
|
1937
1913
|
function requireFunctionApply() {
|
|
@@ -1942,14 +1918,14 @@
|
|
|
1942
1918
|
return functionApply;
|
|
1943
1919
|
}
|
|
1944
1920
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
1945
|
-
var bind$2 =
|
|
1921
|
+
var bind$2 = functionBind;
|
|
1946
1922
|
var $apply$1 = requireFunctionApply();
|
|
1947
|
-
var $call$2 =
|
|
1923
|
+
var $call$2 = functionCall;
|
|
1948
1924
|
var $reflectApply = reflectApply;
|
|
1949
1925
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
1950
|
-
var bind$1 =
|
|
1926
|
+
var bind$1 = functionBind;
|
|
1951
1927
|
var $TypeError$4 = type;
|
|
1952
|
-
var $call$1 =
|
|
1928
|
+
var $call$1 = functionCall;
|
|
1953
1929
|
var $actualApply = actualApply;
|
|
1954
1930
|
var callBindApplyHelpers = function callBindBasic2(args) {
|
|
1955
1931
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -2018,7 +1994,7 @@
|
|
|
2018
1994
|
hasRequiredHasown = 1;
|
|
2019
1995
|
var call = Function.prototype.call;
|
|
2020
1996
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2021
|
-
var bind2 =
|
|
1997
|
+
var bind2 = functionBind;
|
|
2022
1998
|
hasown = bind2.call(call, $hasOwn);
|
|
2023
1999
|
return hasown;
|
|
2024
2000
|
}
|
|
@@ -2033,7 +2009,7 @@
|
|
|
2033
2009
|
var $URIError = uri;
|
|
2034
2010
|
var abs$1 = abs$2;
|
|
2035
2011
|
var floor$1 = floor$2;
|
|
2036
|
-
var max$1 = max$
|
|
2012
|
+
var max$1 = max$3;
|
|
2037
2013
|
var min$1 = min$2;
|
|
2038
2014
|
var pow$1 = pow$2;
|
|
2039
2015
|
var round$2 = round$3;
|
|
@@ -2067,7 +2043,7 @@
|
|
|
2067
2043
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2068
2044
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2069
2045
|
var $apply = requireFunctionApply();
|
|
2070
|
-
var $call =
|
|
2046
|
+
var $call = functionCall;
|
|
2071
2047
|
var needsEval = {};
|
|
2072
2048
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2073
2049
|
var INTRINSICS = {
|
|
@@ -2238,7 +2214,7 @@
|
|
|
2238
2214
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2239
2215
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2240
2216
|
};
|
|
2241
|
-
var bind =
|
|
2217
|
+
var bind = functionBind;
|
|
2242
2218
|
var hasOwn = requireHasown();
|
|
2243
2219
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
2244
2220
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lyb-pixi-js",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "自用Pixi.JS方法库",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"exports": {
|
|
@@ -22,22 +22,5 @@
|
|
|
22
22
|
"lengyibai",
|
|
23
23
|
"lyb",
|
|
24
24
|
"lyb-pixi-js"
|
|
25
|
-
]
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/howler": "^2.2.12"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@pixi-spine/runtime-3.8": "^4.0.3",
|
|
31
|
-
"@pixi/filter-drop-shadow": "^5.2.0",
|
|
32
|
-
"@pixi/particle-emitter": "^5.0.8",
|
|
33
|
-
"@pixi/sound": "^5.2.3",
|
|
34
|
-
"dayjs": "^1.11.13",
|
|
35
|
-
"decimal.js": "^10.4.3",
|
|
36
|
-
"gsap": "^3.12.5",
|
|
37
|
-
"howler": "^2.2.4",
|
|
38
|
-
"lyb-js": "^1.4.1",
|
|
39
|
-
"pixi-spine": "^4.0.4",
|
|
40
|
-
"pixi.js": "^7.4.2",
|
|
41
|
-
"vite": "^4.5.5"
|
|
42
|
-
}
|
|
25
|
+
]
|
|
43
26
|
}
|