@netless/window-manager 1.0.0-canary.0 → 1.0.0-canary.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/__mocks__/white-web-sdk.ts +10 -1
- package/dist/App/AppContext.d.ts +16 -15
- package/dist/App/AppPageStateImpl.d.ts +6 -2
- package/dist/App/AppProxy.d.ts +26 -4
- package/dist/App/AppViewSync.d.ts +11 -0
- package/dist/App/WhiteboardView.d.ts +24 -0
- package/dist/App/index.d.ts +1 -0
- package/dist/AppManager.d.ts +5 -3
- package/dist/AttributesDelegate.d.ts +6 -14
- package/dist/BoxManager.d.ts +4 -3
- package/dist/Helper.d.ts +12 -2
- package/dist/InternalEmitter.d.ts +4 -0
- package/dist/Page/PageController.d.ts +1 -0
- package/dist/ReconnectRefresher.d.ts +1 -1
- package/dist/Utils/Common.d.ts +1 -0
- package/dist/View/CameraSynchronizer.d.ts +7 -7
- package/dist/View/MainView.d.ts +0 -1
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs.js +12 -12
- package/dist/index.d.ts +6 -3
- package/dist/index.es.js +722 -652
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +4 -0
- package/docs/app-context.md +98 -64
- package/docs/develop-app.md +2 -5
- package/package.json +3 -2
- package/pnpm-lock.yaml +11 -5
- package/src/App/AppContext.ts +71 -74
- package/src/App/AppPageStateImpl.ts +25 -6
- package/src/App/AppProxy.ts +206 -26
- package/src/App/AppViewSync.ts +73 -0
- package/src/App/Storage/index.ts +4 -4
- package/src/App/WhiteboardView.ts +89 -0
- package/src/App/index.ts +1 -0
- package/src/AppManager.ts +32 -23
- package/src/AttributesDelegate.ts +14 -17
- package/src/BoxManager.ts +14 -9
- package/src/Helper.ts +10 -1
- package/src/InternalEmitter.ts +4 -0
- package/src/Page/PageController.ts +1 -0
- package/src/ReconnectRefresher.ts +1 -0
- package/src/Utils/Common.ts +6 -0
- package/src/View/CameraSynchronizer.ts +32 -27
- package/src/View/MainView.ts +24 -41
- package/src/constants.ts +2 -0
- package/src/index.ts +20 -5
- package/src/style.css +9 -0
- package/src/typings.ts +4 -0
package/dist/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ import "video.js/dist/video-js.css";
|
|
6
6
|
import "./style.css";
|
7
7
|
import "@netless/telebox-insider/dist/style.css";
|
8
8
|
import type { TELE_BOX_STATE } from "./BoxManager";
|
9
|
-
import type { Apps, Position } from "./AttributesDelegate";
|
9
|
+
import type { Apps, Position, ICamera, ISize } from "./AttributesDelegate";
|
10
10
|
import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, CameraState, Player, ImageInformation, SceneState } from "white-web-sdk";
|
11
11
|
import type { AppListeners } from "./AppListener";
|
12
12
|
import type { ApplianceIcons, NetlessApp, RegisterParams } from "./typings";
|
@@ -54,6 +54,8 @@ export declare type AppSyncAttributes = {
|
|
54
54
|
isDynamicPPT?: boolean;
|
55
55
|
fullPath?: string;
|
56
56
|
createdAt?: number;
|
57
|
+
camera?: ICamera;
|
58
|
+
size?: ISize;
|
57
59
|
};
|
58
60
|
export declare type AppInitState = {
|
59
61
|
id: string;
|
@@ -78,8 +80,8 @@ export declare type MountParams = {
|
|
78
80
|
container?: HTMLElement;
|
79
81
|
/** 白板高宽比例, 默认为 9 / 16 */
|
80
82
|
containerSizeRatio?: number;
|
81
|
-
/**
|
82
|
-
|
83
|
+
/** 是否高亮显示同步区域, 默认为 true */
|
84
|
+
highlightStage?: boolean;
|
83
85
|
collectorContainer?: HTMLElement;
|
84
86
|
collectorStyles?: Partial<CSSStyleDeclaration>;
|
85
87
|
overwriteStyles?: string;
|
@@ -142,6 +144,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
142
144
|
setMainViewSceneIndex(index: number): Promise<void>;
|
143
145
|
nextPage(): Promise<boolean>;
|
144
146
|
prevPage(): Promise<boolean>;
|
147
|
+
jumpPage(index: number): Promise<boolean>;
|
145
148
|
addPage(params?: AddPageParams): Promise<void>;
|
146
149
|
/**
|
147
150
|
* 删除一页
|