@netless/window-manager 0.4.1-canary.0 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.4.3
2
+
3
+ 1. 代理 `room` 的 `delete` `copy` `paste` `duplicate` 方法
4
+
5
+ ## 0.4.1
6
+
7
+ 1. 添加 `loadApp` 事件
8
+
1
9
  ## 0.4.0
2
10
 
3
11
  ### 功能
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import "@netless/telebox-insider/dist/style.css";
8
8
  import type { LoadAppEvent } from "./Register";
9
9
  import type { TELE_BOX_STATE } from "./BoxManager";
10
10
  import type { Apps, Position } from "./AttributesDelegate";
11
- import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState, Player } from "white-web-sdk";
11
+ import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState, Player, ImageInformation } from "white-web-sdk";
12
12
  import type { AppListeners } from "./AppListener";
13
13
  import type { NetlessApp, RegisterParams } from "./typings";
14
14
  import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider";
@@ -215,6 +215,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
215
215
  get darkMode(): boolean;
216
216
  get prefersColorScheme(): TeleBoxColorScheme | undefined;
217
217
  get focused(): string | undefined;
218
+ get focusedView(): View | undefined;
218
219
  get mainViewSceneIndex(): number;
219
220
  get mainViewSceneDir(): string;
220
221
  get topApp(): string | undefined;
@@ -253,6 +254,15 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
253
254
  cleanCurrentScene(): void;
254
255
  redo(): number;
255
256
  undo(): number;
257
+ delete(): void;
258
+ copy(): void;
259
+ paste(): void;
260
+ duplicate(): void;
261
+ insertText(x: number, y: number, text: string): string;
262
+ insertImage(info: ImageInformation): void;
263
+ completeImageUpload(uuid: string, url: string): void;
264
+ lockImage(uuid: string, locked: boolean): void;
265
+ lockImages(locked: boolean): void;
256
266
  private isDynamicPPT;
257
267
  private ensureAttributes;
258
268
  }