@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.
- package/cdn/cdn.js +1 -1
- package/cdn/{fullWorker-BRSJpK.js → fullWorker-Cpy2w4.js} +72 -72
- package/cdn/{subWorker-C6USfH.js → subWorker-iedlnr.js} +72 -72
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/component/textEditor/manager.d.ts +2 -0
- package/dist/core/enum.d.ts +4 -0
- package/dist/core/mainThread/snapshotThread.d.ts +1 -1
- package/dist/core/mainThread/subTopThread.d.ts +2 -2
- package/dist/core/mainThread/workerMainThread.d.ts +1 -1
- package/dist/core/msgEvent/base.d.ts +1 -0
- package/dist/core/tools/index.d.ts +1 -0
- package/dist/core/tools/pencilEraserBitMap.d.ts +1 -0
- package/dist/core/worker/base.d.ts +1 -1
- package/dist/core/worker/subWorkerTopLayer.d.ts +2 -2
- package/dist/fullWorker.js +72 -72
- package/dist/{index-C7EVuWrK.mjs → index-BEWK-ebo.mjs} +1 -1
- package/dist/{index-CSX20e2f.js → index-DguIKp_s.js} +1 -1
- package/dist/index-RAF9C7kr.js +1 -0
- package/dist/{index-fDo00x3u.mjs → index-WUG4MLiV.mjs} +2025 -2008
- package/dist/plugin/baseViewContainerManager.d.ts +2 -2
- package/dist/plugin/types.d.ts +7 -0
- package/dist/subWorker.js +72 -72
- package/dist/undo/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-D0OLpXX8.js +0 -1
|
@@ -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)
|
|
31
|
-
addExcludeIds(ids: string[], viewId: string)
|
|
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;
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -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];
|