@netless/window-manager 1.0.0-canary.7 → 1.0.0-canary.8

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.
@@ -34,12 +34,13 @@ export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TA
34
34
  _viewWrapper?: HTMLElement;
35
35
  constructor(manager: AppManager, boxManager: BoxManager, appId: string, appProxy: AppProxy, appOptions?: TAppOptions | (() => TAppOptions) | undefined);
36
36
  get displayer(): import("white-web-sdk").Displayer<import("white-web-sdk").DisplayerCallbacks>;
37
+ get destroyed(): boolean;
37
38
  /** @deprecated Use context.storage.state instead. */
38
39
  getAttributes: () => TAttributes | undefined;
39
40
  getScenes: () => SceneDefinition[] | undefined;
40
41
  get view(): View | undefined;
41
42
  createWhiteBoardView: (size?: number | undefined) => WhiteBoardView;
42
- private initPageSize;
43
+ private ensurePageSize;
43
44
  getInitScenePath: () => string | undefined;
44
45
  /** Get App writable status. */
45
46
  get isWritable(): boolean;
@@ -26,7 +26,7 @@ export declare class AppProxy implements PageRemoveService {
26
26
  private store;
27
27
  uid: string;
28
28
  isAddApp: boolean;
29
- private status;
29
+ status: "normal" | "destroyed";
30
30
  private stateKey;
31
31
  _pageState: AppPageStateImpl;
32
32
  private _prevFullPath;
@@ -2,14 +2,15 @@ import type { ReadonlyVal } from "value-enhancer";
2
2
  import type { AddPageParams, PageController, PageState } from "../Page";
3
3
  import type { AppProxy } from "./AppProxy";
4
4
  import type { AppContext } from "./AppContext";
5
- import type { Camera } from "white-web-sdk";
5
+ import type { Camera, View } from "white-web-sdk";
6
6
  export declare class WhiteBoardView implements PageController {
7
+ view: View;
7
8
  protected appContext: AppContext;
8
9
  protected appProxy: AppProxy;
9
10
  private removeViewWrapper;
11
+ ensureSize: (size: number) => void;
10
12
  readonly pageState$: ReadonlyVal<PageState>;
11
- constructor(appContext: AppContext, appProxy: AppProxy, removeViewWrapper: () => void);
12
- get view(): import("white-web-sdk").View | undefined;
13
+ constructor(view: View, appContext: AppContext, appProxy: AppProxy, removeViewWrapper: () => void, ensureSize: (size: number) => void);
13
14
  get pageState(): PageState;
14
15
  moveCamera(camera: Camera): void;
15
16
  nextPage: () => Promise<boolean>;