@netless/window-manager 0.4.72 → 0.4.73-beta.0
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/dist/callback.d.ts +1 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/View/MainView.ts +4 -0
- package/src/callback.ts +1 -0
package/package.json
CHANGED
package/src/View/MainView.ts
CHANGED
@@ -9,6 +9,7 @@ import { SideEffectManager } from "side-effect-manager";
|
|
9
9
|
import type { Camera, Room, Size, View } from "white-web-sdk";
|
10
10
|
import type { AppManager } from "../AppManager";
|
11
11
|
import { Events } from "../constants";
|
12
|
+
import { WindowManager } from "..";
|
12
13
|
|
13
14
|
export class MainViewProxy {
|
14
15
|
/** Refresh the view's camera in an interval of 1.5s. */
|
@@ -186,6 +187,9 @@ export class MainViewProxy {
|
|
186
187
|
this.mainView.divElement = divElement;
|
187
188
|
this.addMainViewListener();
|
188
189
|
this.start();
|
190
|
+
if (WindowManager.supportTeachingAidsPlugin) {
|
191
|
+
callbacks.emit("onMainViewRebind", this.mainView);
|
192
|
+
}
|
189
193
|
}
|
190
194
|
|
191
195
|
private onCameraUpdatedByDevice = (camera: Camera) => {
|
package/src/callback.ts
CHANGED