hoeditor-web 3.3.5 → 3.3.6-beta.0
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-BUU_YDdy.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -6766,21 +6766,12 @@ const zo = class zo extends createjs$1.Text {
|
|
|
6766
6766
|
let p = 0;
|
|
6767
6767
|
for (let m = 0, g = f.length; m < g; m++) {
|
|
6768
6768
|
const y = f[m], w = this.getCharWidth(r, y);
|
|
6769
|
-
isMissingGlyph(y) ? drawCircledNumber(
|
|
6770
|
-
r,
|
|
6771
|
-
p,
|
|
6772
|
-
0,
|
|
6773
|
-
w,
|
|
6774
|
-
getMissingGlyphNumber(y),
|
|
6775
|
-
this.font || "12pt SimSun",
|
|
6776
|
-
l,
|
|
6777
|
-
this.outline
|
|
6778
|
-
) : this.outline ? r.strokeText(y, p, 0, w || this._maxWidth) : r.fillText(y, p, 0, w || this._maxWidth), p += w + this._letterSpacing;
|
|
6769
|
+
isMissingGlyph(y) ? drawCircledNumber(r, p, 0, w, getMissingGlyphNumber(y), this.font || "12pt SimSun", l, this.outline) : this.outline ? r.strokeText(y, p, 0, w || this._maxWidth) : r.fillText(y, p, 0, w || this._maxWidth), p += w + this._letterSpacing;
|
|
6779
6770
|
}
|
|
6780
6771
|
} else
|
|
6781
6772
|
this.outline ? r.strokeText(f, 0, 0, u || this._maxWidth) : (this.font.indexOf("bold") != -1 && (r.strokeStyle = r.fillStyle, r.strokeText(f, 0, 0, u || this._maxWidth)), r.fillText(f, 0, 0, u || this._maxWidth));
|
|
6782
6773
|
}
|
|
6783
|
-
return this._docWidth = u, this._dWidth = d > 0 ? d - this._letterSpacing : 0, o && (o.width = this._dWidth, o.height = this._node.dHeight), s || r.restore(), o;
|
|
6774
|
+
return this._docWidth = u, this._dWidth = d > 0 ? d - this._letterSpacing : 0, o && (o.width = this._dWidth, o.height = this._node.dHeight), s || r.restore(), r.hasOwnProperty("letterSpacing") && (r.letterSpacing = 0), o;
|
|
6784
6775
|
}
|
|
6785
6776
|
static getWorkingContext() {
|
|
6786
6777
|
if (!zo._workingContext) {
|
|
@@ -10185,7 +10176,7 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
10185
10176
|
const p = d._event;
|
|
10186
10177
|
p && p.alpha === 0 && (p.alpha = 0.01), o.addChild(d), o.drawItems.push(d);
|
|
10187
10178
|
}
|
|
10188
|
-
return o.fitLines(), c.docTree.radioAndCheckBoxsMap.set(this.dataId, this), o.paragraphNode.getLastDrawline();
|
|
10179
|
+
return o.fitLines(), o.updateLineStyle(), c.docTree.radioAndCheckBoxsMap.set(this.dataId, this), o.paragraphNode.getLastDrawline();
|
|
10189
10180
|
}
|
|
10190
10181
|
clear() {
|
|
10191
10182
|
var o, n, s;
|
|
@@ -10194,9 +10185,7 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
10194
10185
|
const r = (n = (o = t.drawTree.activePage) == null ? void 0 : o.drawSelectLevel) == null ? void 0 : n.shapesColor;
|
|
10195
10186
|
if (r) {
|
|
10196
10187
|
const l = r.get(this.id);
|
|
10197
|
-
r.delete(this.id), l && ((s = t.drawTree.activePage) == null || s.selectContainer.removeChild(
|
|
10198
|
-
l
|
|
10199
|
-
));
|
|
10188
|
+
r.delete(this.id), l && ((s = t.drawTree.activePage) == null || s.selectContainer.removeChild(l));
|
|
10200
10189
|
}
|
|
10201
10190
|
}
|
|
10202
10191
|
hasChildPath() {
|
|
@@ -10270,14 +10259,7 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
10270
10259
|
}
|
|
10271
10260
|
r.isAllowDelete = r.isAllowDelete ? r.isAllowDelete : !1, r.isSelected = r.isSelected ? r.isSelected.text != null ? r.isSelected.text : r.isSelected : !1, r.boxAlign = r.boxAlign === void 0 ? !0 : r.boxAlign, r.isEditText = r.isEditText ? r.isEditText : !1, r.isTransToText = r.isTransToText ? r.isTransToText : !1, r.groupHasOptions = r.groupHasOptions ? r.groupHasOptions : !1, r.numericValue = r.numericValue === void 0 ? "0" : Number(r.numericValue);
|
|
10272
10261
|
const l = Number(r.styleIndex);
|
|
10273
|
-
return r.type = parseInt(ControlType[r.type]), r.readType = r.readType ? Number(r.readType) : -1, r.isMutualExclusion = r.isMutualExclusion ? r.isMutualExclusion : !1, r.text = r.text || "", n instanceof CellNode && r.groupName != "" && (r.groupName = r.groupName + "_" + n.table.tableProperty.id), new RadioAndCheckBoxNode(
|
|
10274
|
-
t,
|
|
10275
|
-
o,
|
|
10276
|
-
n || null,
|
|
10277
|
-
NodeType$1.ntControl,
|
|
10278
|
-
JSON.stringify(r),
|
|
10279
|
-
l
|
|
10280
|
-
);
|
|
10262
|
+
return r.type = parseInt(ControlType[r.type]), r.readType = r.readType ? Number(r.readType) : -1, r.isMutualExclusion = r.isMutualExclusion ? r.isMutualExclusion : !1, r.text = r.text || "", n instanceof CellNode && r.groupName != "" && (r.groupName = r.groupName + "_" + n.table.tableProperty.id), new RadioAndCheckBoxNode(t, o, n || null, NodeType$1.ntControl, JSON.stringify(r), l);
|
|
10281
10263
|
}
|
|
10282
10264
|
toString() {
|
|
10283
10265
|
return this.text;
|
|
@@ -15330,7 +15312,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15330
15312
|
}
|
|
15331
15313
|
}
|
|
15332
15314
|
}
|
|
15333
|
-
const version = "3.3.
|
|
15315
|
+
const version = "3.3.6-beta.0";
|
|
15334
15316
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15335
15317
|
class SignNode extends BaseNode {
|
|
15336
15318
|
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) {
|
|
@@ -65298,7 +65280,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65298
65280
|
(function(a) {
|
|
65299
65281
|
function t() {
|
|
65300
65282
|
return function() {
|
|
65301
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65283
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-0kYmUUky.mjs");
|
|
65302
65284
|
}().catch(function(r) {
|
|
65303
65285
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65304
65286
|
}).then(function(r) {
|