@netless/window-manager 0.4.13 → 0.4.14
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/AppListener.d.ts +1 -0
- package/dist/AppManager.d.ts +4 -2
- package/dist/ScenePath/index.d.ts +12 -0
- package/dist/constants.d.ts +2 -1
- 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 +8 -0
- package/src/AppManager.ts +39 -28
- package/src/ScenePath/index.ts +47 -0
- package/src/constants.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/AppListener.d.ts
CHANGED
package/dist/AppManager.d.ts
CHANGED
@@ -32,7 +32,7 @@ export declare class AppManager {
|
|
32
32
|
* 根目录被删除时所有的 scene 都会被删除.
|
33
33
|
* 所以需要关掉所有开启了 view 的 app
|
34
34
|
*/
|
35
|
-
|
35
|
+
onRootDirRemoved(): void;
|
36
36
|
private onReadonlyChanged;
|
37
37
|
private onPlayerSeekStart;
|
38
38
|
private onPlayerSeekDone;
|
@@ -49,6 +49,8 @@ export declare class AppManager {
|
|
49
49
|
get uid(): string;
|
50
50
|
getMainViewSceneDir(): string;
|
51
51
|
private onCreated;
|
52
|
+
private onMainViewIndexChange;
|
53
|
+
private onFocusChange;
|
52
54
|
/**
|
53
55
|
* 插件更新 attributes 时的回调
|
54
56
|
*
|
@@ -87,6 +89,6 @@ export declare class AppManager {
|
|
87
89
|
focusByAttributes(apps: any): void;
|
88
90
|
onReconnected(): Promise<void>;
|
89
91
|
notifyContainerRectUpdate(rect: TeleBoxRect): void;
|
90
|
-
dispatchInternalEvent(event: Events, payload
|
92
|
+
dispatchInternalEvent(event: Events, payload?: any): void;
|
91
93
|
destroy(): void;
|
92
94
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { ScenesCallbacks, ScenesCallbacksNode } from "white-web-sdk";
|
2
|
+
import type { AppManager } from "../AppManager";
|
3
|
+
export declare class ScenesCallbackManager {
|
4
|
+
private manager;
|
5
|
+
private nodes;
|
6
|
+
constructor(manager: AppManager);
|
7
|
+
createNode(path: string, callbacks?: Partial<ScenesCallbacks>): ScenesCallbacksNode | null;
|
8
|
+
getScenes(path: string): readonly string[] | undefined;
|
9
|
+
getScenesOnce(path: string): readonly string[] | undefined;
|
10
|
+
removeNode(path: string): void;
|
11
|
+
destroy(): void;
|
12
|
+
}
|
package/dist/constants.d.ts
CHANGED
@@ -12,7 +12,8 @@ export declare enum Events {
|
|
12
12
|
SwitchViewsToFreedom = "SwitchViewsToFreedom",
|
13
13
|
MoveCamera = "MoveCamera",
|
14
14
|
MoveCameraToContain = "MoveCameraToContain",
|
15
|
-
CursorMove = "CursorMove"
|
15
|
+
CursorMove = "CursorMove",
|
16
|
+
RootDirRemoved = "RootDirRemoved"
|
16
17
|
}
|
17
18
|
export declare const MagixEventName = "__WindowManger";
|
18
19
|
export declare enum AppAttributes {
|