hoeditor-web 3.3.3-beta.2 → 3.3.3-beta.4

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-Dko_H-WC.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-DSTl3HEA.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -15270,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
15270
15270
  }
15271
15271
  }
15272
15272
  }
15273
- const version = "3.3.3-beta.2";
15273
+ const version = "3.3.3-beta.4";
15274
15274
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15275
15275
  class SignNode extends BaseNode {
15276
15276
  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) {
@@ -27594,9 +27594,9 @@ class PrintStatus {
27594
27594
  }
27595
27595
  class Print {
27596
27596
  static openDataUriInWindow(t, r, o, n, s, l) {
27597
- var d, u;
27597
+ var d, u, f, p;
27598
27598
  if (window.emrPrintHandler) {
27599
- n ? (t.autoPrint(), window.emrPrintHandler({
27599
+ n && ((u = (d = window.top) == null ? void 0 : d.chrome) != null && u.webview) ? (t.autoPrint(), window.emrPrintHandler({
27600
27600
  code: 200,
27601
27601
  data: {
27602
27602
  printSilently: n,
@@ -27611,17 +27611,17 @@ class Print {
27611
27611
  }
27612
27612
  if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
27613
27613
  var c = "<html><title>" + r + '</title><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="' + t.output("bloburl") + '"></iframe></body></html>';
27614
- const f = window.open("", "modal", "width=" + (o + 400) + ",height=800");
27615
- f && f.document.write(c);
27614
+ const m = window.open("", "modal", "width=" + (o + 400) + ",height=800");
27615
+ m && m.document.write(c);
27616
27616
  } else
27617
27617
  try {
27618
27618
  if (window.localStorage.getItem("specialPrint") == "1") {
27619
- document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPageV2(t).catch((p) => {
27619
+ document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPageV2(t).catch((g) => {
27620
27620
  t.autoPrint(), t.output("dataurlnewwindow");
27621
27621
  });
27622
27622
  return;
27623
27623
  }
27624
- (u = (d = window.top) == null ? void 0 : d.chrome) != null && u.webview && n ? window.top.chrome.webview.postMessage({
27624
+ (p = (f = window.top) == null ? void 0 : f.chrome) != null && p.webview && n ? window.top.chrome.webview.postMessage({
27625
27625
  exec: "printpdf",
27626
27626
  data: {
27627
27627
  // showsetup: true, // 是否显示打印设置
@@ -27630,11 +27630,11 @@ class Print {
27630
27630
  paperSize: l == null ? void 0 : l.toUpperCase(),
27631
27631
  base64: t.output("datauristring").replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")
27632
27632
  }
27633
- }) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((p) => {
27633
+ }) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((g) => {
27634
27634
  t.autoPrint(), t.output("dataurlnewwindow");
27635
27635
  }));
27636
27636
  } catch {
27637
- document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((p) => {
27637
+ document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((g) => {
27638
27638
  t.autoPrint(), t.output("dataurlnewwindow");
27639
27639
  });
27640
27640
  }
@@ -65260,7 +65260,7 @@ WebPDecoder.prototype.getData = function() {
65260
65260
  (function(a) {
65261
65261
  function t() {
65262
65262
  return function() {
65263
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DXOlX84d.mjs");
65263
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BlV4pEqj.mjs");
65264
65264
  }().catch(function(r) {
65265
65265
  return Promise.reject(new Error("Could not load canvg: " + r));
65266
65266
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-Dko_H-WC.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-DSTl3HEA.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.2",
3
+ "version": "3.3.3-beta.4",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",