@netless/window-manager 0.4.73-beta.1 → 0.4.74
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 +19 -15
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4150 -4791
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/App/AppContext.ts +1 -4
- package/src/App/AppProxy.ts +2 -7
- package/src/AppManager.ts +6 -19
- package/src/Cursor/Cursor.svelte +3 -1
- package/src/Cursor/Cursor.ts +1 -0
- package/src/Cursor/index.ts +1 -1
- package/src/View/MainView.ts +1 -4
- package/src/index.ts +26 -3
package/dist/index.d.ts
CHANGED
@@ -60,7 +60,7 @@ declare class CursorManager {
|
|
60
60
|
setupWrapper(wrapper: HTMLElement): void;
|
61
61
|
setMainViewDivElement(div: HTMLDivElement): void;
|
62
62
|
get boxState(): any;
|
63
|
-
get focusView(): View
|
63
|
+
get focusView(): View;
|
64
64
|
private mouseMoveListener_;
|
65
65
|
private mouseMoveTimer;
|
66
66
|
private mouseMoveListener;
|
@@ -87,12 +87,12 @@ declare class Cursor {
|
|
87
87
|
private timer?;
|
88
88
|
private component?;
|
89
89
|
private style;
|
90
|
-
constructor(manager: AppManager, memberId: string, cursorManager: CursorManager, wrapper?: HTMLElement
|
90
|
+
constructor(manager: AppManager, memberId: string, cursorManager: CursorManager, wrapper?: HTMLElement);
|
91
91
|
move: (position: Position) => void;
|
92
92
|
setStyle: (style: typeof this.style) => void;
|
93
93
|
leave: () => void;
|
94
94
|
private moveCursor;
|
95
|
-
get memberApplianceName(): ApplianceNames
|
95
|
+
get memberApplianceName(): ApplianceNames;
|
96
96
|
get memberColor(): string;
|
97
97
|
get memberColorHex(): string;
|
98
98
|
private get payload();
|
@@ -108,7 +108,7 @@ declare class Cursor {
|
|
108
108
|
private initProps;
|
109
109
|
private getIcon;
|
110
110
|
private isCustomIcon;
|
111
|
-
updateMember(): RoomMember
|
111
|
+
updateMember(): RoomMember;
|
112
112
|
private updateComponent;
|
113
113
|
destroy(): void;
|
114
114
|
hide(): void;
|
@@ -514,7 +514,7 @@ declare class BoxManager {
|
|
514
514
|
private context;
|
515
515
|
private createTeleBoxManagerConfig?;
|
516
516
|
teleBoxManager: TeleBoxManager;
|
517
|
-
constructor(context: BoxManagerContext, createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig
|
517
|
+
constructor(context: BoxManagerContext, createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig);
|
518
518
|
private get mainView();
|
519
519
|
private get canOperate();
|
520
520
|
get boxState(): "maximized" | "minimized" | "normal";
|
@@ -600,14 +600,14 @@ declare class AppContext<TAttributes extends {} = any, TMagixEventPayloads = any
|
|
600
600
|
private store;
|
601
601
|
readonly isAddApp: boolean;
|
602
602
|
readonly isReplay: boolean;
|
603
|
-
constructor(manager: AppManager, boxManager: BoxManager, appId: string, appProxy: AppProxy, appOptions?: TAppOptions | (() => TAppOptions)
|
603
|
+
constructor(manager: AppManager, boxManager: BoxManager, appId: string, appProxy: AppProxy, appOptions?: TAppOptions | (() => TAppOptions));
|
604
604
|
getDisplayer: () => white_web_sdk.Displayer<white_web_sdk.DisplayerCallbacks>;
|
605
605
|
/** @deprecated Use context.storage.state instead. */
|
606
606
|
getAttributes: () => TAttributes | undefined;
|
607
607
|
getScenes: () => SceneDefinition[] | undefined;
|
608
608
|
getView: () => View | undefined;
|
609
609
|
mountView: (dom: HTMLElement) => void;
|
610
|
-
getInitScenePath: () => string
|
610
|
+
getInitScenePath: () => string;
|
611
611
|
/** Get App writable status. */
|
612
612
|
getIsWritable: () => boolean;
|
613
613
|
/** Get the App Window UI box. */
|
@@ -690,14 +690,14 @@ declare class AppProxy implements PageRemoveService {
|
|
690
690
|
onSeek(time: number): Promise<void>;
|
691
691
|
onReconnected(): Promise<void>;
|
692
692
|
onRemoveScene(scenePath: string): Promise<void>;
|
693
|
-
getAppInitState: (id: string) => AppInitState
|
693
|
+
getAppInitState: (id: string) => AppInitState;
|
694
694
|
emitAppSceneStateChange(sceneState: SceneState): void;
|
695
695
|
emitAppIsWritableChange(): void;
|
696
696
|
private makeAppEventListener;
|
697
697
|
private appAttributesUpdateListener;
|
698
698
|
private setFocusScenePathHandler;
|
699
699
|
setScenePath(): void;
|
700
|
-
setViewFocusScenePath(): string
|
700
|
+
setViewFocusScenePath(): string;
|
701
701
|
private createView;
|
702
702
|
notifyPageStateChange: lodash.DebouncedFunc<() => void>;
|
703
703
|
get pageState(): PageState;
|
@@ -743,7 +743,7 @@ declare class MainViewProxy {
|
|
743
743
|
};
|
744
744
|
createMainView(): View;
|
745
745
|
onReconnect(): void;
|
746
|
-
setFocusScenePath(path: string | undefined): View
|
746
|
+
setFocusScenePath(path: string | undefined): View;
|
747
747
|
rebind(): void;
|
748
748
|
private onCameraUpdatedByDevice;
|
749
749
|
addMainViewListener(): void;
|
@@ -838,11 +838,11 @@ declare class AppManager {
|
|
838
838
|
private get eventName();
|
839
839
|
get attributes(): WindowMangerAttributes;
|
840
840
|
get canOperate(): boolean;
|
841
|
-
get room(): Room
|
841
|
+
get room(): Room;
|
842
842
|
get mainView(): white_web_sdk.View;
|
843
843
|
get polling(): boolean;
|
844
844
|
set polling(b: boolean);
|
845
|
-
get focusApp(): AppProxy
|
845
|
+
get focusApp(): AppProxy;
|
846
846
|
get uid(): string;
|
847
847
|
getMainViewSceneDir(): string;
|
848
848
|
private onCreated;
|
@@ -874,7 +874,7 @@ declare class AppManager {
|
|
874
874
|
private onAppDelete;
|
875
875
|
private closeAll;
|
876
876
|
bindMainView(divElement: HTMLDivElement, disableCameraTransform: boolean): void;
|
877
|
-
setMainViewFocusPath(scenePath?: string): boolean
|
877
|
+
setMainViewFocusPath(scenePath?: string): boolean;
|
878
878
|
private resetScenePath;
|
879
879
|
addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
|
880
880
|
private beforeAddApp;
|
@@ -1151,7 +1151,7 @@ type MountParams = {
|
|
1151
1151
|
applianceIcons?: ApplianceIcons;
|
1152
1152
|
fullscreen?: boolean;
|
1153
1153
|
polling?: boolean;
|
1154
|
-
|
1154
|
+
supportAppliancePlugin?: boolean;
|
1155
1155
|
};
|
1156
1156
|
declare const reconnectRefresher: ReconnectRefresher;
|
1157
1157
|
declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any> implements PageController {
|
@@ -1163,7 +1163,7 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
1163
1163
|
static container?: HTMLElement;
|
1164
1164
|
static debug: boolean;
|
1165
1165
|
static containerSizeRatio: number;
|
1166
|
-
static
|
1166
|
+
static supportAppliancePlugin?: boolean;
|
1167
1167
|
private static isCreated;
|
1168
1168
|
private static _resolve;
|
1169
1169
|
version: string;
|
@@ -1177,6 +1177,8 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
1177
1177
|
isReplay: boolean;
|
1178
1178
|
private _pageState?;
|
1179
1179
|
private _fullscreen?;
|
1180
|
+
private _cursorUIDs;
|
1181
|
+
private _cursorUIDsStyleDOM?;
|
1180
1182
|
private boxManager?;
|
1181
1183
|
private static params?;
|
1182
1184
|
private containerResizeObserver?;
|
@@ -1260,6 +1262,8 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
1260
1262
|
setMaximized(maximized: boolean): void;
|
1261
1263
|
setMinimized(minimized: boolean): void;
|
1262
1264
|
setFullscreen(fullscreen: boolean): void;
|
1265
|
+
get cursorUIDs(): string[];
|
1266
|
+
setCursorUIDs(cursorUIDs?: string[] | null): void;
|
1263
1267
|
get mainView(): View;
|
1264
1268
|
get camera(): Camera;
|
1265
1269
|
get cameraState(): CameraState;
|