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

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,10 +1,19 @@
1
+ ## 0.3.27
2
+
3
+ 1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
4
+
5
+ ## 0.4.11 (canary)
6
+
7
+ 1. 升级 `@netless/app-docs-viewer` 到 `0.2.8`
8
+ 2. 同步注册的 url 的 src 到远端
9
+
1
10
  ## 0.4.10
2
11
 
3
- 1. 修复 PublicEvent 类型没有导出的问题
12
+ 1. 修复 `PublicEvent` 类型没有导出的问题
4
13
 
5
14
  ## 0.3.26
6
15
 
7
- 1. 修复多次调用 setWritable 和 setReadonly 导致的状态错误
16
+ 1. 修复多次调用 `setWritable``setReadonly` 导致的状态错误
8
17
 
9
18
  ## 0.4.9
10
19
 
@@ -37,6 +37,7 @@ export declare class AppManager {
37
37
  private onPlayerSeek;
38
38
  private createRootDirScenesCallback;
39
39
  private onSceneChange;
40
+ private emitMainViewScenesChange;
40
41
  private updateSceneState;
41
42
  private get eventName();
42
43
  get attributes(): import("./index").WindowMangerAttributes;
@@ -63,6 +64,7 @@ export declare class AppManager {
63
64
  private onAppDelete;
64
65
  bindMainView(divElement: HTMLDivElement, disableCameraTransform: boolean): void;
65
66
  setMainViewFocusPath(scenePath?: string): boolean | undefined;
67
+ private resetScenePath;
66
68
  addApp(params: AddAppParams, isDynamicPPT: boolean): Promise<string | undefined>;
67
69
  private beforeAddApp;
68
70
  private afterAddApp;
@@ -37,6 +37,7 @@ export declare type EmitterEvent = {
37
37
  };
38
38
  rootDirRemoved: undefined;
39
39
  setReadonly: boolean;
40
+ changePageState: undefined;
40
41
  };
41
42
  export declare type EmitterType = Emittery<EmitterEvent>;
42
43
  export declare const emitter: EmitterType;
@@ -0,0 +1,12 @@
1
+ import type { AppManager } from "./AppManager";
2
+ export declare type PageState = {
3
+ index: number;
4
+ length: number;
5
+ };
6
+ export declare class PageStateImpl {
7
+ private manager;
8
+ constructor(manager: AppManager);
9
+ get index(): number;
10
+ get length(): number;
11
+ toObject(): PageState;
12
+ }
@@ -2,6 +2,7 @@ import Emittery from "emittery";
2
2
  import type { TeleBoxColorScheme, TELE_BOX_STATE } from "@netless/telebox-insider";
3
3
  import type { CameraState, SceneState, ViewVisionMode } from "white-web-sdk";
4
4
  import type { LoadAppEvent } from "./Register";
5
+ import type { PageState } from "./PageState";
5
6
  export declare type PublicEvent = {
6
7
  mainViewModeChange: ViewVisionMode;
7
8
  boxStateChange: `${TELE_BOX_STATE}`;
@@ -17,6 +18,7 @@ export declare type PublicEvent = {
17
18
  loadApp: LoadAppEvent;
18
19
  ready: undefined;
19
20
  sceneStateChange: SceneState;
21
+ pageStateChange: PageState;
20
22
  };
21
23
  export declare type CallbacksType = Emittery<PublicEvent>;
22
24
  export declare const callbacks: CallbacksType;
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider"
14
14
  import type { AppProxy } from "./AppProxy";
15
15
  import type { PublicEvent } from "./Callback";
16
16
  import type Emittery from "emittery";
17
+ import type { PageState } from "./PageState";
17
18
  export declare type WindowMangerAttributes = {
18
19
  modelValue?: string;
19
20
  boxState: TELE_BOX_STATE;
@@ -110,6 +111,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
110
111
  cursorManager?: CursorManager;
111
112
  viewMode: ViewMode;
112
113
  isReplay: boolean;
114
+ private _pageState?;
113
115
  private boxManager?;
114
116
  private static params?;
115
117
  private containerResizeObserver?;
@@ -187,6 +189,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
187
189
  get canRedoSteps(): number;
188
190
  get canUndoSteps(): number;
189
191
  get sceneState(): SceneState;
192
+ get pageState(): PageState;
190
193
  /**
191
194
  * 查询所有的 App
192
195
  */