@netless/window-manager 1.0.0-canary.21 → 1.0.0-canary.24
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 +5 -1
- package/dist/App/AppProxy.d.ts +2 -0
- package/dist/View/CameraSynchronizer.d.ts +1 -1
- package/dist/index.cjs.js +12 -12
- package/dist/index.es.js +123 -170
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/docs/app-context.md +89 -3
- package/package.json +1 -1
- package/src/App/AppContext.ts +14 -3
- package/src/App/AppProxy.ts +81 -140
- package/src/ReconnectRefresher.ts +5 -1
- package/src/View/CameraSynchronizer.ts +17 -26
- package/src/View/ViewSync.ts +3 -2
- package/src/style.css +1 -0
package/dist/App/AppContext.d.ts
CHANGED
@@ -8,6 +8,10 @@ import type { AppManager } from "../AppManager";
|
|
8
8
|
import type { AppProxy } from "./AppProxy";
|
9
9
|
import type { MagixEventAddListener, MagixEventDispatcher, MagixEventRemoveListener } from "./MagixEvent";
|
10
10
|
import { WhiteBoardView } from "./WhiteboardView";
|
11
|
+
export declare type CreateWhiteBoardViewParams = {
|
12
|
+
size?: number;
|
13
|
+
syncCamera?: boolean;
|
14
|
+
};
|
11
15
|
export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TAppOptions = any> {
|
12
16
|
private manager;
|
13
17
|
appId: string;
|
@@ -37,7 +41,7 @@ export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TA
|
|
37
41
|
getAttributes: () => TAttributes | undefined;
|
38
42
|
getScenes: () => SceneDefinition[] | undefined;
|
39
43
|
get view(): View | undefined;
|
40
|
-
createWhiteBoardView: (
|
44
|
+
createWhiteBoardView: (params?: CreateWhiteBoardViewParams | undefined) => WhiteBoardView;
|
41
45
|
private ensurePageSize;
|
42
46
|
getInitScenePath: () => string | undefined;
|
43
47
|
/** Get App writable status. */
|
package/dist/App/AppProxy.d.ts
CHANGED
@@ -46,6 +46,8 @@ export declare class AppProxy implements PageRemoveService {
|
|
46
46
|
size$: Val<ISize | undefined, any>;
|
47
47
|
box$: Val<ReadonlyTeleBox | undefined, any>;
|
48
48
|
view$: Val<View | undefined, any>;
|
49
|
+
syncCamera$: Val<boolean, any>;
|
50
|
+
whiteBoardViewCreated$: Val<boolean, any>;
|
49
51
|
constructor(params: BaseInsertParams, manager: AppManager, appId: string, isAddApp: boolean);
|
50
52
|
fireMemberStateChange: () => void;
|
51
53
|
private onMemberStateChange;
|
@@ -9,7 +9,7 @@ export declare class CameraSynchronizer {
|
|
9
9
|
protected rect?: TeleBoxRect;
|
10
10
|
protected view?: View;
|
11
11
|
constructor(saveCamera: SaveCamera);
|
12
|
-
setRect:
|
12
|
+
setRect: (rect: TeleBoxRect) => void;
|
13
13
|
setView(view: View): void;
|
14
14
|
onRemoteUpdate: import("lodash").DebouncedFunc<(camera: ICamera, size: ISize) => void>;
|
15
15
|
onRemoteSizeUpdate(size: ISize): void;
|