hoeditor-web 3.2.87 → 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-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-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.87";
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) {
@@ -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,11 @@ 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
+ setTimeout(() => {
46072
+ n.firstLoad = !1;
46073
+ }, 80), D(!0);
46074
+ }, 0);
46071
46075
  });
46072
46076
  });
46073
46077
  }
@@ -64907,7 +64911,7 @@ WebPDecoder.prototype.getData = function() {
64907
64911
  (function(a) {
64908
64912
  function t() {
64909
64913
  return function() {
64910
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BDUx85p2.mjs");
64914
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D7135xlx.mjs");
64911
64915
  }().catch(function(r) {
64912
64916
  return Promise.reject(new Error("Could not load canvg: " + r));
64913
64917
  }).then(function(r) {
@@ -72603,9 +72607,10 @@ class HOEditorFactory {
72603
72607
  b(this, "isFixPrint", !1);
72604
72608
  //开启打印优化
72605
72609
  b(this, "imageThrottleDelay", 100);
72610
+ //打印优化间隔
72611
+ b(this, "firstLoad", !1);
72606
72612
  this._hoEditorFactoryId = t;
72607
72613
  }
72608
- //打印优化间隔
72609
72614
  /**
72610
72615
  * Getter hoLocalStorage
72611
72616
  * @return {HoLocalStorage}
@@ -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-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.87",
3
+ "version": "3.2.88",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",