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

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.
@@ -29,8 +29,8 @@ export declare class AppProxy implements PageRemoveService {
29
29
  status: "normal" | "destroyed";
30
30
  private stateKey;
31
31
  _pageState: AppPageStateImpl;
32
- appResult?: NetlessApp<any>;
33
- appContext?: AppContext<any, any>;
32
+ appResult?: NetlessApp;
33
+ appContext?: AppContext;
34
34
  private sideEffectManager;
35
35
  private valManager;
36
36
  private fullPath$;
@@ -80,9 +80,10 @@ export declare class AppProxy implements PageRemoveService {
80
80
  storeCamera: (camera: ICamera) => void;
81
81
  storeSize: (size: ISize) => void;
82
82
  updateSize: (width: number, height: number) => void;
83
- moveCamera: (camera: Camera) => void;
83
+ moveCamera: (camera: Partial<Camera>) => void;
84
84
  destroy(needCloseBox: boolean, cleanAttrs: boolean, skipUpdate: boolean, error?: Error): Promise<void>;
85
85
  private addCameraReaction;
86
86
  private addSizeReaction;
87
+ onFocus: () => void;
87
88
  close(): Promise<void>;
88
89
  }
@@ -11,9 +11,10 @@ export declare class WhiteBoardView implements PageController {
11
11
  private removeViewWrapper;
12
12
  ensureSize: (size: number) => void;
13
13
  readonly pageState$: ReadonlyVal<PageState>;
14
+ readonly camera$: ReadonlyVal<Camera>;
14
15
  constructor(view: View, appContext: AppContext, appProxy: AppProxy, removeViewWrapper: () => void, ensureSize: (size: number) => void);
15
16
  get pageState(): PageState;
16
- moveCamera(camera: Camera): void;
17
+ moveCamera(camera: Partial<Camera>): void;
17
18
  nextPage: () => Promise<boolean>;
18
19
  prevPage: () => Promise<boolean>;
19
20
  jumpPage: (index: number) => Promise<boolean>;
@@ -65,9 +65,9 @@ export declare class AppManager {
65
65
  private onFocusChange;
66
66
  attributesUpdateCallback: import("lodash").DebouncedFunc<(apps: any) => Promise<void>>;
67
67
  /**
68
- * 插件更新 attributes 时的回调
68
+ * 插件更新 apps 时的回调
69
69
  *
70
- * @param {*} attributes
70
+ * @param {*} apps
71
71
  * @memberof WindowManager
72
72
  */
73
73
  _attributesUpdateCallback(apps: any): Promise<void>;