@netless/window-manager 1.0.17 → 1.0.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.d.ts CHANGED
@@ -229,6 +229,12 @@ type AppEmitterEvent<T = any> = {
229
229
  appId: string;
230
230
  status: TeleBoxState;
231
231
  };
232
+ /** Actual app content size in CSS pixels after the box layout is applied. */
233
+ boxSizeChange: {
234
+ appId: string;
235
+ width: number;
236
+ height: number;
237
+ };
232
238
  };
233
239
  type RegisterEventData = {
234
240
  appId: string;
@@ -552,6 +558,7 @@ type BoxManagerContext = {
552
558
  callbacks: CallbacksType;
553
559
  canOperate: () => boolean;
554
560
  notifyContainerRectUpdate: (rect: TeleBoxRect) => void;
561
+ scheduleAppBoxSizeSync: (appId?: string) => void;
555
562
  cleanFocus: () => void;
556
563
  setAppFocus: (appId: string) => void;
557
564
  };
@@ -723,11 +730,13 @@ declare class AppProxy implements PageRemoveService {
723
730
  private stateKey;
724
731
  private _pageState;
725
732
  private _prevFullPath;
733
+ private boxSizeSynchronizer;
726
734
  appResult?: NetlessApp<any>;
727
735
  appContext?: AppContext<any, any>;
728
736
  constructor(params: BaseInsertParams, manager: AppManager, appId: string, isAddApp: boolean);
729
737
  private initScenes;
730
738
  get view(): View | undefined;
739
+ scheduleBoxSizeSync: () => void;
731
740
  get viewIndex(): number | undefined;
732
741
  get isWritable(): boolean;
733
742
  get attributes(): any;
@@ -926,6 +935,7 @@ declare class AppManager {
926
935
  private onCreated;
927
936
  private onBoxMove;
928
937
  private onBoxResize;
938
+ scheduleAppBoxSizeSync: (appId?: string) => void;
929
939
  private onBoxFocus;
930
940
  private onBoxBlurred;
931
941
  private onBoxClose;