@netless/window-manager 1.0.13-test.5 → 1.0.13-test.7
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 +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ContainerResizeObserver.ts +3 -1
- package/src/View/MainView.ts +3 -1
- package/src/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -7885,6 +7885,8 @@ class MainViewProxy {
|
|
|
7885
7885
|
const playgroundSizeChangeListener = () => {
|
|
7886
7886
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7887
7887
|
this.playgroundSizeChangeListenerLocalConsole.log(
|
|
7888
|
+
JSON.stringify(this.mainView.camera),
|
|
7889
|
+
JSON.stringify(this.mainView.size),
|
|
7888
7890
|
JSON.stringify(this.mainViewSize),
|
|
7889
7891
|
JSON.stringify(this.mainViewCamera),
|
|
7890
7892
|
window.outerHeight,
|
|
@@ -7933,7 +7935,7 @@ class MainViewProxy {
|
|
|
7933
7935
|
this.moveCamera(this.mainViewCamera);
|
|
7934
7936
|
}
|
|
7935
7937
|
start() {
|
|
7936
|
-
console.log("[window-manager] start "
|
|
7938
|
+
console.log("[window-manager] start " + JSON.stringify(this.mainViewSize));
|
|
7937
7939
|
this.sizeChangeHandler(this.mainViewSize);
|
|
7938
7940
|
if (this.started)
|
|
7939
7941
|
return;
|
|
@@ -8990,12 +8992,13 @@ class ContainerResizeObserver {
|
|
|
8990
8992
|
const containerRect = (_a = entries[0]) == null ? void 0 : _a.contentRect;
|
|
8991
8993
|
if (containerRect) {
|
|
8992
8994
|
this.updateSizer(containerRect, sizer, wrapper);
|
|
8993
|
-
console.log(`[window-manager] containerResizeObserver ${containerRect}`);
|
|
8995
|
+
console.log(`[window-manager] containerResizeObserver ${JSON.stringify(containerRect)}`);
|
|
8994
8996
|
this.emitter.emit("playgroundSizeChange", containerRect);
|
|
8995
8997
|
}
|
|
8996
8998
|
});
|
|
8997
8999
|
this.disposer = this.emitter.on("containerSizeRatioUpdate", () => {
|
|
8998
9000
|
const containerRect = container.getBoundingClientRect();
|
|
9001
|
+
console.log(`[window-manager] containerSizeRatioUpdate ${JSON.stringify(containerRect)}`);
|
|
8999
9002
|
this.updateSizer(containerRect, sizer, wrapper);
|
|
9000
9003
|
this.emitter.emit("playgroundSizeChange", containerRect);
|
|
9001
9004
|
});
|
|
@@ -9012,6 +9015,7 @@ class ContainerResizeObserver {
|
|
|
9012
9015
|
}
|
|
9013
9016
|
wrapper.style.width = `${width}px`;
|
|
9014
9017
|
wrapper.style.height = `${height}px`;
|
|
9018
|
+
console.log(`[window-manager] updateSizer ${JSON.stringify({ width, height })}`);
|
|
9015
9019
|
}
|
|
9016
9020
|
}
|
|
9017
9021
|
disconnect() {
|
|
@@ -19767,7 +19771,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
|
19767
19771
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19768
19772
|
constructor(context) {
|
|
19769
19773
|
super(context);
|
|
19770
|
-
this.version = "1.0.13-test.
|
|
19774
|
+
this.version = "1.0.13-test.7";
|
|
19771
19775
|
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" } };
|
|
19772
19776
|
this.emitter = callbacks$1;
|
|
19773
19777
|
this.viewMode = ViewMode.Broadcaster;
|
|
@@ -20441,6 +20445,7 @@ const _WindowManager = class extends InvisiblePlugin {
|
|
|
20441
20445
|
}, 500);
|
|
20442
20446
|
}
|
|
20443
20447
|
moveCameraToContain(rectangle) {
|
|
20448
|
+
console.log("[window-manager] moveCameraToContain" + JSON.stringify(rectangle));
|
|
20444
20449
|
this.mainView.moveCameraToContain(rectangle);
|
|
20445
20450
|
setTimeout(() => {
|
|
20446
20451
|
var _a;
|