lyb-pixi-js 1.12.77 → 1.12.78
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Container } from "pixi.js";
|
|
2
|
-
import
|
|
3
|
-
export { LibPixiBaseContainer } from "./ui/LibPixiBaseContainer";
|
|
4
|
-
export { LibPixiDialog } from "./ui/LibPixiDialog";
|
|
2
|
+
import { LibPixiBaseContainer } from "./ui/LibPixiBaseContainer";
|
|
5
3
|
interface IViewCtor {
|
|
6
4
|
new (...args: any[]): LibPixiBaseContainer;
|
|
7
5
|
}
|
|
@@ -32,3 +30,4 @@ export declare class LibPixiDialogManager {
|
|
|
32
30
|
/** @description 关闭并销毁所有弹窗 */
|
|
33
31
|
closeAll(): Promise<void>;
|
|
34
32
|
}
|
|
33
|
+
export {};
|
|
@@ -7,8 +7,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
export { LibPixiBaseContainer } from "./ui/LibPixiBaseContainer";
|
|
11
|
-
export { LibPixiDialog } from "./ui/LibPixiDialog";
|
|
12
10
|
/** @description 弹窗管理器 */
|
|
13
11
|
export class LibPixiDialogManager {
|
|
14
12
|
constructor(parent) {
|
|
@@ -24,6 +22,8 @@ export class LibPixiDialogManager {
|
|
|
24
22
|
* @param args 实例参数
|
|
25
23
|
*/
|
|
26
24
|
open(View, id, ...args) {
|
|
25
|
+
if (this._views[id])
|
|
26
|
+
return this._views[id];
|
|
27
27
|
const view = new View(...args);
|
|
28
28
|
this._openContainer.addChild(view);
|
|
29
29
|
this._views[id] = view;
|