hoeditor-web 3.2.33 → 3.2.34
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-QhzdhumN.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -5833,7 +5833,7 @@ class DrawMarkNode extends DrawCombineNode {
|
|
|
5833
5833
|
*/
|
|
5834
5834
|
drawBackColor() {
|
|
5835
5835
|
const o = this.MarkColor(), n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
5836
|
-
n.drawTree.paintStatus !== PaintState.psPreview && n.drawTree.paintStatus !== PaintState.psPrint ? this.docNode.MarkNodeType !== MarkNodeType.mtContent && this.node.parentNode instanceof TextInputFieldNode && (this._nstyle.backColor = n.option.getColorByLevel(10)) : this._nstyle.backColor = "transparent", o && (this._flag || (this._flag = new createjs$1.Shape()), this._flag.graphics.clear(), this._flag.graphics.beginFill(o).drawRect(
|
|
5836
|
+
n.drawTree.paintStatus !== PaintState.psPreview && n.drawTree.paintStatus !== PaintState.psPrint ? this.docNode.MarkNodeType !== MarkNodeType.mtContent && this.node.parentNode instanceof TextInputFieldNode && !this.node.parentNode.enableGlobalColor && (this._nstyle.backColor = n.option.getColorByLevel(10)) : this._nstyle.backColor = "transparent", o && (this._flag || (this._flag = new createjs$1.Shape()), this._flag.graphics.clear(), this._flag.graphics.beginFill(o).drawRect(
|
|
5837
5837
|
0,
|
|
5838
5838
|
//x
|
|
5839
5839
|
//-(Math.max(this.dHeight, this._lineheight) + hspaceing), //y
|
|
@@ -12202,7 +12202,7 @@ class TableResizeRowUndoUnit {
|
|
|
12202
12202
|
return !1;
|
|
12203
12203
|
}
|
|
12204
12204
|
undo() {
|
|
12205
|
-
this._table.rowInfos[this._row].rowHeight = this._oldHeight, this._table.rowInfos[this._row].rowProperty.rowHeight =
|
|
12205
|
+
this._table.rowInfos[this._row].rowHeight = this._oldHeight, this._table.rowInfos[this._row].rowProperty.rowHeight = this._oldSpecifyHeight, this._table.rowInfos[this._row].rowProperty.isSpecifyHeight = this._oldIsSpecifyHeight, this._table.resizeRowHeights([this._row]), this._table.update();
|
|
12206
12206
|
}
|
|
12207
12207
|
redo() {
|
|
12208
12208
|
this._table.rowInfos[this._row].rowHeight = this._newHeight, this._table.rowInfos[this._row].rowProperty.isSpecifyHeight = !0, this._table.rowInfos[this._row].rowProperty.rowHeight = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).unitConvert.pxConversionMm(this._newHeight, !1) / 10, this._table.resizeRowHeights([this._row]), this._table.update();
|
|
@@ -14904,7 +14904,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14904
14904
|
}
|
|
14905
14905
|
}
|
|
14906
14906
|
}
|
|
14907
|
-
const version = "3.2.
|
|
14907
|
+
const version = "3.2.34";
|
|
14908
14908
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14909
14909
|
class SignNode extends BaseNode {
|
|
14910
14910
|
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) {
|
|
@@ -20489,7 +20489,7 @@ class DrawTextNode extends DrawCombineNode {
|
|
|
20489
20489
|
if (o.drawTree.paintStatus !== PaintState.psPreview && o.drawTree.paintStatus !== PaintState.psPrint && this.node.parentNode instanceof TextInputFieldNode) {
|
|
20490
20490
|
const c = this.node.parentNode;
|
|
20491
20491
|
if (c.inputFieldType === 0)
|
|
20492
|
-
(r === o.pageProperty.backColor || r == "#FFFFFF"
|
|
20492
|
+
(!c.enableGlobalColor && r === o.pageProperty.backColor || r == "#FFFFFF") && (r = o.option.getColorByLevel(10));
|
|
20493
20493
|
else if (c.keyValue == "")
|
|
20494
20494
|
c.text == "" ? r = o.option.getColorByLevel(120) : r = o.option.getColorByLevel(12);
|
|
20495
20495
|
else {
|
|
@@ -20850,12 +20850,13 @@ class DrawMedicalExpression extends DrawCombineNode {
|
|
|
20850
20850
|
const f = this.node.remark;
|
|
20851
20851
|
f == "teeth" && (r == "" && (r = "右上牙位", l = "#9B9E9E"), o == "" && (o = "左上牙位", c = "#9B9E9E"), n == "" && (n = "右下牙位", d = "#9B9E9E"), s == "" && (s = "左下牙位", u = "#9B9E9E"));
|
|
20852
20852
|
const p = new createjs$1.Text(r, this._textStyle.getStyleKey(), l), g = new createjs$1.Text(o, this._textStyle.getStyleKey(), c), m = new createjs$1.Text(n, this._textStyle.getStyleKey(), d), y = new createjs$1.Text(s, this._textStyle.getStyleKey(), u), w = new createjs$1.Shape(), v = new createjs$1.Shape(), C = Math.max(p.getMeasuredWidth(), g.getMeasuredWidth()) + Math.max(m.getMeasuredWidth(), y.getMeasuredWidth()) + 15, _ = Math.max(p.getMeasuredWidth() + g.getMeasuredWidth(), m.getMeasuredWidth() + y.getMeasuredWidth()) + 15, D = Math.max(C, _), E = Math.max(p.getMeasuredHeight(), m.getMeasuredHeight()) + Math.max(g.getMeasuredHeight(), y.getMeasuredHeight()) + 15, T = Math.max(p.getMeasuredWidth(), m.getMeasuredWidth());
|
|
20853
|
-
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20858
|
-
|
|
20853
|
+
this.dWidth = D, this.dHeight < E && (this.dHeight = E);
|
|
20854
|
+
const M = T + 6 - 0.5;
|
|
20855
|
+
if (w.graphics.beginStroke(this._textStyle.color).moveTo(0, -this._dHeight / 2).lineTo(this.dWidth, -this._dHeight / 2).endStroke(), v.graphics.beginStroke(this._textStyle.color).moveTo(M, -this._dHeight).lineTo(M, 0).endStroke(), f == "teeth")
|
|
20856
|
+
p.y = -this.dHeight / 2 - p.getMeasuredHeight() / 2, p.x = M - p.getMeasuredWidth() / 2 - 2 - 0.5, p.textAlign = "center", p.textBaseline = "alphabetic", g.y = p.y, g.x = M + g.getMeasuredWidth() / 2 + 2, g.textAlign = "center", g.textBaseline = "alphabetic", m.y = -3, m.x = M - m.getMeasuredWidth() / 2 - 2 - 0.5, m.textAlign = "center", m.textBaseline = "alphabetic", y.y = m.y, y.x = M + y.getMeasuredWidth() / 2 + 2, y.textAlign = "center", y.textBaseline = "alphabetic";
|
|
20857
|
+
else {
|
|
20858
|
+
const I = "center";
|
|
20859
|
+
p.y = -this.dHeight / 2 - p.getMeasuredHeight() / 2, p.x = 4, p.textAlign = I, p.textBaseline = "alphabetic", g.y = p.y, g.x = T + 6 + 2, g.textAlign = I, g.textBaseline = "alphabetic", m.y = -3, m.x = 4, m.textAlign = I, m.textBaseline = "alphabetic", y.y = m.y, y.x = g.x, y.textAlign = I, y.textBaseline = "alphabetic";
|
|
20859
20860
|
}
|
|
20860
20861
|
this.addChild(p), this.addChild(g), this.addChild(w), this.addChild(m), this.addChild(y), this.addChild(v);
|
|
20861
20862
|
}
|
|
@@ -64257,7 +64258,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64257
64258
|
(function(a) {
|
|
64258
64259
|
function t() {
|
|
64259
64260
|
return function() {
|
|
64260
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64261
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DA22crzR.mjs");
|
|
64261
64262
|
}().catch(function(r) {
|
|
64262
64263
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64263
64264
|
}).then(function(r) {
|