hoeditor-web 3.3.2-beta.6 → 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-
|
|
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.
|
|
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
|
-
|
|
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) {
|
|
@@ -38842,7 +38852,25 @@ const scaleXY = DrawConfig.instance().scale, defaultWidth = Math.floor(793 * sca
|
|
|
38842
38852
|
}
|
|
38843
38853
|
this.poperType = "datePoper";
|
|
38844
38854
|
} else Number(c.inputFieldType) === 1 && this.createInputProper(a, c, n, r);
|
|
38845
|
-
} else a.nodeType == NodeType.ntFigure
|
|
38855
|
+
} else if (a.nodeType == NodeType.ntFigure)
|
|
38856
|
+
this.poperType = "", this.$emit("dblNodeClick", { setActiveDoc: this.setActiveDocIndex, node: this.getCurrentSelectNode, type: "edit-ho-figure", paintStatus: n });
|
|
38857
|
+
else if (a.parentNode instanceof CellNode && a.nodeType !== NodeType.ntMedicalExpression && a.nodeType !== NodeType.ntImage)
|
|
38858
|
+
this.handleCellNode(a, a.parentNode, r, n);
|
|
38859
|
+
else if (a instanceof CellNode)
|
|
38860
|
+
this.handleForm("update");
|
|
38861
|
+
else if (a instanceof ImageNode) {
|
|
38862
|
+
if (this.poperType = "", !a.isBackFill) {
|
|
38863
|
+
const c = {
|
|
38864
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
38865
|
+
node: this.getCurrentSelectNode,
|
|
38866
|
+
type: "edit-image",
|
|
38867
|
+
paintStatus: n,
|
|
38868
|
+
bizCode: a.bizCode || ""
|
|
38869
|
+
};
|
|
38870
|
+
a.bizCode && (c.bizCode = a.bizCode, c.imageNode = a), this.$emit("dblNodeClick", c);
|
|
38871
|
+
}
|
|
38872
|
+
} else
|
|
38873
|
+
this.hoEditorProvider.setDblclickNodeValue(a, "dblclick");
|
|
38846
38874
|
}
|
|
38847
38875
|
},
|
|
38848
38876
|
updateSelectMark() {
|
|
@@ -65204,7 +65232,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65204
65232
|
(function(a) {
|
|
65205
65233
|
function t() {
|
|
65206
65234
|
return function() {
|
|
65207
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65235
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CjLUd2eH.mjs");
|
|
65208
65236
|
}().catch(function(r) {
|
|
65209
65237
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65210
65238
|
}).then(function(r) {
|