hoeditor-web 3.3.3-beta.15 → 3.3.3-beta.16
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-Cy8mLq0t.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -15301,7 +15301,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15301
15301
|
}
|
|
15302
15302
|
}
|
|
15303
15303
|
}
|
|
15304
|
-
const version = "3.3.3-beta.
|
|
15304
|
+
const version = "3.3.3-beta.16";
|
|
15305
15305
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15306
15306
|
class SignNode extends BaseNode {
|
|
15307
15307
|
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) {
|
|
@@ -27658,17 +27658,25 @@ class Print {
|
|
|
27658
27658
|
}
|
|
27659
27659
|
}
|
|
27660
27660
|
static async printPage(t) {
|
|
27661
|
-
|
|
27661
|
+
var s;
|
|
27662
|
+
let r = null, o = !0;
|
|
27663
|
+
try {
|
|
27664
|
+
r = (window.top || window).document.createElement("iframe");
|
|
27665
|
+
} catch {
|
|
27666
|
+
o = !1, r = window.document.createElement("iframe");
|
|
27667
|
+
}
|
|
27668
|
+
if (!r) return;
|
|
27669
|
+
const n = new Promise((l, c) => {
|
|
27662
27670
|
r.onload = function() {
|
|
27663
|
-
var
|
|
27671
|
+
var d, u;
|
|
27664
27672
|
try {
|
|
27665
|
-
(
|
|
27666
|
-
} catch (
|
|
27667
|
-
|
|
27673
|
+
(d = r == null ? void 0 : r.contentWindow) == null || d.focus(), (u = r == null ? void 0 : r.contentWindow) == null || u.print(), l("print");
|
|
27674
|
+
} catch (f) {
|
|
27675
|
+
c(f);
|
|
27668
27676
|
}
|
|
27669
27677
|
};
|
|
27670
27678
|
});
|
|
27671
|
-
r.id = "Ho_Editor_Print_Iframe", r.style.position = "fixed", r.style.right = "0", r.style.bottom = "0", r.style.width = "0", r.style.height = "0", r.style.border = "0", r.src = t.output("bloburl"), (window.top || window
|
|
27679
|
+
r.id = "Ho_Editor_Print_Iframe", r.style.position = "fixed", r.style.right = "0", r.style.bottom = "0", r.style.width = "0", r.style.height = "0", r.style.border = "0", r.src = t.output("bloburl"), o ? (s = window.top) == null || s.document.body.appendChild(r) : window.document.body.appendChild(r), await n;
|
|
27672
27680
|
}
|
|
27673
27681
|
static async printPageV2(t) {
|
|
27674
27682
|
var n;
|
|
@@ -65266,7 +65274,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65266
65274
|
(function(a) {
|
|
65267
65275
|
function t() {
|
|
65268
65276
|
return function() {
|
|
65269
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65277
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-qXnwv3w3.mjs");
|
|
65270
65278
|
}().catch(function(r) {
|
|
65271
65279
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65272
65280
|
}).then(function(r) {
|