hoeditor-web 3.3.3-beta.18 → 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-CPX-XsP5.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
  }
@@ -4590,13 +4591,12 @@ class Caret {
4590
4591
  * @param y y坐标
4591
4592
  */
4592
4593
  moveTo(t, r, o) {
4593
- 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";
4594
- try {
4595
- setTimeout(() => {
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(() => {
4595
+ try {
4596
4596
  this.updateCaret(), this.setPage(t);
4597
- }, 300);
4598
- } catch {
4599
- }
4597
+ } catch {
4598
+ }
4599
+ }, 300);
4600
4600
  }
4601
4601
  }
4602
4602
  var OperType = /* @__PURE__ */ ((a) => (a[a.keyBoardInput = 0] = "keyBoardInput", a[a.keyBoardDelete = 1] = "keyBoardDelete", a[a.fontFormat = 2] = "fontFormat", a[a.fontSize = 3] = "fontSize", a[a.fontSizeEnlarge = 4] = "fontSizeEnlarge", a[a.fontSizeDecrease = 5] = "fontSizeDecrease", a[a.fontSuperScript = 6] = "fontSuperScript", a[a.fontSubScript = 7] = "fontSubScript", a[a.fontBold = 8] = "fontBold", a[a.fontItalic = 9] = "fontItalic", a[a.fontUnderline = 10] = "fontUnderline", a[a.fontStrikeout = 11] = "fontStrikeout", a[a.fontColor = 12] = "fontColor", a[a.fontBackColor = 13] = "fontBackColor", a[a.alignedLeft = 14] = "alignedLeft", a[a.alignedCenter = 15] = "alignedCenter", a[a.alignedRight = 16] = "alignedRight", a[a.alignedBothEnds = 17] = "alignedBothEnds", a[a.addIndent = 18] = "addIndent", a[a.decreaseIndent = 19] = "decreaseIndent", a[a.setLineHeight = 20] = "setLineHeight", a[a.insertTable = 21] = "insertTable", a[a.insertRowAbove = 22] = "insertRowAbove", a[a.insertRowBelow = 23] = "insertRowBelow", a[a.insertColLeft = 24] = "insertColLeft", a[a.insertColRight = 25] = "insertColRight", a[a.tableDeleteRows = 26] = "tableDeleteRows", a[a.tableDeleteCols = 27] = "tableDeleteCols", a[a.tableMergerCells = 28] = "tableMergerCells", a[a.tableUnMergerCells = 29] = "tableUnMergerCells", a[a.insertMedicalExpression = 30] = "insertMedicalExpression", a[a.updateMedicalExpression = 31] = "updateMedicalExpression", a[a.insertTextInputField = 32] = "insertTextInputField", a[a.updateTextInputField = 33] = "updateTextInputField", a[a.insertImage = 34] = "insertImage", a[a.insertBarcode = 35] = "insertBarcode", a[a.updateBarcode = 36] = "updateBarcode", a[a.insertQrcode = 37] = "insertQrcode", a[a.updateQrcode = 38] = "updateQrcode", a[a.insertRadioAndCheckBox = 39] = "insertRadioAndCheckBox", a[a.updateRadioAndCheckBox = 40] = "updateRadioAndCheckBox", a[a.insertDateTime = 41] = "insertDateTime", a[a.updateDateTime = 42] = "updateDateTime", a[a.insertDownList = 43] = "insertDownList", a[a.updateDownList = 44] = "updateDownList", a[a.insertSpecialChars = 45] = "insertSpecialChars", a[a.insertPageNum = 46] = "insertPageNum", a[a.insertSeparateChar = 47] = "insertSeparateChar", a[a.newFile = 48] = "newFile", a[a.openLocalFiles = 49] = "openLocalFiles", a[a.saveAsFile = 50] = "saveAsFile", a[a.openXml = 51] = "openXml", a[a.insertComment = 52] = "insertComment", a[a.deleteComment = 53] = "deleteComment", a[a.editComment = 54] = "editComment", a[a.clearTraces = 55] = "clearTraces", a[a.insertTableFormula = 56] = "insertTableFormula", a[a.insertSign = 57] = "insertSign", a[a.insertGestation = 58] = "insertGestation", a[a.insertRareChar = 59] = "insertRareChar", a[a.insertJumpButton = 60] = "insertJumpButton", a[a.insertPopQScore = 61] = "insertPopQScore", a[a.updatePopQScore = 62] = "updatePopQScore", a[a.insertSlider = 63] = "insertSlider", a[a.insertFigure = 64] = "insertFigure", a[a.updateFigure = 65] = "updateFigure", a[a.addFirstIndent = 66] = "addFirstIndent", a[a.decreaseFirstIndent = 67] = "decreaseFirstIndent", a))(OperType || {});
@@ -15198,7 +15198,7 @@ class DrawSignNode extends DrawCombineNode {
15198
15198
  }
15199
15199
  }
15200
15200
  }
15201
- const version = "3.3.3-beta.18";
15201
+ const version = "3.3.3-beta.19";
15202
15202
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15203
15203
  class SignNode extends BaseNode {
15204
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) {
@@ -65162,7 +65162,7 @@ WebPDecoder.prototype.getData = function() {
65162
65162
  (function(a) {
65163
65163
  function t() {
65164
65164
  return function() {
65165
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BPswcJjD.mjs");
65165
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DsCBjlID.mjs");
65166
65166
  }().catch(function(r) {
65167
65167
  return Promise.reject(new Error("Could not load canvg: " + r));
65168
65168
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-CPX-XsP5.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.18",
3
+ "version": "3.3.3-beta.19",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",