@netless/window-manager 0.4.15 → 0.4.16
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/CHANGELOG.md +5 -1
- package/dist/AppManager.d.ts +4 -3
- package/dist/Utils/AppCreateQueue.d.ts +1 -0
- package/dist/Utils/Common.d.ts +2 -1
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- 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/package.json +1 -1
- package/src/AppListener.ts +4 -2
- package/src/AppManager.ts +16 -12
- package/src/AppProxy.ts +4 -2
- package/src/Utils/AppCreateQueue.ts +9 -1
- package/src/Utils/Common.ts +5 -2
- package/src/constants.ts +2 -0
- package/src/index.ts +26 -3
package/CHANGELOG.md
CHANGED
package/dist/AppManager.d.ts
CHANGED
@@ -26,17 +26,18 @@ export declare class AppManager {
|
|
26
26
|
private appCreateQueue;
|
27
27
|
private sideEffectManager;
|
28
28
|
sceneState: SceneState | null;
|
29
|
+
rootDirRemoving: boolean;
|
29
30
|
constructor(windowManger: WindowManager);
|
30
31
|
private onRemoveScenes;
|
31
32
|
/**
|
32
33
|
* 根目录被删除时所有的 scene 都会被删除.
|
33
34
|
* 所以需要关掉所有开启了 view 的 app
|
34
35
|
*/
|
35
|
-
onRootDirRemoved(): void
|
36
|
+
onRootDirRemoved(needClose?: boolean): Promise<void>;
|
36
37
|
private onReadonlyChanged;
|
37
38
|
private onPlayerSeekStart;
|
38
39
|
private onPlayerSeekDone;
|
39
|
-
|
40
|
+
createRootDirScenesCallback: () => void;
|
40
41
|
private onSceneChange;
|
41
42
|
private emitMainViewScenesChange;
|
42
43
|
private updateSceneState;
|
@@ -72,7 +73,7 @@ export declare class AppManager {
|
|
72
73
|
addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
|
73
74
|
private beforeAddApp;
|
74
75
|
private afterAddApp;
|
75
|
-
closeApp(appId: string): Promise<void>;
|
76
|
+
closeApp(appId: string, needClose?: boolean): Promise<void>;
|
76
77
|
private baseInsertApp;
|
77
78
|
private displayerStateListener;
|
78
79
|
displayerWritableListener: (isReadonly: boolean) => void;
|
package/dist/Utils/Common.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PublicEvent } from "../callback";
|
2
|
-
import type { Displayer, ViewVisionMode, Room, View } from "white-web-sdk";
|
2
|
+
import type { Displayer, ViewVisionMode, Room, View, SceneDefinition } from "white-web-sdk";
|
3
3
|
import type Emittery from "emittery";
|
4
4
|
export declare const genAppId: (kind: string) => Promise<string>;
|
5
5
|
export declare const setViewFocusScenePath: (view: View, focusScenePath: string) => View | undefined;
|
@@ -13,6 +13,7 @@ export declare const addEmitterOnceListener: (event: any, listener: any) => void
|
|
13
13
|
export declare const notifyMainViewModeChange: import("lodash").DebouncedFunc<(callbacks: Emittery<PublicEvent>, mode: ViewVisionMode) => void>;
|
14
14
|
export declare const makeValidScenePath: (displayer: Displayer, scenePath: string, index?: number) => string | undefined;
|
15
15
|
export declare const entireScenes: (displayer: Displayer) => import("white-web-sdk").SceneMap;
|
16
|
+
export declare const putScenes: (room: Room | undefined, path: string, scenes: SceneDefinition[]) => void | undefined;
|
16
17
|
export declare const isValidScenePath: (scenePath: string) => boolean;
|
17
18
|
export declare const parseSceneDir: (scenePath: string) => string;
|
18
19
|
export declare const ensureValidScenePath: (scenePath: string) => string;
|
package/dist/constants.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
@@ -135,6 +135,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
135
135
|
* 创建一个 app 至白板
|
136
136
|
*/
|
137
137
|
addApp<T = any>(params: AddAppParams<T>): Promise<string | undefined>;
|
138
|
+
private _addApp;
|
138
139
|
private setupScenePath;
|
139
140
|
/**
|
140
141
|
* 设置 mainView 的 ScenePath, 并且切换白板为可写状态
|