@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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +5 -1
- package/src/View/MainView.ts +7 -1
package/package.json
CHANGED
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),
|
|
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){
|
package/src/View/MainView.ts
CHANGED
|
@@ -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(
|
|
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(() => {
|