hoeditor-web 3.2.69 → 3.2.71

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-fW1sLxrn.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-C4qSmds8.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -14969,7 +14969,7 @@ class DrawSignNode extends DrawCombineNode {
14969
14969
  }
14970
14970
  }
14971
14971
  }
14972
- const version = "3.2.69";
14972
+ const version = "3.2.71";
14973
14973
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14974
14974
  class SignNode extends BaseNode {
14975
14975
  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) {
@@ -27473,7 +27473,7 @@ class Print {
27473
27473
  ye.style.display = "none", ye.href = le, ye.setAttribute("download", n ? n + ".html" : "电子病历文档.html"), document.body.appendChild(ye), ye.click(), setTimeout(() => ye.remove(), 100), s && s("printend");
27474
27474
  return;
27475
27475
  } else if (o === "pdf")
27476
- r == null || r.deletePage(1), this.processGeneratedPDF(t, r), r == null || r.save(n + ".pdf"), u.printStatus.drawPrintRecord.clear();
27476
+ r == null || r.deletePage(1), r == null || r.save(n + ".pdf"), u.printStatus.drawPrintRecord.clear();
27477
27477
  else if (u.isUseImagePrint) {
27478
27478
  const G = r.internal.getNumberOfPages() - w;
27479
27479
  if (G >= 2)
@@ -27482,7 +27482,7 @@ class Print {
27482
27482
  else G <= 1 && (r == null || r.deletePage(1));
27483
27483
  C && (r == null || r.deletePage(1)), w == 0 && message.error(i18nHelper("04-001-009-EMR.3.3.482", null, "病历正文无内容"));
27484
27484
  const J = u.vueController.getDocTitle() ? u.vueController.getDocTitle() : "电子病历文档";
27485
- this.processGeneratedPDF(t, r), r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize);
27485
+ r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize);
27486
27486
  } else if (f) {
27487
27487
  if (f.childNodes.length === 0) {
27488
27488
  message.info(i18nHelper("04-001-009-EMR.3.3.481", null, "无新增内容")), s && s("printend");
@@ -27624,10 +27624,9 @@ class Print {
27624
27624
  * @param PDF
27625
27625
  */
27626
27626
  static processGeneratedPDF(t, r) {
27627
- r.saveGraphicsState();
27628
27627
  const o = HOEditorFactorys.instance().getFactory(t);
27629
27628
  if (o.watermarkText) {
27630
- r.setFont("SimSun", "normal"), r.setFontSize(16), r.setTextColor(200, 200, 200), r.setGState(r.GState({ opacity: 0.1 }));
27629
+ r.saveGraphicsState(), r.setFont("SimSun", "normal"), r.setFontSize(16), r.setTextColor(200, 200, 200), r.setGState(r.GState({ opacity: 0.1 }));
27631
27630
  const n = r.internal.pageSize.getWidth(), s = r.internal.pageSize.getHeight(), l = 30, c = r.getTextWidth(o.watermarkText), d = l * Math.PI / 180, u = Math.sin(d), f = Math.cos(d), m = Math.abs(c * u) + Math.abs(r.getFontSize() * f), g = 160, y = r.internal.getNumberOfPages();
27632
27631
  for (let v = 1; v <= y; v++) {
27633
27632
  r.setPage(v);
@@ -27635,8 +27634,8 @@ class Print {
27635
27634
  for (let C = 20; C < n - 20; C += g)
27636
27635
  r.text(o.watermarkText, C, w, null, l);
27637
27636
  }
27637
+ r.restoreGraphicsState();
27638
27638
  }
27639
- r.restoreGraphicsState();
27640
27639
  }
27641
27640
  }
27642
27641
  class DrawJumpButton extends DrawCombineNode {
@@ -64574,7 +64573,7 @@ WebPDecoder.prototype.getData = function() {
64574
64573
  (function(a) {
64575
64574
  function t() {
64576
64575
  return function() {
64577
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D1lCo8il.mjs");
64576
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CKV_Gmw8.mjs");
64578
64577
  }().catch(function(r) {
64579
64578
  return Promise.reject(new Error("Could not load canvg: " + r));
64580
64579
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-fW1sLxrn.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-C4qSmds8.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.69",
3
+ "version": "3.2.71",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",