@netless/telebox-insider 1.0.0-alpha.16 → 1.0.0-alpha.17

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/telebox-insider",
3
- "version": "1.0.0-alpha.16",
3
+ "version": "1.0.0-alpha.17",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -91,7 +91,7 @@ type MyReadonlyValConfig = {
91
91
  highlightStage: ReadonlyVal<boolean, boolean>;
92
92
  boxHighlightStage: Val<boolean | null, boolean>;
93
93
  contentRect: Val<TeleBoxRect>;
94
- contentStageRect: ReadonlyVal<TeleBoxRect | null>;
94
+ contentStageRect: ReadonlyVal<TeleBoxRect>;
95
95
  };
96
96
 
97
97
  type CombinedValEnhancedResult = ReadonlyValEnhancedResult<
@@ -874,12 +874,10 @@ export class TeleBox {
874
874
  $stage.className = this.wrapClassName("content-stage");
875
875
  this._sideEffect.addDisposer(
876
876
  this._contentStageRect$.subscribe((rect) => {
877
- if (rect) {
878
- $stage.style.top = rect.y + "px";
879
- $stage.style.left = rect.x + "px";
880
- $stage.style.width = rect.width + "px";
881
- $stage.style.height = rect.height + "px";
882
- }
877
+ $stage.style.top = rect.y + "px";
878
+ $stage.style.left = rect.x + "px";
879
+ $stage.style.width = rect.width + "px";
880
+ $stage.style.height = rect.height + "px";
883
881
  }),
884
882
  "content-stage-rect"
885
883
  );