@netless/window-manager 0.4.11-canary.1 → 0.4.12

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,19 @@
1
- ## 0.3.27
1
+ ## 0.4.12
2
2
 
3
- 1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
3
+ 1. 升级 `@netless/telebox-insider``0.2.26`
4
+ 2. 修复回放时 `seek` app 状态错误的问题
4
5
 
5
- ## 0.4.11 (canary)
6
+ ## 0.4.11
6
7
 
7
8
  1. 升级 `@netless/app-docs-viewer` 到 `0.2.8`
8
9
  2. 同步注册的 url 的 src 到远端
10
+ 3. 添加 `pageState` 和 `pageStateChange` 事件
11
+ 4. 修复 manager 设置初始化 scenePath 错误的问题
12
+ 5. 添加 `containerSizeRatio` 到 `manager` 实例
13
+
14
+ ## 0.3.27
15
+
16
+ 1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
9
17
 
10
18
  ## 0.4.10
11
19
 
@@ -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
  }
@@ -39,3 +39,4 @@ export declare const MIN_HEIGHT: number;
39
39
  export declare const SET_SCENEPATH_DELAY = 100;
40
40
  export declare const DEFAULT_CONTAINER_RATIO: number;
41
41
  export declare const ROOT_DIR = "/";
42
+ export declare const INIT_DIR = "/init";
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;