@netless/window-manager 0.4.11-canary.2 → 0.4.13

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,11 +1,23 @@
1
- ## 0.3.27
1
+ ## 0.4.13
2
2
 
3
- 1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
3
+ 1. 在只读状态时 `viewMode` 可以从 `freedom` 切换回 `broadcaster` 跟随视角
4
+
5
+ ## 0.4.12
6
+
7
+ 1. 升级 `@netless/telebox-insider` 到 `0.2.26`
8
+ 2. 修复回放时 `seek` app 状态错误的问题
4
9
 
5
- ## 0.4.11 (canary)
10
+ ## 0.4.11
6
11
 
7
12
  1. 升级 `@netless/app-docs-viewer` 到 `0.2.8`
8
13
  2. 同步注册的 url 的 src 到远端
14
+ 3. 添加 `pageState` 和 `pageStateChange` 事件
15
+ 4. 修复 manager 设置初始化 scenePath 错误的问题
16
+ 5. 添加 `containerSizeRatio` 到 `manager` 实例
17
+
18
+ ## 0.3.27
19
+
20
+ 1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
9
21
 
10
22
  ## 0.4.10
11
23
 
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
 
@@ -34,7 +34,8 @@ export declare class AppManager {
34
34
  */
35
35
  private onRootDirRemoved;
36
36
  private onReadonlyChanged;
37
- private onPlayerSeek;
37
+ private onPlayerSeekStart;
38
+ private onPlayerSeekDone;
38
39
  private createRootDirScenesCallback;
39
40
  private onSceneChange;
40
41
  private emitMainViewScenesChange;
@@ -62,6 +63,7 @@ export declare class AppManager {
62
63
  resetMaximized(): void;
63
64
  resetMinimized(): void;
64
65
  private onAppDelete;
66
+ private closeAll;
65
67
  bindMainView(divElement: HTMLDivElement, disableCameraTransform: boolean): void;
66
68
  setMainViewFocusPath(scenePath?: string): boolean | undefined;
67
69
  private resetScenePath;
@@ -39,7 +39,7 @@ export declare class AppProxy {
39
39
  private setupApp;
40
40
  private fixMobileSize;
41
41
  private afterSetupApp;
42
- onSeek(time: number): void;
42
+ onSeek(time: number): Promise<void>;
43
43
  onReconnected(): Promise<void>;
44
44
  getAppInitState: (id: string) => AppInitState | undefined;
45
45
  emitAppSceneStateChange(sceneState: SceneState): void;
@@ -22,6 +22,7 @@ export declare type EmitterEvent = {
22
22
  y?: number;
23
23
  };
24
24
  error: Error;
25
+ seekStart: undefined;
25
26
  seek: number;
26
27
  mainViewMounted: undefined;
27
28
  observerIdChange: number;
@@ -8,6 +8,8 @@ export declare class AppCreateQueue {
8
8
  private initInterval;
9
9
  push(item: Invoker): void;
10
10
  invoke(): void;
11
+ private invoked;
12
+ private clear;
11
13
  emitReady(): void;
12
14
  destroy(): void;
13
15
  }
package/dist/index.d.ts CHANGED
@@ -115,6 +115,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
115
115
  private boxManager?;
116
116
  private static params?;
117
117
  private containerResizeObserver?;
118
+ containerSizeRatio: number;
118
119
  constructor(context: InvisiblePluginContext);
119
120
  static mount(params: MountParams): Promise<WindowManager>;
120
121
  private static initManager;