hoeditor-web 3.2.66 → 3.2.67
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-BRERsTmr.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -14966,7 +14966,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14966
14966
|
}
|
|
14967
14967
|
}
|
|
14968
14968
|
}
|
|
14969
|
-
const version = "3.2.
|
|
14969
|
+
const version = "3.2.67";
|
|
14970
14970
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14971
14971
|
class SignNode extends BaseNode {
|
|
14972
14972
|
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) {
|
|
@@ -31429,7 +31429,7 @@ class DocTree {
|
|
|
31429
31429
|
for (let I = 0; I < E; I++)
|
|
31430
31430
|
p = p + u[I].dWidth;
|
|
31431
31431
|
const T = _.charCount > 0 ? _.docWidth / _.charCount : 0;
|
|
31432
|
-
p = p + (d - _.startIndex + 1) * T + (d - _.startIndex) * D.letterSpacing;
|
|
31432
|
+
p = p + (d - _.startIndex + 1) * T + (d - _.startIndex) * ((D == null ? void 0 : D.letterSpacing) || 0);
|
|
31433
31433
|
}
|
|
31434
31434
|
const m = (_) => {
|
|
31435
31435
|
if (_ instanceof DrawLine)
|
|
@@ -52595,6 +52595,10 @@ class VueController {
|
|
|
52595
52595
|
}
|
|
52596
52596
|
});
|
|
52597
52597
|
}
|
|
52598
|
+
getPathByNode(t) {
|
|
52599
|
+
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), o = r.docTree.getNodeFirstPath(t), n = r.docTree.getNodeLastPath(t);
|
|
52600
|
+
return { startPath: o, endPath: n };
|
|
52601
|
+
}
|
|
52598
52602
|
changeIsModify(t = !1) {
|
|
52599
52603
|
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
52600
52604
|
r.contentIsModify.isModify = t;
|
|
@@ -64540,7 +64544,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64540
64544
|
(function(a) {
|
|
64541
64545
|
function t() {
|
|
64542
64546
|
return function() {
|
|
64543
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64547
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DlCTpdyH.mjs");
|
|
64544
64548
|
}().catch(function(r) {
|
|
64545
64549
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64546
64550
|
}).then(function(r) {
|
|
@@ -69796,6 +69800,21 @@ class DocController {
|
|
|
69796
69800
|
const l = t.docTree.getToPath(a, o);
|
|
69797
69801
|
s = new DomRange(this._hoEditorFactoryID, l, l);
|
|
69798
69802
|
}
|
|
69803
|
+
if (t.shiftKeyPress && t.drawTree.selectRange.spStart && ["down", "up"].includes(a)) {
|
|
69804
|
+
const l = setTimeout(() => {
|
|
69805
|
+
clearTimeout(l);
|
|
69806
|
+
const c = t.docTree.getToPath(a, n);
|
|
69807
|
+
if (!c) return;
|
|
69808
|
+
let d, u;
|
|
69809
|
+
if (a === "down")
|
|
69810
|
+
d = o, u = c;
|
|
69811
|
+
else {
|
|
69812
|
+
const f = NodePosition.treePathCompare(o, c);
|
|
69813
|
+
d = f >= 0 ? c : o, u = f >= 0 ? n : c;
|
|
69814
|
+
}
|
|
69815
|
+
t.vueController.setDomRange(d, u), t.drawTree.selectRange.spStart = StagePosition.getStagePosByPath(this._hoEditorFactoryID, d), t.drawTree.selectRange.spEnd = StagePosition.getStagePosByPath(this._hoEditorFactoryID, u);
|
|
69816
|
+
}, 0);
|
|
69817
|
+
}
|
|
69799
69818
|
t.docTree.curDomRange = s, t.drawTree.moveCaretToPath(s.endPath);
|
|
69800
69819
|
}
|
|
69801
69820
|
/**
|