@netless/window-manager 1.0.0-canary.11 → 1.0.0-canary.12
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.cjs.js +4 -4
- package/dist/index.es.js +5 -8
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/src/index.ts +6 -7
package/dist/index.es.js
CHANGED
@@ -15527,7 +15527,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
15527
15527
|
const _WindowManager = class extends InvisiblePlugin {
|
15528
15528
|
constructor(context) {
|
15529
15529
|
super(context);
|
15530
|
-
this.version = "1.0.0-canary.
|
15530
|
+
this.version = "1.0.0-canary.12";
|
15531
15531
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.15", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "side-effect-manager": "^1.1.0", "uuid": "^7.0.3", "value-enhancer": "^1.2.1", "video.js": ">=7" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.2.9", "@netless/app-media-player": "0.1.0-beta.5", "@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.22", "@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", "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", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vitest": "^0.14.1", "white-web-sdk": "2.16.10" } };
|
15532
15532
|
this.emitter = callbacks$1;
|
15533
15533
|
this.viewMode = ViewMode.Broadcaster;
|
@@ -15540,7 +15540,6 @@ const _WindowManager = class extends InvisiblePlugin {
|
|
15540
15540
|
var _a;
|
15541
15541
|
const room = params.room;
|
15542
15542
|
_WindowManager.container = params.container;
|
15543
|
-
const containerSizeRatio = params.containerSizeRatio;
|
15544
15543
|
const debug = params.debug;
|
15545
15544
|
const cursor = params.cursor;
|
15546
15545
|
_WindowManager.params = params;
|
@@ -15577,21 +15576,19 @@ const _WindowManager = class extends InvisiblePlugin {
|
|
15577
15576
|
if (!manager) {
|
15578
15577
|
throw new Error("[WindowManager]: create manager failed");
|
15579
15578
|
}
|
15580
|
-
if (containerSizeRatio) {
|
15581
|
-
_WindowManager.containerSizeRatio = containerSizeRatio;
|
15579
|
+
if (params.containerSizeRatio) {
|
15580
|
+
_WindowManager.containerSizeRatio = params.containerSizeRatio;
|
15582
15581
|
}
|
15582
|
+
manager.containerSizeRatio = _WindowManager.containerSizeRatio;
|
15583
15583
|
await manager.ensureAttributes();
|
15584
15584
|
manager.appManager = new AppManager(manager);
|
15585
15585
|
manager._pageState = new PageStateImpl(manager.appManager);
|
15586
15586
|
manager.cursorManager = new CursorManager(manager.appManager, Boolean(cursor), params.applianceIcons);
|
15587
|
-
if (containerSizeRatio) {
|
15588
|
-
manager.containerSizeRatio = containerSizeRatio;
|
15589
|
-
}
|
15590
15587
|
manager.boxManager = createBoxManager(manager, callbacks$1, emitter, boxEmitter, {
|
15591
15588
|
collectorContainer: params.collectorContainer,
|
15592
15589
|
collectorStyles: params.collectorStyles,
|
15593
15590
|
prefersColorScheme: params.prefersColorScheme,
|
15594
|
-
stageRatio: containerSizeRatio,
|
15591
|
+
stageRatio: _WindowManager.containerSizeRatio,
|
15595
15592
|
highlightStage: params.highlightStage
|
15596
15593
|
});
|
15597
15594
|
(_a = manager.appManager) == null ? void 0 : _a.setBoxManager(manager.boxManager);
|