@netless/window-manager 1.0.13-test.2 → 1.0.13-test.20
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 +33 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +552 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppListener.ts +1 -20
- package/src/AppManager.ts +29 -4
- package/src/AttributesDelegate.ts +7 -5
- package/src/ContainerResizeObserver.ts +15 -4
- package/src/InternalEmitter.ts +1 -0
- package/src/Utils/Common.ts +0 -1
- package/src/Utils/Reactive.ts +2 -2
- package/src/Utils/RoomHacker.ts +18 -1
- package/src/Utils/log.ts +37 -0
- package/src/View/MainView.ts +124 -12
- package/src/index.ts +451 -3
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
|
};
|
|
@@ -435,6 +440,7 @@ type ISize = Size & {
|
|
|
435
440
|
declare class AttributesDelegate {
|
|
436
441
|
private context;
|
|
437
442
|
static readonly kind = "AttributesDelegate";
|
|
443
|
+
private setMainViewCameraConsole;
|
|
438
444
|
constructor(context: StoreContext);
|
|
439
445
|
setContext(context: StoreContext): void;
|
|
440
446
|
get attributes(): any;
|
|
@@ -768,10 +774,16 @@ declare class MainViewProxy {
|
|
|
768
774
|
private scale?;
|
|
769
775
|
private started;
|
|
770
776
|
private mainViewIsAddListener;
|
|
777
|
+
private isForcingMainViewDivElement;
|
|
778
|
+
private wrapperRectWorkaroundFrame;
|
|
779
|
+
private pendingWrapperRectChange?;
|
|
771
780
|
private mainView;
|
|
772
781
|
private store;
|
|
773
782
|
private viewMode;
|
|
774
783
|
private sideEffectManager;
|
|
784
|
+
private playgroundSizeChangeListenerLocalConsole;
|
|
785
|
+
private sizeUpdatedLocalConsole;
|
|
786
|
+
private cameraUpdatedLocalConsole;
|
|
775
787
|
constructor(manager: AppManager);
|
|
776
788
|
private syncCamera;
|
|
777
789
|
private startListenWritableChange;
|
|
@@ -780,6 +792,9 @@ declare class MainViewProxy {
|
|
|
780
792
|
private get mainViewSize();
|
|
781
793
|
private get didRelease();
|
|
782
794
|
private moveCameraSizeByAttributes;
|
|
795
|
+
private onWrapperRectChange;
|
|
796
|
+
private runWrapperRectWorkaround;
|
|
797
|
+
private forceSyncMainViewDivElement;
|
|
783
798
|
start(): void;
|
|
784
799
|
addCameraReaction: () => void;
|
|
785
800
|
setCameraAndSize(): void;
|
|
@@ -807,7 +822,9 @@ declare class MainViewProxy {
|
|
|
807
822
|
private addCameraListener;
|
|
808
823
|
private removeCameraListener;
|
|
809
824
|
private _syncMainViewTimer;
|
|
810
|
-
private
|
|
825
|
+
private handleCameraOrSizeUpdated;
|
|
826
|
+
private onCameraUpdated;
|
|
827
|
+
private onSizeUpdated;
|
|
811
828
|
private ensureMainViewSize;
|
|
812
829
|
private syncMainView;
|
|
813
830
|
moveCameraToContian(size: Size): void;
|
|
@@ -938,6 +955,8 @@ declare class AppManager {
|
|
|
938
955
|
private onAppDelete;
|
|
939
956
|
private closeAll;
|
|
940
957
|
bindMainView(divElement: HTMLDivElement, disableCameraTransform: boolean): void;
|
|
958
|
+
private hasRoot;
|
|
959
|
+
private getRectByDivElement;
|
|
941
960
|
setMainViewFocusPath(scenePath?: string): boolean | undefined;
|
|
942
961
|
private resetScenePath;
|
|
943
962
|
addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
|
|
@@ -1312,6 +1331,19 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
|
1312
1331
|
constructor(context: InvisiblePluginContext);
|
|
1313
1332
|
static onCreate(manager: WindowManager): void;
|
|
1314
1333
|
static mount(params: MountParams, extendClass?: ExtendClass$1): Promise<WindowManager>;
|
|
1334
|
+
onMainViewScenePathChangeHandler: (scenePath: string) => void;
|
|
1335
|
+
logMainViewVisibilityDiagnostics(tag: string, scenePath?: string, mainViewElement?: HTMLDivElement | null): void;
|
|
1336
|
+
private emitMainViewVisibilityDiagnostic;
|
|
1337
|
+
private collectMainViewVisibilityDiagnostics;
|
|
1338
|
+
private collectElementChainDiagnostics;
|
|
1339
|
+
private collectImageDiagnostic;
|
|
1340
|
+
private appendRenderImpactIssues;
|
|
1341
|
+
private pickRenderRelevantFields;
|
|
1342
|
+
private pickBackgroundImageStatus;
|
|
1343
|
+
private collectElementDiagnostic;
|
|
1344
|
+
private describeElement;
|
|
1345
|
+
private serializeRect;
|
|
1346
|
+
private parseColorChannels;
|
|
1315
1347
|
private static initManager;
|
|
1316
1348
|
private static initContainer;
|
|
1317
1349
|
static get registered(): Map<string, RegisterParams>;
|