@netless/window-manager 0.4.12 → 0.4.15

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.4.15
2
+
3
+ 1. 修复 remove 根 scenes 时, mainView 重新绑定没有生效的问题
4
+
5
+ ## 0.4.14
6
+
7
+ 1. 修复 removeScenes 为 "/" 时, 同步端笔迹依旧存在的问题
8
+
9
+ ## 0.4.13
10
+
11
+ 1. 在只读状态时可以切换 `viewMode`
12
+
1
13
  ## 0.4.12
2
14
 
3
15
  1. 升级 `@netless/telebox-insider` 到 `0.2.26`
package/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  - [从白板迁移](docs/migrate.md)
7
7
  - [回放](docs/replay.md)
8
8
  - [进阶使用](docs/advanced.md)
9
+ - [视角跟随](docs/advanced.md#view-mode)
9
10
  - [开发自定义 APP](docs/develop-app.md)
10
11
  ## MainView
11
12
 
@@ -14,4 +14,5 @@ export declare class AppListeners {
14
14
  private moveCameraHandler;
15
15
  private moveCameraToContainHandler;
16
16
  private cursorMoveHandler;
17
+ private rootDirRemovedHandler;
17
18
  }
@@ -32,7 +32,7 @@ export declare class AppManager {
32
32
  * 根目录被删除时所有的 scene 都会被删除.
33
33
  * 所以需要关掉所有开启了 view 的 app
34
34
  */
35
- private onRootDirRemoved;
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: any): void;
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
+ }
@@ -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 {