@netless/appliance-plugin 1.1.12 → 1.1.13
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-DxZdUl.js → fullWorker-gIfxem.js} +111 -111
- package/cdn/{subWorker-5GNo7p.js → subWorker-BA8EkW.js} +111 -111
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/core/mainEngine.d.ts +8 -0
- package/dist/core/mainThread/subLocalThread.d.ts +1 -2
- package/dist/core/tools/arrow.d.ts +1 -1
- package/dist/core/tools/ellipse.d.ts +1 -1
- package/dist/core/tools/pencil.d.ts +1 -1
- package/dist/core/tools/polygon.d.ts +1 -1
- package/dist/core/tools/rectangle.d.ts +1 -1
- package/dist/core/tools/speechBalloon.d.ts +1 -1
- package/dist/core/tools/star.d.ts +1 -1
- package/dist/core/tools/straight.d.ts +1 -1
- package/dist/core/types.d.ts +4 -0
- package/dist/core/vNodeManager.d.ts +5 -1
- package/dist/core/worker/fullWorkerLocal.d.ts +1 -0
- package/dist/fullWorker.js +111 -111
- package/dist/{index-DKv5OrcQ.mjs → index-0fBM84zK.mjs} +1140 -1095
- package/dist/{index-DWoZQBgi.mjs → index-BbDR836g.mjs} +644 -618
- package/dist/index-BwLQzsnp.js +1 -0
- package/dist/index-Wi09G9p1.js +1 -0
- package/dist/plugin/baseApplianceManager.d.ts +3 -0
- package/dist/subWorker.js +111 -111
- package/package.json +1 -1
- package/dist/index-BTfw__T5.js +0 -1
- package/dist/index-CzXLwKrb.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-Wi09G9p1.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 { z as s, A as p, w as r, v as l, u as t, N as i, B as n, b as y, j as E, l as T, K as o, c as g, L as u, H as v, x as c, a as A, G as S, h as P, F as k, E as m, J as M, I as W, P as h, y as w, r as x, s as I } from "./index-
|
|
1
|
+
import { z as s, A as p, w as r, v as l, u as t, N as i, B as n, b as y, j as E, l as T, K as o, c as g, L as u, H as v, x as c, a as A, G as S, h as P, F as k, E as m, J as M, I as W, P as h, y as w, r as x, s as I } from "./index-0fBM84zK.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
p as ApplianceMultiPlugin,
|
|
@@ -107,6 +107,8 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
107
107
|
private subWorkerDrawCount;
|
|
108
108
|
private wokerDrawCount;
|
|
109
109
|
private maxDrawCount;
|
|
110
|
+
private _consumeCount;
|
|
111
|
+
private _postCount;
|
|
110
112
|
private reRenders;
|
|
111
113
|
private localWorkViewId?;
|
|
112
114
|
protected localPointsBatchData: Map<IworkId, {
|
|
@@ -138,6 +140,10 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
138
140
|
private getVNodeInfoResolveMap;
|
|
139
141
|
constructor(props: BaseSubWorkModuleProps);
|
|
140
142
|
destroy(): void;
|
|
143
|
+
private get consumeCount();
|
|
144
|
+
private set consumeCount(value);
|
|
145
|
+
private get postCount();
|
|
146
|
+
private set postCount(value);
|
|
141
147
|
private get viewContainerManager();
|
|
142
148
|
private get collector();
|
|
143
149
|
private get isRunSubWork();
|
|
@@ -145,6 +151,7 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
145
151
|
private get isUseZIndex();
|
|
146
152
|
private get isCanRecordUndoRedo();
|
|
147
153
|
private get isCanSentCursor();
|
|
154
|
+
private get isPostCountType();
|
|
148
155
|
private get isCanStartEventConsum();
|
|
149
156
|
init(): Promise<void>;
|
|
150
157
|
private useMainThread;
|
|
@@ -160,6 +167,7 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
160
167
|
getMaxDrawCount(): number;
|
|
161
168
|
setWorkDrawCount(num: number): void;
|
|
162
169
|
setSubWorkerDrawCount(num: number): void;
|
|
170
|
+
setConsumeCount(num: number): void;
|
|
163
171
|
setWorkerTasksqueueCount(num: number): void;
|
|
164
172
|
collectorSyncData(sp: IMainMessage[]): void;
|
|
165
173
|
private collectorAsyncData;
|
|
@@ -50,7 +50,6 @@ export interface SubLocalThread {
|
|
|
50
50
|
}>;
|
|
51
51
|
}) => void;
|
|
52
52
|
}): Promise<IMainMessage | undefined>;
|
|
53
|
-
workShapesDone(scenePath: string, serviceWork: SubServiceThread): void;
|
|
54
53
|
createLocalWork(data: IWorkerMessage): void;
|
|
55
54
|
}
|
|
56
55
|
export declare class SubLocalThreadImpl implements SubLocalThread {
|
|
@@ -64,10 +63,10 @@ export declare class SubLocalThreadImpl implements SubLocalThread {
|
|
|
64
63
|
private syncUnitTime;
|
|
65
64
|
private drawCount;
|
|
66
65
|
private drawWorkActiveId?;
|
|
66
|
+
private consumeCount;
|
|
67
67
|
constructor(opt: ISubThreadInitOption);
|
|
68
68
|
loadImageBitMap(msg: Pick<IWorkerMessage, 'toolsType' | 'opt' | 'workId'>): Promise<ImageBitmap | undefined>;
|
|
69
69
|
createLocalWork(data: IWorkerMessage): void;
|
|
70
|
-
workShapesDone(scenePath: string, serviceWork: SubServiceThread): void;
|
|
71
70
|
updateSelector(params: IUpdateSelectorPropsType & {
|
|
72
71
|
callback?: ((props: {
|
|
73
72
|
res?: IMainMessage | undefined;
|
|
@@ -12,7 +12,7 @@ export interface ArrowOptions extends BaseShapeOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class ArrowShape extends BaseShapeTool {
|
|
14
14
|
readonly canRotate: boolean;
|
|
15
|
-
|
|
15
|
+
scaleType: EScaleType;
|
|
16
16
|
readonly toolsType: EToolsKey;
|
|
17
17
|
protected tmpPoints: Array<Point2d>;
|
|
18
18
|
protected workOptions: ArrowOptions;
|
|
@@ -13,7 +13,7 @@ export interface EllipseOptions extends BaseShapeOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class EllipseShape extends BaseShapeTool {
|
|
15
15
|
readonly canRotate: boolean;
|
|
16
|
-
|
|
16
|
+
scaleType: EScaleType;
|
|
17
17
|
readonly toolsType: EToolsKey;
|
|
18
18
|
protected tmpPoints: Array<Point2d>;
|
|
19
19
|
protected workOptions: EllipseOptions;
|
|
@@ -12,7 +12,7 @@ export interface PencilOptions extends BaseShapeOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class PencilShape extends BaseShapeTool {
|
|
14
14
|
readonly canRotate: boolean;
|
|
15
|
-
|
|
15
|
+
scaleType: EScaleType;
|
|
16
16
|
readonly toolsType: EToolsKey;
|
|
17
17
|
private syncTimestamp;
|
|
18
18
|
private syncIndex;
|
|
@@ -14,7 +14,7 @@ export interface PolygonOptions extends BaseShapeOptions {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class PolygonShape extends BaseShapeTool {
|
|
16
16
|
readonly canRotate: boolean;
|
|
17
|
-
|
|
17
|
+
scaleType: EScaleType;
|
|
18
18
|
readonly toolsType: EToolsKey;
|
|
19
19
|
protected tmpPoints: Array<Point2d>;
|
|
20
20
|
protected workOptions: PolygonOptions;
|
|
@@ -13,7 +13,7 @@ export interface RectangleOptions extends BaseShapeOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class RectangleShape extends BaseShapeTool {
|
|
15
15
|
readonly canRotate: boolean;
|
|
16
|
-
|
|
16
|
+
scaleType: EScaleType;
|
|
17
17
|
readonly toolsType: EToolsKey;
|
|
18
18
|
protected tmpPoints: Array<Point2d>;
|
|
19
19
|
protected workOptions: RectangleOptions;
|
|
@@ -14,7 +14,7 @@ export interface SpeechBalloonOptions extends BaseShapeOptions {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class SpeechBalloonShape extends BaseShapeTool {
|
|
16
16
|
readonly canRotate: boolean;
|
|
17
|
-
|
|
17
|
+
scaleType: EScaleType;
|
|
18
18
|
readonly toolsType: EToolsKey;
|
|
19
19
|
readonly ratio: number;
|
|
20
20
|
protected tmpPoints: Array<Point2d>;
|
|
@@ -16,7 +16,7 @@ export interface StarOptions extends BaseShapeOptions {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class StarShape extends BaseShapeTool {
|
|
18
18
|
readonly canRotate: boolean;
|
|
19
|
-
|
|
19
|
+
scaleType: EScaleType;
|
|
20
20
|
readonly toolsType: EToolsKey;
|
|
21
21
|
protected tmpPoints: Array<Point2d>;
|
|
22
22
|
protected workOptions: StarOptions;
|
|
@@ -12,7 +12,7 @@ export interface StraightOptions extends BaseShapeOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class StraightShape extends BaseShapeTool {
|
|
14
14
|
readonly canRotate: boolean;
|
|
15
|
-
|
|
15
|
+
scaleType: EScaleType;
|
|
16
16
|
readonly toolsType: EToolsKey;
|
|
17
17
|
protected tmpPoints: Array<Point2d>;
|
|
18
18
|
protected workOptions: StraightOptions;
|
package/dist/core/types.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface ILayerOptionType {
|
|
|
47
47
|
width: number;
|
|
48
48
|
height: number;
|
|
49
49
|
bufferSize?: number;
|
|
50
|
+
contextType?: ECanvasContextType;
|
|
51
|
+
[key: string]: any;
|
|
50
52
|
}
|
|
51
53
|
export interface IUpdateNodeOpt {
|
|
52
54
|
scale?: [number, number];
|
|
@@ -127,6 +129,7 @@ export type IWorkerMessage = Omit<Partial<BaseCollectorReducerAction>, 'op'> & {
|
|
|
127
129
|
tasksqueue?: Map<string, IWorkerMessage>;
|
|
128
130
|
point?: [number, number];
|
|
129
131
|
disableEraseImage?: boolean;
|
|
132
|
+
disableEraseText?: boolean;
|
|
130
133
|
[key: string]: any;
|
|
131
134
|
};
|
|
132
135
|
export interface IRectType {
|
|
@@ -210,6 +213,7 @@ export interface IBatchMainMessage {
|
|
|
210
213
|
workerTasksqueueCount?: number;
|
|
211
214
|
workIds?: Set<string>;
|
|
212
215
|
viewId?: string;
|
|
216
|
+
consumeCount?: number;
|
|
213
217
|
}
|
|
214
218
|
export interface ICameraOpt {
|
|
215
219
|
centerX: number;
|
|
@@ -18,8 +18,12 @@ export declare class VNodeManager {
|
|
|
18
18
|
getLocalUid(): string | undefined;
|
|
19
19
|
setCanClearUids(clearUids?: _SetTrue): void;
|
|
20
20
|
getCanClearUids(): _SetTrue | undefined;
|
|
21
|
-
getCanEraserNodes(nodeMap: Map<string, BaseNodeMapItem>,
|
|
21
|
+
getCanEraserNodes(nodeMap: Map<string, BaseNodeMapItem>, disableErase: {
|
|
22
|
+
disableEraseImage?: boolean;
|
|
23
|
+
disableEraseText?: boolean;
|
|
24
|
+
}): Map<string, BaseNodeMapItem>;
|
|
22
25
|
getNodesByType(type: EToolsKey): Map<string, BaseNodeMapItem>;
|
|
26
|
+
gethasEraserNodes(): Map<string, BaseNodeMapItem>;
|
|
23
27
|
hasRenderNodes(): boolean;
|
|
24
28
|
has(name: string): boolean;
|
|
25
29
|
setInfo(name: string, info: Partial<BaseNodeMapItem>): void;
|
|
@@ -8,6 +8,7 @@ export declare class LocalWorkForFullWorker extends LocalWork {
|
|
|
8
8
|
private combineTimerId?;
|
|
9
9
|
private combineDrawResolve?;
|
|
10
10
|
private combineDrawActiveId?;
|
|
11
|
+
private consumeCount;
|
|
11
12
|
protected drawWorkActiveId?: string;
|
|
12
13
|
private effectSelectNodeData;
|
|
13
14
|
private batchEraserWorks;
|