hoeditor-web 3.2.88 → 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-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-BbijMYXs.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.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) {
@@ -46068,9 +46068,7 @@ class StructureConvert {
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
46070
  n.docTree.change(I), setTimeout(() => {
46071
- setTimeout(() => {
46072
- n.firstLoad = !1;
46073
- }, 80), D(!0);
46071
+ n.firstLoad = !1, D(!0);
46074
46072
  }, 0);
46075
46073
  });
46076
46074
  });
@@ -48465,15 +48463,16 @@ class VueController {
48465
48463
  * @status number 0:设计模式 1: 编辑模式 2:打印预览 4: 审阅模式 5: 浏览(只读)模式 6 留痕 7留痕预览
48466
48464
  * @printStatus 0:打印鼠标点击位置 1:打印鼠标选中 2:打印全部 3:续打
48467
48465
  */
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);
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);
48477
48476
  }
48478
48477
  async hiddenMask(t) {
48479
48478
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -64911,7 +64910,7 @@ WebPDecoder.prototype.getData = function() {
64911
64910
  (function(a) {
64912
64911
  function t() {
64913
64912
  return function() {
64914
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D7135xlx.mjs");
64913
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DOcYMDCU.mjs");
64915
64914
  }().catch(function(r) {
64916
64915
  return Promise.reject(new Error("Could not load canvg: " + r));
64917
64916
  }).then(function(r) {
@@ -86022,7 +86021,7 @@ const ToolTable = __component__$c.exports, _sfc_main$b = defineComponent({
86022
86021
  if (Object.keys(this.toolbarParams).length == 0)
86023
86022
  return;
86024
86023
  const r = this.defaultToolBarParams[t], o = this.defaultToolBarParams[a];
86025
- 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;
86026
86025
  }
86027
86026
  },
86028
86027
  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-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.88",
3
+ "version": "3.2.89",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",