hoeditor-web 3.2.11 → 3.2.12

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-CABHryvZ.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-rt3RIHFJ.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -16047,7 +16047,7 @@ class DrawSignNode extends DrawCombineNode {
16047
16047
  }
16048
16048
  }
16049
16049
  }
16050
- const version$1 = "3.2.11";
16050
+ const version$1 = "3.2.12";
16051
16051
  var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
16052
16052
  class SignNode extends BaseNode {
16053
16053
  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) {
@@ -50349,10 +50349,10 @@ class VueController {
50349
50349
  const q = j(Y[W]), G = JSON.stringify(q), V = u.indexOf(G);
50350
50350
  V >= 0 ? b.set(W + 1, V) : G == '""' ? b.set(W + 1, b.get(0)) : (p.styles.paraStyle.push(q), u.push(G), b.set(W + 1, u.length - 1));
50351
50351
  }
50352
- if (m(N.main, w, b), p.main.length, p.pageSettingsTree = [], r[C][0]) {
50352
+ if (m(N.main, w, b), p.pageSettingsTree = [], r[C][0]) {
50353
50353
  m(N.header[0].subDocNodes, w, b);
50354
50354
  const W = o.gernerateCode.generateID("DocId");
50355
- N.header[0].beginPath = W, N.header[0].pageIndex = -1, p.header.push(N.header[0]), m(N.footer[0].subDocNodes, w, b), N.footer[0].beginPath = W, N.footer[0].pageIndex = -1, p.footer.push(N.footer[0]), Array.isArray(N.main) ? (N.main[0].printAsSinglePage = "true", N.main[0].docId = W) : (Array(N.main)[0].printAsSinglePage = "true", Array(N.main)[0].docId = W), p.pageSettingsTree.push(N.pageSettings), o.printStatus.pageSettingMap.set(W, {
50355
+ N.header[0].beginPath = W, N.header[0].pageIndex = -1, p.header.push(N.header[0]), m(N.footer[0].subDocNodes, w, b), N.footer[0].beginPath = W, N.footer[0].pageIndex = -1, (C == 1 || C > 2 && N.footer[0].subDocNodes.length > 1) && p.footer.push(N.footer[0]), Array.isArray(N.main) ? (N.main[0].printAsSinglePage = "true", N.main[0].docId = W) : (Array(N.main)[0].printAsSinglePage = "true", Array(N.main)[0].docId = W), p.pageSettingsTree.push(N.pageSettings), o.printStatus.pageSettingMap.set(W, {
50356
50356
  widthMm: Number(N.pageSettings.widthMm),
50357
50357
  heightMm: Number(N.pageSettings.heightMm),
50358
50358
  pageSize: N.pageSettings.pageSize,
@@ -51692,9 +51692,7 @@ class VueController {
51692
51692
  return a = this.getSelectRanges(s, o, c), a;
51693
51693
  }
51694
51694
  searchText(r) {
51695
- const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
51696
- o.docTree.findNodePositionByPath("main/0");
51697
- const s = o.docTree.curDomRange.normalize().npStart.node;
51695
+ const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), s = o.docTree.curDomRange.normalize().npStart.node;
51698
51696
  let c = s;
51699
51697
  s && (c = s.rootNodes[0]);
51700
51698
  const d = o.docTree.findNodes(c, r, 0, !1);
@@ -65337,7 +65335,7 @@ WebPDecoder.prototype.getData = function() {
65337
65335
  (function(l) {
65338
65336
  function r() {
65339
65337
  return function() {
65340
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CEopOtJG.mjs");
65338
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DJ6w8JT_.mjs");
65341
65339
  }().catch(function(o) {
65342
65340
  return Promise.reject(new Error("Could not load canvg: " + o));
65343
65341
  }).then(function(o) {
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-CABHryvZ.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-rt3RIHFJ.mjs";
2
2
  var un = {}, ln = {}, lr, hn;
3
3
  function Z() {
4
4
  if (hn) return lr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.2.11",
3
+ "version": "3.2.12",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",