@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.mjs CHANGED
@@ -7882,7 +7882,17 @@ class MainViewProxy {
7882
7882
  this.startListenWritableChange();
7883
7883
  });
7884
7884
  const playgroundSizeChangeListener = () => {
7885
- this.playgroundSizeChangeListenerLocalConsole.log(JSON.stringify(this.mainViewSize), JSON.stringify(this.mainViewCamera));
7885
+ var _a, _b, _c, _d, _e, _f, _g, _h;
7886
+ this.playgroundSizeChangeListenerLocalConsole.log(
7887
+ JSON.stringify(this.mainViewSize),
7888
+ JSON.stringify(this.mainViewCamera),
7889
+ window.outerHeight,
7890
+ window.outerWidth,
7891
+ (_b = (_a = window.visualViewport) == null ? void 0 : _a.width) != null ? _b : "null",
7892
+ (_d = (_c = window.visualViewport) == null ? void 0 : _c.height) != null ? _d : "null",
7893
+ (_f = (_e = window.visualViewport) == null ? void 0 : _e.offsetLeft) != null ? _f : "null",
7894
+ (_h = (_g = window.visualViewport) == null ? void 0 : _g.offsetTop) != null ? _h : "null"
7895
+ );
7886
7896
  this.sizeChangeHandler(this.mainViewSize);
7887
7897
  };
7888
7898
  this.sideEffectManager.add(() => {
@@ -8718,6 +8728,7 @@ class AppManager {
8718
8728
  (_a = this.boxManager) == null ? void 0 : _a.setMinimized(Boolean(this.store.getMinimized()));
8719
8729
  }
8720
8730
  bindMainView(divElement, disableCameraTransform) {
8731
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8721
8732
  const mainView = this.mainViewProxy.view;
8722
8733
  mainView.disableCameraTransform = disableCameraTransform;
8723
8734
  mainView.divElement = divElement;
@@ -8728,7 +8739,17 @@ class AppManager {
8728
8739
  callbacks$1.emit("onMainViewMounted", mainView);
8729
8740
  const hasRoot = this.hasRoot(mainView.divElement);
8730
8741
  const rect = this.getRectByDivElement(mainView.divElement);
8731
- console.log("[window-manager] bindMainView hasRoot", hasRoot, JSON.stringify(rect), window.outerHeight, window.outerWidth);
8742
+ console.log(
8743
+ "[window-manager] bindMainView hasRoot",
8744
+ hasRoot,
8745
+ JSON.stringify(rect),
8746
+ window.outerHeight,
8747
+ window.outerWidth,
8748
+ (_b = (_a = window.visualViewport) == null ? void 0 : _a.width) != null ? _b : "null",
8749
+ (_d = (_c = window.visualViewport) == null ? void 0 : _c.height) != null ? _d : "null",
8750
+ (_f = (_e = window.visualViewport) == null ? void 0 : _e.offsetLeft) != null ? _f : "null",
8751
+ (_h = (_g = window.visualViewport) == null ? void 0 : _g.offsetTop) != null ? _h : "null"
8752
+ );
8732
8753
  }
8733
8754
  hasRoot(divElement) {
8734
8755
  let current = divElement;
@@ -19747,7 +19768,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
19747
19768
  const _WindowManager = class extends InvisiblePlugin {
19748
19769
  constructor(context) {
19749
19770
  super(context);
19750
- this.version = "1.0.13-test.3";
19771
+ this.version = "1.0.13-test.4";
19751
19772
  this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.3.0", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.53" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.19", "@netless/app-media-player": "0.1.4", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "1.0.0-next.30", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "^2.16.53" } };
19752
19773
  this.emitter = callbacks$1;
19753
19774
  this.viewMode = ViewMode.Broadcaster;