hoeditor-web 3.3.3-beta.1 → 3.3.3-beta.3
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-CpcU6G57.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -9405,27 +9405,29 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9405
9405
|
n.isTransToText ? "" : this._text,
|
|
9406
9406
|
p.getStyleKey(),
|
|
9407
9407
|
p.color
|
|
9408
|
-
)
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
"
|
|
9412
|
-
|
|
9408
|
+
), p.size <= 12 || p.size <= 16 || p.size <= 22, l === "CheckBox" ? this._dBox = new createjs$1.Text(
|
|
9409
|
+
//"\u00FE",
|
|
9410
|
+
//fontSize.toString() + "px wingdings",
|
|
9411
|
+
"☐",
|
|
9412
|
+
p.getStyleKey(),
|
|
9413
9413
|
p.color
|
|
9414
9414
|
) : this._dBox = new createjs$1.Text(
|
|
9415
|
-
"
|
|
9416
|
-
|
|
9415
|
+
// "\u00A4",
|
|
9416
|
+
// fontSize.toString() + "px wingdings",
|
|
9417
|
+
"○",
|
|
9418
|
+
p.getStyleKey(),
|
|
9417
9419
|
p.color
|
|
9418
9420
|
);
|
|
9419
|
-
let
|
|
9420
|
-
this.text !== "" && (
|
|
9421
|
-
const
|
|
9422
|
-
if (this.dBoxWidth =
|
|
9423
|
-
let
|
|
9421
|
+
let m = 0;
|
|
9422
|
+
this.text !== "" && (m = 6);
|
|
9423
|
+
const g = this._dText.getMeasuredWidth(), y = this._dBox.getMeasuredWidth();
|
|
9424
|
+
if (this.dBoxWidth = y, this.dWidth = g + y + m, n.isEditText) {
|
|
9425
|
+
let w = 40;
|
|
9424
9426
|
n.appendText.length > 0 && (this._dAppendText = new createjs$1.Text(
|
|
9425
9427
|
n.appendText,
|
|
9426
9428
|
p.getStyleKey(),
|
|
9427
9429
|
p.color
|
|
9428
|
-
),
|
|
9430
|
+
), w = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - m, 1).lineTo(this.dWidth - m + w, 1), this.dWidth = this.dWidth - m + w;
|
|
9429
9431
|
}
|
|
9430
9432
|
this.dHeight = f, this._textStyle = p, this.drawRadioAndCheckBox();
|
|
9431
9433
|
}
|
|
@@ -9466,22 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9466
9468
|
this.clear(), this.boxAlign ? (this.drawBox(), !this.node.isTransToText && this.text.length > 0 && this.drawText(), this.node.isEditText && this.drawAppend()) : (this.text.length > 0 && this.drawText(), this.drawBox());
|
|
9467
9469
|
}
|
|
9468
9470
|
drawBox() {
|
|
9469
|
-
let r
|
|
9470
|
-
this.textStyle.size <= 12
|
|
9471
|
-
"
|
|
9472
|
-
|
|
9471
|
+
let r;
|
|
9472
|
+
this.textStyle.size <= 12 || this.textStyle.size <= 16 || this.textStyle.size <= 22, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
|
|
9473
|
+
//"\u00FE",
|
|
9474
|
+
//fontSize.toString() + "px wingdings",
|
|
9475
|
+
"☑",
|
|
9476
|
+
this.textStyle.getStyleKey(),
|
|
9473
9477
|
this.textStyle.color
|
|
9474
9478
|
) : r = new createjs$1.Text(
|
|
9475
|
-
"
|
|
9476
|
-
|
|
9479
|
+
//"\u00A8",
|
|
9480
|
+
//fontSize.toString() + "px wingdings",
|
|
9481
|
+
"☐",
|
|
9482
|
+
this.textStyle.getStyleKey(),
|
|
9477
9483
|
this.textStyle.color
|
|
9478
9484
|
) : this.isSelected ? r = new createjs$1.Text(
|
|
9479
|
-
"
|
|
9480
|
-
|
|
9485
|
+
//"\u00A4",
|
|
9486
|
+
//fontSize.toString() + "px wingdings",
|
|
9487
|
+
"◉",
|
|
9488
|
+
this.textStyle.getStyleKey(),
|
|
9481
9489
|
this.textStyle.color
|
|
9482
9490
|
) : r = new createjs$1.Text(
|
|
9483
|
-
"
|
|
9484
|
-
|
|
9491
|
+
//"\u00A1",
|
|
9492
|
+
//fontSize.toString() + "px wingdings",
|
|
9493
|
+
"○",
|
|
9494
|
+
this.textStyle.getStyleKey(),
|
|
9485
9495
|
this.textStyle.color
|
|
9486
9496
|
), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
|
|
9487
9497
|
}
|
|
@@ -15260,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15260
15270
|
}
|
|
15261
15271
|
}
|
|
15262
15272
|
}
|
|
15263
|
-
const version = "3.3.3-beta.
|
|
15273
|
+
const version = "3.3.3-beta.3";
|
|
15264
15274
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15265
15275
|
class SignNode extends BaseNode {
|
|
15266
15276
|
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) {
|
|
@@ -27594,7 +27604,7 @@ class Print {
|
|
|
27594
27604
|
orientation: s == "l" ? "2" : "1",
|
|
27595
27605
|
// 当前判断是字母l
|
|
27596
27606
|
paperSize: l == null ? void 0 : l.toUpperCase(),
|
|
27597
|
-
base64: t.output("
|
|
27607
|
+
base64: t.output("bloburl")
|
|
27598
27608
|
}
|
|
27599
27609
|
})) : window.emrPrintHandler({ code: 200, data: t.output("bloburl") });
|
|
27600
27610
|
return;
|
|
@@ -65250,7 +65260,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65250
65260
|
(function(a) {
|
|
65251
65261
|
function t() {
|
|
65252
65262
|
return function() {
|
|
65253
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65263
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-k5S-QsZf.mjs");
|
|
65254
65264
|
}().catch(function(r) {
|
|
65255
65265
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65256
65266
|
}).then(function(r) {
|