hoeditor-web 3.2.88 → 3.2.90

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/lib/hoeditor.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-D-Q51SHH.mjs";
2
+ import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-BECRqOGH.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -15166,7 +15166,7 @@ class DrawSignNode extends DrawCombineNode {
15166
15166
  }
15167
15167
  }
15168
15168
  }
15169
- const version = "3.2.88";
15169
+ const version = "3.2.90";
15170
15170
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15171
15171
  class SignNode extends BaseNode {
15172
15172
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
@@ -38071,7 +38071,7 @@ class DrawImageNode extends DrawCombineNode {
38071
38071
  b(this, "_imageManager");
38072
38072
  const f = HOEditorFactorys.instance().getFactory(r);
38073
38073
  this._imageManager = ImageManager.getInstance(r);
38074
- const p = f.vueController.getMainBounds(c, d, this.node.parentNode);
38074
+ const p = f.vueController.getMainBounds(c, d, 1, this.node.parentNode);
38075
38075
  this.dWidth = Number(p.imageWidth), this.dHeight = Number(p.imageHeight), this._imagePath = l, this._markImagePath = u, this._imageY = -this.dHeight, this.insertImage(), this._drawResize = new DrawResize(r, this.node, this, this._imageY);
38076
38076
  }
38077
38077
  get markImagePath() {
@@ -38106,12 +38106,13 @@ class DrawImageNode extends DrawCombineNode {
38106
38106
  };
38107
38107
  s.drawTree.paintStatus === PaintState$1.psPreview && s.isFixPrint ? setTimeout(() => c(), this._imageManager.THROTTLE_DELAY) : c();
38108
38108
  }, this.markImagePath != "" && this.insertMarkImage(), n.onerror = () => {
38109
- if (this._imageManager.onErrorCallBack(this), o(r), !r.node.isBackFill) {
38109
+ if (this._imageManager.onErrorCallBack(this), !r.node.isBackFill) {
38110
38110
  const c = this.node.previousLeaf().getNodePath();
38111
38111
  s.docTree.deleteNode(this.node);
38112
38112
  const d = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daModifyStyle, c, c);
38113
38113
  d.oldEndPath = c, d.afterChangePath = c, d.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(c, c, !0, !0), s.docTree.change(d);
38114
38114
  }
38115
+ o(r);
38115
38116
  };
38116
38117
  }));
38117
38118
  }
@@ -46068,9 +46069,7 @@ class StructureConvert {
46068
46069
  n.vueController.waitLoadImageCount(() => {
46069
46070
  const E = n.docTree.mainNodes.length - 1, T = n.docTree.getNodeLastPath(n.docTree.mainNodes[E]), I = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "main/0", T);
46070
46071
  n.docTree.change(I), setTimeout(() => {
46071
- setTimeout(() => {
46072
- n.firstLoad = !1;
46073
- }, 80), D(!0);
46072
+ n.firstLoad = !1, D(!0);
46074
46073
  }, 0);
46075
46074
  });
46076
46075
  });
@@ -48465,15 +48464,16 @@ class VueController {
48465
48464
  * @status number 0:设计模式 1: 编辑模式 2:打印预览 4: 审阅模式 5: 浏览(只读)模式 6 留痕 7留痕预览
48466
48465
  * @printStatus 0:打印鼠标点击位置 1:打印鼠标选中 2:打印全部 3:续打
48467
48466
  */
48468
- setEditorStatus(t, r) {
48469
- const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
48470
- o.drawTree.paintStatus = t, o.printStatus.printRange = 2, t == 2 && r != null ? o.printStatus.printRange = r : (o.printStatus.drawPrintRecord.clear(), o.printStatus.clearArea());
48471
- let n = 0;
48472
- t === 4 ? (n = 80, o.isHideComments = !1, o.commentParams.review = !0, o.commentParams.hideComment = !1) : (o.isHideComments = !0, o.commentParams.review = !1, o.commentParams.hideComment = !0, hoCreateComment.close()), n !== o.pageProperty.commentWidthMm && o.vueController.setPageProperty(JSON.stringify({ commentWidthMm: n }));
48473
- const s = o.structureConvert._superiorSign;
48474
- s.length > 0 && s[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0)), o.drawTree.rebuildAllDrawLine(!0);
48475
- const l = o.docTree.curDomRange.normalize();
48476
- this.bindTableLineDrag(l.startPath);
48467
+ setEditorStatus(t, r, o) {
48468
+ const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
48469
+ if (n.drawTree.paintStatus === t) return;
48470
+ n.drawTree.paintStatus = t, n.printStatus.printRange = 2, t == 2 && r != null ? n.printStatus.printRange = r : (n.printStatus.drawPrintRecord.clear(), n.printStatus.clearArea());
48471
+ let s = 0;
48472
+ t === 4 ? (s = 80, n.isHideComments = !1, n.commentParams.review = !0, n.commentParams.hideComment = !1) : (n.isHideComments = !0, n.commentParams.review = !1, n.commentParams.hideComment = !0, hoCreateComment.close()), s !== n.pageProperty.commentWidthMm && n.vueController.setPageProperty(JSON.stringify({ commentWidthMm: s }));
48473
+ const l = n.structureConvert._superiorSign;
48474
+ l.length > 0 && l[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0)), o && n.drawTree.rebuildAllDrawLine(!0);
48475
+ const c = n.docTree.curDomRange.normalize();
48476
+ this.bindTableLineDrag(c.startPath);
48477
48477
  }
48478
48478
  async hiddenMask(t) {
48479
48479
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -64911,7 +64911,7 @@ WebPDecoder.prototype.getData = function() {
64911
64911
  (function(a) {
64912
64912
  function t() {
64913
64913
  return function() {
64914
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D7135xlx.mjs");
64914
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-XMZrqZyO.mjs");
64915
64915
  }().catch(function(r) {
64916
64916
  return Promise.reject(new Error("Could not load canvg: " + r));
64917
64917
  }).then(function(r) {
@@ -86022,7 +86022,7 @@ const ToolTable = __component__$c.exports, _sfc_main$b = defineComponent({
86022
86022
  if (Object.keys(this.toolbarParams).length == 0)
86023
86023
  return;
86024
86024
  const r = this.defaultToolBarParams[t], o = this.defaultToolBarParams[a];
86025
- r !== o && (this.emitToolBarStatus(), this.vueController.setEditorStatus(o)), this.printStatus = "", this.isPrinted = !1;
86025
+ r !== o && (this.emitToolBarStatus(), this.vueController.setEditorStatus(o, void 0, !0)), this.printStatus = "", this.isPrinted = !1;
86026
86026
  }
86027
86027
  },
86028
86028
  mounted() {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-D-Q51SHH.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-BECRqOGH.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.2.88",
3
+ "version": "3.2.90",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",