@netless/window-manager 0.4.0-canary.18 → 0.4.0-canary.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/.idea/inspectionProfiles/Project_Default.xml +7 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/window-manager.iml +12 -0
- package/dist/Cursor/index.d.ts +0 -1
- package/dist/View/MainView.d.ts +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +1 -0
- package/src/Cursor/index.ts +1 -5
- package/src/View/MainView.ts +7 -1
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
package/src/Cursor/index.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { throttle } from "lodash";
|
2
2
|
import { Cursor } from "./Cursor";
|
3
3
|
import { CursorState, Events } from "../constants";
|
4
4
|
import { emitter, WindowManager } from "../index";
|
@@ -66,10 +66,6 @@ export class CursorManager {
|
|
66
66
|
this.mainViewElement = div;
|
67
67
|
}
|
68
68
|
|
69
|
-
private getUids = (members: readonly RoomMember[] | undefined) => {
|
70
|
-
return compact(uniq(members?.map(member => member.payload?.uid)));
|
71
|
-
};
|
72
|
-
|
73
69
|
public get boxState() {
|
74
70
|
return this.store.getBoxState();
|
75
71
|
}
|
package/src/View/MainView.ts
CHANGED
@@ -13,7 +13,6 @@ export class MainViewProxy {
|
|
13
13
|
private started = false;
|
14
14
|
private mainViewIsAddListener = false;
|
15
15
|
private mainView: View;
|
16
|
-
private viewId = "mainView";
|
17
16
|
private store = this.manager.store;
|
18
17
|
|
19
18
|
private sideEffectManager = new SideEffectManager();
|
@@ -104,6 +103,13 @@ export class MainViewProxy {
|
|
104
103
|
return mainView;
|
105
104
|
}
|
106
105
|
|
106
|
+
public onReconnect(): void {
|
107
|
+
const mainViewScenePath = this.store.getMainViewScenePath();
|
108
|
+
if (mainViewScenePath) {
|
109
|
+
setViewFocusScenePath(this.view, mainViewScenePath);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
107
113
|
private onCameraUpdatedByDevice = (camera: Camera) => {
|
108
114
|
this.store.setMainViewCamera({ ...camera, id: this.manager.uid });
|
109
115
|
if (!isEqual(this.mainViewSize, { ...this.mainView.size, id: this.manager.uid })) {
|