hoeditor-web 3.2.94 → 3.2.95
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-lkktgSNV.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.2.
|
|
15186
|
+
const version = "3.2.95";
|
|
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) {
|
|
@@ -31401,6 +31401,14 @@ class DocTree {
|
|
|
31401
31401
|
n.docTree.curParaNo
|
|
31402
31402
|
), d = this.insertNodeAfterPath(d, u)), n.docTree.insertNodeAfterPath(d, r), this.getNodeLastPath(c);
|
|
31403
31403
|
}
|
|
31404
|
+
isSameCombineStyle(t, r) {
|
|
31405
|
+
const o = t instanceof CombineStyle ? CombineStyle.whiteList() : CombineParagraph.whiteList();
|
|
31406
|
+
if (t === r) return !0;
|
|
31407
|
+
for (const n of o)
|
|
31408
|
+
if (t[n] !== r[n])
|
|
31409
|
+
return !1;
|
|
31410
|
+
return !0;
|
|
31411
|
+
}
|
|
31404
31412
|
/**
|
|
31405
31413
|
* 文字样式,段落样式比较
|
|
31406
31414
|
* @param 新样式
|
|
@@ -31412,14 +31420,14 @@ class DocTree {
|
|
|
31412
31420
|
if (t instanceof TextStyle) {
|
|
31413
31421
|
for (let o = 0; o < this.styles.length; o++) {
|
|
31414
31422
|
const n = this.styles[o];
|
|
31415
|
-
if (
|
|
31423
|
+
if (this.isSameCombineStyle(n.combineStyle, t.combineStyle))
|
|
31416
31424
|
return r = o, r;
|
|
31417
31425
|
}
|
|
31418
31426
|
r === -1 && (this.styles.push(t), r = this.styles.length - 1);
|
|
31419
31427
|
} else if (t instanceof Paragraph) {
|
|
31420
31428
|
for (let o = 0; o < this.paragraphs.length; o++) {
|
|
31421
31429
|
const n = this.paragraphs[o];
|
|
31422
|
-
if (
|
|
31430
|
+
if (this.isSameCombineStyle(n.combineStyle, t.combineStyle))
|
|
31423
31431
|
return r = o, r;
|
|
31424
31432
|
}
|
|
31425
31433
|
r === -1 && (this.paragraphs.push(t), r = this.paragraphs.length - 1);
|
|
@@ -64949,7 +64957,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64949
64957
|
(function(a) {
|
|
64950
64958
|
function t() {
|
|
64951
64959
|
return function() {
|
|
64952
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64960
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-aN5RyHua.mjs");
|
|
64953
64961
|
}().catch(function(r) {
|
|
64954
64962
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64955
64963
|
}).then(function(r) {
|