hoeditor-web 3.3.1-beta.1 → 3.3.1-beta.2
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-Db_ZkJxD.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -15183,7 +15183,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15183
15183
|
}
|
|
15184
15184
|
}
|
|
15185
15185
|
}
|
|
15186
|
-
const version = "3.3.1-beta.
|
|
15186
|
+
const version = "3.3.1-beta.2";
|
|
15187
15187
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15188
15188
|
class SignNode extends BaseNode {
|
|
15189
15189
|
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) {
|
|
@@ -38156,7 +38156,7 @@ class DrawImageNode extends DrawCombineNode {
|
|
|
38156
38156
|
const r = this;
|
|
38157
38157
|
this._imageManager.addImageQueue(this, () => new Promise((o) => {
|
|
38158
38158
|
const n = new Image();
|
|
38159
|
-
process.env.NODE_ENV
|
|
38159
|
+
process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
|
|
38160
38160
|
const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
38161
38161
|
this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
|
|
38162
38162
|
const l = new createjs$1.Shape();
|
|
@@ -52413,7 +52413,7 @@ class VueController {
|
|
|
52413
52413
|
let v = m.getNewCellHeight() - 10;
|
|
52414
52414
|
u > v && (u = v);
|
|
52415
52415
|
const w = m.table.colInfos[m.row.indexOf(m)];
|
|
52416
|
-
w.colProperty.isSpecifyWidth && (d = w.colWidth - 10);
|
|
52416
|
+
w.colProperty.isSpecifyWidth && (d = w.colWidth - 10), r && (u = d * r / r);
|
|
52417
52417
|
}
|
|
52418
52418
|
if (s = {
|
|
52419
52419
|
width: Math.min(d, c.docWidth),
|
|
@@ -52424,7 +52424,7 @@ class VueController {
|
|
|
52424
52424
|
let f = t / s.width, p = r / s.height;
|
|
52425
52425
|
t > s.width && r <= s.height ? (s.imageWidth = s.width, s.imageHeight = Math.floor(r / f)) : t <= s.width && r > s.height ? (s.imageHeight = s.height, s.imageWidth = Math.floor(t / p)) : t > s.width && r > s.height ? f > p ? (s.imageWidth = Math.floor(t / f), s.imageHeight = Math.floor(r / f)) : (s.imageHeight = Math.floor(r / p), s.imageWidth = Math.floor(t / p)) : t <= s.width && r <= s.height && (s.imageHeight = r, s.imageWidth = t), o && o <= 1 && (s.imageWidth = s.imageWidth * o, s.imageHeight = s.imageHeight * o);
|
|
52426
52426
|
}
|
|
52427
|
-
return s;
|
|
52427
|
+
return (s.imageWidth == 0 || s.imageHeight == 0) && (s.imageWidth = 10, s.imageHeight = 10), s;
|
|
52428
52428
|
}
|
|
52429
52429
|
pageAllEmptyElements(t) {
|
|
52430
52430
|
if (t < 0) return !1;
|
|
@@ -65048,7 +65048,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65048
65048
|
(function(a) {
|
|
65049
65049
|
function t() {
|
|
65050
65050
|
return function() {
|
|
65051
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65051
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DFCVlrs9.mjs");
|
|
65052
65052
|
}().catch(function(r) {
|
|
65053
65053
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65054
65054
|
}).then(function(r) {
|