@netless/window-manager 1.0.13-test.18 → 1.0.13-test.19
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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +0 -1
- package/src/Utils/Common.ts +0 -1
- package/src/Utils/RoomHacker.ts +15 -1
- package/src/View/MainView.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -352,7 +352,6 @@ const setScenePath = (room, scenePath) => {
|
|
|
352
352
|
if (room && room.isWritable) {
|
|
353
353
|
if (room.state.sceneState.scenePath !== scenePath) {
|
|
354
354
|
const nextScenePath = scenePath === "/" ? "" : scenePath;
|
|
355
|
-
console.log("[window-manager] real setScenePath for current room " + nextScenePath);
|
|
356
355
|
room.setScenePath(nextScenePath);
|
|
357
356
|
}
|
|
358
357
|
}
|
|
@@ -7905,7 +7904,7 @@ class MainViewProxy {
|
|
|
7905
7904
|
};
|
|
7906
7905
|
this.syncMainView = (room) => {
|
|
7907
7906
|
if (room.isWritable) {
|
|
7908
|
-
console.log("[window-manager] syncMainView
|
|
7907
|
+
console.log("[window-manager] syncMainView ");
|
|
7909
7908
|
room.syncMainView(this.mainView);
|
|
7910
7909
|
}
|
|
7911
7910
|
};
|
|
@@ -8983,7 +8982,6 @@ class AppManager {
|
|
|
8983
8982
|
}
|
|
8984
8983
|
}
|
|
8985
8984
|
dispatchSetMainViewScenePath(scenePath) {
|
|
8986
|
-
console.log("[window-manager] dispatchSetMainViewScenePath " + scenePath);
|
|
8987
8985
|
this.dispatchInternalEvent(Events.SetMainViewScenePath, { nextScenePath: scenePath });
|
|
8988
8986
|
callbacks$1.emit("mainViewScenePathChange", scenePath);
|
|
8989
8987
|
setScenePath(this.room, scenePath);
|
|
@@ -9262,10 +9260,24 @@ const replaceRoomFunction = (room, manager) => {
|
|
|
9262
9260
|
var _a;
|
|
9263
9261
|
_scalePptToFit.call(room, ...args);
|
|
9264
9262
|
if ((_a = manager.appManager) == null ? void 0 : _a.mainViewProxy) {
|
|
9265
|
-
console.log("[window-manager] scalePptToFit " + JSON.stringify(args));
|
|
9266
9263
|
manager.appManager.mainViewProxy.setCameraAndSize();
|
|
9267
9264
|
}
|
|
9268
9265
|
};
|
|
9266
|
+
const _putScenes = room.putScenes;
|
|
9267
|
+
room.putScenes = (...args) => {
|
|
9268
|
+
const [path, scenes] = args;
|
|
9269
|
+
const currentScenePath = manager.mainView.focusScenePath;
|
|
9270
|
+
if (currentScenePath && path && scenes) {
|
|
9271
|
+
console.log("[window-manager] putScenes " + JSON.stringify(args));
|
|
9272
|
+
for (const scene of scenes) {
|
|
9273
|
+
if (`${path}${scene.name}` === currentScenePath) {
|
|
9274
|
+
console.error(`[window-manager] putScenes: scene name can not be the same as the current scene path: ${currentScenePath}`);
|
|
9275
|
+
return;
|
|
9276
|
+
}
|
|
9277
|
+
}
|
|
9278
|
+
}
|
|
9279
|
+
return _putScenes.call(room, ...args);
|
|
9280
|
+
};
|
|
9269
9281
|
room.moveCamera = (camera) => manager.moveCamera(camera);
|
|
9270
9282
|
room.moveCameraToContain = (...args) => manager.moveCameraToContain(...args);
|
|
9271
9283
|
room.convertToPointInWorld = (...args) => manager.mainView.convertToPointInWorld(...args);
|
|
@@ -19856,7 +19868,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
|
19856
19868
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19857
19869
|
constructor(context) {
|
|
19858
19870
|
super(context);
|
|
19859
|
-
this.version = "1.0.13-test.
|
|
19871
|
+
this.version = "1.0.13-test.19";
|
|
19860
19872
|
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" } };
|
|
19861
19873
|
this.emitter = callbacks$1;
|
|
19862
19874
|
this.viewMode = ViewMode.Broadcaster;
|