hoeditor-web 3.3.3-beta.14 → 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,
|
|
@@ -11883,6 +11883,16 @@ class DrawArea extends DrawRect {
|
|
|
11883
11883
|
property: {}
|
|
11884
11884
|
};
|
|
11885
11885
|
}
|
|
11886
|
+
getBottomDline() {
|
|
11887
|
+
if (!this._bottomDline) {
|
|
11888
|
+
const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this._rootPath)[1][this._endDline];
|
|
11889
|
+
if (o instanceof DrawTable) {
|
|
11890
|
+
const n = o.getDrawTableByPageIndex(this._index);
|
|
11891
|
+
n && (this._bottomDline = n);
|
|
11892
|
+
} else o instanceof DrawLine && (this._bottomDline = o);
|
|
11893
|
+
}
|
|
11894
|
+
return this._bottomDline;
|
|
11895
|
+
}
|
|
11886
11896
|
isEndLineFinished() {
|
|
11887
11897
|
let r = !1;
|
|
11888
11898
|
return this._lastDrawLine instanceof DrawPageTable ? r = this._lastDrawLine.endRow === this._lastDrawLine.table.rowCount - 1 && this._lastDrawLine.isEndRowFinished() : r = !0, r;
|
|
@@ -15291,7 +15301,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15291
15301
|
}
|
|
15292
15302
|
}
|
|
15293
15303
|
}
|
|
15294
|
-
const version = "3.3.3-beta.
|
|
15304
|
+
const version = "3.3.3-beta.16";
|
|
15295
15305
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15296
15306
|
class SignNode extends BaseNode {
|
|
15297
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) {
|
|
@@ -27648,17 +27658,25 @@ class Print {
|
|
|
27648
27658
|
}
|
|
27649
27659
|
}
|
|
27650
27660
|
static async printPage(t) {
|
|
27651
|
-
|
|
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) => {
|
|
27652
27670
|
r.onload = function() {
|
|
27653
|
-
var
|
|
27671
|
+
var d, u;
|
|
27654
27672
|
try {
|
|
27655
|
-
(
|
|
27656
|
-
} catch (
|
|
27657
|
-
|
|
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);
|
|
27658
27676
|
}
|
|
27659
27677
|
};
|
|
27660
27678
|
});
|
|
27661
|
-
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;
|
|
27662
27680
|
}
|
|
27663
27681
|
static async printPageV2(t) {
|
|
27664
27682
|
var n;
|
|
@@ -65256,7 +65274,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65256
65274
|
(function(a) {
|
|
65257
65275
|
function t() {
|
|
65258
65276
|
return function() {
|
|
65259
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65277
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-qXnwv3w3.mjs");
|
|
65260
65278
|
}().catch(function(r) {
|
|
65261
65279
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65262
65280
|
}).then(function(r) {
|