hoeditor-web 3.0.70 → 3.0.71
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.umd.js +47 -38
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -41492,18 +41492,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41492
41492
|
node.imgHeight = imgHeight;
|
|
41493
41493
|
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
|
|
41494
41494
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
41495
|
-
node.otherProperties = otherProperties ? otherProperties :
|
|
41495
|
+
node.otherProperties = otherProperties ? otherProperties : node.otherProperties;
|
|
41496
41496
|
node.imgSrc = imgSrc;
|
|
41497
|
-
if (type == 1 && node.signType == 1) {
|
|
41498
|
-
|
|
41499
|
-
|
|
41500
|
-
|
|
41497
|
+
// if (type == 1 && node.signType == 1) {
|
|
41498
|
+
// node.isFront = true;
|
|
41499
|
+
// }
|
|
41500
|
+
//node.connectMode = "/";
|
|
41501
41501
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41502
41502
|
} else {
|
|
41503
41503
|
//第二次更新签名
|
|
41504
41504
|
if (node.connectMode === "换行") {
|
|
41505
41505
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41506
|
-
var
|
|
41506
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
41507
|
+
var curParaNode = dline.paragraphNode;
|
|
41507
41508
|
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_29__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
41508
41509
|
hoEditorFactory.undoService.begin();
|
|
41509
41510
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
@@ -41514,7 +41515,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41514
41515
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41515
41516
|
}
|
|
41516
41517
|
}
|
|
41517
|
-
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties);
|
|
41518
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties ? otherProperties : node.otherProperties);
|
|
41518
41519
|
//插入该表达式节点
|
|
41519
41520
|
hoEditorFactory.undoService.begin();
|
|
41520
41521
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -58942,7 +58943,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58942
58943
|
//指纹
|
|
58943
58944
|
//指纹
|
|
58944
58945
|
//样式
|
|
58945
|
-
// 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
58946
58946
|
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)4.ca签名(职称、连接符可选)
|
|
58947
58947
|
//自定义CA签名连接符
|
|
58948
58948
|
//其它属性{"isDisplayTitle":true,"title":"职称","time":"签名日期"}
|
|
@@ -58969,7 +58969,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58969
58969
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_fingerPrintSrc", "");
|
|
58970
58970
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_fingerPosition", FingerPosition.center);
|
|
58971
58971
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_styleIndex", 0);
|
|
58972
|
-
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_PNGToJPG", 0);
|
|
58973
58972
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_attribute", 0);
|
|
58974
58973
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_connectChar", ":");
|
|
58975
58974
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_otherProperties", void 0);
|
|
@@ -59196,16 +59195,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59196
59195
|
this._customProperty = value;
|
|
59197
59196
|
}
|
|
59198
59197
|
}
|
|
59199
|
-
}, {
|
|
59200
|
-
key: "PNGToJPG",
|
|
59201
|
-
get: function get() {
|
|
59202
|
-
return this._PNGToJPG;
|
|
59203
|
-
},
|
|
59204
|
-
set: function set(value) {
|
|
59205
|
-
if (this._PNGToJPG !== value) {
|
|
59206
|
-
this._PNGToJPG = value;
|
|
59207
|
-
}
|
|
59208
|
-
}
|
|
59209
59198
|
}, {
|
|
59210
59199
|
key: "isTemplate",
|
|
59211
59200
|
get: function get() {
|
|
@@ -59392,7 +59381,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59392
59381
|
imgWidth: clearSign ? 0 : this.imgWidth,
|
|
59393
59382
|
imgHeight: clearSign ? 0 : this.imgHeight,
|
|
59394
59383
|
customProperty: clearSign ? new Object() : this.customProperty,
|
|
59395
|
-
PNGToJPG: this.PNGToJPG,
|
|
59396
59384
|
isTemplate: this.isTemplate,
|
|
59397
59385
|
styleIndex: this.styleIndex,
|
|
59398
59386
|
connectMode: this.connectMode,
|
|
@@ -59434,7 +59422,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59434
59422
|
json.fingerPrintSrc = '';
|
|
59435
59423
|
}
|
|
59436
59424
|
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties);
|
|
59437
|
-
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0;
|
|
59438
59425
|
// if (json.id != "") {
|
|
59439
59426
|
// signNode.id = json.id;
|
|
59440
59427
|
// }
|
|
@@ -76147,7 +76134,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
76147
76134
|
/*
|
|
76148
76135
|
* @Author: your name
|
|
76149
76136
|
* @Date: 2021-09-01 16:51:49
|
|
76150
|
-
* @LastEditTime: 2023-06-15
|
|
76137
|
+
* @LastEditTime: 2023-06-15 19:32:06
|
|
76151
76138
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
76152
76139
|
* @Description: In User Settings Edit
|
|
76153
76140
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -76193,8 +76180,15 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76193
76180
|
_this._textStyle = cbStyle.getStyleKey();
|
|
76194
76181
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
|
|
76195
76182
|
_this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
|
|
76196
|
-
|
|
76197
|
-
|
|
76183
|
+
var isDisplayTitle = otherProperties && otherProperties.isDisplayTitle == "true" ? true : false;
|
|
76184
|
+
if (_this.attribute === 4) {
|
|
76185
|
+
if (isDisplayTitle) {
|
|
76186
|
+
if (_this._title == "") {
|
|
76187
|
+
_this._title = _this._abi02;
|
|
76188
|
+
}
|
|
76189
|
+
} else {
|
|
76190
|
+
_this._title = "";
|
|
76191
|
+
}
|
|
76198
76192
|
}
|
|
76199
76193
|
_this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
|
|
76200
76194
|
if (_this._title != "") {
|
|
@@ -76699,31 +76693,32 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76699
76693
|
drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
|
|
76700
76694
|
}
|
|
76701
76695
|
if (_this3.number === 2) {
|
|
76702
|
-
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
76696
|
+
drawNode.dWidth += _this3._drawText ? _this3._drawText.getMeasuredWidth() : 0;
|
|
76703
76697
|
}
|
|
76704
76698
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
76705
76699
|
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76706
76700
|
} else if (drawNode.attribute === 3 && drawNode.title !== "") {
|
|
76707
76701
|
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
|
|
76708
76702
|
} else if (drawNode.attribute === 4 && drawNode.title !== "") {
|
|
76709
|
-
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight
|
|
76703
|
+
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight + 5, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76710
76704
|
} else {
|
|
76711
76705
|
bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76712
76706
|
}
|
|
76713
76707
|
var hitArea = new createjs.Shape();
|
|
76714
76708
|
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
76715
76709
|
bitmap.hitArea = hitArea;
|
|
76716
|
-
if (
|
|
76717
|
-
|
|
76718
|
-
|
|
76719
|
-
|
|
76720
|
-
|
|
76721
|
-
|
|
76722
|
-
|
|
76723
|
-
|
|
76724
|
-
|
|
76725
|
-
|
|
76726
|
-
}
|
|
76710
|
+
// if (this.attribute !== 4) {
|
|
76711
|
+
// if (this.imgSrc.indexOf('data:image/') != -1 && this.imgSrc.indexOf('data:image/png') == -1) {
|
|
76712
|
+
// const canvas = document.createElement('canvas');
|
|
76713
|
+
// canvas.width = image.naturalWidth;
|
|
76714
|
+
// canvas.height = image.naturalHeight;
|
|
76715
|
+
// const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;
|
|
76716
|
+
// ctx.fillStyle = '#FFFFFF';
|
|
76717
|
+
// ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
|
|
76718
|
+
// ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
|
|
76719
|
+
// (this.node as SignNode).imgSrc = canvas.toDataURL('image/png');
|
|
76720
|
+
// }
|
|
76721
|
+
// }
|
|
76727
76722
|
var dArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
76728
76723
|
if (dArea) {
|
|
76729
76724
|
var atype = hoEditorFactory.subDocManger.getHeaderFooterType(_this3.node.getNodePath());
|
|
@@ -236233,7 +236228,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
236233
236228
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
236234
236229
|
var MarkNode = __webpack_require__(57727);
|
|
236235
236230
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
236236
|
-
/* harmony default export */ var version = ('3.0.
|
|
236231
|
+
/* harmony default export */ var version = ('3.0.71');
|
|
236237
236232
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
236238
236233
|
var PoperTipText = __webpack_require__(36081);
|
|
236239
236234
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -250878,6 +250873,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250878
250873
|
_hoEditorFactory2.drawTree.moveCaretToPath(toPath);
|
|
250879
250874
|
}
|
|
250880
250875
|
}
|
|
250876
|
+
}, {
|
|
250877
|
+
key: "updateCustomProperty",
|
|
250878
|
+
value: function updateCustomProperty(objs) {
|
|
250879
|
+
for (var i = 0; i < objs.length; i++) {
|
|
250880
|
+
var obj = objs[i];
|
|
250881
|
+
var elements = this.getNodesById("all", true, obj.id);
|
|
250882
|
+
for (var e = 0; e < elements.length; e++) {
|
|
250883
|
+
var element = elements[e];
|
|
250884
|
+
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re || element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
250885
|
+
element.customProperty = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, element.customProperty), obj.customProperty);
|
|
250886
|
+
}
|
|
250887
|
+
}
|
|
250888
|
+
}
|
|
250889
|
+
}
|
|
250881
250890
|
}]);
|
|
250882
250891
|
return VueController;
|
|
250883
250892
|
}();
|