hoeditor-web 3.2.87 → 3.2.89

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-CM-4yved.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-BbijMYXs.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -14838,10 +14838,10 @@ const hn = class hn {
14838
14838
  updateSign(t) {
14839
14839
  const r = t instanceof DrawSignNode, o = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID), n = o.drawPageTree.getMainRootArea(t);
14840
14840
  if (n && o.drawTree.drawPages[n.index]) {
14841
- const s = o.subDocManger.getHeaderFooterType(t.node.getNodePath());
14842
- (s === HeaderFooterType.hftHead && n != o.drawTree.drawPages[n.index].drawHeader || s === HeaderFooterType.hftFoot && n != o.drawTree.drawPages[n.index].drawFooter) && (r ? o.subDocManger.copySubDocToPages(n, n.index, s) : o.subDocManger.updateAllSameSubDoc(n.index, s, !1, !1));
14841
+ const l = o.subDocManger.getHeaderFooterType(t.node.getNodePath());
14842
+ (l === HeaderFooterType.hftHead && n != o.drawTree.drawPages[n.index].drawHeader || l === HeaderFooterType.hftFoot && n != o.drawTree.drawPages[n.index].drawFooter) && (r ? o.subDocManger.copySubDocToPages(n, n.index, l) : o.subDocManger.updateAllSameSubDoc(n.index, l, !1, !1));
14843
14843
  }
14844
- o.loadSignImageCount == 0 && o.loadImageCount == 0 && o.drawTree.paintStatus !== PaintState$1.psPreview && o.drawTree.rebuildArea("main", !1);
14844
+ !o.firstLoad && o.loadSignImageCount == 0 && o.loadImageCount == 0 && o.drawTree.paintStatus !== PaintState$1.psPreview && o.drawTree.rebuildArea("main", !1);
14845
14845
  }
14846
14846
  processImageQueue() {
14847
14847
  if (this._imageQueue.length > 0) {
@@ -15166,7 +15166,7 @@ class DrawSignNode extends DrawCombineNode {
15166
15166
  }
15167
15167
  }
15168
15168
  }
15169
- const version = "3.2.87";
15169
+ const version = "3.2.89";
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) {
@@ -45953,7 +45953,7 @@ class StructureConvert {
45953
45953
  }
45954
45954
  openJson2Doc(t, r, o) {
45955
45955
  const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
45956
- if (r && r({ text: n.vueController.getDocTitle(), count: 0 }), t) {
45956
+ if (n.firstLoad = !0, r && r({ text: n.vueController.getDocTitle(), count: 0 }), t) {
45957
45957
  const s = (D, E) => {
45958
45958
  const T = D[0];
45959
45959
  T instanceof ParagraphNode && E instanceof ParagraphNode && (T.paraNo !== 0 && (E.paraNo = T.paraNo), T.customProperty && (E.customProperty = T.customProperty));
@@ -46067,7 +46067,9 @@ class StructureConvert {
46067
46067
  }).length > 0 ? (n.isLockContentBeforeSign = !0, n.vueController.paintLockMask(!0)) : this._superiorSign.length > 0 && (n.drawTree.paintStatus === PaintState.psEdit || n.drawTree.paintStatus === PaintState.psReview ? n.vueController.hiddenMask(!1) : n.vueController.hiddenMask(!0)), n.vueController.getCurTextStyle(), r && r({ text: n.vueController.getDocTitle(), count: 0 }), n.isThrowError = !0, n.vueController.initTableSignLocked(), new Promise((D) => {
46068
46068
  n.vueController.waitLoadImageCount(() => {
46069
46069
  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
- n.docTree.change(I), setTimeout(() => D(!0), 0);
46070
+ n.docTree.change(I), setTimeout(() => {
46071
+ n.firstLoad = !1, D(!0);
46072
+ }, 0);
46071
46073
  });
46072
46074
  });
46073
46075
  }
@@ -48461,15 +48463,16 @@ class VueController {
48461
48463
  * @status number 0:设计模式 1: 编辑模式 2:打印预览 4: 审阅模式 5: 浏览(只读)模式 6 留痕 7留痕预览
48462
48464
  * @printStatus 0:打印鼠标点击位置 1:打印鼠标选中 2:打印全部 3:续打
48463
48465
  */
48464
- setEditorStatus(t, r) {
48465
- const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
48466
- o.drawTree.paintStatus = t, o.printStatus.printRange = 2, t == 2 && r != null ? o.printStatus.printRange = r : (o.printStatus.drawPrintRecord.clear(), o.printStatus.clearArea());
48467
- let n = 0;
48468
- 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 }));
48469
- const s = o.structureConvert._superiorSign;
48470
- s.length > 0 && s[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0)), o.drawTree.rebuildAllDrawLine(!0);
48471
- const l = o.docTree.curDomRange.normalize();
48472
- this.bindTableLineDrag(l.startPath);
48466
+ setEditorStatus(t, r, o) {
48467
+ const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
48468
+ if (n.drawTree.paintStatus === t) return;
48469
+ n.drawTree.paintStatus = t, n.printStatus.printRange = 2, t == 2 && r != null ? n.printStatus.printRange = r : (n.printStatus.drawPrintRecord.clear(), n.printStatus.clearArea());
48470
+ let s = 0;
48471
+ 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 }));
48472
+ const l = n.structureConvert._superiorSign;
48473
+ l.length > 0 && l[0].imgSrc != "" && (t === 1 || t === 4 ? this.hiddenMask(!1) : this.hiddenMask(!0)), o && n.drawTree.rebuildAllDrawLine(!0);
48474
+ const c = n.docTree.curDomRange.normalize();
48475
+ this.bindTableLineDrag(c.startPath);
48473
48476
  }
48474
48477
  async hiddenMask(t) {
48475
48478
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -64907,7 +64910,7 @@ WebPDecoder.prototype.getData = function() {
64907
64910
  (function(a) {
64908
64911
  function t() {
64909
64912
  return function() {
64910
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BDUx85p2.mjs");
64913
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DOcYMDCU.mjs");
64911
64914
  }().catch(function(r) {
64912
64915
  return Promise.reject(new Error("Could not load canvg: " + r));
64913
64916
  }).then(function(r) {
@@ -72603,9 +72606,10 @@ class HOEditorFactory {
72603
72606
  b(this, "isFixPrint", !1);
72604
72607
  //开启打印优化
72605
72608
  b(this, "imageThrottleDelay", 100);
72609
+ //打印优化间隔
72610
+ b(this, "firstLoad", !1);
72606
72611
  this._hoEditorFactoryId = t;
72607
72612
  }
72608
- //打印优化间隔
72609
72613
  /**
72610
72614
  * Getter hoLocalStorage
72611
72615
  * @return {HoLocalStorage}
@@ -86017,7 +86021,7 @@ const ToolTable = __component__$c.exports, _sfc_main$b = defineComponent({
86017
86021
  if (Object.keys(this.toolbarParams).length == 0)
86018
86022
  return;
86019
86023
  const r = this.defaultToolBarParams[t], o = this.defaultToolBarParams[a];
86020
- r !== o && (this.emitToolBarStatus(), this.vueController.setEditorStatus(o)), this.printStatus = "", this.isPrinted = !1;
86024
+ r !== o && (this.emitToolBarStatus(), this.vueController.setEditorStatus(o, void 0, !0)), this.printStatus = "", this.isPrinted = !1;
86021
86025
  }
86022
86026
  },
86023
86027
  mounted() {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-CM-4yved.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-BbijMYXs.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.87",
3
+ "version": "3.2.89",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",