@netless/window-manager 1.0.0-canary.15 → 1.0.0-canary.18
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/dist/App/AppContext.d.ts +2 -4
- package/dist/App/AppProxy.d.ts +1 -1
- package/dist/App/WhiteboardView.d.ts +1 -3
- package/dist/BoxManager.d.ts +1 -0
- package/dist/View/MainView.d.ts +13 -6
- package/dist/View/ViewSync.d.ts +24 -0
- package/dist/index.cjs.js +10 -10
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +216 -128
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +4 -4
- package/src/App/AppContext.ts +3 -10
- package/src/App/AppProxy.ts +28 -16
- package/src/App/WhiteboardView.ts +0 -7
- package/src/AppManager.ts +1 -1
- package/src/BoxManager.ts +4 -0
- package/src/ReconnectRefresher.ts +1 -1
- package/src/Utils/RoomHacker.ts +3 -0
- package/src/View/CameraSynchronizer.ts +7 -5
- package/src/View/MainView.ts +95 -53
- package/src/View/ViewSync.ts +119 -0
- package/src/index.ts +28 -5
- package/src/style.css +0 -1
- package/dist/App/AppViewSync.d.ts +0 -11
- package/src/App/AppViewSync.ts +0 -73
package/dist/index.d.ts
CHANGED
@@ -15,6 +15,7 @@ import type { AppProxy } from "./App";
|
|
15
15
|
import type { PublicEvent } from "./callback";
|
16
16
|
import type Emittery from "emittery";
|
17
17
|
import type { PageController, AddPageParams, PageState } from "./Page";
|
18
|
+
import { Val } from "value-enhancer";
|
18
19
|
export declare type WindowMangerAttributes = {
|
19
20
|
modelValue?: string;
|
20
21
|
boxState: TELE_BOX_STATE;
|
@@ -108,6 +109,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
108
109
|
appManager?: AppManager;
|
109
110
|
cursorManager?: CursorManager;
|
110
111
|
viewMode: ViewMode;
|
112
|
+
viewMode$: Val<ViewMode, any>;
|
111
113
|
isReplay: boolean;
|
112
114
|
private _pageState?;
|
113
115
|
private boxManager?;
|
@@ -241,6 +243,11 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
241
243
|
/** @inner */
|
242
244
|
_refresh(): void;
|
243
245
|
setContainerSizeRatio(ratio: number): void;
|
246
|
+
createPPTHandler(): {
|
247
|
+
onPageJumpTo: (_pptUUID: string, index: number) => void;
|
248
|
+
onPageToNext: () => void;
|
249
|
+
onPageToPrev: () => void;
|
250
|
+
};
|
244
251
|
private isDynamicPPT;
|
245
252
|
private ensureAttributes;
|
246
253
|
}
|