hoeditor-web 3.3.1-beta.0 → 3.3.1-beta.2
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-
|
|
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-Db_ZkJxD.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -15183,7 +15183,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15183
15183
|
}
|
|
15184
15184
|
}
|
|
15185
15185
|
}
|
|
15186
|
-
const version = "3.3.1-beta.
|
|
15186
|
+
const version = "3.3.1-beta.2";
|
|
15187
15187
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15188
15188
|
class SignNode extends BaseNode {
|
|
15189
15189
|
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) {
|
|
@@ -27551,6 +27551,10 @@ class PrintStatus {
|
|
|
27551
27551
|
class Print {
|
|
27552
27552
|
static openDataUriInWindow(t, r, o, n, s, l) {
|
|
27553
27553
|
var d, u;
|
|
27554
|
+
if (window.emrPrintHandler) {
|
|
27555
|
+
window.emrPrintHandler(t.output("bloburl"));
|
|
27556
|
+
return;
|
|
27557
|
+
}
|
|
27554
27558
|
if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
|
|
27555
27559
|
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>';
|
|
27556
27560
|
const f = window.open("", "modal", "width=" + (o + 400) + ",height=800");
|
|
@@ -27743,7 +27747,7 @@ class Print {
|
|
|
27743
27747
|
else G <= 1 && (r == null || r.deletePage(1));
|
|
27744
27748
|
C && (r == null || r.deletePage(1)), w == 0 && message.error(i18nHelper("04-001-009-EMR.3.3.482", null, "病历正文无内容"));
|
|
27745
27749
|
const J = u.vueController.getDocTitle() ? u.vueController.getDocTitle() : "电子病历文档";
|
|
27746
|
-
this.processGeneratedPDF(t, r), r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize);
|
|
27750
|
+
this.processGeneratedPDF(t, r), r && this.openDataUriInWindow(r, J, u.pageProperty.widthPixes, u.printSilently, p, u.pageProperty.pageSize, u);
|
|
27747
27751
|
} else if (f) {
|
|
27748
27752
|
if (f.childNodes.length === 0) {
|
|
27749
27753
|
message.info(i18nHelper("04-001-009-EMR.3.3.481", null, "无新增内容")), s && s("printend");
|
|
@@ -38152,7 +38156,7 @@ class DrawImageNode extends DrawCombineNode {
|
|
|
38152
38156
|
const r = this;
|
|
38153
38157
|
this._imageManager.addImageQueue(this, () => new Promise((o) => {
|
|
38154
38158
|
const n = new Image();
|
|
38155
|
-
process.env.NODE_ENV
|
|
38159
|
+
process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
|
|
38156
38160
|
const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
38157
38161
|
this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
|
|
38158
38162
|
const l = new createjs$1.Shape();
|
|
@@ -52409,7 +52413,7 @@ class VueController {
|
|
|
52409
52413
|
let v = m.getNewCellHeight() - 10;
|
|
52410
52414
|
u > v && (u = v);
|
|
52411
52415
|
const w = m.table.colInfos[m.row.indexOf(m)];
|
|
52412
|
-
w.colProperty.isSpecifyWidth && (d = w.colWidth - 10);
|
|
52416
|
+
w.colProperty.isSpecifyWidth && (d = w.colWidth - 10), r && (u = d * r / r);
|
|
52413
52417
|
}
|
|
52414
52418
|
if (s = {
|
|
52415
52419
|
width: Math.min(d, c.docWidth),
|
|
@@ -52420,7 +52424,7 @@ class VueController {
|
|
|
52420
52424
|
let f = t / s.width, p = r / s.height;
|
|
52421
52425
|
t > s.width && r <= s.height ? (s.imageWidth = s.width, s.imageHeight = Math.floor(r / f)) : t <= s.width && r > s.height ? (s.imageHeight = s.height, s.imageWidth = Math.floor(t / p)) : t > s.width && r > s.height ? f > p ? (s.imageWidth = Math.floor(t / f), s.imageHeight = Math.floor(r / f)) : (s.imageHeight = Math.floor(r / p), s.imageWidth = Math.floor(t / p)) : t <= s.width && r <= s.height && (s.imageHeight = r, s.imageWidth = t), o && o <= 1 && (s.imageWidth = s.imageWidth * o, s.imageHeight = s.imageHeight * o);
|
|
52422
52426
|
}
|
|
52423
|
-
return s;
|
|
52427
|
+
return (s.imageWidth == 0 || s.imageHeight == 0) && (s.imageWidth = 10, s.imageHeight = 10), s;
|
|
52424
52428
|
}
|
|
52425
52429
|
pageAllEmptyElements(t) {
|
|
52426
52430
|
if (t < 0) return !1;
|
|
@@ -65044,7 +65048,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65044
65048
|
(function(a) {
|
|
65045
65049
|
function t() {
|
|
65046
65050
|
return function() {
|
|
65047
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65051
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DFCVlrs9.mjs");
|
|
65048
65052
|
}().catch(function(r) {
|
|
65049
65053
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65050
65054
|
}).then(function(r) {
|