@netless/window-manager 0.4.11-canary.0 → 0.4.11
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 +14 -2
- package/dist/AppManager.d.ts +2 -0
- package/dist/InternalEmitter.d.ts +1 -0
- package/dist/PageState.d.ts +12 -0
- package/dist/callback.d.ts +2 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/docs/advanced.md +24 -0
- package/docs/api.md +9 -0
- package/package.json +1 -1
- package/src/AppManager.ts +23 -10
- package/src/InternalEmitter.ts +1 -0
- package/src/PageState.ts +31 -0
- package/src/Utils/Common.ts +2 -1
- package/src/callback.ts +2 -0
- package/src/constants.ts +1 -0
- package/src/index.ts +21 -5
package/CHANGELOG.md
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
+
## 0.4.11
|
2
|
+
|
3
|
+
1. 升级 `@netless/app-docs-viewer` 到 `0.2.8`
|
4
|
+
2. 同步注册的 url 的 src 到远端
|
5
|
+
3. 添加 `pageState` 和 `pageStateChange` 事件
|
6
|
+
4. 修复 manager 设置初始化 scenePath 错误的问题
|
7
|
+
5. 添加 `containerSizeRatio` 到 `manager` 实例
|
8
|
+
|
9
|
+
## 0.3.27
|
10
|
+
|
11
|
+
1. 修复在同时调用多次 `addApp` 时, 先添加的课件不显示的问题
|
12
|
+
|
1
13
|
## 0.4.10
|
2
14
|
|
3
|
-
1. 修复 PublicEvent 类型没有导出的问题
|
15
|
+
1. 修复 `PublicEvent` 类型没有导出的问题
|
4
16
|
|
5
17
|
## 0.3.26
|
6
18
|
|
7
|
-
1. 修复多次调用 setWritable 和 setReadonly 导致的状态错误
|
19
|
+
1. 修复多次调用 `setWritable` 和 `setReadonly` 导致的状态错误
|
8
20
|
|
9
21
|
## 0.4.9
|
10
22
|
|
package/dist/AppManager.d.ts
CHANGED
@@ -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;
|
@@ -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
|
+
}
|
package/dist/callback.d.ts
CHANGED
@@ -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/constants.d.ts
CHANGED
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,9 +111,11 @@ 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?;
|
118
|
+
containerSizeRatio: number;
|
116
119
|
constructor(context: InvisiblePluginContext);
|
117
120
|
static mount(params: MountParams): Promise<WindowManager>;
|
118
121
|
private static initManager;
|
@@ -187,6 +190,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
187
190
|
get canRedoSteps(): number;
|
188
191
|
get canUndoSteps(): number;
|
189
192
|
get sceneState(): SceneState;
|
193
|
+
get pageState(): PageState;
|
190
194
|
/**
|
191
195
|
* 查询所有的 App
|
192
196
|
*/
|