@netless/window-manager 0.4.0-canary.24 → 0.4.0-canary.28

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.
@@ -23,6 +23,7 @@ export declare class AppManager {
23
23
  private _prevSceneIndex;
24
24
  private _prevFocused;
25
25
  private callbacksNode;
26
+ private appCreateQueue;
26
27
  constructor(windowManger: WindowManager);
27
28
  private get eventName();
28
29
  get attributes(): import("./index").WindowMangerAttributes;
@@ -60,6 +61,7 @@ export declare class AppManager {
60
61
  private _setMainViewScenePath;
61
62
  private updateSceneIndex;
62
63
  setMainViewSceneIndex(index: number): Promise<void>;
64
+ private dispatchSetMainViewScenePath;
63
65
  getAppInitPath(appId: string): string | undefined;
64
66
  safeDispatchMagixEvent(event: string, payload: any): void;
65
67
  private boxEventListener;
package/dist/Helper.d.ts CHANGED
@@ -4,3 +4,4 @@ export declare const setupWrapper: (root: HTMLElement) => {
4
4
  sizer: HTMLDivElement;
5
5
  mainViewElement: HTMLDivElement;
6
6
  };
7
+ export declare const checkVersion: () => void;
@@ -0,0 +1,11 @@
1
+ import type { AppProxy } from "../AppProxy";
2
+ export declare type Invoker = () => Promise<AppProxy | undefined>;
3
+ export declare class AppCreateQueue {
4
+ private list;
5
+ private currentInvoker;
6
+ private timer;
7
+ private initInterval;
8
+ push(item: Invoker): void;
9
+ invoke(): void;
10
+ destroy(): void;
11
+ }
@@ -1,3 +1,3 @@
1
1
  import type { WindowManager } from "../index";
2
- import type { Room } from "white-web-sdk";
3
- export declare const replaceRoomFunction: (room: Room, manager: WindowManager) => void;
2
+ import type { Room, Player } from "white-web-sdk";
3
+ export declare const replaceRoomFunction: (room: Room | Player, manager: WindowManager) => void;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import Emittery from "emittery";
2
2
  import { AppManager } from "./AppManager";
3
3
  import { CursorManager } from "./Cursor";
4
+ import { InvisiblePlugin, ViewMode } from "white-web-sdk";
4
5
  import { ReconnectRefresher } from "./ReconnectRefresher";
5
6
  import "./style.css";
6
7
  import "@netless/telebox-insider/dist/style.css";
7
8
  import type { TELE_BOX_STATE } from "./BoxManager";
8
9
  import type { Apps, Position } from "./AttributesDelegate";
9
- import { InvisiblePlugin, ViewMode } from "white-web-sdk";
10
- import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState } from "white-web-sdk";
10
+ import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState, Player } from "white-web-sdk";
11
11
  import type { AppListeners } from "./AppListener";
12
12
  import type { NetlessApp, RegisterParams } from "./typings";
13
13
  import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider";
@@ -115,7 +115,7 @@ export declare type PublicEvent = {
115
115
  mainViewScenesLengthChange: number;
116
116
  };
117
117
  export declare type MountParams = {
118
- room: Room;
118
+ room: Room | Player;
119
119
  container?: HTMLElement;
120
120
  /** 白板高宽比例, 默认为 9 / 16 */
121
121
  containerSizeRatio?: number;
@@ -244,10 +244,9 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
244
244
  safeSetAttributes(attributes: any): void;
245
245
  safeUpdateAttributes(keys: string[], value: any): void;
246
246
  setPrefersColorScheme(scheme: TeleBoxColorScheme): void;
247
+ cleanCurrentScene(): void;
247
248
  private isDynamicPPT;
248
- private static checkVersion;
249
249
  private ensureAttributes;
250
- private _removeScenes;
251
250
  }
252
251
  export * from "./typings";
253
252
  export { BuiltinApps } from "./BuiltinApps";