@netless/window-manager 1.0.11 → 1.0.13-bate.0
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 +26 -2
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +277 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/App/AppProxy.ts +10 -2
- package/src/AppListener.ts +0 -19
- package/src/AppManager.ts +47 -7
- package/src/AttributesDelegate.ts +3 -0
- package/src/ContainerResizeObserver.ts +15 -4
- package/src/InternalEmitter.ts +1 -0
- package/src/Utils/RoomHacker.ts +22 -1
- package/src/Utils/log.ts +37 -0
- package/src/View/MainView.ts +116 -5
- package/src/index.ts +61 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lodash from 'lodash';
|
|
2
2
|
import * as white_web_sdk from 'white-web-sdk';
|
|
3
|
-
import { SceneDefinition, SceneState, DisplayerState, View, ApplianceNames, ViewVisionMode, CameraState, RoomMember, Camera, Size, Event as Event$1, Scope, EventPhase, MagixEventListenerOptions as MagixEventListenerOptions$1, toJS, listenUpdated, unlistenUpdated, listenDisposed, unlistenDisposed, Room, ViewMode, Displayer, MemberState, AnimationMode, InvisiblePlugin, InvisiblePluginContext, Player, Rectangle, Point, CameraBound, ImageInformation } from 'white-web-sdk';
|
|
3
|
+
import { SceneDefinition, SceneState, DisplayerState, View, ApplianceNames, ViewVisionMode, CameraState, RoomMember, Camera, Size, Event as Event$1, Scope, EventPhase, MagixEventListenerOptions as MagixEventListenerOptions$1, toJS, listenUpdated, unlistenUpdated, listenDisposed, unlistenDisposed, Room, ViewMode, Displayer, MemberState, AnimationMode, InvisiblePlugin, Logger, InvisiblePluginContext, Player, Rectangle, Point, CameraBound, ImageInformation } from 'white-web-sdk';
|
|
4
4
|
export { AnimationMode, Displayer, Player, Room, SceneDefinition, SceneState, View } from 'white-web-sdk';
|
|
5
5
|
import { TELE_BOX_STATE, TeleBoxRect, TeleBoxState, TeleBoxColorScheme, NotMinimizedBoxState, TeleBoxManager, TeleBoxCollector, ReadonlyTeleBox, TeleBoxManagerUpdateConfig, TeleBoxConfig } from '@netless/telebox-insider';
|
|
6
6
|
export { ReadonlyTeleBox, TeleBoxCollector, TeleBoxManager, TeleBoxRect } from '@netless/telebox-insider';
|
|
@@ -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;
|
|
@@ -727,6 +733,7 @@ declare class AppProxy implements PageRemoveService {
|
|
|
727
733
|
get isWritable(): boolean;
|
|
728
734
|
get attributes(): any;
|
|
729
735
|
get appAttributes(): AppSyncAttributes;
|
|
736
|
+
get Logger(): white_web_sdk.Logger | undefined;
|
|
730
737
|
getFullScenePath(): string | undefined;
|
|
731
738
|
private getFullScenePathFromScenes;
|
|
732
739
|
setFullPath(path: string): void;
|
|
@@ -767,10 +774,16 @@ declare class MainViewProxy {
|
|
|
767
774
|
private scale?;
|
|
768
775
|
private started;
|
|
769
776
|
private mainViewIsAddListener;
|
|
777
|
+
private isForcingMainViewDivElement;
|
|
778
|
+
private wrapperRectWorkaroundFrame;
|
|
779
|
+
private pendingWrapperRectChange?;
|
|
770
780
|
private mainView;
|
|
771
781
|
private store;
|
|
772
782
|
private viewMode;
|
|
773
783
|
private sideEffectManager;
|
|
784
|
+
private playgroundSizeChangeListenerLocalConsole;
|
|
785
|
+
private sizeUpdatedLocalConsole;
|
|
786
|
+
private cameraUpdatedLocalConsole;
|
|
774
787
|
constructor(manager: AppManager);
|
|
775
788
|
private syncCamera;
|
|
776
789
|
private startListenWritableChange;
|
|
@@ -779,6 +792,9 @@ declare class MainViewProxy {
|
|
|
779
792
|
private get mainViewSize();
|
|
780
793
|
private get didRelease();
|
|
781
794
|
private moveCameraSizeByAttributes;
|
|
795
|
+
private onWrapperRectChange;
|
|
796
|
+
private runWrapperRectWorkaround;
|
|
797
|
+
private forceSyncMainViewDivElement;
|
|
782
798
|
start(): void;
|
|
783
799
|
addCameraReaction: () => void;
|
|
784
800
|
setCameraAndSize(): void;
|
|
@@ -806,7 +822,9 @@ declare class MainViewProxy {
|
|
|
806
822
|
private addCameraListener;
|
|
807
823
|
private removeCameraListener;
|
|
808
824
|
private _syncMainViewTimer;
|
|
809
|
-
private
|
|
825
|
+
private handleCameraOrSizeUpdated;
|
|
826
|
+
private onCameraUpdated;
|
|
827
|
+
private onSizeUpdated;
|
|
810
828
|
private ensureMainViewSize;
|
|
811
829
|
private syncMainView;
|
|
812
830
|
moveCameraToContian(size: Size): void;
|
|
@@ -903,6 +921,7 @@ declare class AppManager {
|
|
|
903
921
|
set polling(b: boolean);
|
|
904
922
|
get focusApp(): AppProxy | undefined;
|
|
905
923
|
get uid(): string;
|
|
924
|
+
get Logger(): white_web_sdk.Logger | undefined;
|
|
906
925
|
getMainViewSceneDir(): string;
|
|
907
926
|
private onCreated;
|
|
908
927
|
private onBoxMove;
|
|
@@ -936,6 +955,8 @@ declare class AppManager {
|
|
|
936
955
|
private onAppDelete;
|
|
937
956
|
private closeAll;
|
|
938
957
|
bindMainView(divElement: HTMLDivElement, disableCameraTransform: boolean): void;
|
|
958
|
+
private hasRoot;
|
|
959
|
+
private getRectByDivElement;
|
|
939
960
|
setMainViewFocusPath(scenePath?: string): boolean | undefined;
|
|
940
961
|
private resetScenePath;
|
|
941
962
|
addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
|
|
@@ -1305,9 +1326,12 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
|
1305
1326
|
private containerResizeObserver?;
|
|
1306
1327
|
containerSizeRatio: number;
|
|
1307
1328
|
private extendPluginManager?;
|
|
1329
|
+
private _roomLogger?;
|
|
1330
|
+
get Logger(): Logger | undefined;
|
|
1308
1331
|
constructor(context: InvisiblePluginContext);
|
|
1309
1332
|
static onCreate(manager: WindowManager): void;
|
|
1310
1333
|
static mount(params: MountParams, extendClass?: ExtendClass$1): Promise<WindowManager>;
|
|
1334
|
+
onMainViewScenePathChangeHandler: (scenePath: string) => void;
|
|
1311
1335
|
private static initManager;
|
|
1312
1336
|
private static initContainer;
|
|
1313
1337
|
static get registered(): Map<string, RegisterParams>;
|