@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "0.4.72",
3
+ "version": "0.4.73-beta.0",
4
4
  "description": "Multi-window mode for Netless Whiteboard",
5
5
  "author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
6
6
  "license": "MIT",
@@ -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
@@ -30,6 +30,7 @@ export type PublicEvent = {
30
30
  onBoxClose: BoxClosePayload;
31
31
  onBoxStateChange: BoxStateChangePayload;
32
32
  onMainViewMounted: View;
33
+ onMainViewRebind: View;
33
34
  onAppViewMounted: AppPayload;
34
35
  onAppSetup: string;
35
36
  onAppScenePathChange: AppPayload;