hoeditor-web 3.3.2-beta.7 → 3.3.2-beta.8

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-CXc9w2_0.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-Bew_SzT0.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -15244,7 +15244,7 @@ class DrawSignNode extends DrawCombineNode {
15244
15244
  }
15245
15245
  }
15246
15246
  }
15247
- const version = "3.3.2-beta.7";
15247
+ const version = "3.3.2-beta.8";
15248
15248
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15249
15249
  class SignNode extends BaseNode {
15250
15250
  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) {
@@ -27570,7 +27570,17 @@ class Print {
27570
27570
  static openDataUriInWindow(t, r, o, n, s, l) {
27571
27571
  var d, u;
27572
27572
  if (window.emrPrintHandler) {
27573
- window.emrPrintHandler({ code: 200, data: t.output("bloburl") });
27573
+ n ? (t.autoPrint(), window.emrPrintHandler({
27574
+ code: 200,
27575
+ data: {
27576
+ printSilently: n,
27577
+ // showsetup: true, // 是否显示打印设置
27578
+ orientation: s == "l" ? "2" : "1",
27579
+ // 当前判断是字母l
27580
+ paperSize: l == null ? void 0 : l.toUpperCase(),
27581
+ base64: t.output("datauristring").replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")
27582
+ }
27583
+ })) : window.emrPrintHandler({ code: 200, data: t.output("bloburl") });
27574
27584
  return;
27575
27585
  }
27576
27586
  if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
@@ -65222,7 +65232,7 @@ WebPDecoder.prototype.getData = function() {
65222
65232
  (function(a) {
65223
65233
  function t() {
65224
65234
  return function() {
65225
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DF40VFA_.mjs");
65235
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CjLUd2eH.mjs");
65226
65236
  }().catch(function(r) {
65227
65237
  return Promise.reject(new Error("Could not load canvg: " + r));
65228
65238
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-CXc9w2_0.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-Bew_SzT0.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.2-beta.7",
3
+ "version": "3.3.2-beta.8",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",