hoeditor-web 3.3.3-beta.4 → 3.3.3-beta.6
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-Bamw-tqy.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -9468,30 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9468
9468
|
this.clear(), this.boxAlign ? (this.drawBox(), !this.node.isTransToText && this.text.length > 0 && this.drawText(), this.node.isEditText && this.drawAppend()) : (this.text.length > 0 && this.drawText(), this.drawBox());
|
|
9469
9469
|
}
|
|
9470
9470
|
drawBox() {
|
|
9471
|
-
let r;
|
|
9472
|
-
this.textStyle.size <= 12
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
"☑",
|
|
9476
|
-
this.textStyle.getStyleKey(),
|
|
9471
|
+
let r, o = 0;
|
|
9472
|
+
this.textStyle.size <= 12 ? o = 18 : this.textStyle.size <= 16 ? o = 22 : this.textStyle.size <= 22 ? o = 24 : o = 42, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
|
|
9473
|
+
"þ",
|
|
9474
|
+
o.toString() + "px wingdings",
|
|
9475
|
+
// "☑",
|
|
9476
|
+
// this.textStyle.getStyleKey(),
|
|
9477
9477
|
this.textStyle.color
|
|
9478
9478
|
) : r = new createjs$1.Text(
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
"☐",
|
|
9482
|
-
this.textStyle.getStyleKey(),
|
|
9479
|
+
"¨",
|
|
9480
|
+
o.toString() + "px wingdings",
|
|
9481
|
+
// "☐",
|
|
9482
|
+
// this.textStyle.getStyleKey(),
|
|
9483
9483
|
this.textStyle.color
|
|
9484
9484
|
) : this.isSelected ? r = new createjs$1.Text(
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
"◉",
|
|
9488
|
-
this.textStyle.getStyleKey(),
|
|
9485
|
+
"¤",
|
|
9486
|
+
o.toString() + "px wingdings",
|
|
9487
|
+
// "◉",
|
|
9488
|
+
// this.textStyle.getStyleKey(),
|
|
9489
9489
|
this.textStyle.color
|
|
9490
9490
|
) : r = new createjs$1.Text(
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
"○",
|
|
9494
|
-
this.textStyle.getStyleKey(),
|
|
9491
|
+
"¡",
|
|
9492
|
+
o.toString() + "px wingdings",
|
|
9493
|
+
// "○",
|
|
9494
|
+
// this.textStyle.getStyleKey(),
|
|
9495
9495
|
this.textStyle.color
|
|
9496
9496
|
), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
|
|
9497
9497
|
}
|
|
@@ -15270,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15270
15270
|
}
|
|
15271
15271
|
}
|
|
15272
15272
|
}
|
|
15273
|
-
const version = "3.3.3-beta.
|
|
15273
|
+
const version = "3.3.3-beta.6";
|
|
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,8 @@ class PrintStatus {
|
|
|
27594
27594
|
}
|
|
27595
27595
|
class Print {
|
|
27596
27596
|
static openDataUriInWindow(t, r, o, n, s, l) {
|
|
27597
|
-
var d, u, f, p;
|
|
27598
27597
|
if (window.emrPrintHandler) {
|
|
27599
|
-
n
|
|
27598
|
+
n ? (t.autoPrint(), window.emrPrintHandler({
|
|
27600
27599
|
code: 200,
|
|
27601
27600
|
data: {
|
|
27602
27601
|
printSilently: n,
|
|
@@ -27611,17 +27610,17 @@ class Print {
|
|
|
27611
27610
|
}
|
|
27612
27611
|
if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
|
|
27613
27612
|
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
|
|
27615
|
-
|
|
27613
|
+
const d = window.open("", "modal", "width=" + (o + 400) + ",height=800");
|
|
27614
|
+
d && d.document.write(c);
|
|
27616
27615
|
} else
|
|
27617
27616
|
try {
|
|
27618
27617
|
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((
|
|
27618
|
+
document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPageV2(t).catch((u) => {
|
|
27620
27619
|
t.autoPrint(), t.output("dataurlnewwindow");
|
|
27621
27620
|
});
|
|
27622
27621
|
return;
|
|
27623
27622
|
}
|
|
27624
|
-
|
|
27623
|
+
n ? window.top.chrome.webview.postMessage({
|
|
27625
27624
|
exec: "printpdf",
|
|
27626
27625
|
data: {
|
|
27627
27626
|
// showsetup: true, // 是否显示打印设置
|
|
@@ -27630,11 +27629,11 @@ class Print {
|
|
|
27630
27629
|
paperSize: l == null ? void 0 : l.toUpperCase(),
|
|
27631
27630
|
base64: t.output("datauristring").replace(/^data:application\/pdf;filename=generated.pdf;base64,/, "")
|
|
27632
27631
|
}
|
|
27633
|
-
}) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((
|
|
27632
|
+
}) : (document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((u) => {
|
|
27634
27633
|
t.autoPrint(), t.output("dataurlnewwindow");
|
|
27635
27634
|
}));
|
|
27636
27635
|
} catch {
|
|
27637
|
-
document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((
|
|
27636
|
+
document.querySelector("#Ho_Editor_Print_Iframe") && document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe")), this.printPage(t).catch((u) => {
|
|
27638
27637
|
t.autoPrint(), t.output("dataurlnewwindow");
|
|
27639
27638
|
});
|
|
27640
27639
|
}
|
|
@@ -65260,7 +65259,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65260
65259
|
(function(a) {
|
|
65261
65260
|
function t() {
|
|
65262
65261
|
return function() {
|
|
65263
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65262
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Bl9cOdFt.mjs");
|
|
65264
65263
|
}().catch(function(r) {
|
|
65265
65264
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65266
65265
|
}).then(function(r) {
|