@netless/window-manager 1.0.13-test.15 → 1.0.13-test.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/dist/index.d.ts +11 -0
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +91 -3
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/ContainerResizeObserver.ts +7 -1
- package/src/InternalEmitter.ts +1 -0
- package/src/View/MainView.ts +97 -0
- package/src/style.css +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -327,6 +327,11 @@ type EmitterEvent = {
|
|
|
327
327
|
changePageState: undefined;
|
|
328
328
|
writableChange: boolean;
|
|
329
329
|
containerSizeRatioUpdate: number;
|
|
330
|
+
wrapperRectChange: {
|
|
331
|
+
width: number;
|
|
332
|
+
height: number;
|
|
333
|
+
origin?: string;
|
|
334
|
+
};
|
|
330
335
|
boxesStatusChange: Map<string, TeleBoxState>;
|
|
331
336
|
lastNotMinimizedBoxesStatusChange: Map<string, NotMinimizedBoxState>;
|
|
332
337
|
};
|
|
@@ -770,7 +775,10 @@ declare class MainViewProxy {
|
|
|
770
775
|
private started;
|
|
771
776
|
private mainViewIsAddListener;
|
|
772
777
|
private mainViewResizeObserver?;
|
|
778
|
+
private mainViewResizeObserver2?;
|
|
773
779
|
private isForcingMainViewDivElement;
|
|
780
|
+
private wrapperRectWorkaroundFrame;
|
|
781
|
+
private pendingWrapperRectChange?;
|
|
774
782
|
private mainView;
|
|
775
783
|
private store;
|
|
776
784
|
private viewMode;
|
|
@@ -785,6 +793,8 @@ declare class MainViewProxy {
|
|
|
785
793
|
private get didRelease();
|
|
786
794
|
private moveCameraSizeByAttributes;
|
|
787
795
|
private refreshScreenSizeIfStale;
|
|
796
|
+
private onWrapperRectChange;
|
|
797
|
+
private runWrapperRectWorkaround;
|
|
788
798
|
private forceSyncMainViewDivElement;
|
|
789
799
|
start(): void;
|
|
790
800
|
addCameraReaction: () => void;
|
|
@@ -815,6 +825,7 @@ declare class MainViewProxy {
|
|
|
815
825
|
private observeMainViewDivElement;
|
|
816
826
|
private disconnectMainViewResizeObserver;
|
|
817
827
|
private onResize;
|
|
828
|
+
private onResize2;
|
|
818
829
|
private _syncMainViewTimer;
|
|
819
830
|
private handleCameraOrSizeUpdated;
|
|
820
831
|
private onCameraUpdated;
|