@netless/appliance-plugin 1.1.17-beta.3 → 1.1.17-beta.5

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.
@@ -27,8 +27,8 @@ export declare abstract class ViewContainerManager {
27
27
  appViews: Map<string, ViewInfo>;
28
28
  constructor(props: BaseSubWorkModuleProps);
29
29
  abstract getViewInitData(viewId: string): ViewWorkerOptions | undefined;
30
- undoTickerStart(id: number, viewId: string): void;
31
- addExcludeIds(ids: string[], viewId: string): void;
30
+ undoTickerStart: (id: number, viewId: string) => void;
31
+ addExcludeIds: (ids: string[], viewId: string) => void;
32
32
  undo(): number;
33
33
  redo(): number;
34
34
  protected validator(target: ViewInfo, key: string, value: any): void;
@@ -10,6 +10,7 @@ import type { ApplianceMultiPlugin } from "./applianceMultiPlugin";
10
10
  import type { ECanvasContextType } from "../core/enum";
11
11
  import type { AuthRenderScenesData } from "../core/renderCotrol";
12
12
  import type { Plugin } from "../core/plugin";
13
+ import { TextEditorInfo } from "../component/textEditor/types";
13
14
  export type { Room, ImageInformation, Point, Size, Rectangle, RoomMember, RoomState, Player, HotKeys, Camera, Displayer, DisplayerCallbacks, CameraState, View, Cursor, CursorAdapter, RenderEngine, _MemberState };
14
15
  export declare enum ApplianceNames {
15
16
  /**
@@ -77,6 +78,10 @@ export type ExtendMemberState = {
77
78
  currentApplianceName: ApplianceNames;
78
79
  /** 是否开启笔锋 */
79
80
  strokeType?: EStrokeType;
81
+ /** 橡皮擦遮盖颜色 */
82
+ eraserColor?: Color;
83
+ /** 橡皮擦遮盖透明度 */
84
+ eraserOpacity?: number;
80
85
  /** 是否删除整条线段 */
81
86
  isLine?: boolean;
82
87
  /** 线框透明度 */
@@ -425,6 +430,8 @@ export type PublicListener = {
425
430
  hide?: _SetTrue;
426
431
  clear?: _SetTrue;
427
432
  }) => void;
433
+ /** 文字改变 */
434
+ textChange: (workId: string, target: HTMLElement, texts: string[], info: TextEditorInfo) => void;
428
435
  };
429
436
  export type PublicEvent = keyof PublicListener;
430
437
  export type PublicCallback<T extends PublicEvent> = PublicListener[T];