hoeditor-web 3.2.72 → 3.2.74

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-5d3u1Wfg.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-WKh3cqDW.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -14966,7 +14966,7 @@ class DrawSignNode extends DrawCombineNode {
14966
14966
  }
14967
14967
  }
14968
14968
  }
14969
- const version = "3.2.72";
14969
+ const version = "3.2.74";
14970
14970
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14971
14971
  class SignNode extends BaseNode {
14972
14972
  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) {
@@ -27588,7 +27588,7 @@ class Print {
27588
27588
  const H = A == null ? void 0 : A.getSvg();
27589
27589
  H && (o == null || o.appendChild(H)), A = null;
27590
27590
  }
27591
- l && l.value++, I > 0 && ((T = M.drawDomLevel) == null || T.clearStage()), o.context2d = null;
27591
+ l && l.value++, I > 0 && ((T = M.drawDomLevel) == null || T.clearStage());
27592
27592
  }
27593
27593
  }
27594
27594
  if (c.printStatus.printRange !== 1 && c.printStatus.recordLastPosByPageIndex(u), n && Object.keys(n).length == 0) {
@@ -51126,15 +51126,16 @@ class VueController {
51126
51126
  * 清理病历文档树 触发浏览器内存回收
51127
51127
  */
51128
51128
  destoryEditor() {
51129
+ var o;
51129
51130
  const t = document.querySelectorAll("canvas");
51130
51131
  try {
51131
- document.querySelectorAll("#Ho_Editor_Print_Iframe").forEach((n) => n.remove()), t.forEach((n) => {
51132
- this.isDetached(n) && n.remove();
51132
+ (((o = window.top) == null ? void 0 : o.document.querySelectorAll("#Ho_Editor_Print_Iframe")) || []).forEach((s) => s.remove()), t.forEach((s) => {
51133
+ this.isDetached(s) && s.remove();
51133
51134
  });
51134
51135
  } catch {
51135
51136
  }
51136
51137
  let r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
51137
- r.drawTree._editor.destroy(), r.printController.clearFontsEvent(), r.clear(), r = null, HOEditorFactorys.instance().hoEditorFactoryMap.clear(), t.forEach((o) => o.remove());
51138
+ r.drawTree._editor.destroy(), r.printController.clearFontsEvent(), r.clear(), r = null, HOEditorFactorys.instance().hoEditorFactoryMap.clear(), t.forEach((n) => n.remove());
51138
51139
  }
51139
51140
  /**
51140
51141
  * 获取签名元素清理后的病历xml内容
@@ -64595,7 +64596,7 @@ WebPDecoder.prototype.getData = function() {
64595
64596
  (function(a) {
64596
64597
  function t() {
64597
64598
  return function() {
64598
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BJVhp947.mjs");
64599
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DpvDILKP.mjs");
64599
64600
  }().catch(function(r) {
64600
64601
  return Promise.reject(new Error("Could not load canvg: " + r));
64601
64602
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-5d3u1Wfg.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-WKh3cqDW.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.72",
3
+ "version": "3.2.74",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",