@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
package/dist/appliance-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RAF9C7kr.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.AutoDrawPlugin=e.AutoDrawPlugin;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EImageType=e.EImageType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EOperationType=e.EOperationType;exports.EPostMessageType=e.EPostMessageType;exports.ERenderFilterType=e.ERenderFilterType;exports.EScaleType=e.EScaleType;exports.EStrokeType=e.EStrokeType;exports.EToolsKey=e.EToolsKey;exports.ElayerType=e.ElayerType;exports.EmitEventType=e.EmitEventType;exports.EventMessageType=e.EventMessageType;exports.EvevtWorkState=e.EvevtWorkState;exports.EvevtWorkType=e.EvevtWorkType;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Plugin=e.Plugin;exports.ShapeType=e.ShapeType;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as s, A as p, y as r, x as t, w as l, Q as i, G as n, b as y, k as E, m as T, N as o, c as g, O as u, K as v, z as c, a as A, J as S, j as k, H as m, E as P, L as M, I as W, P as w, B as x, u as I, v as b } from "./index-
|
|
1
|
+
import { F as s, A as p, y as r, x as t, w as l, Q as i, G as n, b as y, k as E, m as T, N as o, c as g, O as u, K as v, z as c, a as A, J as S, j as k, H as m, E as P, L as M, I as W, P as w, B as x, u as I, v as b } from "./index-WUG4MLiV.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
p as ApplianceMultiPlugin,
|
|
@@ -5,6 +5,7 @@ import type EventEmitter2 from "eventemitter2";
|
|
|
5
5
|
import { BaseApplianceManager } from "../../plugin/baseApplianceManager";
|
|
6
6
|
export interface TextEditorManager {
|
|
7
7
|
readonly internalMsgEmitter: EventEmitter2;
|
|
8
|
+
readonly publicMsgEmitter: EventEmitter2;
|
|
8
9
|
readonly control: BaseApplianceManager;
|
|
9
10
|
editors: Map<string, TextEditorInfo>;
|
|
10
11
|
activeId?: string;
|
|
@@ -67,6 +68,7 @@ export interface TextEditorManager {
|
|
|
67
68
|
}
|
|
68
69
|
export declare class TextEditorManagerImpl implements TextEditorManager {
|
|
69
70
|
readonly internalMsgEmitter: EventEmitter2;
|
|
71
|
+
readonly publicMsgEmitter: EventEmitter2;
|
|
70
72
|
readonly control: BaseApplianceManager;
|
|
71
73
|
editors: Map<string, TextEditorInfo>;
|
|
72
74
|
activeId?: string;
|
package/dist/core/enum.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class SnapshotThreadImpl {
|
|
|
28
28
|
loadImageBitMap(msg: Pick<IWorkerMessage, 'toolsType' | 'opt' | 'workId'>): Promise<ImageBitmap | undefined>;
|
|
29
29
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
30
30
|
workId: string;
|
|
31
|
-
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
31
|
+
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | ImageShape | undefined;
|
|
32
32
|
setFullWork(data: Pick<IWorkerMessage, 'workId' | 'opt' | 'toolsType'>): BaseShapeTool | undefined;
|
|
33
33
|
runFullWork(data: IWorkerMessage): Promise<IRectType | undefined>;
|
|
34
34
|
private getSnapshot;
|
|
@@ -33,7 +33,7 @@ export declare class SubTopThreadImpl implements SubTopThread {
|
|
|
33
33
|
constructor(opt: ISubThreadInitOption);
|
|
34
34
|
createLocalWork(data: IWorkerMessage): void;
|
|
35
35
|
getLocalWorkShape(workId: string): ILocalWorkItem | undefined;
|
|
36
|
-
createLocalWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
36
|
+
createLocalWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
37
37
|
canUseTopLayer(toolsType: EToolsKey): toolsType is EToolsKey.LaserPen;
|
|
38
38
|
destroy(): void;
|
|
39
39
|
clearAll(): void;
|
|
@@ -42,7 +42,7 @@ export declare class SubTopThreadImpl implements SubTopThread {
|
|
|
42
42
|
getToolsOpt(): IActiveToolsDataType | undefined;
|
|
43
43
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
44
44
|
workId: string;
|
|
45
|
-
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
45
|
+
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
46
46
|
private setNodeKey;
|
|
47
47
|
private activeServiceWorkShape;
|
|
48
48
|
private computNextAnimationIndex;
|
|
@@ -93,7 +93,7 @@ export declare class SubMainThreadWorkerImpl implements SubMainThreadWorker {
|
|
|
93
93
|
setToolsOpt(opt: IActiveToolsDataType): void;
|
|
94
94
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
95
95
|
workId: string;
|
|
96
|
-
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
96
|
+
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
97
97
|
clearWorkShapeNodeCache(workId: string): void;
|
|
98
98
|
getWorkShape(workId: string): BaseShapeTool | undefined;
|
|
99
99
|
}
|
|
@@ -12,6 +12,7 @@ export declare abstract class BaseMsgMethod {
|
|
|
12
12
|
control: BaseApplianceManager;
|
|
13
13
|
mainEngine: MasterController;
|
|
14
14
|
get serviceColloctor(): import("../../collector").Collector | undefined;
|
|
15
|
+
private collectListener;
|
|
15
16
|
registerForMainEngine(emtType: InternalMsgEmitterType, control: BaseApplianceManager): this;
|
|
16
17
|
destroy(): void;
|
|
17
18
|
collectForLocalWorker(data: [IWorkerMessage, IqueryTask][], isSync?: boolean): void;
|
|
@@ -109,7 +109,7 @@ export declare abstract class LocalWork {
|
|
|
109
109
|
setWorkOptions(workId: string, opt: BaseShapeOptions): void;
|
|
110
110
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
111
111
|
workId: string;
|
|
112
|
-
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
112
|
+
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
113
113
|
setToolsOpt(opt: IActiveToolsDataType): void;
|
|
114
114
|
getToolsOpt(): IActiveToolsDataType | undefined;
|
|
115
115
|
clearWorkShapeNodeCache(workId: string): void;
|
|
@@ -28,11 +28,11 @@ export declare class TopLayerWorkForSubWorker implements TopLayerWork {
|
|
|
28
28
|
constructor(opt: ISubWorkerInitOption);
|
|
29
29
|
canUseTopLayer(toolsType: EToolsKey): toolsType is EToolsKey.LaserPen;
|
|
30
30
|
getWorkShape(workId: string): ILocalWorkItem | undefined;
|
|
31
|
-
createWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
31
|
+
createWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
32
32
|
setWorkOptions(workId: string, opt: BaseShapeOptions): void;
|
|
33
33
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
34
34
|
workId: string;
|
|
35
|
-
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools
|
|
35
|
+
}): import("../tools").ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | import("../tools/text").TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools/pencilEraser").PencilEraserShape | import("../tools").BitMapEraserShape | import("../tools").SelectorShape | import("../tools").ImageShape | undefined;
|
|
36
36
|
clearAllWorkShapesCache(): void;
|
|
37
37
|
setToolsOpt(opt: IActiveToolsDataType): void;
|
|
38
38
|
getToolsOpt(): IActiveToolsDataType | undefined;
|