@netless/window-manager 1.0.13-test.3 → 1.0.13-test.4

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": "1.0.13-test.3",
3
+ "version": "1.0.13-test.4",
4
4
  "description": "Multi-window mode for Netless Whiteboard",
5
5
  "author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
6
6
  "license": "MIT",
package/src/AppManager.ts CHANGED
@@ -713,7 +713,11 @@ export class AppManager {
713
713
  callbacks.emit("onMainViewMounted", mainView);
714
714
  const hasRoot = this.hasRoot(mainView.divElement);
715
715
  const rect = this.getRectByDivElement(mainView.divElement);
716
- console.log("[window-manager] bindMainView hasRoot", hasRoot, JSON.stringify(rect), window.outerHeight, window.outerWidth);
716
+ console.log("[window-manager] bindMainView hasRoot", hasRoot, JSON.stringify(rect),
717
+ window.outerHeight, window.outerWidth,
718
+ window.visualViewport?.width ?? "null", window.visualViewport?.height ?? "null",
719
+ window.visualViewport?.offsetLeft ?? "null", window.visualViewport?.offsetTop ?? "null",
720
+ );
717
721
  }
718
722
 
719
723
  private hasRoot(divElement: HTMLDivElement){
@@ -37,7 +37,13 @@ export class MainViewProxy {
37
37
  });
38
38
  const playgroundSizeChangeListener = () => {
39
39
  // console.log("[window-manager] playgroundSizeChangeListener ", JSON.stringify(this.mainViewSize), JSON.stringify(this.mainViewCamera));
40
- this.playgroundSizeChangeListenerLocalConsole.log(JSON.stringify(this.mainViewSize), JSON.stringify(this.mainViewCamera));
40
+ this.playgroundSizeChangeListenerLocalConsole.log(
41
+ JSON.stringify(this.mainViewSize),
42
+ JSON.stringify(this.mainViewCamera),
43
+ window.outerHeight, window.outerWidth,
44
+ window.visualViewport?.width ?? "null", window.visualViewport?.height ?? "null",
45
+ window.visualViewport?.offsetLeft ?? "null", window.visualViewport?.offsetTop ?? "null",
46
+ );
41
47
  this.sizeChangeHandler(this.mainViewSize);
42
48
  };
43
49
  this.sideEffectManager.add(() => {