lyb-pixi-js 1.12.50 → 1.12.53
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.
|
@@ -10,9 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { Container } from "pixi.js";
|
|
11
11
|
import gsap from "gsap";
|
|
12
12
|
import { LibJsResizeWatcher } from "lyb-js/Base/LibJsResizeWatcher.js";
|
|
13
|
+
import { LibPixiMaskBg } from "../../../Components/Custom/LibPixiMaskBg";
|
|
13
14
|
import { libPixiEvent } from "../../LibPixiEvent";
|
|
14
15
|
import { LibPixiBaseContainer } from "./LibPixiBaseContainer";
|
|
15
|
-
import {
|
|
16
|
+
import { LibPixiTicker } from "../../LibPixiTicker";
|
|
16
17
|
/** @description 弹窗组件 */
|
|
17
18
|
export class LibPixiDialog extends LibPixiBaseContainer {
|
|
18
19
|
constructor(params) {
|
|
@@ -43,7 +44,14 @@ export class LibPixiDialog extends LibPixiBaseContainer {
|
|
|
43
44
|
this.addChild(this._dialogContainer);
|
|
44
45
|
this._dialogContainer.eventMode = "static";
|
|
45
46
|
const resize = new LibJsResizeWatcher(LibPixiDialog.adaptation);
|
|
46
|
-
|
|
47
|
+
const off1 = resize.on(this._redraw.bind(this), false);
|
|
48
|
+
const off2 = LibPixiTicker.add("LibPixiDialog", () => {
|
|
49
|
+
this._maskUI.updateSize();
|
|
50
|
+
});
|
|
51
|
+
this._offResize = () => {
|
|
52
|
+
off1();
|
|
53
|
+
off2();
|
|
54
|
+
};
|
|
47
55
|
}
|
|
48
56
|
/** @description 设置弹窗内容 */
|
|
49
57
|
setDialogContent(content) {
|