hoeditor-web 3.1.31 → 3.1.33
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.css +1 -17845
- package/lib/hoeditor.umd.js +38 -16
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -55137,7 +55137,7 @@ var SelectRange = __webpack_require__(53901);
|
|
|
55137
55137
|
/*
|
|
55138
55138
|
* @Author: your name
|
|
55139
55139
|
* @Date: 2020-11-11 11:04:19
|
|
55140
|
-
* @LastEditTime: 2023-
|
|
55140
|
+
* @LastEditTime: 2023-11-15 16:25:41
|
|
55141
55141
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
55142
55142
|
* @Description: In User Settings Edit
|
|
55143
55143
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawImageNode.ts
|
|
@@ -55244,13 +55244,15 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
55244
55244
|
}
|
|
55245
55245
|
image.onerror = function () {
|
|
55246
55246
|
hoEditorFactory.loadImageCount--;
|
|
55247
|
-
|
|
55248
|
-
|
|
55249
|
-
|
|
55250
|
-
|
|
55251
|
-
|
|
55252
|
-
|
|
55253
|
-
|
|
55247
|
+
if (!drawNode.node.isBackFill) {
|
|
55248
|
+
var path = _this2.node.previousLeaf().getNodePath();
|
|
55249
|
+
hoEditorFactory.docTree.deleteNode(_this2.node);
|
|
55250
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(_this2._hoEditorFactoryID, DocTree/* DocAction */.gk.daModifyStyle, path, path);
|
|
55251
|
+
changeEvent.oldEndPath = path;
|
|
55252
|
+
changeEvent.afterChangePath = path;
|
|
55253
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(_this2._hoEditorFactoryID).getRangeDrawLines(path, path, true);
|
|
55254
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
55255
|
+
}
|
|
55254
55256
|
};
|
|
55255
55257
|
}
|
|
55256
55258
|
}, {
|
|
@@ -55341,7 +55343,7 @@ var BaseNode = __webpack_require__(62358);
|
|
|
55341
55343
|
var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
55342
55344
|
(0,inherits/* default */.Z)(ImageNode, _BaseNode);
|
|
55343
55345
|
var _super = (0,createSuper/* default */.Z)(ImageNode);
|
|
55344
|
-
|
|
55346
|
+
//是否是回填的
|
|
55345
55347
|
function ImageNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, imageDataBase64String, width, height,
|
|
55346
55348
|
//scaleX?: number,
|
|
55347
55349
|
//scaleY?: number,
|
|
@@ -55368,6 +55370,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55368
55370
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_markImage", void 0);
|
|
55369
55371
|
// 修改层
|
|
55370
55372
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_imageJson", void 0);
|
|
55373
|
+
// 修改层json信息
|
|
55374
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_isBackFill", void 0);
|
|
55371
55375
|
_this._id = id;
|
|
55372
55376
|
_this._width = width;
|
|
55373
55377
|
_this._height = height;
|
|
@@ -55376,6 +55380,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55376
55380
|
_this._isFormula = options !== null && options !== void 0 && options.isFormula ? options.isFormula : false;
|
|
55377
55381
|
_this._markImage = markImage ? markImage : '';
|
|
55378
55382
|
_this._imageJson = imageJson ? imageJson : '';
|
|
55383
|
+
_this.isBackFill = options !== null && options !== void 0 && options.isBackFill ? options.isBackFill : false;
|
|
55379
55384
|
//this._scaleX = scaleX ? scaleX : 1;
|
|
55380
55385
|
//this._scaleY = scaleY ? scaleY : 1;
|
|
55381
55386
|
_this.node2DrawNodeRange(0, 0);
|
|
@@ -55483,6 +55488,16 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55483
55488
|
this._imageJson = value;
|
|
55484
55489
|
}
|
|
55485
55490
|
}
|
|
55491
|
+
}, {
|
|
55492
|
+
key: "isBackFill",
|
|
55493
|
+
get: function get() {
|
|
55494
|
+
return this._isBackFill;
|
|
55495
|
+
},
|
|
55496
|
+
set: function set(value) {
|
|
55497
|
+
if (this._isBackFill !== value) {
|
|
55498
|
+
this._isBackFill = value;
|
|
55499
|
+
}
|
|
55500
|
+
}
|
|
55486
55501
|
/**
|
|
55487
55502
|
* imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
|
|
55488
55503
|
*/
|
|
@@ -55576,6 +55591,9 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55576
55591
|
if (this.imageJson) {
|
|
55577
55592
|
retObj.imageJson = this.imageJson;
|
|
55578
55593
|
}
|
|
55594
|
+
if (this.isBackFill) {
|
|
55595
|
+
retObj.isBackFill = this.isBackFill;
|
|
55596
|
+
}
|
|
55579
55597
|
if (isCopy) {
|
|
55580
55598
|
return retObj;
|
|
55581
55599
|
}
|
|
@@ -55596,11 +55614,13 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55596
55614
|
//const scaleX = Number(json.scaleX);
|
|
55597
55615
|
//const scaleY = Number(json.scaleY);
|
|
55598
55616
|
var isFormula = json.isFormula ? json.isFormula === "true" ? true : false : false;
|
|
55617
|
+
var isBackFill = json.isBackFill ? json.isBackFill === "true" ? true : false : false;
|
|
55599
55618
|
return new ImageNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.imageDataBase64String, width, height,
|
|
55600
55619
|
//scaleX,
|
|
55601
55620
|
//scaleY,
|
|
55602
55621
|
{
|
|
55603
|
-
isFormula: isFormula
|
|
55622
|
+
isFormula: isFormula,
|
|
55623
|
+
isBackFill: isBackFill
|
|
55604
55624
|
}, json.markImage, json.imageJson);
|
|
55605
55625
|
}
|
|
55606
55626
|
}]);
|
|
@@ -61669,11 +61689,13 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61669
61689
|
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
61670
61690
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
61671
61691
|
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
61692
|
+
var isFront = json.isFront === true || json.isFront === "true" ? true : false;
|
|
61693
|
+
var allowEditSignTime = json.allowEditSignTime === true || json.allowEditSignTime === "true" ? true : false;
|
|
61672
61694
|
// 处理otherProperties参数传错导致fingerPrintSrc属性错误问题
|
|
61673
61695
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(json.fingerPrintSrc) == 'object') {
|
|
61674
61696
|
json.fingerPrintSrc = '';
|
|
61675
61697
|
}
|
|
61676
|
-
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_18__/* .NodeType */ .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,
|
|
61698
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_18__/* .NodeType */ .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, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId);
|
|
61677
61699
|
// if (json.id != "") {
|
|
61678
61700
|
// signNode.id = json.id;
|
|
61679
61701
|
// }
|
|
@@ -218061,7 +218083,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218061
218083
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218062
218084
|
var ParagraphNode = __webpack_require__(67945);
|
|
218063
218085
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218064
|
-
/* harmony default export */ var version = ('3.1.
|
|
218086
|
+
/* harmony default export */ var version = ('3.1.33');
|
|
218065
218087
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218066
218088
|
var PoperTipText = __webpack_require__(50987);
|
|
218067
218089
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -231677,16 +231699,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231677
231699
|
getAllNodes(mainNodes);
|
|
231678
231700
|
var hSignList = signList.map(function (sign, index) {
|
|
231679
231701
|
if (sign.number > 1) {
|
|
231680
|
-
if (sign.isFront) {
|
|
231681
|
-
for (var i = index; i
|
|
231682
|
-
if (signList[i].number == 1) {
|
|
231702
|
+
if (!sign.isFront) {
|
|
231703
|
+
for (var i = index; i <= signList.length - 1; i++) {
|
|
231704
|
+
if (signList[i] && signList[i].number == 1) {
|
|
231683
231705
|
sign.isTemplate = signList[i].isTemplate;
|
|
231684
231706
|
break;
|
|
231685
231707
|
}
|
|
231686
231708
|
}
|
|
231687
231709
|
} else {
|
|
231688
231710
|
for (var _i4 = index; _i4 >= 0; _i4--) {
|
|
231689
|
-
if (signList[_i4].number == 1) {
|
|
231711
|
+
if (signList[_i4] && signList[_i4].number == 1) {
|
|
231690
231712
|
sign.isTemplate = signList[_i4].isTemplate;
|
|
231691
231713
|
break;
|
|
231692
231714
|
}
|