@netless/appliance-plugin 1.1.36-beta.1 → 1.1.36-beta.2

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 (35) hide show
  1. package/READMA.zh-CN.md +11 -48
  2. package/README.md +11 -49
  3. package/dist/appliance-plugin.js +1 -1
  4. package/dist/appliance-plugin.mjs +1 -1
  5. package/dist/assets/{fullWorker-B_mvkoeW.js → fullWorker-D9xRgd20.js} +7 -7
  6. package/dist/assets/{subWorker-CRdsidWT.js → subWorker-DDz22vt8.js} +7 -7
  7. package/dist/{bridge-enxPG6qf.js → bridge-BKHuhuVK.js} +1 -1
  8. package/dist/bridge-g7eU9k12.mjs +67 -0
  9. package/dist/bridge.js +1 -1
  10. package/dist/bridge.mjs +1 -1
  11. package/dist/component/textEditor/manager.d.ts +0 -1
  12. package/dist/fullWorker.js +2 -2
  13. package/dist/index-B7w-GcID.js +1 -0
  14. package/dist/{index-D4z0hSjm.js → index-BLzjGoXh.js} +1 -1
  15. package/dist/{index-CcS9cKSp.js → index-BjEjHeEF.js} +1 -1
  16. package/dist/{index-BrJL-fin.mjs → index-C019qtsS.mjs} +14 -21
  17. package/dist/{index-DbI0V6BY.mjs → index-CfKLCV2y.mjs} +4858 -4987
  18. package/dist/{index-K9QVPOhV.mjs → index-L2uoKaSf.mjs} +14 -21
  19. package/dist/index-L470yte_.js +1 -0
  20. package/dist/{index-2On9v0Ff.mjs → index-LBCXcuGb.mjs} +4841 -4970
  21. package/dist/{index-CIjmeY9J.js → index-PebKJQE3.js} +1 -1
  22. package/dist/{index-Bm90lQii.js → index-Yc4OIUoM.js} +1 -1
  23. package/dist/{index-BZql6xgR.mjs → index-bMvJ4igq.mjs} +1 -1
  24. package/dist/{index-D8SnD90W.mjs → index-hePUiGEB.mjs} +1 -1
  25. package/dist/plugin/selectorApi.d.ts +7 -1
  26. package/dist/plugin/types.d.ts +8 -3
  27. package/dist/subWorker.js +2 -2
  28. package/dist/undo/index.d.ts +0 -1
  29. package/package.json +2 -4
  30. package/cdn/cdn.js +0 -1
  31. package/cdn/fullWorker-uAwmRi.js +0 -486
  32. package/cdn/subWorker-BVNpAC.js +0 -486
  33. package/dist/bridge-DYkH1J6p.mjs +0 -67
  34. package/dist/index-BSD0B_eV.js +0 -1
  35. package/dist/index-W9Jz9E04.js +0 -1
@@ -1,7 +1,7 @@
1
1
  var _t = Object.defineProperty;
2
2
  var Vt = (T, i, e) => i in T ? _t(T, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : T[i] = e;
3
3
  var y = (T, i, e) => Vt(T, typeof i != "symbol" ? i + "" : i, e);
4
- import { g as Je, i as et, _ as Pt, p as Se, e as Te, D as J, f as A, h as Re, j as Ve, k as se, P as E, l as W, c as k, s as qe, m as tt, n as Ne, o as st, r as qt, q as Ht, t as Me, u as U, a as w, b as x, v as O, w as G, x as ee, y as $, z as Ze, A as jt, B as Zt, C as Kt, F as Qt, G as Jt, H as es, I as ts, J as ss, K as X, L as os, M as ht, N as We, O as Wt, T as Be, Q as ye, R as is, U as Lt, W as rs, X as ns, Y as ce, Z as _, $ as ue, a0 as as, a1 as cs, a2 as ls, a3 as hs, a4 as be, a5 as ps, E as Y, a6 as pt, V as dt, S as ds } from "./index-2On9v0Ff.mjs";
4
+ import { g as Je, i as et, _ as Pt, p as Se, e as Te, D as J, f as A, h as Re, j as Ve, k as se, P as E, l as W, c as k, s as qe, m as tt, n as Ne, o as st, r as qt, q as Ht, t as Me, u as U, a as w, b as x, v as O, w as G, x as ee, y as $, z as Ze, A as jt, B as Zt, C as Kt, F as Qt, G as Jt, H as es, I as ts, J as ss, K as X, L as os, M as ht, N as We, O as Wt, T as Be, Q as ye, R as is, U as Lt, W as rs, X as ns, Y as ce, Z as _, $ as ue, a0 as as, a1 as cs, a2 as ls, a3 as hs, a4 as be, a5 as ps, E as Y, a6 as pt, V as dt, S as ds } from "./index-LBCXcuGb.mjs";
5
5
  import { Group as j, Path as we, Sprite as Ct, Rect as Ke, Polyline as he, Ellipse as us, Label as fs, Scene as ot, Layer as ms } from "spritejs";
6
6
  import ie from "clipper-lib";
7
7
  import it from "lineclip";
@@ -7447,37 +7447,30 @@ class no {
7447
7447
  }
7448
7448
  }
7449
7449
  async consumeFull(i) {
7450
- var s, o, r;
7450
+ var s;
7451
7451
  const e = this.setFullWork(i), t = i.ops && ye(i.ops);
7452
7452
  if (e) {
7453
- const n = (s = i.workId) == null ? void 0 : s.toString();
7454
- n && i.clearPreviewLocalWork && this.thread.localLayer.getElementsByName(n).forEach((c) => {
7455
- c.remove(), V(c, this.thread.localLayer.parent);
7453
+ const o = (s = i.workId) == null ? void 0 : s.toString();
7454
+ o && i.clearPreviewLocalWork && this.thread.localLayer.getElementsByName(o).forEach((n) => {
7455
+ n.remove(), V(n, this.thread.localLayer.parent);
7456
7456
  }), e.toolsType === k.BackgroundSVG ? e.consumeService({
7457
7457
  isFullWork: !0,
7458
- replaceId: n
7458
+ replaceId: o
7459
7459
  }) : e.toolsType === k.Image ? await e.consumeServiceAsync({
7460
7460
  isFullWork: !0,
7461
- replaceId: n,
7461
+ replaceId: o,
7462
7462
  worker: this
7463
7463
  }) : e.toolsType === k.Text ? await e.consumeServiceAsync({
7464
7464
  isFullWork: !0,
7465
- replaceId: n,
7465
+ replaceId: o,
7466
7466
  boxRect: this.thread.getSceneRect()
7467
7467
  }) : e.consumeService({
7468
7468
  op: t,
7469
7469
  isFullWork: !0,
7470
- replaceId: n
7470
+ replaceId: o
7471
7471
  }), i != null && i.updateNodeOpt && e.updataOptService(i.updateNodeOpt);
7472
- const a = [];
7473
- i.workId && this.workShapes.delete(i.workId.toString()), i.willSyncService && (i.toolsType === k.Image && console.info("[appliance-plugin]", {
7474
- target: "image-undo.mainThread.full.post",
7475
- viewId: this.thread.viewId,
7476
- workId: ((r = (o = i.workId) == null ? void 0 : o.toString) == null ? void 0 : r.call(o)) || i.workId,
7477
- needUndoTicker: i.needUndoTicker,
7478
- requestId: i.requestId,
7479
- emitEventType: i.emitEventType
7480
- }), a.push({
7472
+ const r = [];
7473
+ i.workId && this.workShapes.delete(i.workId.toString()), i.willSyncService && r.push({
7481
7474
  opt: i.opt,
7482
7475
  toolsType: i.toolsType,
7483
7476
  type: w.FullWork,
@@ -7488,15 +7481,15 @@ class no {
7488
7481
  needUndoTicker: i.needUndoTicker,
7489
7482
  requestId: i.requestId,
7490
7483
  emitEventType: i.emitEventType
7491
- })), i.isLockSentEventCursor && a.push({
7484
+ }), i.isLockSentEventCursor && r.push({
7492
7485
  type: w.None,
7493
7486
  isLockSentEventCursor: !0
7494
- }), i.needUndoTicker && a.push({
7487
+ }), i.needUndoTicker && r.push({
7495
7488
  type: w.None,
7496
7489
  needUndoTicker: i.needUndoTicker,
7497
7490
  emitEventType: i.emitEventType,
7498
7491
  requestId: i.requestId
7499
- }), a.length && (i.needUndoTicker, this.thread.post({ sp: a }));
7492
+ }), r.length && (i.needUndoTicker, this.thread.post({ sp: r }));
7500
7493
  }
7501
7494
  }
7502
7495
  async colloctEffectSelectWork(i) {