hoeditor-web 3.2.65 → 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,
|
|
@@ -13011,9 +13011,7 @@ class ParagraphNode extends BaseNode {
|
|
|
13011
13011
|
this._drawLines.length === 0 && (o = o + this.combineParagraph.topMarginPixes);
|
|
13012
13012
|
const n = this.getParagraphLeftWidth(), s = n[0], l = n[1], c = this._drawLines.length, d = new DrawLine(this._rootPath, this, c, l);
|
|
13013
13013
|
d.dTop = o, d.dLeft = s, d.x = this.combineParagraph.leftMarginPixes, d.x += s, d.dWidth = l - this.combineParagraph.leftMarginPixes - this.combineParagraph.rightMarginPixes, this._drawLines.push(d);
|
|
13014
|
-
const u = this.drootNodes.indexOf(this._drawLines[0]) + this._drawLines.length - 1;
|
|
13015
|
-
this.drootNodes.splice(u, 0, d);
|
|
13016
|
-
const f = r !== void 0 && r > -1 ? r : u;
|
|
13014
|
+
const u = this.drootNodes.indexOf(this._drawLines[0]) + this._drawLines.length - 1, f = r !== void 0 && r > -1 ? r : u;
|
|
13017
13015
|
return this.drootNodes.splice(f, 0, d), this._dHeight = this._dHeight + d.dHeight, d;
|
|
13018
13016
|
}
|
|
13019
13017
|
getNextDline(r) {
|
|
@@ -14968,7 +14966,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14968
14966
|
}
|
|
14969
14967
|
}
|
|
14970
14968
|
}
|
|
14971
|
-
const version = "3.2.
|
|
14969
|
+
const version = "3.2.67";
|
|
14972
14970
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14973
14971
|
class SignNode extends BaseNode {
|
|
14974
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) {
|
|
@@ -27626,7 +27624,7 @@ class Print {
|
|
|
27626
27624
|
r.saveGraphicsState();
|
|
27627
27625
|
const o = HOEditorFactorys.instance().getFactory(t);
|
|
27628
27626
|
if (o.watermarkText) {
|
|
27629
|
-
r.setFont("SimSun", "normal"), r.setFontSize(16), r.setTextColor(
|
|
27627
|
+
r.setFont("SimSun", "normal"), r.setFontSize(16), r.setTextColor(200, 200, 200), r.setGState(r.GState({ opacity: 0.1 }));
|
|
27630
27628
|
const n = r.internal.pageSize.getWidth(), s = r.internal.pageSize.getHeight(), l = 30, c = r.getTextWidth(o.watermarkText), d = l * Math.PI / 180, u = Math.sin(d), f = Math.cos(d), m = Math.abs(c * u) + Math.abs(r.getFontSize() * f), g = 160, y = r.internal.getNumberOfPages();
|
|
27631
27629
|
for (let w = 1; w <= y; w++) {
|
|
27632
27630
|
r.setPage(w);
|
|
@@ -31431,7 +31429,7 @@ class DocTree {
|
|
|
31431
31429
|
for (let I = 0; I < E; I++)
|
|
31432
31430
|
p = p + u[I].dWidth;
|
|
31433
31431
|
const T = _.charCount > 0 ? _.docWidth / _.charCount : 0;
|
|
31434
|
-
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);
|
|
31435
31433
|
}
|
|
31436
31434
|
const m = (_) => {
|
|
31437
31435
|
if (_ instanceof DrawLine)
|
|
@@ -52597,6 +52595,10 @@ class VueController {
|
|
|
52597
52595
|
}
|
|
52598
52596
|
});
|
|
52599
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
|
+
}
|
|
52600
52602
|
changeIsModify(t = !1) {
|
|
52601
52603
|
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
52602
52604
|
r.contentIsModify.isModify = t;
|
|
@@ -64542,7 +64544,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64542
64544
|
(function(a) {
|
|
64543
64545
|
function t() {
|
|
64544
64546
|
return function() {
|
|
64545
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64547
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DlCTpdyH.mjs");
|
|
64546
64548
|
}().catch(function(r) {
|
|
64547
64549
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64548
64550
|
}).then(function(r) {
|
|
@@ -69798,6 +69800,21 @@ class DocController {
|
|
|
69798
69800
|
const l = t.docTree.getToPath(a, o);
|
|
69799
69801
|
s = new DomRange(this._hoEditorFactoryID, l, l);
|
|
69800
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
|
+
}
|
|
69801
69818
|
t.docTree.curDomRange = s, t.drawTree.moveCaretToPath(s.endPath);
|
|
69802
69819
|
}
|
|
69803
69820
|
/**
|