@netless/window-manager 0.4.0-canary.23 → 0.4.0-canary.27
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/AppManager.d.ts +4 -0
- package/dist/AppProxy.d.ts +0 -2
- package/dist/Utils/AppCreateQueue.d.ts +11 -0
- package/dist/Utils/RoomHacker.d.ts +2 -2
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/docs/api.md +2 -0
- package/package.json +2 -2
- package/src/AppManager.ts +69 -36
- package/src/AppProxy.ts +4 -14
- package/src/Cursor/index.ts +1 -0
- package/src/Utils/AppCreateQueue.ts +54 -0
- package/src/Utils/Common.ts +3 -1
- package/src/Utils/RoomHacker.ts +2 -1
- package/src/constants.ts +2 -0
- package/src/index.ts +21 -14
package/dist/AppManager.d.ts
CHANGED
@@ -17,10 +17,13 @@ export declare class AppManager {
|
|
17
17
|
mainViewProxy: MainViewProxy;
|
18
18
|
refresher?: ReconnectRefresher;
|
19
19
|
isReplay: boolean;
|
20
|
+
mainViewScenesLength: number;
|
20
21
|
private appListeners;
|
21
22
|
boxManager?: BoxManager;
|
22
23
|
private _prevSceneIndex;
|
23
24
|
private _prevFocused;
|
25
|
+
private callbacksNode;
|
26
|
+
private appCreateQueue;
|
24
27
|
constructor(windowManger: WindowManager);
|
25
28
|
private get eventName();
|
26
29
|
get attributes(): import("./index").WindowMangerAttributes;
|
@@ -29,6 +32,7 @@ export declare class AppManager {
|
|
29
32
|
get mainView(): import("white-web-sdk").View;
|
30
33
|
get focusApp(): AppProxy | undefined;
|
31
34
|
get uid(): string;
|
35
|
+
getMainViewSceneDir(): string;
|
32
36
|
private onCreated;
|
33
37
|
/**
|
34
38
|
* 插件更新 attributes 时的回调
|
package/dist/AppProxy.d.ts
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { AppProxy } from "../AppProxy";
|
2
|
+
export declare type Invoker = () => Promise<AppProxy | undefined>;
|
3
|
+
export declare class AppCreateQueue {
|
4
|
+
private list;
|
5
|
+
private currentInvoker;
|
6
|
+
private timer;
|
7
|
+
private initInterval;
|
8
|
+
push(item: Invoker): void;
|
9
|
+
invoke(): void;
|
10
|
+
destroy(): void;
|
11
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { WindowManager } from "../index";
|
2
|
-
import type { Room } from "white-web-sdk";
|
3
|
-
export declare const replaceRoomFunction: (room: Room, manager: WindowManager) => void;
|
2
|
+
import type { Room, Player } from "white-web-sdk";
|
3
|
+
export declare const replaceRoomFunction: (room: Room | Player, manager: WindowManager) => void;
|
package/dist/constants.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -7,7 +7,7 @@ import "@netless/telebox-insider/dist/style.css";
|
|
7
7
|
import type { TELE_BOX_STATE } from "./BoxManager";
|
8
8
|
import type { Apps, Position } from "./AttributesDelegate";
|
9
9
|
import { InvisiblePlugin, ViewMode } from "white-web-sdk";
|
10
|
-
import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState } from "white-web-sdk";
|
10
|
+
import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState, Player } from "white-web-sdk";
|
11
11
|
import type { AppListeners } from "./AppListener";
|
12
12
|
import type { NetlessApp, RegisterParams } from "./typings";
|
13
13
|
import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider";
|
@@ -112,9 +112,10 @@ export declare type PublicEvent = {
|
|
112
112
|
mainViewScenePathChange: string;
|
113
113
|
mainViewSceneIndexChange: number;
|
114
114
|
focusedChange: string | undefined;
|
115
|
+
mainViewScenesLengthChange: number;
|
115
116
|
};
|
116
117
|
export declare type MountParams = {
|
117
|
-
room: Room;
|
118
|
+
room: Room | Player;
|
118
119
|
container?: HTMLElement;
|
119
120
|
/** 白板高宽比例, 默认为 9 / 16 */
|
120
121
|
containerSizeRatio?: number;
|
@@ -213,6 +214,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
213
214
|
get mainViewSceneIndex(): number;
|
214
215
|
get mainViewSceneDir(): string;
|
215
216
|
get topApp(): string | undefined;
|
217
|
+
get mainViewScenesLength(): number;
|
216
218
|
/**
|
217
219
|
* 查询所有的 App
|
218
220
|
*/
|
@@ -245,7 +247,6 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
245
247
|
private isDynamicPPT;
|
246
248
|
private static checkVersion;
|
247
249
|
private ensureAttributes;
|
248
|
-
private _removeScenes;
|
249
250
|
}
|
250
251
|
export * from "./typings";
|
251
252
|
export { BuiltinApps } from "./BuiltinApps";
|