@netless/window-manager 1.0.0-canary.14 → 1.0.0-canary.15

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.
@@ -2,6 +2,7 @@ import Emittery from "emittery";
2
2
  import { AppContext } from "./AppContext";
3
3
  import { AppPageStateImpl } from "./AppPageStateImpl";
4
4
  import { Val } from "value-enhancer";
5
+ import { SideEffectManager } from "side-effect-manager";
5
6
  import type { ICamera, ISize } from "../AttributesDelegate";
6
7
  import type { AppEmitterEvent, AppInitState, BaseInsertParams } from "../index";
7
8
  import type { SceneState, View, SceneDefinition, Camera } from "white-web-sdk";
@@ -31,7 +32,7 @@ export declare class AppProxy implements PageRemoveService {
31
32
  _pageState: AppPageStateImpl;
32
33
  appResult?: NetlessApp;
33
34
  appContext?: AppContext;
34
- private sideEffectManager;
35
+ sideEffectManager: SideEffectManager;
35
36
  private valManager;
36
37
  private fullPath$;
37
38
  private appViewSync?;
@@ -4,6 +4,7 @@ import type { AppProxy } from "./AppProxy";
4
4
  import type { AppContext } from "./AppContext";
5
5
  import type { Camera, View } from "white-web-sdk";
6
6
  import type { TeleBoxRect } from "@netless/telebox-insider";
7
+ export declare type WhiteBoardViewCamera = Omit<Camera, "scale">;
7
8
  export declare class WhiteBoardView implements PageController {
8
9
  view: View;
9
10
  protected appContext: AppContext;
@@ -11,10 +12,10 @@ export declare class WhiteBoardView implements PageController {
11
12
  private removeViewWrapper;
12
13
  ensureSize: (size: number) => void;
13
14
  readonly pageState$: ReadonlyVal<PageState>;
14
- readonly camera$: ReadonlyVal<Camera>;
15
+ readonly camera$: ReadonlyVal<WhiteBoardViewCamera>;
15
16
  constructor(view: View, appContext: AppContext, appProxy: AppProxy, removeViewWrapper: () => void, ensureSize: (size: number) => void);
16
17
  get pageState(): PageState;
17
- moveCamera(camera: Partial<Camera>): void;
18
+ moveCamera(camera: Partial<WhiteBoardViewCamera>): void;
18
19
  nextPage: () => Promise<boolean>;
19
20
  prevPage: () => Promise<boolean>;
20
21
  jumpPage: (index: number) => Promise<boolean>;