hoeditor-web 3.2.4 → 3.2.5
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-yyGX5kl2.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -16128,10 +16128,10 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
16128
16128
|
}
|
|
16129
16129
|
}
|
|
16130
16130
|
}
|
|
16131
|
-
const version$1 = "3.2.
|
|
16131
|
+
const version$1 = "3.2.5";
|
|
16132
16132
|
var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
|
|
16133
16133
|
class SignNode extends BaseNode {
|
|
16134
|
-
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) {
|
|
16134
|
+
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) {
|
|
16135
16135
|
super(hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
16136
16136
|
_(this, "_dataId", "");
|
|
16137
16137
|
//dataId
|
|
@@ -16182,6 +16182,7 @@ class SignNode extends BaseNode {
|
|
|
16182
16182
|
_(this, "_associatedElement", "");
|
|
16183
16183
|
//关联元素的dataid
|
|
16184
16184
|
_(this, "isTemp", !1);
|
|
16185
|
+
_(this, "innerIdentifier", "");
|
|
16185
16186
|
const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
16186
16187
|
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
|
|
16187
16188
|
const assignvalue = (target, source) => {
|
|
@@ -16189,7 +16190,7 @@ class SignNode extends BaseNode {
|
|
|
16189
16190
|
typeof target[value] == "object" ? Object.prototype.toString.call(source[value]) === "[object Object]" ? assignvalue(target[value], source[value]) : source[value] !== "" && source[value] !== null && assignvalue(target[value], eval("(" + source[value] + ")")) : target[value] = source[value];
|
|
16190
16191
|
});
|
|
16191
16192
|
};
|
|
16192
|
-
customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), this.node2DrawNodeRange(0, 0);
|
|
16193
|
+
customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), innerIdentifier ? this.innerIdentifier = innerIdentifier : this.innerIdentifier || (this.attribute == 1 ? this.innerIdentifier = "sign_doctor_" + Math.random().toString(36).substring(2) : this.innerIdentifier = "sign_patient_" + Math.random().toString(36).substring(2)), this.node2DrawNodeRange(0, 0);
|
|
16193
16194
|
}
|
|
16194
16195
|
// get id(): string {
|
|
16195
16196
|
// return this._id;
|
|
@@ -16430,7 +16431,8 @@ class SignNode extends BaseNode {
|
|
|
16430
16431
|
fingerPosition: a ? 0 : this.fingerPosition,
|
|
16431
16432
|
attribute: this.attribute,
|
|
16432
16433
|
connectChar: this.connectChar,
|
|
16433
|
-
otherProperties: this.otherProperties
|
|
16434
|
+
otherProperties: this.otherProperties,
|
|
16435
|
+
innerIdentifier: this.innerIdentifier
|
|
16434
16436
|
};
|
|
16435
16437
|
return s.imgSrc.substring(0, 4) == "http" && (s.imgSrc = s.imgSrc.replace(`?_=${version$1}`, "")), this.associatedElement && (s.associatedElement = this.associatedElement), o ? s : {
|
|
16436
16438
|
SignNode: s
|
|
@@ -16470,7 +16472,8 @@ class SignNode extends BaseNode {
|
|
|
16470
16472
|
o.otherProperties,
|
|
16471
16473
|
o.dataId,
|
|
16472
16474
|
o.associatedElement,
|
|
16473
|
-
m
|
|
16475
|
+
m,
|
|
16476
|
+
o.innerIdentifier
|
|
16474
16477
|
);
|
|
16475
16478
|
return Array.isArray(d.superiorSigns) && d.superiorSigns.includes(b.customProperty.bce01) && b.imgSrc ? d.structureConvert._superiorSign[0] = b : d.vueController.setLastSignNode(b), b;
|
|
16476
16479
|
}
|
|
@@ -65900,7 +65903,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65900
65903
|
(function(l) {
|
|
65901
65904
|
function r() {
|
|
65902
65905
|
return function() {
|
|
65903
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65906
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C7xgApvq.mjs");
|
|
65904
65907
|
}().catch(function(o) {
|
|
65905
65908
|
return Promise.reject(new Error("Could not load canvg: " + o));
|
|
65906
65909
|
}).then(function(o) {
|