@netless/window-manager 0.4.32 → 1.0.0-canary.10
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 -5
- 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 +9 -8
- package/dist/Helper.d.ts +12 -4
- package/dist/InternalEmitter.d.ts +6 -1
- 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 +17 -0
- package/dist/View/MainView.d.ts +4 -6
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs.js +21 -22
- package/dist/index.d.ts +6 -5
- package/dist/index.es.js +2512 -2059
- package/dist/index.umd.js +21 -22
- 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 +4 -3
- package/pnpm-lock.yaml +90 -97
- package/src/App/AppContext.ts +72 -75
- package/src/App/AppPageStateImpl.ts +25 -6
- package/src/App/AppProxy.ts +206 -35
- 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 +107 -115
- package/src/Cursor/index.ts +5 -5
- package/src/Helper.ts +12 -16
- package/src/InternalEmitter.ts +10 -4
- 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 +72 -0
- package/src/View/MainView.ts +53 -78
- package/src/constants.ts +2 -0
- package/src/index.ts +31 -36
- package/src/style.css +9 -0
- package/src/typings.ts +4 -0
- package/vite.config.js +0 -1
- package/dist/ContainerResizeObserver.d.ts +0 -11
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/src/ContainerResizeObserver.ts +0 -73
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;
|
@@ -93,7 +95,6 @@ export declare const reconnectRefresher: ReconnectRefresher;
|
|
93
95
|
export declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes> implements PageController {
|
94
96
|
static kind: string;
|
95
97
|
static displayer: Displayer;
|
96
|
-
static wrapper?: HTMLElement;
|
97
98
|
static playground?: HTMLElement;
|
98
99
|
static container?: HTMLElement;
|
99
100
|
static debug: boolean;
|
@@ -111,7 +112,6 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
111
112
|
private _pageState?;
|
112
113
|
private boxManager?;
|
113
114
|
private static params?;
|
114
|
-
private containerResizeObserver?;
|
115
115
|
containerSizeRatio: number;
|
116
116
|
constructor(context: InvisiblePluginContext);
|
117
117
|
static mount(params: MountParams): Promise<WindowManager>;
|
@@ -144,6 +144,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
144
144
|
setMainViewSceneIndex(index: number): Promise<void>;
|
145
145
|
nextPage(): Promise<boolean>;
|
146
146
|
prevPage(): Promise<boolean>;
|
147
|
+
jumpPage(index: number): Promise<boolean>;
|
147
148
|
addPage(params?: AddPageParams): Promise<void>;
|
148
149
|
/**
|
149
150
|
* 删除一页
|