hoeditor-web 3.3.3-beta.17 → 3.3.3-beta.19

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-BY_nkxbf.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-Bfzoo00D.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -4550,21 +4550,22 @@ class Caret {
4550
4550
  * @description 将光标从一个页挪到另一页
4551
4551
  */
4552
4552
  setPage(t) {
4553
- const r = HOEditorFactorys.instance().getFactory(this._hoEditoryFactoryID), o = r.drawTree.drawPages[t];
4553
+ var n;
4554
+ const r = HOEditorFactorys.instance().getFactory(this._hoEditoryFactoryID), o = (n = r.drawTree) == null ? void 0 : n.drawPages[t];
4554
4555
  if (o) {
4555
4556
  if (this._pageIndex !== t) {
4556
4557
  if (this._pageIndex >= 0) {
4557
- const n = r.drawTree.drawPages[this._pageIndex];
4558
- if (n && n.drawSelectLevel) {
4559
- const s = n.drawSelectLevel.selectCanvas;
4560
- s.parentNode && this.div_cursor.parentNode === s.parentNode && s.parentNode.removeChild(this.div_cursor);
4558
+ const s = r.drawTree.drawPages[this._pageIndex];
4559
+ if (s && s.drawSelectLevel) {
4560
+ const l = s.drawSelectLevel.selectCanvas;
4561
+ l.parentNode && this.div_cursor.parentNode === l.parentNode && l.parentNode.removeChild(this.div_cursor);
4561
4562
  }
4562
4563
  }
4563
4564
  this._pageIndex = t;
4564
4565
  }
4565
4566
  if (t >= 0 && o.drawSelectLevel) {
4566
- const n = o.drawSelectLevel.selectCanvas;
4567
- n.parentNode && n.parentNode.appendChild(this.div_cursor);
4567
+ const s = o.drawSelectLevel.selectCanvas;
4568
+ s.parentNode && s.parentNode.appendChild(this.div_cursor);
4568
4569
  }
4569
4570
  }
4570
4571
  }
@@ -4591,7 +4592,10 @@ class Caret {
4591
4592
  */
4592
4593
  moveTo(t, r, o) {
4593
4594
  this.div_cursor.className = "", this.x = r * DrawConfig.instance().scaleXY, this.y = o * DrawConfig.instance().scaleXY, this._aiInfo && (this._aiInfo.x = r * DrawConfig.instance().scaleXY, this._aiInfo.y = o * DrawConfig.instance().scaleXY, this._aiInfo.pageIndex = t, this._aiInfo.height = this._height), this.div_cursor.style.left = r * DrawConfig.instance().scaleXY + "px", this.div_cursor.style.top = o * DrawConfig.instance().scaleXY + "px", this.div_cursor.style.opacity = "1", setTimeout(() => {
4594
- this.updateCaret(), this.setPage(t);
4595
+ try {
4596
+ this.updateCaret(), this.setPage(t);
4597
+ } catch {
4598
+ }
4595
4599
  }, 300);
4596
4600
  }
4597
4601
  }
@@ -15194,7 +15198,7 @@ class DrawSignNode extends DrawCombineNode {
15194
15198
  }
15195
15199
  }
15196
15200
  }
15197
- const version = "3.3.3-beta.17";
15201
+ const version = "3.3.3-beta.19";
15198
15202
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15199
15203
  class SignNode extends BaseNode {
15200
15204
  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) {
@@ -65158,7 +65162,7 @@ WebPDecoder.prototype.getData = function() {
65158
65162
  (function(a) {
65159
65163
  function t() {
65160
65164
  return function() {
65161
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CerdVBMW.mjs");
65165
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DsCBjlID.mjs");
65162
65166
  }().catch(function(r) {
65163
65167
  return Promise.reject(new Error("Could not load canvg: " + r));
65164
65168
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-BY_nkxbf.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-Bfzoo00D.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.3.3-beta.17",
3
+ "version": "3.3.3-beta.19",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",