@netless/window-manager 1.0.13-test.7 → 1.0.13-test.9
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/BoxManager.ts +1 -0
- package/src/ContainerResizeObserver.ts +3 -2
package/dist/index.mjs
CHANGED
|
@@ -5626,6 +5626,7 @@ class BoxManager {
|
|
|
5626
5626
|
const rect = (_a = this.mainView.divElement) == null ? void 0 : _a.getBoundingClientRect();
|
|
5627
5627
|
if (rect && rect.width > 0 && rect.height > 0) {
|
|
5628
5628
|
const containerRect = { x: 0, y: 0, width: rect.width, height: rect.height };
|
|
5629
|
+
console.log("[window-manager] updateManagerRect" + JSON.stringify(containerRect) + "mainView" + this.mainView.size);
|
|
5629
5630
|
this.teleBoxManager.setContainerRect(containerRect);
|
|
5630
5631
|
this.context.notifyContainerRectUpdate(this.teleBoxManager.containerRect);
|
|
5631
5632
|
}
|
|
@@ -8985,7 +8986,7 @@ class ContainerResizeObserver {
|
|
|
8985
8986
|
return containerResizeObserver;
|
|
8986
8987
|
}
|
|
8987
8988
|
observePlaygroundSize(container, sizer, wrapper) {
|
|
8988
|
-
console.log(`[window-manager] observePlaygroundSize ${container.getBoundingClientRect(), sizer.getBoundingClientRect(), wrapper.getBoundingClientRect()}`);
|
|
8989
|
+
console.log(`[window-manager] observePlaygroundSize ${JSON.stringify(container.getBoundingClientRect())}, ${JSON.stringify(sizer.getBoundingClientRect())}, ${JSON.stringify(wrapper.getBoundingClientRect())}`);
|
|
8989
8990
|
this.updateSizer(container.getBoundingClientRect(), sizer, wrapper);
|
|
8990
8991
|
this.containerResizeObserver = new ResizeObserver$2((entries) => {
|
|
8991
8992
|
var _a;
|
|
@@ -9015,7 +9016,8 @@ class ContainerResizeObserver {
|
|
|
9015
9016
|
}
|
|
9016
9017
|
wrapper.style.width = `${width}px`;
|
|
9017
9018
|
wrapper.style.height = `${height}px`;
|
|
9018
|
-
|
|
9019
|
+
wrapper.style.backgroundColor = "green";
|
|
9020
|
+
console.log(`[window-manager] updateSizer ${JSON.stringify({ width, height })} ${wrapper.style.width} ${wrapper.style.height} ${JSON.stringify(wrapper.getBoundingClientRect())}`);
|
|
9019
9021
|
}
|
|
9020
9022
|
}
|
|
9021
9023
|
disconnect() {
|
|
@@ -19771,7 +19773,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
|
19771
19773
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19772
19774
|
constructor(context) {
|
|
19773
19775
|
super(context);
|
|
19774
|
-
this.version = "1.0.13-test.
|
|
19776
|
+
this.version = "1.0.13-test.9";
|
|
19775
19777
|
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" } };
|
|
19776
19778
|
this.emitter = callbacks$1;
|
|
19777
19779
|
this.viewMode = ViewMode.Broadcaster;
|