@netless/window-manager 1.0.0-canary.25 → 1.0.0-canary.26
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/WhiteboardView.d.ts +3 -3
- package/dist/AppListener.d.ts +0 -2
- package/dist/constants.d.ts +0 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.d.ts +11 -8
- package/dist/index.es.js +51 -44
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
- package/src/App/AppProxy.ts +4 -0
- package/src/App/WhiteboardView.ts +6 -6
- package/src/AppListener.ts +1 -21
- package/src/AppManager.ts +2 -1
- package/src/View/CameraSynchronizer.ts +2 -2
- package/src/View/MainView.ts +3 -1
- package/src/constants.ts +0 -2
- package/src/index.ts +44 -29
@@ -5,14 +5,14 @@ import type { AppContext } from "./AppContext";
|
|
5
5
|
import type { View } from "white-web-sdk";
|
6
6
|
import type { TeleBoxRect } from "@netless/telebox-insider";
|
7
7
|
import type { ICamera } from "../AttributesDelegate";
|
8
|
-
export declare type WhiteBoardViewCamera = Omit<ICamera, "
|
8
|
+
export declare type WhiteBoardViewCamera = Omit<ICamera, "id">;
|
9
9
|
export declare class WhiteBoardView implements PageController {
|
10
10
|
view: View;
|
11
11
|
protected appContext: AppContext;
|
12
12
|
protected appProxy: AppProxy;
|
13
13
|
ensureSize: (size: number) => void;
|
14
14
|
readonly pageState$: ReadonlyVal<PageState>;
|
15
|
-
readonly
|
15
|
+
readonly baseCamera$: ReadonlyVal<WhiteBoardViewCamera>;
|
16
16
|
constructor(view: View, appContext: AppContext, appProxy: AppProxy, ensureSize: (size: number) => void);
|
17
17
|
get pageState(): PageState;
|
18
18
|
moveCamera(camera: Partial<WhiteBoardViewCamera>): void;
|
@@ -21,5 +21,5 @@ export declare class WhiteBoardView implements PageController {
|
|
21
21
|
jumpPage: (index: number) => Promise<boolean>;
|
22
22
|
addPage: (params?: AddPageParams | undefined) => Promise<void>;
|
23
23
|
removePage: (index?: number | undefined) => Promise<boolean>;
|
24
|
-
|
24
|
+
setBaseRect(rect: Omit<TeleBoxRect, "x" | "y">): void;
|
25
25
|
}
|
package/dist/AppListener.d.ts
CHANGED
@@ -11,8 +11,6 @@ export declare class AppListeners {
|
|
11
11
|
private appResizeHandler;
|
12
12
|
private boxStateChangeHandler;
|
13
13
|
private setMainViewScenePathHandler;
|
14
|
-
private moveCameraHandler;
|
15
|
-
private moveCameraToContainHandler;
|
16
14
|
private cursorMoveHandler;
|
17
15
|
private rootDirRemovedHandler;
|
18
16
|
private refreshHandler;
|
package/dist/constants.d.ts
CHANGED
@@ -10,8 +10,6 @@ export declare enum Events {
|
|
10
10
|
SetMainViewSceneIndex = "SetMainViewSceneIndex",
|
11
11
|
SetAppFocusIndex = "SetAppFocusIndex",
|
12
12
|
SwitchViewsToFreedom = "SwitchViewsToFreedom",
|
13
|
-
MoveCamera = "MoveCamera",
|
14
|
-
MoveCameraToContain = "MoveCameraToContain",
|
15
13
|
CursorMove = "CursorMove",
|
16
14
|
RootDirRemoved = "RootDirRemoved",
|
17
15
|
Refresh = "Refresh",
|