hoeditor-web 3.2.86 → 3.2.88

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-DB2K_FHC.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-D-Q51SHH.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.86";
15169
+ const version = "3.2.88";
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) {
@@ -24488,8 +24488,11 @@ class TextInputFieldNode extends BaseCombineNode {
24488
24488
  getLeftWidth() {
24489
24489
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
24490
24490
  if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
24491
- const o = this.StartMarkNode.drawNodes[0], n = r.drawTree.getDrawLineByDNode(o), s = Math.floor(o.x) + r.docTree.combineParagraph.leftMarginPixes + 1, l = n.dWidth - s;
24492
- return [s, l, !0];
24491
+ const o = this.StartMarkNode.drawNodes[0], n = r.drawTree.getDrawLineByDNode(o);
24492
+ if (n) {
24493
+ const s = Math.floor(o.x) + r.docTree.combineParagraph.leftMarginPixes + 1, l = n.dWidth - s;
24494
+ return [s, l, !0];
24495
+ }
24493
24496
  }
24494
24497
  return r.docTree.getNodeParaNode(this).getParagraphLeftWidth();
24495
24498
  }
@@ -45950,7 +45953,7 @@ class StructureConvert {
45950
45953
  }
45951
45954
  openJson2Doc(t, r, o) {
45952
45955
  const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
45953
- if (r && r({ text: n.vueController.getDocTitle(), count: 0 }), t) {
45956
+ if (n.firstLoad = !0, r && r({ text: n.vueController.getDocTitle(), count: 0 }), t) {
45954
45957
  const s = (D, E) => {
45955
45958
  const T = D[0];
45956
45959
  T instanceof ParagraphNode && E instanceof ParagraphNode && (T.paraNo !== 0 && (E.paraNo = T.paraNo), T.customProperty && (E.customProperty = T.customProperty));
@@ -46064,7 +46067,11 @@ class StructureConvert {
46064
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) => {
46065
46068
  n.vueController.waitLoadImageCount(() => {
46066
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);
46067
- n.docTree.change(I), setTimeout(() => D(!0), 0);
46070
+ n.docTree.change(I), setTimeout(() => {
46071
+ setTimeout(() => {
46072
+ n.firstLoad = !1;
46073
+ }, 80), D(!0);
46074
+ }, 0);
46068
46075
  });
46069
46076
  });
46070
46077
  }
@@ -64904,7 +64911,7 @@ WebPDecoder.prototype.getData = function() {
64904
64911
  (function(a) {
64905
64912
  function t() {
64906
64913
  return function() {
64907
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DCqgClbh.mjs");
64914
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D7135xlx.mjs");
64908
64915
  }().catch(function(r) {
64909
64916
  return Promise.reject(new Error("Could not load canvg: " + r));
64910
64917
  }).then(function(r) {
@@ -72600,9 +72607,10 @@ class HOEditorFactory {
72600
72607
  b(this, "isFixPrint", !1);
72601
72608
  //开启打印优化
72602
72609
  b(this, "imageThrottleDelay", 100);
72610
+ //打印优化间隔
72611
+ b(this, "firstLoad", !1);
72603
72612
  this._hoEditorFactoryId = t;
72604
72613
  }
72605
- //打印优化间隔
72606
72614
  /**
72607
72615
  * Getter hoLocalStorage
72608
72616
  * @return {HoLocalStorage}
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-DB2K_FHC.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-D-Q51SHH.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.86",
3
+ "version": "3.2.88",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",