hoeditor-web 3.2.6 → 3.2.7
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-BCvDd_5r.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -9716,7 +9716,7 @@ P.toPower = P.pow = function(l) {
|
|
|
9716
9716
|
return a = intPow(u, d, o, n), l.s < 0 ? new u(1).div(a) : finalise(a, n, s);
|
|
9717
9717
|
if (c = d.s, c < 0) {
|
|
9718
9718
|
if (r < l.d.length - 1) return new u(NaN);
|
|
9719
|
-
if (l.d[r] & 1
|
|
9719
|
+
if ((l.d[r] & 1) == 0 && (c = 1), d.e == 0 && d.d[0] == 1 && d.d.length == 1)
|
|
9720
9720
|
return d.s = c, d;
|
|
9721
9721
|
}
|
|
9722
9722
|
return o = mathpow(+d, f), r = o == 0 || !isFinite(o) ? mathfloor(f * (Math.log("0." + digitsToString(d.d)) / Math.LN10 + d.e + 1)) : new u(o + "").e, r > u.maxE + 1 || r < u.minE - 1 ? new u(r > 0 ? c / 0 : 0) : (external = !1, u.rounding = d.s = 1, o = Math.min(12, (r + "").length), a = naturalExponential(l.times(naturalLogarithm(d, n + o)), n), a.d && (a = finalise(a, n + 5, 1), checkRoundingDigits(a.d, n, s) && (r = n + 10, a = finalise(naturalExponential(l.times(naturalLogarithm(d, r + o)), r), r + 5, 1), +digitsToString(a.d).slice(n + 1, n + 15) + 1 == 1e14 && (a = finalise(a, n + 1, 0)))), a.s = c, external = !0, u.rounding = s, finalise(a, n, s));
|
|
@@ -11597,7 +11597,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
11597
11597
|
clacBMI() {
|
|
11598
11598
|
let r = " ";
|
|
11599
11599
|
const o = this.getParentCell().table, n = this.formulaStr.split(",");
|
|
11600
|
-
n.length < 2 &&
|
|
11600
|
+
n.length < 2 && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.444", null, "体重和身高对应的单元格编号传入有误:") + this.formulaStr);
|
|
11601
11601
|
const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
|
|
11602
11602
|
if (a >= 0 && s >= 0 && c >= 0 && d >= 0) {
|
|
11603
11603
|
if (!o.rows[a] || !o.rows[c]) return r;
|
|
@@ -11614,7 +11614,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
11614
11614
|
clacLaborProcess() {
|
|
11615
11615
|
let r = " ";
|
|
11616
11616
|
const o = this.getParentCell().table, n = this.formulaStr.split(",");
|
|
11617
|
-
n.length < 2 &&
|
|
11617
|
+
n.length < 2 && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.443", null, "单元格编号传入有误:") + this.formulaStr);
|
|
11618
11618
|
const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
|
|
11619
11619
|
let u = -1, f = -1;
|
|
11620
11620
|
if (n.length === 3 && ([u, f] = this.getRowColByCellAdress(n[2])), a >= 0 && s >= 0 && c >= 0 && d >= 0) {
|
|
@@ -11829,7 +11829,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
11829
11829
|
let r = " ";
|
|
11830
11830
|
const o = this.getParentCell().table, n = this.formulaStr.split(",");
|
|
11831
11831
|
if (n.length < 2)
|
|
11832
|
-
return
|
|
11832
|
+
return message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.440", null, "开始时间和结束时间对应的单元格编号传入有误:") + this.formulaStr), r;
|
|
11833
11833
|
const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
|
|
11834
11834
|
if (a >= 0 && s >= 0 && c >= 0 && d >= 0) {
|
|
11835
11835
|
if (!o.rows[a] || !o.rows[c]) return r;
|
|
@@ -11844,18 +11844,11 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
11844
11844
|
let E = Math.floor(N / (1e3 * 60 * 60 * 24));
|
|
11845
11845
|
return E == 0 && (E = 1), E.toString() + /* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.35", null, "天");
|
|
11846
11846
|
} else {
|
|
11847
|
-
const w = y.getTime(),
|
|
11848
|
-
let
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
const L = (+("0." + O[1]) * 60).toFixed(5).toString().split(".");
|
|
11853
|
-
A = Number(L[0]);
|
|
11854
|
-
}
|
|
11855
|
-
}
|
|
11856
|
-
F > 0 && (D += F * 24);
|
|
11857
|
-
let R = "";
|
|
11858
|
-
return D > 0 && (R += D.toString() + "小时"), A > 0 && (R += A.toString() + "分钟"), R;
|
|
11847
|
+
const w = y.getTime(), N = (m.getTime() - w) / (1e3 * 3600 * 24), E = Math.floor(N);
|
|
11848
|
+
let F = Math.floor((N - E) * 24), D = Math.floor(((N - E) * 24 - F) * 60);
|
|
11849
|
+
E > 0 && (F += E * 24);
|
|
11850
|
+
let A = "";
|
|
11851
|
+
return F > 0 && (A += F.toString() + "小时"), D > 0 && (A += D.toString() + "分钟"), F == 0 && D == 0 && (A = "0"), A;
|
|
11859
11852
|
}
|
|
11860
11853
|
}
|
|
11861
11854
|
}
|
|
@@ -11865,7 +11858,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
11865
11858
|
clacIdealWeight() {
|
|
11866
11859
|
let r = " ";
|
|
11867
11860
|
const o = this.getParentCell().table;
|
|
11868
|
-
this.formulaStr == "" &&
|
|
11861
|
+
this.formulaStr == "" && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.439", null, "身高的单元格编号传入有误:") + this.formulaStr);
|
|
11869
11862
|
let n = "", a = !1;
|
|
11870
11863
|
const s = this.formulaStr.split(",");
|
|
11871
11864
|
s.length === 1 ? n = this.formulaStr : (n = s[0], a = s[1] === "true");
|
|
@@ -16054,7 +16047,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
16054
16047
|
}
|
|
16055
16048
|
}
|
|
16056
16049
|
}
|
|
16057
|
-
const version$1 = "3.2.
|
|
16050
|
+
const version$1 = "3.2.7";
|
|
16058
16051
|
var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
|
|
16059
16052
|
class SignNode extends BaseNode {
|
|
16060
16053
|
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) {
|
|
@@ -57955,7 +57948,7 @@ var inherit = function l(r, o) {
|
|
|
57955
57948
|
}, getBit = jsPDFAPI.__acroform__.getBit = function(l, r) {
|
|
57956
57949
|
if (isNaN(l) || isNaN(r))
|
|
57957
57950
|
throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
|
|
57958
|
-
return l & 1 << r ?
|
|
57951
|
+
return (l & 1 << r) === 0 ? 0 : 1;
|
|
57959
57952
|
}, getBitForPdf = jsPDFAPI.__acroform__.getBitForPdf = function(l, r) {
|
|
57960
57953
|
if (isNaN(l) || isNaN(r))
|
|
57961
57954
|
throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
|
|
@@ -62622,7 +62615,7 @@ function GifReader(l) {
|
|
|
62622
62615
|
case 249:
|
|
62623
62616
|
if (l[r++] !== 4 || l[r + 4] !== 0) throw new Error("Invalid graphics extension block.");
|
|
62624
62617
|
var b = l[r++];
|
|
62625
|
-
y = l[r++] | l[r++] << 8, m = l[r++], b & 1
|
|
62618
|
+
y = l[r++] | l[r++] << 8, m = l[r++], (b & 1) === 0 && (m = null), v = b >> 2 & 7, r++;
|
|
62626
62619
|
break;
|
|
62627
62620
|
case 254:
|
|
62628
62621
|
for (; ; ) {
|
|
@@ -65563,7 +65556,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65563
65556
|
(function(l) {
|
|
65564
65557
|
function r() {
|
|
65565
65558
|
return function() {
|
|
65566
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65559
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C4pUfXFn.mjs");
|
|
65567
65560
|
}().catch(function(o) {
|
|
65568
65561
|
return Promise.reject(new Error("Could not load canvg: " + o));
|
|
65569
65562
|
}).then(function(o) {
|
|
@@ -66253,7 +66246,7 @@ jsPDF.API.TTFFont = function() {
|
|
|
66253
66246
|
for (u = this.bbox, f = [], c = 0, d = u.length; c < d; c++)
|
|
66254
66247
|
r = u[c], f.push(Math.round(r * this.scaleFactor));
|
|
66255
66248
|
return f;
|
|
66256
|
-
}).call(this), this.stemV = 0, this.post.exists ? (a = this.post.italic_angle, o = a >> 16, n = a & 255, o & 32768 && (o = -((o ^ 65535) + 1)), this.italicAngle = +("" + o + "." + n)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (s = this.familyClass) === 1 || s === 2 || s === 3 || s === 4 || s === 5 || s === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode)
|
|
66249
|
+
}).call(this), this.stemV = 0, this.post.exists ? (a = this.post.italic_angle, o = a >> 16, n = a & 255, (o & 32768) !== 0 && (o = -((o ^ 65535) + 1)), this.italicAngle = +("" + o + "." + n)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (s = this.familyClass) === 1 || s === 2 || s === 3 || s === 4 || s === 5 || s === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode)
|
|
66257
66250
|
throw new Error("No unicode cmap for font");
|
|
66258
66251
|
}, l.prototype.characterToGlyph = function(r) {
|
|
66259
66252
|
var o;
|