hoeditor-web 2.0.51 → 2.0.54
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.common.js +307 -163
- package/lib/hoeditor.umd.js +307 -163
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +3 -3
package/lib/hoeditor.common.js
CHANGED
|
@@ -13440,12 +13440,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13440
13440
|
|
|
13441
13441
|
}, {
|
|
13442
13442
|
key: "insertNodeByPath",
|
|
13443
|
-
value: function insertNodeByPath(path, node) {
|
|
13443
|
+
value: function insertNodeByPath(path, node, isResetFieldText) {
|
|
13444
13444
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
13445
13445
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
13446
13446
|
var parentNode = node.parentNode;
|
|
13447
13447
|
|
|
13448
|
-
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1) {
|
|
13448
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
13449
13449
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
13450
13450
|
var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
13451
13451
|
curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
|
|
@@ -13629,7 +13629,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13629
13629
|
} else {
|
|
13630
13630
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
13631
13631
|
|
|
13632
|
-
strPath = _this.insertNodeByPath(strPath, _textNode);
|
|
13632
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true);
|
|
13633
13633
|
}
|
|
13634
13634
|
} else {
|
|
13635
13635
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
@@ -13640,7 +13640,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13640
13640
|
|
|
13641
13641
|
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, styleIndex);
|
|
13642
13642
|
|
|
13643
|
-
strPath = _this.insertNodeByPath(strPath, _textNode2);
|
|
13643
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true);
|
|
13644
13644
|
} // if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
13645
13645
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
13646
13646
|
// pNode.update();
|
|
@@ -14727,8 +14727,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14727
14727
|
node.update();
|
|
14728
14728
|
|
|
14729
14729
|
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14730
|
-
node.parentNode.drawCell.needUpdate = true;
|
|
14731
|
-
|
|
14730
|
+
node.parentNode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
|
|
14731
|
+
|
|
14732
|
+
if (node.parentNode.drawCell.drawPageCells.length > 1) {
|
|
14733
|
+
node.parentNode.table.update();
|
|
14734
|
+
}
|
|
14732
14735
|
}
|
|
14733
14736
|
|
|
14734
14737
|
return "";
|
|
@@ -15952,11 +15955,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
15952
15955
|
|
|
15953
15956
|
curArea.areaComments.set(commentID, comment);
|
|
15954
15957
|
hoEditorFactory.drawTree.commentsMap.set(commentID, comment);
|
|
15955
|
-
curArea.drawComments();
|
|
15956
|
-
|
|
15958
|
+
curArea.drawComments(); //const newEndpath = endNode.getNodePath();
|
|
15959
|
+
|
|
15957
15960
|
hoEditorFactory.undoService.begin();
|
|
15958
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath,
|
|
15961
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("insertComment", commentID)));
|
|
15959
15962
|
hoEditorFactory.undoService.commit();
|
|
15963
|
+
var newEndpath = endNode.getNodePath();
|
|
15960
15964
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, newEndpath, newEndpath);
|
|
15961
15965
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newRange, newRange); //选中范围变化事件
|
|
15962
15966
|
|
|
@@ -16826,6 +16830,31 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16826
16830
|
node.imgSrc = signText;
|
|
16827
16831
|
hoEditorFactory.docTree.change(changeEvent);
|
|
16828
16832
|
}
|
|
16833
|
+
/**
|
|
16834
|
+
* 更新签名类型
|
|
16835
|
+
* @param node 签名节点
|
|
16836
|
+
* @param type 签名类型
|
|
16837
|
+
* @param imgSrc 签名内容
|
|
16838
|
+
*/
|
|
16839
|
+
|
|
16840
|
+
}, {
|
|
16841
|
+
key: "updateSignType",
|
|
16842
|
+
value: function updateSignType(node, type, imgSrc) {
|
|
16843
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16844
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
16845
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
16846
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
16847
|
+
changeEvent.oldEndPath = ePath;
|
|
16848
|
+
changeEvent.afterChangePath = ePath;
|
|
16849
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
16850
|
+
|
|
16851
|
+
if (node.type !== type) {
|
|
16852
|
+
node.type = type;
|
|
16853
|
+
}
|
|
16854
|
+
|
|
16855
|
+
node.imgSrc = imgSrc;
|
|
16856
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
16857
|
+
}
|
|
16829
16858
|
/**
|
|
16830
16859
|
*
|
|
16831
16860
|
* @returns 返回病历文件变更日志
|
|
@@ -49203,6 +49232,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49203
49232
|
value: function paint(dTop, dParent, restHeight) {
|
|
49204
49233
|
var totalHeight = 0;
|
|
49205
49234
|
var aTop = dTop;
|
|
49235
|
+
|
|
49236
|
+
if (this.table.tableProperty.fixedOnePage) {
|
|
49237
|
+
restHeight = Infinity;
|
|
49238
|
+
}
|
|
49239
|
+
|
|
49206
49240
|
var pageRestHeight = restHeight;
|
|
49207
49241
|
var bStartRowFinished = true;
|
|
49208
49242
|
|
|
@@ -49696,21 +49730,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49696
49730
|
var row = -1;
|
|
49697
49731
|
var col = -1;
|
|
49698
49732
|
|
|
49699
|
-
for (var r = this._startRow; r <= this._endRow; r++) {
|
|
49700
|
-
var _this$_partRowHeights;
|
|
49701
|
-
|
|
49702
|
-
var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
|
|
49703
|
-
|
|
49704
|
-
if (rowHeight) {
|
|
49705
|
-
if (y >= top && y <= top + rowHeight) {
|
|
49706
|
-
row = r;
|
|
49707
|
-
break;
|
|
49708
|
-
}
|
|
49709
|
-
|
|
49710
|
-
top += rowHeight;
|
|
49711
|
-
}
|
|
49712
|
-
}
|
|
49713
|
-
|
|
49714
49733
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
49715
49734
|
var colWidth = this._table.colInfos[c].colWidth;
|
|
49716
49735
|
|
|
@@ -49726,12 +49745,60 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49726
49745
|
left += colWidth;
|
|
49727
49746
|
}
|
|
49728
49747
|
|
|
49748
|
+
var r = this._startRow;
|
|
49749
|
+
|
|
49750
|
+
while (r <= this._endRow) {
|
|
49751
|
+
var _this$_partRowHeights;
|
|
49752
|
+
|
|
49753
|
+
//for (let r = this._startRow; r <= this._endRow; r++) {
|
|
49754
|
+
var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
|
|
49755
|
+
var aHeight = rowHeight;
|
|
49756
|
+
var rowSpan = 1;
|
|
49757
|
+
|
|
49758
|
+
if (this._table.tableProperty.isAutoChangeLine) {
|
|
49759
|
+
var _this$_table$getMainC15 = this._table.getMainCell(r, col),
|
|
49760
|
+
_this$_table$getMainC16 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC15, 3),
|
|
49761
|
+
mainCell = _this$_table$getMainC16[0],
|
|
49762
|
+
mr = _this$_table$getMainC16[1],
|
|
49763
|
+
mc = _this$_table$getMainC16[2];
|
|
49764
|
+
|
|
49765
|
+
var partCell = mainCell.drawCell.getDrawPageCell(this);
|
|
49766
|
+
|
|
49767
|
+
if (partCell && aHeight) {
|
|
49768
|
+
rowHeight = Math.max(aHeight, partCell.docHeight);
|
|
49769
|
+
rowSpan = mainCell.rowSpan;
|
|
49770
|
+
}
|
|
49771
|
+
}
|
|
49772
|
+
|
|
49773
|
+
if (rowSpan > 1) {
|
|
49774
|
+
for (var i = 1; i < rowSpan; i++) {
|
|
49775
|
+
var arowInfos = this._partRowHeights.get(r + i);
|
|
49776
|
+
|
|
49777
|
+
if (arowInfos && arowInfos.rowHeight && aHeight) {
|
|
49778
|
+
aHeight += arowInfos.rowHeight;
|
|
49779
|
+
}
|
|
49780
|
+
}
|
|
49781
|
+
} //this._partRowHeights.get(r)?.rowHeight
|
|
49782
|
+
|
|
49783
|
+
|
|
49784
|
+
if (aHeight && rowHeight) {
|
|
49785
|
+
if (y >= top && y <= top + rowHeight) {
|
|
49786
|
+
row = r;
|
|
49787
|
+
break;
|
|
49788
|
+
}
|
|
49789
|
+
|
|
49790
|
+
top += aHeight;
|
|
49791
|
+
}
|
|
49792
|
+
|
|
49793
|
+
r += rowSpan;
|
|
49794
|
+
}
|
|
49795
|
+
|
|
49729
49796
|
if (row >= 0 && col >= 0) {
|
|
49730
|
-
var _this$_table$
|
|
49731
|
-
_this$_table$
|
|
49732
|
-
cell = _this$_table$
|
|
49733
|
-
|
|
49734
|
-
|
|
49797
|
+
var _this$_table$getMainC17 = this._table.getMainCell(row, col),
|
|
49798
|
+
_this$_table$getMainC18 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC17, 3),
|
|
49799
|
+
cell = _this$_table$getMainC18[0],
|
|
49800
|
+
_mr2 = _this$_table$getMainC18[1],
|
|
49801
|
+
_mc2 = _this$_table$getMainC18[2];
|
|
49735
49802
|
|
|
49736
49803
|
var ret = cell.drawCell.getDrawPageCell(this);
|
|
49737
49804
|
|
|
@@ -49764,11 +49831,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49764
49831
|
var ar = r;
|
|
49765
49832
|
|
|
49766
49833
|
if (!cell) {
|
|
49767
|
-
var _this$_table$
|
|
49768
|
-
_this$_table$
|
|
49769
|
-
mainCell = _this$_table$
|
|
49770
|
-
mr = _this$_table$
|
|
49771
|
-
mc = _this$_table$
|
|
49834
|
+
var _this$_table$getMainC19 = this._table.getMainCell(r, c),
|
|
49835
|
+
_this$_table$getMainC20 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC19, 3),
|
|
49836
|
+
mainCell = _this$_table$getMainC20[0],
|
|
49837
|
+
mr = _this$_table$getMainC20[1],
|
|
49838
|
+
mc = _this$_table$getMainC20[2];
|
|
49772
49839
|
|
|
49773
49840
|
cell = mainCell;
|
|
49774
49841
|
ar = mr;
|
|
@@ -49822,11 +49889,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49822
49889
|
var rowPaintHeight = Math.min(rowRestHeight, pageRestHeight);
|
|
49823
49890
|
|
|
49824
49891
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
49825
|
-
var _this$_table$
|
|
49826
|
-
_this$_table$
|
|
49827
|
-
cell = _this$_table$
|
|
49828
|
-
mr = _this$_table$
|
|
49829
|
-
mc = _this$_table$
|
|
49892
|
+
var _this$_table$getMainC21 = this._table.getMainCell(r, c),
|
|
49893
|
+
_this$_table$getMainC22 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC21, 3),
|
|
49894
|
+
cell = _this$_table$getMainC22[0],
|
|
49895
|
+
mr = _this$_table$getMainC22[1],
|
|
49896
|
+
mc = _this$_table$getMainC22[2];
|
|
49830
49897
|
|
|
49831
49898
|
var cellRestHeight = rowPaintHeight; //同一行的合并列只绘制一次
|
|
49832
49899
|
|
|
@@ -49887,11 +49954,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49887
49954
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
|
|
49888
49955
|
|
|
49889
49956
|
if (this.table.tableProperty.fixedOnePage) {
|
|
49890
|
-
|
|
49891
|
-
return;
|
|
49892
|
-
} else {
|
|
49893
|
-
dRestHeight = dRestHeight;
|
|
49894
|
-
}
|
|
49957
|
+
dRestHeight = Infinity;
|
|
49895
49958
|
}
|
|
49896
49959
|
|
|
49897
49960
|
var pageRestHeight = dRestHeight;
|
|
@@ -49955,11 +50018,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49955
50018
|
var isEmptyRow = true; //是否绘制了一个单元格
|
|
49956
50019
|
|
|
49957
50020
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
49958
|
-
var _this$_table$
|
|
49959
|
-
_this$_table$
|
|
49960
|
-
cell = _this$_table$
|
|
49961
|
-
mr = _this$_table$
|
|
49962
|
-
mc = _this$_table$
|
|
50021
|
+
var _this$_table$getMainC23 = this._table.getMainCell(r, c),
|
|
50022
|
+
_this$_table$getMainC24 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC23, 3),
|
|
50023
|
+
cell = _this$_table$getMainC24[0],
|
|
50024
|
+
mr = _this$_table$getMainC24[1],
|
|
50025
|
+
mc = _this$_table$getMainC24[2];
|
|
49963
50026
|
|
|
49964
50027
|
if (cell && mc === c && mr + cell.rowSpan - 1 === r) {
|
|
49965
50028
|
isEmptyRow = false;
|
|
@@ -49980,18 +50043,18 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49980
50043
|
}
|
|
49981
50044
|
|
|
49982
50045
|
for (var _c2 = 0; _c2 < this._table.colCount; _c2++) {
|
|
49983
|
-
var _this$_table$
|
|
49984
|
-
_this$_table$
|
|
49985
|
-
_cell2 = _this$_table$
|
|
49986
|
-
|
|
49987
|
-
|
|
50046
|
+
var _this$_table$getMainC25 = this._table.getMainCell(r, _c2),
|
|
50047
|
+
_this$_table$getMainC26 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC25, 3),
|
|
50048
|
+
_cell2 = _this$_table$getMainC26[0],
|
|
50049
|
+
_mr3 = _this$_table$getMainC26[1],
|
|
50050
|
+
_mc3 = _this$_table$getMainC26[2];
|
|
49988
50051
|
|
|
49989
|
-
if (_cell2 &&
|
|
50052
|
+
if (_cell2 && _mc3 === _c2 && (_mr3 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
|
|
49990
50053
|
var startChildIndex = 0;
|
|
49991
50054
|
var partCellindex = -1;
|
|
49992
50055
|
var dPrevPartCell = null;
|
|
49993
50056
|
|
|
49994
|
-
if (prevdPageTable &&
|
|
50057
|
+
if (prevdPageTable && _mr3 <= this._startRow) {
|
|
49995
50058
|
dPrevPartCell = _cell2.drawCell.getDrawPageCell(prevdPageTable);
|
|
49996
50059
|
|
|
49997
50060
|
if (dPrevPartCell) {
|
|
@@ -50046,7 +50109,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50046
50109
|
_cell2.drawCell.needUpdate = true;
|
|
50047
50110
|
}
|
|
50048
50111
|
|
|
50049
|
-
if (r ===
|
|
50112
|
+
if (r === _mr3) {
|
|
50050
50113
|
dPartCell.maxHeight = pageRestHeight;
|
|
50051
50114
|
dPartCell.dHeight = Math.min(rowRestHeight, pageRestHeight);
|
|
50052
50115
|
} else {
|
|
@@ -50148,11 +50211,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50148
50211
|
//跨行单元格只在绘制所跨最后一行时绘制
|
|
50149
50212
|
continue;
|
|
50150
50213
|
} else if (!cell) {
|
|
50151
|
-
var _this$_table$
|
|
50152
|
-
_this$_table$
|
|
50153
|
-
mainCell = _this$_table$
|
|
50154
|
-
mr = _this$_table$
|
|
50155
|
-
mc = _this$_table$
|
|
50214
|
+
var _this$_table$getMainC27 = this._table.getMainCell(r, j),
|
|
50215
|
+
_this$_table$getMainC28 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC27, 3),
|
|
50216
|
+
mainCell = _this$_table$getMainC28[0],
|
|
50217
|
+
mr = _this$_table$getMainC28[1],
|
|
50218
|
+
mc = _this$_table$getMainC28[2];
|
|
50156
50219
|
|
|
50157
50220
|
if (mr + mainCell.rowSpan - 1 === r && mc === j) {
|
|
50158
50221
|
cell = mainCell;
|
|
@@ -51162,7 +51225,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51162
51225
|
bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
|
|
51163
51226
|
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
51164
51227
|
var hitArea = new createjs.Shape();
|
|
51165
|
-
hitArea.graphics.beginFill("#000").drawRect(
|
|
51228
|
+
hitArea.graphics.beginFill("#000").drawRect(fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
|
|
51166
51229
|
|
|
51167
51230
|
bitmap.hitArea = hitArea;
|
|
51168
51231
|
fingerBitmap.hitArea = hitArea;
|
|
@@ -61217,7 +61280,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61217
61280
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86160);
|
|
61218
61281
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39873);
|
|
61219
61282
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35671);
|
|
61220
|
-
/* harmony import */ var
|
|
61283
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(22342);
|
|
61221
61284
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99640);
|
|
61222
61285
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28214);
|
|
61223
61286
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -61243,6 +61306,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61243
61306
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(41005);
|
|
61244
61307
|
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15868);
|
|
61245
61308
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(15798);
|
|
61309
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(98199);
|
|
61246
61310
|
|
|
61247
61311
|
|
|
61248
61312
|
|
|
@@ -61257,8 +61321,8 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61257
61321
|
/*
|
|
61258
61322
|
* @Author: your name
|
|
61259
61323
|
* @Date: 2020-09-24 15:56:09
|
|
61260
|
-
* @LastEditTime: 2022-
|
|
61261
|
-
* @LastEditors:
|
|
61324
|
+
* @LastEditTime: 2022-06-07 15:10:10
|
|
61325
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
61262
61326
|
* @Description: In User Settings Edit
|
|
61263
61327
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
61264
61328
|
*/
|
|
@@ -61277,6 +61341,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61277
61341
|
|
|
61278
61342
|
|
|
61279
61343
|
|
|
61344
|
+
|
|
61280
61345
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
61281
61346
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
61282
61347
|
|
|
@@ -61297,7 +61362,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61297
61362
|
return _this;
|
|
61298
61363
|
}
|
|
61299
61364
|
|
|
61300
|
-
(0,
|
|
61365
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
|
|
61301
61366
|
key: "undo",
|
|
61302
61367
|
value: function undo() {
|
|
61303
61368
|
this.doUndo();
|
|
@@ -61389,6 +61454,11 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61389
61454
|
} else if (this._pnode && this._pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && this.strBeforePath != hoEditorFactory.docTree.getNodeLastPath(this._pnode)) {
|
|
61390
61455
|
//删除文本域节点的提示文本,并更新重绘整个文本域
|
|
61391
61456
|
var pTiNode = this._pnode;
|
|
61457
|
+
|
|
61458
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__/* .PaintState.psReview */ .Dh.psReview && this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === 2 && this.node.text.startsWith("C") && this._pnode.childNodes.length === 3 && this._pnode.childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j) {
|
|
61459
|
+
return path;
|
|
61460
|
+
}
|
|
61461
|
+
|
|
61392
61462
|
var res = pTiNode.getReadyToEdit(function (value) {
|
|
61393
61463
|
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
61394
61464
|
_this2._undo.begin();
|
|
@@ -62686,7 +62756,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62686
62756
|
//if(nodes.length == 0) return;
|
|
62687
62757
|
|
|
62688
62758
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
62689
|
-
_context.next =
|
|
62759
|
+
_context.next = 33;
|
|
62690
62760
|
break;
|
|
62691
62761
|
}
|
|
62692
62762
|
|
|
@@ -62694,19 +62764,29 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62694
62764
|
|
|
62695
62765
|
case 13:
|
|
62696
62766
|
if (!(n < nodes.length)) {
|
|
62697
|
-
_context.next =
|
|
62767
|
+
_context.next = 33;
|
|
62698
62768
|
break;
|
|
62699
62769
|
}
|
|
62700
62770
|
|
|
62701
62771
|
node = nodes[n];
|
|
62702
62772
|
|
|
62773
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_21__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
62774
|
+
_context.next = 18;
|
|
62775
|
+
break;
|
|
62776
|
+
}
|
|
62777
|
+
|
|
62778
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
62779
|
+
|
|
62780
|
+
return _context.abrupt("return", 0);
|
|
62781
|
+
|
|
62782
|
+
case 18:
|
|
62703
62783
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_28__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re)) {
|
|
62704
|
-
_context.next =
|
|
62784
|
+
_context.next = 27;
|
|
62705
62785
|
break;
|
|
62706
62786
|
}
|
|
62707
62787
|
|
|
62708
62788
|
if (node.isAllowDelete) {
|
|
62709
|
-
_context.next =
|
|
62789
|
+
_context.next = 27;
|
|
62710
62790
|
break;
|
|
62711
62791
|
}
|
|
62712
62792
|
|
|
@@ -62732,9 +62812,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62732
62812
|
|
|
62733
62813
|
return _context.abrupt("return", 0);
|
|
62734
62814
|
|
|
62735
|
-
case
|
|
62815
|
+
case 27:
|
|
62736
62816
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
62737
|
-
_context.next =
|
|
62817
|
+
_context.next = 30;
|
|
62738
62818
|
break;
|
|
62739
62819
|
}
|
|
62740
62820
|
|
|
@@ -62742,16 +62822,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62742
62822
|
|
|
62743
62823
|
return _context.abrupt("return", 0);
|
|
62744
62824
|
|
|
62745
|
-
case
|
|
62825
|
+
case 30:
|
|
62746
62826
|
n++;
|
|
62747
62827
|
_context.next = 13;
|
|
62748
62828
|
break;
|
|
62749
62829
|
|
|
62750
|
-
case
|
|
62830
|
+
case 33:
|
|
62751
62831
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
62752
62832
|
|
|
62753
62833
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_20__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
62754
|
-
_context.next =
|
|
62834
|
+
_context.next = 39;
|
|
62755
62835
|
break;
|
|
62756
62836
|
}
|
|
62757
62837
|
|
|
@@ -62764,24 +62844,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62764
62844
|
});
|
|
62765
62845
|
|
|
62766
62846
|
if (_res[0]) {
|
|
62767
|
-
_context.next =
|
|
62847
|
+
_context.next = 39;
|
|
62768
62848
|
break;
|
|
62769
62849
|
}
|
|
62770
62850
|
|
|
62771
62851
|
return _context.abrupt("return");
|
|
62772
62852
|
|
|
62773
|
-
case
|
|
62853
|
+
case 39:
|
|
62774
62854
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_14__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_12__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
62775
62855
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
62776
62856
|
|
|
62777
62857
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
62778
|
-
_context.next =
|
|
62858
|
+
_context.next = 42;
|
|
62779
62859
|
break;
|
|
62780
62860
|
}
|
|
62781
62861
|
|
|
62782
62862
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_22__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62783
62863
|
|
|
62784
|
-
case
|
|
62864
|
+
case 42:
|
|
62785
62865
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
62786
62866
|
// this._hoEditorFactory,
|
|
62787
62867
|
// currRange.startPath,
|
|
@@ -62794,33 +62874,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62794
62874
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
62795
62875
|
|
|
62796
62876
|
if (!(res == 1)) {
|
|
62797
|
-
_context.next =
|
|
62877
|
+
_context.next = 54;
|
|
62798
62878
|
break;
|
|
62799
62879
|
}
|
|
62800
62880
|
|
|
62801
62881
|
changeEvent.beforeChangePath = startPath;
|
|
62802
62882
|
changeEvent.afterChangePath = this._tmp.start;
|
|
62803
|
-
_context.next =
|
|
62883
|
+
_context.next = 52;
|
|
62804
62884
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
62805
62885
|
|
|
62806
|
-
case
|
|
62886
|
+
case 52:
|
|
62807
62887
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_16__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
62808
62888
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
62809
62889
|
|
|
62810
|
-
case
|
|
62890
|
+
case 54:
|
|
62811
62891
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
62812
62892
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
62813
62893
|
aNode = currRange.npStart.node;
|
|
62814
62894
|
|
|
62815
62895
|
if (!(aNode && pnode)) {
|
|
62816
|
-
_context.next =
|
|
62896
|
+
_context.next = 60;
|
|
62817
62897
|
break;
|
|
62818
62898
|
}
|
|
62819
62899
|
|
|
62820
|
-
_context.next =
|
|
62900
|
+
_context.next = 60;
|
|
62821
62901
|
return this.ParentRepaint(pnode);
|
|
62822
62902
|
|
|
62823
|
-
case
|
|
62903
|
+
case 60:
|
|
62824
62904
|
case "end":
|
|
62825
62905
|
return _context.stop();
|
|
62826
62906
|
}
|
|
@@ -199961,7 +200041,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
199961
200041
|
key: "mouseDblClick",
|
|
199962
200042
|
value: function () {
|
|
199963
200043
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
199964
|
-
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2
|
|
200044
|
+
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2;
|
|
199965
200045
|
|
|
199966
200046
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
199967
200047
|
while (1) {
|
|
@@ -200119,48 +200199,42 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200119
200199
|
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200120
200200
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200121
200201
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
200122
|
-
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200123
|
-
|
|
200124
|
-
|
|
200125
|
-
|
|
200126
|
-
|
|
200127
|
-
|
|
200128
|
-
|
|
200129
|
-
|
|
200130
|
-
|
|
200131
|
-
|
|
200132
|
-
|
|
200133
|
-
|
|
200134
|
-
|
|
200135
|
-
|
|
200136
|
-
|
|
200137
|
-
|
|
200138
|
-
|
|
200139
|
-
|
|
200140
|
-
|
|
200141
|
-
|
|
200142
|
-
|
|
200143
|
-
|
|
200144
|
-
|
|
200145
|
-
|
|
200146
|
-
|
|
200147
|
-
|
|
200148
|
-
|
|
200149
|
-
|
|
200150
|
-
|
|
200202
|
+
} // else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200203
|
+
// //处理自动换行表格,双击时光标跳到指定双击位置
|
|
200204
|
+
// const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
200205
|
+
// if (dPageTable) {
|
|
200206
|
+
// const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
200207
|
+
// if (dPageCell) {
|
|
200208
|
+
// const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
200209
|
+
// let docHeight = 0;
|
|
200210
|
+
// let dHeight = 0;
|
|
200211
|
+
// const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
200212
|
+
// for (let i = 0; i < index; i++) {
|
|
200213
|
+
// docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
200214
|
+
// dHeight += cellNode.drawCell.drawPageCells[i].dHeight
|
|
200215
|
+
// }
|
|
200216
|
+
// const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
|
|
200217
|
+
// if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
200218
|
+
// const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
|
|
200219
|
+
// const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
200220
|
+
// const count = Math.floor(distance / aHeight);
|
|
200221
|
+
// let str = "";
|
|
200222
|
+
// for (let j = 0; j < count; j++) {
|
|
200223
|
+
// str += "\n"
|
|
200224
|
+
// }
|
|
200225
|
+
// if (str != "") {
|
|
200226
|
+
// const oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200227
|
+
// const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200228
|
+
// const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
|
|
200229
|
+
// hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
200230
|
+
// hoEditorFactory.docTree.curDomRange = newRange;
|
|
200231
|
+
// hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
|
|
200232
|
+
// }
|
|
200233
|
+
// }
|
|
200234
|
+
// }
|
|
200235
|
+
// }
|
|
200236
|
+
// }
|
|
200151
200237
|
|
|
200152
|
-
if (str != "") {
|
|
200153
|
-
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200154
|
-
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200155
|
-
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
200156
|
-
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
200157
|
-
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
200158
|
-
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
200159
|
-
}
|
|
200160
|
-
}
|
|
200161
|
-
}
|
|
200162
|
-
}
|
|
200163
|
-
}
|
|
200164
200238
|
|
|
200165
200239
|
case 45:
|
|
200166
200240
|
return _context.abrupt("return", true);
|
|
@@ -206655,7 +206729,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206655
206729
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206656
206730
|
var ParagraphNode = __webpack_require__(14208);
|
|
206657
206731
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206658
|
-
/* harmony default export */ var version = ('2.0.
|
|
206732
|
+
/* harmony default export */ var version = ('2.0.54');
|
|
206659
206733
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
206660
206734
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
206661
206735
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209567,6 +209641,14 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
209567
209641
|
return tmp;
|
|
209568
209642
|
} else {
|
|
209569
209643
|
for (var i = 0; i < jnode.childNodes.length; i++) {
|
|
209644
|
+
if (jnode.childNodes[i].nodeName.toLowerCase() == "img") {
|
|
209645
|
+
var src = jnode.childNodes[i].src;
|
|
209646
|
+
|
|
209647
|
+
if (src && src.toString().substring(src.length - 4, src.length) === ".svg") {
|
|
209648
|
+
continue;
|
|
209649
|
+
}
|
|
209650
|
+
}
|
|
209651
|
+
|
|
209570
209652
|
var fun = this.convert.get(jnode.childNodes[i].nodeName.toLowerCase());
|
|
209571
209653
|
|
|
209572
209654
|
if (fun) {
|
|
@@ -209827,7 +209909,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
209827
209909
|
|
|
209828
209910
|
var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
|
|
209829
209911
|
var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
|
|
209830
|
-
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", width, height);
|
|
209912
|
+
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", Number(width), Number(height));
|
|
209831
209913
|
return [node];
|
|
209832
209914
|
}
|
|
209833
209915
|
}, {
|
|
@@ -210041,7 +210123,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210041
210123
|
var textstyle = this.HTMLStyleToParsStyle(styleobj);
|
|
210042
210124
|
if (textstyle.lineSpace === 0) textstyle.lineSpace = undefined;
|
|
210043
210125
|
var index = hoEditorFactory.docTree.styleCompare(textstyle);
|
|
210044
|
-
var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath), index
|
|
210126
|
+
var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath), index //hoEditorFactory.docTree.curParaNo
|
|
210127
|
+
);
|
|
210045
210128
|
tmp.push(node);
|
|
210046
210129
|
|
|
210047
210130
|
if (jnode.childNodes.length == 0) {
|
|
@@ -213227,7 +213310,7 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
213227
213310
|
if (!uidArr[i]) continue;
|
|
213228
213311
|
|
|
213229
213312
|
if (i > 0) {
|
|
213230
|
-
var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null,
|
|
213313
|
+
var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
|
|
213231
213314
|
nodes.push(paraNode);
|
|
213232
213315
|
}
|
|
213233
213316
|
|
|
@@ -218802,6 +218885,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218802
218885
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218803
218886
|
hoEditorFactory.docController.updateSignTime(node, signText);
|
|
218804
218887
|
}
|
|
218888
|
+
/**
|
|
218889
|
+
* 更新签名类型
|
|
218890
|
+
* @param node 签名节点
|
|
218891
|
+
* @param type 签名类型
|
|
218892
|
+
* @param imgSrc 签名内容
|
|
218893
|
+
*/
|
|
218894
|
+
|
|
218895
|
+
}, {
|
|
218896
|
+
key: "updateSignType",
|
|
218897
|
+
value: function updateSignType(node, type, imgSrc) {
|
|
218898
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218899
|
+
hoEditorFactory.docController.updateSignType(node, type, imgSrc);
|
|
218900
|
+
}
|
|
218805
218901
|
/**
|
|
218806
218902
|
* 强制删除
|
|
218807
218903
|
*/
|
|
@@ -219013,7 +219109,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219013
219109
|
|
|
219014
219110
|
}, {
|
|
219015
219111
|
key: "getAllElements",
|
|
219016
|
-
value: function getAllElements() {
|
|
219112
|
+
value: function getAllElements(area) {
|
|
219017
219113
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219018
219114
|
var ret = [];
|
|
219019
219115
|
|
|
@@ -219023,21 +219119,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219023
219119
|
|
|
219024
219120
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
219025
219121
|
// if (node.readType === 1) {
|
|
219026
|
-
|
|
219027
|
-
|
|
219028
|
-
|
|
219029
|
-
|
|
219122
|
+
// const elementObj: Record<string, string | undefined | object> = {
|
|
219123
|
+
// id: "",
|
|
219124
|
+
// name: "",
|
|
219125
|
+
// text: "",
|
|
219126
|
+
// dataVerify: undefined,
|
|
219127
|
+
// innerIdentifier: "",
|
|
219128
|
+
// identifierFormat: "",
|
|
219129
|
+
// };
|
|
219130
|
+
// elementObj.id = node.id;
|
|
219131
|
+
// elementObj.name = node.name;
|
|
219132
|
+
// elementObj.text = node.text;
|
|
219133
|
+
// elementObj.innerIdentifier = node.innerIdentifier;
|
|
219134
|
+
// elementObj.identifierFormat = node.identifierFormat;
|
|
219135
|
+
// elementObj.customProperty = node.customProperty;
|
|
219136
|
+
ret.push({
|
|
219137
|
+
id: node.id,
|
|
219138
|
+
name: node.name,
|
|
219139
|
+
text: node.text,
|
|
219030
219140
|
dataVerify: undefined,
|
|
219031
|
-
innerIdentifier:
|
|
219032
|
-
identifierFormat:
|
|
219033
|
-
|
|
219034
|
-
|
|
219035
|
-
elementObj.name = node.name;
|
|
219036
|
-
elementObj.text = node.text;
|
|
219037
|
-
elementObj.innerIdentifier = node.innerIdentifier;
|
|
219038
|
-
elementObj.identifierFormat = node.identifierFormat;
|
|
219039
|
-
elementObj.customProperty = node.customProperty;
|
|
219040
|
-
ret.push(elementObj); // }
|
|
219141
|
+
innerIdentifier: node.innerIdentifier,
|
|
219142
|
+
identifierFormat: node.identifierFormat,
|
|
219143
|
+
customProperty: node.customProperty
|
|
219144
|
+
}); // }
|
|
219041
219145
|
}
|
|
219042
219146
|
|
|
219043
219147
|
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
@@ -219046,20 +219150,27 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219046
219150
|
}
|
|
219047
219151
|
};
|
|
219048
219152
|
|
|
219049
|
-
|
|
219153
|
+
if (area == undefined || area == 'header') {
|
|
219154
|
+
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
219050
219155
|
|
|
219051
|
-
|
|
219052
|
-
|
|
219053
|
-
|
|
219156
|
+
for (var h = 0; h < headerDocTree.length; h++) {
|
|
219157
|
+
if (!headerDocTree[h]) continue;
|
|
219158
|
+
getAllNodes(headerDocTree[h].subDocNodes);
|
|
219159
|
+
}
|
|
219054
219160
|
}
|
|
219055
219161
|
|
|
219056
|
-
|
|
219057
|
-
|
|
219058
|
-
|
|
219162
|
+
if (area == undefined || area == 'main') {
|
|
219163
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
219164
|
+
getAllNodes(mainNodes);
|
|
219165
|
+
}
|
|
219059
219166
|
|
|
219060
|
-
|
|
219061
|
-
|
|
219062
|
-
|
|
219167
|
+
if (area == undefined || area == 'footer') {
|
|
219168
|
+
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
219169
|
+
|
|
219170
|
+
for (var f = 0; f < footerDocTree.length; f++) {
|
|
219171
|
+
if (!footerDocTree[f]) continue;
|
|
219172
|
+
getAllNodes(footerDocTree[f].subDocNodes);
|
|
219173
|
+
}
|
|
219063
219174
|
}
|
|
219064
219175
|
|
|
219065
219176
|
return ret;
|
|
@@ -219078,7 +219189,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219078
219189
|
var _loop2 = function _loop2(i) {
|
|
219079
219190
|
var node = nodes[i];
|
|
219080
219191
|
|
|
219081
|
-
if (node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.childNodes.filter(function (child) {
|
|
219192
|
+
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
|
|
219082
219193
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219083
219194
|
}).length === 0) {
|
|
219084
219195
|
if (arr.filter(function (v) {
|
|
@@ -219137,7 +219248,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219137
219248
|
return allArr;
|
|
219138
219249
|
}
|
|
219139
219250
|
/**
|
|
219140
|
-
*
|
|
219251
|
+
* 获取当前病历中的所有ca签名元素
|
|
219141
219252
|
* @returns 返回元素是{id,name,text,json}的数据
|
|
219142
219253
|
*/
|
|
219143
219254
|
|
|
@@ -220086,12 +220197,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220086
220197
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
220087
220198
|
hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
|
|
220088
220199
|
}
|
|
220200
|
+
/**
|
|
220201
|
+
* 初始化文档
|
|
220202
|
+
*/
|
|
220203
|
+
|
|
220089
220204
|
}, {
|
|
220090
220205
|
key: "initBlankDoc",
|
|
220091
220206
|
value: function initBlankDoc() {
|
|
220092
220207
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220093
220208
|
hoEditorFactory.docController.initBlankDoc();
|
|
220094
220209
|
}
|
|
220210
|
+
/**
|
|
220211
|
+
* 清理病历文档树 触发浏览器内存回收
|
|
220212
|
+
*/
|
|
220213
|
+
|
|
220095
220214
|
}, {
|
|
220096
220215
|
key: "destoryEditor",
|
|
220097
220216
|
value: function destoryEditor() {
|
|
@@ -220099,12 +220218,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220099
220218
|
hoEditorFactory.clear();
|
|
220100
220219
|
hoEditorFactory = null;
|
|
220101
220220
|
}
|
|
220221
|
+
/**
|
|
220222
|
+
* 获取签名元素清理后的病历xml内容
|
|
220223
|
+
* @returns xml
|
|
220224
|
+
*/
|
|
220225
|
+
|
|
220102
220226
|
}, {
|
|
220103
220227
|
key: "clearSignNodes",
|
|
220104
220228
|
value: function clearSignNodes() {
|
|
220105
220229
|
var xml = this.getDocXml(true, true, true);
|
|
220106
220230
|
return xml;
|
|
220107
220231
|
}
|
|
220232
|
+
/**
|
|
220233
|
+
* // 获取当前病历中是否有未处理的批注
|
|
220234
|
+
* @param area 0 --- 未处理 1 --- 已处理 undefined ----存在批注
|
|
220235
|
+
* @returns boolean 是否查询到批注内容
|
|
220236
|
+
*/
|
|
220237
|
+
|
|
220108
220238
|
}, {
|
|
220109
220239
|
key: "getDocComment",
|
|
220110
220240
|
value: function getDocComment(area) {
|
|
@@ -220121,6 +220251,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220121
220251
|
});
|
|
220122
220252
|
return ishandle;
|
|
220123
220253
|
}
|
|
220254
|
+
/**
|
|
220255
|
+
* 批量修改当前病历中批注处理状态
|
|
220256
|
+
* @param status 默认修改为 1==已处理
|
|
220257
|
+
*/
|
|
220258
|
+
|
|
220124
220259
|
}, {
|
|
220125
220260
|
key: "setDocCommentIsHandle",
|
|
220126
220261
|
value: function setDocCommentIsHandle(status) {
|
|
@@ -220134,6 +220269,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220134
220269
|
});
|
|
220135
220270
|
drawTree.commentsMap = commentsMap;
|
|
220136
220271
|
}
|
|
220272
|
+
/**
|
|
220273
|
+
* 查询是否存在医生签名
|
|
220274
|
+
* @returns boolean
|
|
220275
|
+
*/
|
|
220276
|
+
|
|
220137
220277
|
}, {
|
|
220138
220278
|
key: "getAllSignNode",
|
|
220139
220279
|
value: function getAllSignNode() {
|
|
@@ -221162,6 +221302,10 @@ var EditController = /*#__PURE__*/function () {
|
|
|
221162
221302
|
for (var n = 0; n < nodes.length; n++) {
|
|
221163
221303
|
var node = nodes[n];
|
|
221164
221304
|
if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
221305
|
+
|
|
221306
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221307
|
+
node.paraNo = hoeditorfactory.docTree.curParaNo;
|
|
221308
|
+
}
|
|
221165
221309
|
}
|
|
221166
221310
|
}
|
|
221167
221311
|
|
|
@@ -222535,9 +222679,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222535
222679
|
hoEditorFactory.printStatus.printAppoint = '';
|
|
222536
222680
|
hoEditorFactory.printStatus.drawPrintRecord.Position = [0, 0];
|
|
222537
222681
|
hoEditorFactory.startPageNum = 0;
|
|
222538
|
-
hoEditorFactory.firstPageStartTop = 0;
|
|
222539
|
-
|
|
222540
|
-
|
|
222682
|
+
hoEditorFactory.firstPageStartTop = 0;
|
|
222683
|
+
hoEditorFactory.printStatus.clearArea();
|
|
222684
|
+
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
222541
222685
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
222542
222686
|
}
|
|
222543
222687
|
});
|