@netless/appliance-plugin 1.1.17-beta.8 → 1.1.17-beta.9
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-p8Ghqw.js +502 -0
- package/cdn/subWorker-C1Gs0N.js +502 -0
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +16 -15
- package/dist/core/mainEngine.d.ts +4 -0
- package/dist/core/mainThread/subLocalThread.d.ts +3 -5
- package/dist/core/tools/pencil.d.ts +5 -0
- package/dist/core/tools/pencilEraser.d.ts +63 -38
- package/dist/core/utils/clipper.d.ts +8 -0
- package/dist/core/utils/polygonUtils.d.ts +8 -0
- package/dist/core/worker/fullWorkerLocal.d.ts +2 -2
- package/dist/fullWorker.js +211 -150
- package/dist/index-BSGcWUci.js +1 -0
- package/dist/{index-DZmnrj_U.mjs → index-BianYC4r.mjs} +208 -202
- package/dist/{index-BwYgPPna.mjs → index-CZ7SSEYU.mjs} +3999 -3787
- package/dist/index-DDtbIS6S.js +1 -0
- package/dist/plugin/baseApplianceManager.d.ts +0 -1
- package/dist/plugin/baseViewContainerManager.d.ts +9 -1
- package/dist/plugin/const.d.ts +1 -0
- package/dist/plugin/types.d.ts +11 -1
- package/dist/subWorker.js +211 -150
- package/package.json +2 -1
- package/cdn/fullWorker-Dma-pe.js +0 -441
- package/cdn/subWorker-1KsgJX.js +0 -441
- package/dist/index-D1nbiAD6.js +0 -1
- package/dist/index-DR0wLn0R.js +0 -1
|
@@ -89,7 +89,6 @@ export declare abstract class BaseApplianceManager {
|
|
|
89
89
|
};
|
|
90
90
|
/** 激活当前view容器*/
|
|
91
91
|
effectViewContainer(toolsKey: EToolsKey): void;
|
|
92
|
-
private onSelectorEffectListener;
|
|
93
92
|
internalSceneChange: (viewId: string, scenePath: string) => void;
|
|
94
93
|
internalCameraChange: (viewId: string, cameraOpt: ICameraOpt) => void;
|
|
95
94
|
/** 异步获取指定路径下绘制内容的区域大小 */
|
|
@@ -26,6 +26,7 @@ export declare abstract class ViewContainerManager {
|
|
|
26
26
|
mainView?: ViewInfo;
|
|
27
27
|
appViews: Map<string, ViewInfo>;
|
|
28
28
|
constructor(props: BaseSubWorkModuleProps);
|
|
29
|
+
get worker(): import("../core/mainEngine").MasterControlForWorker;
|
|
29
30
|
abstract getViewInitData(viewId: string): ViewWorkerOptions | undefined;
|
|
30
31
|
undoTickerStart: (id: number, viewId: string) => void;
|
|
31
32
|
addExcludeIds: (ids: string[], viewId: string) => void;
|
|
@@ -57,7 +58,7 @@ export declare abstract class ViewContainerManager {
|
|
|
57
58
|
showFloatBar(viewId: string, isShow: boolean, opt?: Partial<ShowFloatBarMsgValue>): void;
|
|
58
59
|
/** 是否显示浮动选框按钮 */
|
|
59
60
|
showFloatBarBtn(viewId: string, isShow: boolean): void;
|
|
60
|
-
/**
|
|
61
|
+
/** 激活指定文字编辑器 */
|
|
61
62
|
setActiveTextEditor(viewId: string, activeTextId?: string): void;
|
|
62
63
|
setActiveMiniMap(viewId: string, show?: boolean): void;
|
|
63
64
|
}
|
|
@@ -86,7 +87,9 @@ export declare abstract class AppViewDisplayerManager {
|
|
|
86
87
|
private cachePoint?;
|
|
87
88
|
private cacheCursorPoint?;
|
|
88
89
|
private active;
|
|
90
|
+
private toolsKey?;
|
|
89
91
|
constructor(viewId: string, control: ApplianceManagerLike, internalMsgEmitter: EventEmitter2);
|
|
92
|
+
get worker(): import("../core/mainEngine").MasterControlForWorker;
|
|
90
93
|
abstract setCanvassStyle(): void;
|
|
91
94
|
bindToolsClass(): void;
|
|
92
95
|
mountView(): void;
|
|
@@ -107,6 +110,7 @@ export declare abstract class AppViewDisplayerManager {
|
|
|
107
110
|
x: any;
|
|
108
111
|
y: any;
|
|
109
112
|
};
|
|
113
|
+
private checkConsumeCount;
|
|
110
114
|
protected mousedown: (e: MouseEvent) => void;
|
|
111
115
|
protected mousemove: (e: MouseEvent) => void;
|
|
112
116
|
protected mouseup: (e: MouseEvent) => void;
|
|
@@ -145,8 +149,10 @@ export declare abstract class MainViewDisplayerManager {
|
|
|
145
149
|
private cachePoint?;
|
|
146
150
|
private cacheCursorPoint?;
|
|
147
151
|
private active;
|
|
152
|
+
private toolsKey?;
|
|
148
153
|
constructor(control: ApplianceManagerLike, internalMsgEmitter: EventEmitter2);
|
|
149
154
|
abstract setCanvassStyle(): void;
|
|
155
|
+
get worker(): import("../core/mainEngine").MasterControlForWorker;
|
|
150
156
|
bindToolsClass(): void;
|
|
151
157
|
mountView(): void;
|
|
152
158
|
updateSize(): void;
|
|
@@ -165,6 +171,8 @@ export declare abstract class MainViewDisplayerManager {
|
|
|
165
171
|
x: any;
|
|
166
172
|
y: any;
|
|
167
173
|
};
|
|
174
|
+
/** 检查是否超过最大绘制数量 */
|
|
175
|
+
private checkConsumeCount;
|
|
168
176
|
protected mousedown: (e: MouseEvent) => void;
|
|
169
177
|
protected mousemove: (e: MouseEvent) => void;
|
|
170
178
|
protected mouseup: (e: MouseEvent) => void;
|
package/dist/plugin/const.d.ts
CHANGED
package/dist/plugin/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { BaseApplianceManager } from "./baseApplianceManager";
|
|
|
7
7
|
import type { AppViewDisplayerManager, MainViewDisplayerManager } from "./baseViewContainerManager";
|
|
8
8
|
import type { ApplianceSinglePlugin } from "./applianceSinglePlugin";
|
|
9
9
|
import type { ApplianceMultiPlugin } from "./applianceMultiPlugin";
|
|
10
|
-
import type { ECanvasContextType } from "../core/enum";
|
|
10
|
+
import type { ECanvasContextType, EvevtWorkState } from "../core/enum";
|
|
11
11
|
import type { AuthRenderScenesData } from "../core/renderCotrol";
|
|
12
12
|
import type { Plugin } from "../core/plugin";
|
|
13
13
|
import { TextEditorInfo } from "../component/textEditor/types";
|
|
@@ -359,6 +359,8 @@ export type BufferSizeOpt = {
|
|
|
359
359
|
export type BezierOpt = {
|
|
360
360
|
/** 合并处理贝塞尔曲线的单位时间,单位:毫秒 */
|
|
361
361
|
combineUnitTime: number;
|
|
362
|
+
/** 贝塞尔曲线最大绘制数量 */
|
|
363
|
+
maxDrawCount: number;
|
|
362
364
|
};
|
|
363
365
|
export type PencilEraserOpt = {
|
|
364
366
|
/** 是否使用位图方式局部橡皮擦 */
|
|
@@ -438,6 +440,10 @@ export type _ObjectTrue = true | {
|
|
|
438
440
|
[key: Uid]: true;
|
|
439
441
|
};
|
|
440
442
|
export type _ArrayTrue = true | Uid[];
|
|
443
|
+
export declare enum EForceStopReason {
|
|
444
|
+
/** 画笔过长 */
|
|
445
|
+
longPencil = "longPencil"
|
|
446
|
+
}
|
|
441
447
|
/**
|
|
442
448
|
* 公开的监听器类型
|
|
443
449
|
*/
|
|
@@ -452,6 +458,10 @@ export type PublicListener = {
|
|
|
452
458
|
}) => void;
|
|
453
459
|
/** 文字改变 */
|
|
454
460
|
textChange: (workId: string, target: HTMLElement, texts: string[], info: TextEditorInfo) => void;
|
|
461
|
+
/** 工作状态 */
|
|
462
|
+
workState: (workState: EvevtWorkState, viewId: string) => void;
|
|
463
|
+
/** 强制中断 */
|
|
464
|
+
forceStop: (reason: EForceStopReason, viewId: string) => void;
|
|
455
465
|
};
|
|
456
466
|
export type PublicEvent = keyof PublicListener;
|
|
457
467
|
export type PublicCallback<T extends PublicEvent> = PublicListener[T];
|