@netless/window-manager 0.4.64 → 0.4.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "0.4.64",
3
+ "version": "0.4.65",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -53,9 +53,10 @@ export class MainViewProxy {
53
53
  if (isWritable) {
54
54
  this.ensureCameraAndSize();
55
55
  }
56
+ if (this.manager.room) this.syncMainView(this.manager.room);
56
57
  });
57
58
  });
58
- }
59
+ };
59
60
 
60
61
  public ensureCameraAndSize() {
61
62
  if (this.viewMode !== ViewMode.Broadcaster) return;
@@ -124,7 +125,7 @@ export class MainViewProxy {
124
125
  public onUpdateContainerSizeRatio = () => {
125
126
  const size = this.store.getMainViewSize();
126
127
  this.sizeChangeHandler(size);
127
- }
128
+ };
128
129
 
129
130
  public get view(): View {
130
131
  return this.mainView;
@@ -239,7 +240,7 @@ export class MainViewProxy {
239
240
  if (room.isWritable) {
240
241
  room.syncMainView(this.mainView);
241
242
  }
242
- }
243
+ };
243
244
 
244
245
  public moveCameraToContian(size: Size): void {
245
246
  if (!isEmpty(size)) {
@@ -275,9 +276,9 @@ export class MainViewProxy {
275
276
  this.started = false;
276
277
  }
277
278
 
278
- public setViewMode = (mode:ViewMode) => {
279
+ public setViewMode = (mode: ViewMode) => {
279
280
  this.viewMode = mode;
280
- }
281
+ };
281
282
 
282
283
  public destroy() {
283
284
  this.removeMainViewListener();