@netless/appliance-plugin 1.1.43 → 1.1.44-beta.0

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.
Files changed (63) hide show
  1. package/dist/appliance-plugin.js +1 -1
  2. package/dist/appliance-plugin.mjs +12 -12
  3. package/dist/{bridge-GmRa7-tp.js → bridge-CskJoX5M.js} +1 -1
  4. package/dist/{bridge-D30E9dr6.mjs → bridge-rKHCYJ6m.mjs} +1 -1
  5. package/dist/bridge.js +1 -1
  6. package/dist/bridge.mjs +1 -1
  7. package/dist/collector/types.d.ts +3 -0
  8. package/dist/component/textEditor/types.d.ts +5 -0
  9. package/dist/core/mainEngine.d.ts +10 -2
  10. package/dist/core/mainThread/snapshotThread.d.ts +3 -2
  11. package/dist/core/mainThread/subLocalThread.d.ts +5 -2
  12. package/dist/core/mainThread/subServiceThread.d.ts +1 -0
  13. package/dist/core/mainThread/subTopThread.d.ts +2 -2
  14. package/dist/core/tools/arrow.d.ts +423 -1
  15. package/dist/core/tools/base.d.ts +444 -2
  16. package/dist/core/tools/ellipse.d.ts +423 -1
  17. package/dist/core/tools/eraser.d.ts +846 -2
  18. package/dist/core/tools/eraserFaces.d.ts +2 -0
  19. package/dist/core/tools/laserPen.d.ts +846 -2
  20. package/dist/core/tools/pencil.d.ts +848 -2
  21. package/dist/core/tools/pencilEraser.d.ts +1692 -4
  22. package/dist/core/tools/pencilEraserBitMap.d.ts +2115 -5
  23. package/dist/core/tools/polygon.d.ts +423 -1
  24. package/dist/core/tools/rectangle.d.ts +423 -1
  25. package/dist/core/tools/selector.d.ts +2121 -7
  26. package/dist/core/tools/speechBalloon.d.ts +423 -1
  27. package/dist/core/tools/star.d.ts +423 -1
  28. package/dist/core/tools/straight.d.ts +423 -1
  29. package/dist/core/tools/text.d.ts +3 -3
  30. package/dist/core/tools/utils.d.ts +2 -2
  31. package/dist/core/types.d.ts +9 -0
  32. package/dist/core/utils/affineMatrix.d.ts +33 -0
  33. package/dist/core/utils/fontFamily.d.ts +8 -0
  34. package/dist/core/utils/index.d.ts +2 -0
  35. package/dist/core/utils/selectorMatrix.d.ts +4 -0
  36. package/dist/core/utils/selectorRefresh.d.ts +8 -0
  37. package/dist/core/utils/textRaster.d.ts +2 -0
  38. package/dist/core/vNodeManager.d.ts +1 -1
  39. package/dist/core/worker/base.d.ts +1 -1
  40. package/dist/core/worker/fullWorkerLocal.d.ts +1 -0
  41. package/dist/core/worker/fullWorkerService.d.ts +2 -1
  42. package/dist/core/worker/simpleWorker.d.ts +1 -1
  43. package/dist/core/worker/subWorkerTopLayer.d.ts +2 -2
  44. package/dist/fullWorker.js +148 -147
  45. package/dist/index-B0SB7Efu.js +570 -0
  46. package/dist/index-BIVRfc_x.js +570 -0
  47. package/dist/{index-CQuJ6lL1.mjs → index-BbBSxLGe.mjs} +473 -442
  48. package/dist/index-Bzg5OMdP.js +1 -0
  49. package/dist/{index-Ct5ShjRI.js → index-C-tBYq0K.js} +1 -1
  50. package/dist/{index-CatWUcZt.mjs → index-Ca2t53R7.mjs} +1 -1
  51. package/dist/{index-rDe1jjPM.mjs → index-ConirzkM.mjs} +1 -1
  52. package/dist/index-CsNG_bzI.js +1 -0
  53. package/dist/{index-C-pO2InQ.mjs → index-DWevrjrE.mjs} +12001 -11664
  54. package/dist/{index-DYDy0dd5.mjs → index-LcCU1tMV.mjs} +473 -442
  55. package/dist/{index-DGdruTPt.js → index-ZMuKk-bl.js} +1 -1
  56. package/dist/{index-CrJWLjuD.mjs → index-_3yxgNoj.mjs} +19490 -19158
  57. package/dist/plugin/baseApplianceManager.d.ts +2 -2
  58. package/dist/subWorker.js +133 -132
  59. package/package.json +58 -56
  60. package/dist/index-B44Av4kp.js +0 -1
  61. package/dist/index-CKtpWZ9L.js +0 -1
  62. package/dist/index-DLzvL8jo.js +0 -570
  63. package/dist/index-LmgcnMI8.js +0 -570
@@ -42,7 +42,429 @@ export declare class RectangleShape extends BaseShapeTool {
42
42
  };
43
43
  workId: string;
44
44
  toolsType: EToolsKey;
45
- opt: import("./utils").ShapeOptions;
45
+ opt: {
46
+ matrix: import("../utils").AffineMatrix;
47
+ fontColor: string;
48
+ fontSize: number;
49
+ text: string;
50
+ textAlign: import("../../component/textEditor").TextAlignType;
51
+ verticalAlign: import("../../component/textEditor").VerticalAlignType;
52
+ lineHeight?: number;
53
+ fontFamily?: string;
54
+ bold?: import("../../component/textEditor").FontWeightType;
55
+ italic?: import("../../component/textEditor").FontStyleType;
56
+ fontBgColor?: string;
57
+ underline?: boolean;
58
+ lineThrough?: boolean;
59
+ boxPoint?: [number, number];
60
+ boxSize?: [number, number];
61
+ workState?: EventWorkState;
62
+ uid?: string;
63
+ isOpacity?: boolean;
64
+ strokeColor?: string;
65
+ fillColor?: string;
66
+ vertex?: string;
67
+ fragment?: string;
68
+ syncUnitTime?: number;
69
+ zIndex?: number;
70
+ scale?: [number, number];
71
+ rotate?: number;
72
+ thickness?: number;
73
+ textOpt?: import("../../component/textEditor").TextOptions;
74
+ translate?: [number, number];
75
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
76
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
77
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
78
+ lineCap?: "square" | "round";
79
+ lineDash?: [number, number];
80
+ } | {
81
+ matrix: import("../utils").AffineMatrix;
82
+ thickness: number;
83
+ strokeColor: string;
84
+ strokeType: EStrokeType;
85
+ autoShape?: boolean;
86
+ previewLocalOnly?: boolean;
87
+ isOpacity?: boolean;
88
+ fontColor?: string;
89
+ fontBgColor?: string;
90
+ fillColor?: string;
91
+ vertex?: string;
92
+ fragment?: string;
93
+ syncUnitTime?: number;
94
+ zIndex?: number;
95
+ scale?: [number, number];
96
+ rotate?: number;
97
+ textOpt?: import("../../component/textEditor").TextOptions;
98
+ translate?: [number, number];
99
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
100
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
101
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
102
+ lineCap?: "square" | "round";
103
+ lineDash?: [number, number];
104
+ } | {
105
+ matrix: import("../utils").AffineMatrix;
106
+ thickness: number;
107
+ duration: number;
108
+ strokeColor: string;
109
+ strokeType: Omit<EStrokeType, "Stroke">;
110
+ isOpacity?: boolean;
111
+ fontColor?: string;
112
+ fontBgColor?: string;
113
+ fillColor?: string;
114
+ vertex?: string;
115
+ fragment?: string;
116
+ syncUnitTime?: number;
117
+ zIndex?: number;
118
+ scale?: [number, number];
119
+ rotate?: number;
120
+ textOpt?: import("../../component/textEditor").TextOptions;
121
+ translate?: [number, number];
122
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
123
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
124
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
125
+ lineCap?: "square" | "round";
126
+ lineDash?: [number, number];
127
+ } | {
128
+ matrix: import("../utils").AffineMatrix;
129
+ thickness: number;
130
+ isOpacity?: boolean;
131
+ fontColor?: string;
132
+ fontBgColor?: string;
133
+ strokeColor?: string;
134
+ fillColor?: string;
135
+ vertex?: string;
136
+ fragment?: string;
137
+ syncUnitTime?: number;
138
+ zIndex?: number;
139
+ scale?: [number, number];
140
+ rotate?: number;
141
+ textOpt?: import("../../component/textEditor").TextOptions;
142
+ translate?: [number, number];
143
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
144
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
145
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
146
+ lineCap?: "square" | "round";
147
+ lineDash?: [number, number];
148
+ } | {
149
+ matrix: import("../utils").AffineMatrix;
150
+ thickness: number;
151
+ maxImageWidth?: number;
152
+ maxImageHeight?: number;
153
+ removeOnDone?: boolean;
154
+ isOpacity?: boolean;
155
+ fontColor?: string;
156
+ fontBgColor?: string;
157
+ strokeColor?: string;
158
+ fillColor?: string;
159
+ vertex?: string;
160
+ fragment?: string;
161
+ syncUnitTime?: number;
162
+ zIndex?: number;
163
+ scale?: [number, number];
164
+ rotate?: number;
165
+ textOpt?: import("../../component/textEditor").TextOptions;
166
+ translate?: [number, number];
167
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
168
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
169
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
170
+ lineCap?: "square" | "round";
171
+ lineDash?: [number, number];
172
+ } | {
173
+ matrix: import("../utils").AffineMatrix;
174
+ thickness: number;
175
+ isOpacity?: boolean;
176
+ fontColor?: string;
177
+ fontBgColor?: string;
178
+ strokeColor?: string;
179
+ fillColor?: string;
180
+ vertex?: string;
181
+ fragment?: string;
182
+ syncUnitTime?: number;
183
+ zIndex?: number;
184
+ scale?: [number, number];
185
+ rotate?: number;
186
+ textOpt?: import("../../component/textEditor").TextOptions;
187
+ translate?: [number, number];
188
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
189
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
190
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
191
+ lineCap?: "square" | "round";
192
+ lineDash?: [number, number];
193
+ } | {
194
+ matrix: import("../utils").AffineMatrix;
195
+ thickness: number;
196
+ vertices: number;
197
+ innerVerticeStep: number;
198
+ innerRatio: number;
199
+ strokeColor: string;
200
+ fillColor: string;
201
+ strokeType: EStrokeType;
202
+ isOpacity?: boolean;
203
+ fontColor?: string;
204
+ fontBgColor?: string;
205
+ vertex?: string;
206
+ fragment?: string;
207
+ syncUnitTime?: number;
208
+ zIndex?: number;
209
+ scale?: [number, number];
210
+ rotate?: number;
211
+ textOpt?: import("../../component/textEditor").TextOptions;
212
+ translate?: [number, number];
213
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
214
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
215
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
216
+ lineCap?: "square" | "round";
217
+ lineDash?: [number, number];
218
+ } | {
219
+ matrix: import("../utils").AffineMatrix;
220
+ isOpacity?: boolean;
221
+ fontColor?: string;
222
+ fontBgColor?: string;
223
+ strokeColor?: string;
224
+ fillColor?: string;
225
+ vertex?: string;
226
+ fragment?: string;
227
+ syncUnitTime?: number;
228
+ zIndex?: number;
229
+ scale?: [number, number];
230
+ rotate?: number;
231
+ thickness?: number;
232
+ textOpt?: import("../../component/textEditor").TextOptions;
233
+ translate?: [number, number];
234
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
235
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
236
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
237
+ lineCap?: "square" | "round";
238
+ lineDash?: [number, number];
239
+ } | {
240
+ matrix: import("../utils").AffineMatrix;
241
+ thickness: number;
242
+ strokeColor: string;
243
+ strokeType: EStrokeType;
244
+ isOpacity?: boolean;
245
+ fontColor?: string;
246
+ fontBgColor?: string;
247
+ fillColor?: string;
248
+ vertex?: string;
249
+ fragment?: string;
250
+ syncUnitTime?: number;
251
+ zIndex?: number;
252
+ scale?: [number, number];
253
+ rotate?: number;
254
+ textOpt?: import("../../component/textEditor").TextOptions;
255
+ translate?: [number, number];
256
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
257
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
258
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
259
+ lineCap?: "square" | "round";
260
+ lineDash?: [number, number];
261
+ } | {
262
+ matrix: import("../utils").AffineMatrix;
263
+ thickness: number;
264
+ strokeColor: string;
265
+ fillColor: string;
266
+ strokeType: EStrokeType;
267
+ isOpacity?: boolean;
268
+ fontColor?: string;
269
+ fontBgColor?: string;
270
+ vertex?: string;
271
+ fragment?: string;
272
+ syncUnitTime?: number;
273
+ zIndex?: number;
274
+ scale?: [number, number];
275
+ rotate?: number;
276
+ textOpt?: import("../../component/textEditor").TextOptions;
277
+ translate?: [number, number];
278
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
279
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
280
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
281
+ lineCap?: "square" | "round";
282
+ lineDash?: [number, number];
283
+ } | {
284
+ matrix: import("../utils").AffineMatrix;
285
+ thickness: number;
286
+ strokeColor: string;
287
+ fillColor: string;
288
+ strokeType: EStrokeType;
289
+ isOpacity?: boolean;
290
+ fontColor?: string;
291
+ fontBgColor?: string;
292
+ vertex?: string;
293
+ fragment?: string;
294
+ syncUnitTime?: number;
295
+ zIndex?: number;
296
+ scale?: [number, number];
297
+ rotate?: number;
298
+ textOpt?: import("../../component/textEditor").TextOptions;
299
+ translate?: [number, number];
300
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
301
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
302
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
303
+ lineCap?: "square" | "round";
304
+ lineDash?: [number, number];
305
+ } | {
306
+ matrix: import("../utils").AffineMatrix;
307
+ thickness: number;
308
+ vertices: number;
309
+ strokeColor: string;
310
+ fillColor: string;
311
+ strokeType: EStrokeType;
312
+ isOpacity?: boolean;
313
+ fontColor?: string;
314
+ fontBgColor?: string;
315
+ vertex?: string;
316
+ fragment?: string;
317
+ syncUnitTime?: number;
318
+ zIndex?: number;
319
+ scale?: [number, number];
320
+ rotate?: number;
321
+ textOpt?: import("../../component/textEditor").TextOptions;
322
+ translate?: [number, number];
323
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
324
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
325
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
326
+ lineCap?: "square" | "round";
327
+ lineDash?: [number, number];
328
+ } | {
329
+ matrix: import("../utils").AffineMatrix;
330
+ thickness: number;
331
+ strokeColor: string;
332
+ strokeType: EStrokeType;
333
+ isOpacity?: boolean;
334
+ fontColor?: string;
335
+ fontBgColor?: string;
336
+ fillColor?: string;
337
+ vertex?: string;
338
+ fragment?: string;
339
+ syncUnitTime?: number;
340
+ zIndex?: number;
341
+ scale?: [number, number];
342
+ rotate?: number;
343
+ textOpt?: import("../../component/textEditor").TextOptions;
344
+ translate?: [number, number];
345
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
346
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
347
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
348
+ lineCap?: "square" | "round";
349
+ lineDash?: [number, number];
350
+ } | {
351
+ matrix: import("../utils").AffineMatrix;
352
+ thickness: number;
353
+ placement: import("../..").SpeechBalloonPlacement;
354
+ strokeColor: string;
355
+ fillColor: string;
356
+ strokeType: EStrokeType;
357
+ isOpacity?: boolean;
358
+ fontColor?: string;
359
+ fontBgColor?: string;
360
+ vertex?: string;
361
+ fragment?: string;
362
+ syncUnitTime?: number;
363
+ zIndex?: number;
364
+ scale?: [number, number];
365
+ rotate?: number;
366
+ textOpt?: import("../../component/textEditor").TextOptions;
367
+ translate?: [number, number];
368
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
369
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
370
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
371
+ lineCap?: "square" | "round";
372
+ lineDash?: [number, number];
373
+ } | {
374
+ matrix: import("../utils").AffineMatrix;
375
+ src: string;
376
+ type: import("..").EImageType;
377
+ uuid: string;
378
+ centerX: number;
379
+ centerY: number;
380
+ width: number;
381
+ height: number;
382
+ locked: boolean;
383
+ uniformScale?: boolean;
384
+ crossOrigin?: boolean | string;
385
+ isOpacity?: boolean;
386
+ fontColor?: string;
387
+ fontBgColor?: string;
388
+ strokeColor?: string;
389
+ fillColor?: string;
390
+ vertex?: string;
391
+ fragment?: string;
392
+ syncUnitTime?: number;
393
+ zIndex?: number;
394
+ scale?: [number, number];
395
+ rotate?: number;
396
+ thickness?: number;
397
+ textOpt?: import("../../component/textEditor").TextOptions;
398
+ translate?: [number, number];
399
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
400
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
401
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
402
+ lineCap?: "square" | "round";
403
+ lineDash?: [number, number];
404
+ } | {
405
+ matrix: import("../utils").AffineMatrix;
406
+ type: import("..").ESVGType.url;
407
+ src: string;
408
+ crossOrigin: boolean | string;
409
+ uuid: string;
410
+ centerX: number;
411
+ centerY: number;
412
+ width: number;
413
+ height: number;
414
+ locked: boolean;
415
+ uniformScale: boolean;
416
+ state?: unknown;
417
+ isOpacity?: boolean;
418
+ fontColor?: string;
419
+ fontBgColor?: string;
420
+ strokeColor?: string;
421
+ fillColor?: string;
422
+ vertex?: string;
423
+ fragment?: string;
424
+ syncUnitTime?: number;
425
+ zIndex?: number;
426
+ scale?: [number, number];
427
+ rotate?: number;
428
+ thickness?: number;
429
+ textOpt?: import("../../component/textEditor").TextOptions;
430
+ translate?: [number, number];
431
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
432
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
433
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
434
+ lineCap?: "square" | "round";
435
+ lineDash?: [number, number];
436
+ } | {
437
+ matrix: import("../utils").AffineMatrix;
438
+ type: import("..").ESVGType.markmap;
439
+ data: string;
440
+ uuid: string;
441
+ centerX: number;
442
+ centerY: number;
443
+ width: number;
444
+ height: number;
445
+ locked: boolean;
446
+ uniformScale: boolean;
447
+ state?: unknown;
448
+ isOpacity?: boolean;
449
+ fontColor?: string;
450
+ fontBgColor?: string;
451
+ strokeColor?: string;
452
+ fillColor?: string;
453
+ vertex?: string;
454
+ fragment?: string;
455
+ syncUnitTime?: number;
456
+ zIndex?: number;
457
+ scale?: [number, number];
458
+ rotate?: number;
459
+ thickness?: number;
460
+ textOpt?: import("../../component/textEditor").TextOptions;
461
+ translate?: [number, number];
462
+ eraserlines?: import("./pencilEraserBitMap").SerializerEraserLines;
463
+ eraserFaces?: import("./eraserFaces").SerializedEraserFaces | null;
464
+ doingLines?: import("./pencilEraserBitMap").SerializerEraserLines;
465
+ lineCap?: "square" | "round";
466
+ lineDash?: [number, number];
467
+ };
46
468
  rect: IRectType;
47
469
  type: EPostMessageType;
48
470
  dataType: EDataType;