hoeditor-web 2.0.88 → 2.0.89

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.
@@ -62573,14 +62573,14 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62573
62573
  // const markerLine1 = new createjs.Shape();
62574
62574
  // const markerLine2 = new createjs.Shape();
62575
62575
  // const markerLine3 = new createjs.Shape();
62576
- // const markerLine4 = new createjs.Shape();
62576
+ // const markerLine4 = new createjs.Shape();
62577
62577
  var width = this.dWidth;
62578
62578
  var height = this.dHeight; // markerLine1.name = "markline1";
62579
62579
  // markerLine2.name = "markline2";
62580
62580
  // markerLine3.name = "markline3";
62581
62581
  // markerLine4.name = "markline4";
62582
62582
 
62583
- this._backImg.graphics.beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
62583
+ this._backImg.graphics.clear().beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
62584
62584
 
62585
62585
  this._backImg.graphics.endStroke(); // this.addChild(markerLine1);
62586
62586
 
@@ -63598,7 +63598,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
63598
63598
  var colInfo = this._table.colInfos[c];
63599
63599
 
63600
63600
  if (partCell.cell.cellProperty.editorProperty !== 0 || colInfo.colProperty.editorProperty !== 0) {
63601
- partCell.paintMarker("#FB0101");
63601
+ partCell.paintMarker("#FF0000");
63602
63602
  }
63603
63603
 
63604
63604
  var isHasTableFormula = false;
@@ -63621,7 +63621,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
63621
63621
  loopNodes(partCell.cell.childNodes);
63622
63622
 
63623
63623
  if (isHasTableFormula) {
63624
- partCell.paintMarker("#0312FA");
63624
+ partCell.paintMarker("#0000FF");
63625
63625
  }
63626
63626
 
63627
63627
  partCell.paintCellBackground(newHeight, r, c);
@@ -76153,9 +76153,9 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
76153
76153
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76154
76154
  /* harmony export */ "F": function() { return /* binding */ NodesDeleteUndoUnit; }
76155
76155
  /* harmony export */ });
76156
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87461);
76157
- /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86769);
76158
- /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1__);
76156
+ /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86769);
76157
+ /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__);
76158
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87461);
76159
76159
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
76160
76160
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
76161
76161
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
@@ -76286,73 +76286,96 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76286
76286
  }
76287
76287
  }, {
76288
76288
  key: "doUndo",
76289
- value: function doUndo() {
76290
- var arr = Array.from(this._undoNodes).reverse();
76291
- var i = 0;
76292
- var prevIsTable = false;
76293
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
76289
+ value: function () {
76290
+ var _doUndo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee() {
76291
+ var arr, i, prevIsTable, hoEditorFactory, value, np, aendPaht, changeEvent, newRange, cgEvent;
76292
+ return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
76293
+ while (1) {
76294
+ switch (_context.prev = _context.next) {
76295
+ case 0:
76296
+ arr = Array.from(this._undoNodes).reverse();
76297
+ i = 0;
76298
+ prevIsTable = false;
76299
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
76294
76300
 
76295
- while (i < arr.length) {
76296
- var value = arr[i];
76301
+ while (i < arr.length) {
76302
+ value = arr[i];
76297
76303
 
76298
- if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
76299
- } else {
76300
- if (prevIsTable) {
76301
- hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
76302
- } else {
76303
- hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
76304
- }
76304
+ if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
76305
+ } else {
76306
+ if (prevIsTable) {
76307
+ hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
76308
+ } else {
76309
+ hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
76310
+ }
76305
76311
 
76306
- if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
76307
- prevIsTable = true; // value[1].clearDrawNodes();
76308
- // value[1].drawTable.drawPageTables.length = 0;
76312
+ if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
76313
+ prevIsTable = true; // value[1].clearDrawNodes();
76314
+ // value[1].drawTable.drawPageTables.length = 0;
76309
76315
 
76310
- var np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
76311
- if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
76312
- } else {
76313
- prevIsTable = false;
76314
- }
76315
- }
76316
+ np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
76317
+ if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
76318
+ } else {
76319
+ prevIsTable = false;
76320
+ }
76321
+ }
76316
76322
 
76317
- i += 1;
76318
- }
76323
+ i += 1;
76324
+ }
76319
76325
 
76320
- var aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
76321
- var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
76322
- hoEditorFactory.docTree.change(changeEvent); //3.合并拆分节点
76326
+ aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
76327
+ changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
76328
+ _context.next = 9;
76329
+ return hoEditorFactory.docTree.change(changeEvent);
76323
76330
 
76324
- while (!this._undo.atBottom()) {
76325
- this._undo.undo();
76326
- } // let startPath = this._startPath;
76327
- // let endPath = this._endPath;
76328
- // if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
76329
- // startPath = this._endPath;
76330
- // endPath = this._startPath;
76331
- // }
76332
- // if (startPath !== "" && endPath !== "") {
76333
- // const arange = new DomRange(
76334
- // this._hoEditorFactoryID,
76335
- // startPath,
76336
- // endPath
76337
- // ).normalize();
76338
- // const changeEvent = new NodeChangeEvent(
76339
- // this._hoEditorFactoryID,
76340
- // DocAction.daInsert,
76341
- // arange.startPath,
76342
- // arange.endPath
76343
- // );
76344
- // hoEditorFactory.docTree.change(changeEvent);
76345
- // }
76346
- //选中范围变化事件
76331
+ case 9:
76332
+ //3.合并拆分节点
76333
+ while (!this._undo.atBottom()) {
76334
+ this._undo.undo();
76335
+ } // let startPath = this._startPath;
76336
+ // let endPath = this._endPath;
76337
+ // if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
76338
+ // startPath = this._endPath;
76339
+ // endPath = this._startPath;
76340
+ // }
76341
+ // if (startPath !== "" && endPath !== "") {
76342
+ // const arange = new DomRange(
76343
+ // this._hoEditorFactoryID,
76344
+ // startPath,
76345
+ // endPath
76346
+ // ).normalize();
76347
+ // const changeEvent = new NodeChangeEvent(
76348
+ // this._hoEditorFactoryID,
76349
+ // DocAction.daInsert,
76350
+ // arange.startPath,
76351
+ // arange.endPath
76352
+ // );
76353
+ // hoEditorFactory.docTree.change(changeEvent);
76354
+ // }
76355
+ //选中范围变化事件
76347
76356
 
76348
76357
 
76349
- var newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
76350
- hoEditorFactory.docTree.curDomRange = newRange;
76351
- var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
76352
- hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
76358
+ newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
76359
+ hoEditorFactory.docTree.curDomRange = newRange;
76360
+ cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
76361
+ hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
76353
76362
 
76354
- hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
76355
- }
76363
+ hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
76364
+
76365
+ case 15:
76366
+ case "end":
76367
+ return _context.stop();
76368
+ }
76369
+ }
76370
+ }, _callee, this);
76371
+ }));
76372
+
76373
+ function doUndo() {
76374
+ return _doUndo.apply(this, arguments);
76375
+ }
76376
+
76377
+ return doUndo;
76378
+ }()
76356
76379
  /**
76357
76380
  * @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
76358
76381
  */
@@ -76724,14 +76747,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76724
76747
  }, {
76725
76748
  key: "doRedo",
76726
76749
  value: function () {
76727
- var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().mark(function _callee() {
76750
+ var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2() {
76728
76751
  var _currRange$npEnd$node;
76729
76752
 
76730
76753
  var currRange, hoEditorFactory, textStyle, nodes, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
76731
76754
 
76732
- return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
76755
+ return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
76733
76756
  while (1) {
76734
- switch (_context.prev = _context.next) {
76757
+ switch (_context2.prev = _context2.next) {
76735
76758
  case 0:
76736
76759
  this.initParam();
76737
76760
  currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
@@ -76739,26 +76762,26 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76739
76762
  hoEditorFactory.docTree.curDomRange = currRange;
76740
76763
 
76741
76764
  if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
76742
- _context.next = 11;
76765
+ _context2.next = 11;
76743
76766
  break;
76744
76767
  }
76745
76768
 
76746
76769
  if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
76747
- _context.next = 11;
76770
+ _context2.next = 11;
76748
76771
  break;
76749
76772
  }
76750
76773
 
76751
76774
  textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
76752
76775
 
76753
76776
  if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
76754
- _context.next = 11;
76777
+ _context2.next = 11;
76755
76778
  break;
76756
76779
  }
76757
76780
 
76758
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该内容当前已处于删除状态!");
76781
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该内容当前已处于删除状态!");
76759
76782
 
76760
76783
  this._isError = true;
76761
- return _context.abrupt("return");
76784
+ return _context2.abrupt("return");
76762
76785
 
76763
76786
  case 11:
76764
76787
  nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
@@ -76773,7 +76796,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76773
76796
  //if(nodes.length == 0) return;
76774
76797
 
76775
76798
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
76776
- _context.next = 38;
76799
+ _context2.next = 38;
76777
76800
  break;
76778
76801
  }
76779
76802
 
@@ -76781,21 +76804,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76781
76804
 
76782
76805
  case 14:
76783
76806
  if (!(n < nodes.length)) {
76784
- _context.next = 38;
76807
+ _context2.next = 38;
76785
76808
  break;
76786
76809
  }
76787
76810
 
76788
76811
  node = nodes[n];
76789
76812
 
76790
76813
  if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
76791
- _context.next = 20;
76814
+ _context2.next = 20;
76792
76815
  break;
76793
76816
  }
76794
76817
 
76795
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76818
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76796
76819
 
76797
76820
  this._isError = true;
76798
- return _context.abrupt("return");
76821
+ return _context2.abrupt("return");
76799
76822
 
76800
76823
  case 20:
76801
76824
  if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
@@ -76803,12 +76826,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76803
76826
  }
76804
76827
 
76805
76828
  if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
76806
- _context.next = 31;
76829
+ _context2.next = 31;
76807
76830
  break;
76808
76831
  }
76809
76832
 
76810
76833
  if (node.isAllowDelete) {
76811
- _context.next = 31;
76834
+ _context2.next = 31;
76812
76835
  break;
76813
76836
  }
76814
76837
 
@@ -76830,32 +76853,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76830
76853
  tip = "下拉列表";
76831
76854
  }
76832
76855
 
76833
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76856
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
76834
76857
 
76835
76858
  this._isError = true;
76836
- return _context.abrupt("return");
76859
+ return _context2.abrupt("return");
76837
76860
 
76838
76861
  case 31:
76839
76862
  if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
76840
- _context.next = 35;
76863
+ _context2.next = 35;
76841
76864
  break;
76842
76865
  }
76843
76866
 
76844
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_1___default().alert("该签名元素不允许删除!", "系统提示");
76867
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该签名元素不允许删除!", "系统提示");
76845
76868
 
76846
76869
  this._isError = true;
76847
- return _context.abrupt("return");
76870
+ return _context2.abrupt("return");
76848
76871
 
76849
76872
  case 35:
76850
76873
  n++;
76851
- _context.next = 14;
76874
+ _context2.next = 14;
76852
76875
  break;
76853
76876
 
76854
76877
  case 38:
76855
76878
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
76856
76879
 
76857
76880
  if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
76858
- _context.next = 44;
76881
+ _context2.next = 44;
76859
76882
  break;
76860
76883
  }
76861
76884
 
@@ -76868,18 +76891,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76868
76891
  });
76869
76892
 
76870
76893
  if (_res[0]) {
76871
- _context.next = 44;
76894
+ _context2.next = 44;
76872
76895
  break;
76873
76896
  }
76874
76897
 
76875
- return _context.abrupt("return");
76898
+ return _context2.abrupt("return");
76876
76899
 
76877
76900
  case 44:
76878
76901
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
76879
76902
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
76880
76903
 
76881
76904
  if (currRange.npStart.node && currRange.npEnd.node) {
76882
- _context.next = 47;
76905
+ _context2.next = 47;
76883
76906
  break;
76884
76907
  }
76885
76908
 
@@ -76898,13 +76921,13 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76898
76921
  res = this.deleteRange(currRange.endPath, currRange.startPath);
76899
76922
 
76900
76923
  if (!(res == 1)) {
76901
- _context.next = 59;
76924
+ _context2.next = 59;
76902
76925
  break;
76903
76926
  }
76904
76927
 
76905
76928
  changeEvent.beforeChangePath = startPath;
76906
76929
  changeEvent.afterChangePath = this._tmp.start;
76907
- _context.next = 57;
76930
+ _context2.next = 57;
76908
76931
  return hoEditorFactory.docTree.change(changeEvent);
76909
76932
 
76910
76933
  case 57:
@@ -76917,19 +76940,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
76917
76940
  aNode = currRange.npStart.node;
76918
76941
 
76919
76942
  if (!(aNode && pnode)) {
76920
- _context.next = 65;
76943
+ _context2.next = 65;
76921
76944
  break;
76922
76945
  }
76923
76946
 
76924
- _context.next = 65;
76947
+ _context2.next = 65;
76925
76948
  return this.ParentRepaint(pnode);
76926
76949
 
76927
76950
  case 65:
76928
76951
  case "end":
76929
- return _context.stop();
76952
+ return _context2.stop();
76930
76953
  }
76931
76954
  }
76932
- }, _callee, this);
76955
+ }, _callee2, this);
76933
76956
  }));
76934
76957
 
76935
76958
  function doRedo() {
@@ -213922,9 +213945,9 @@ var es_string_match = __webpack_require__(4723);
213922
213945
  var es_number_constructor = __webpack_require__(9653);
213923
213946
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
213924
213947
  var es_json_stringify = __webpack_require__(38862);
213925
- ;// 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/HoDoc.vue?vue&type=template&id=90f26168&
213926
- var HoDocvue_type_template_id_90f26168_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.currentNode && _vm.currentNode.customProperty && _vm.currentNode.signFormat )?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
213927
- var HoDocvue_type_template_id_90f26168_staticRenderFns = []
213948
+ ;// 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/HoDoc.vue?vue&type=template&id=f01421b2&
213949
+ var HoDocvue_type_template_id_f01421b2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.currentNode && _vm.currentNode.customProperty && _vm.currentNode.signFormat )?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
213950
+ var HoDocvue_type_template_id_f01421b2_staticRenderFns = []
213928
213951
 
213929
213952
 
213930
213953
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
@@ -214812,7 +214835,13 @@ var DrawDomLevel = /*#__PURE__*/function () {
214812
214835
  hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
214813
214836
  hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
214814
214837
 
214815
- var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort();
214838
+ var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
214839
+ if (a > b) {
214840
+ return 1;
214841
+ } else {
214842
+ return -1;
214843
+ }
214844
+ });
214816
214845
 
214817
214846
  if (keys.length > 0) {
214818
214847
  for (var index = keys[0]; index <= keys[keys.length - 1]; index++) {
@@ -217562,7 +217591,7 @@ var SignNode = __webpack_require__(78975);
217562
217591
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
217563
217592
  var ParagraphNode = __webpack_require__(13880);
217564
217593
  ;// CONCATENATED MODULE: ./src/components/version.ts
217565
- /* harmony default export */ var version = ('2.0.88');
217594
+ /* harmony default export */ var version = ('2.0.89');
217566
217595
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
217567
217596
  var PoperTipText = __webpack_require__(97824);
217568
217597
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -217885,20 +217914,23 @@ var ImageNode = __webpack_require__(23778);
217885
217914
  },
217886
217915
  methods: {
217887
217916
  deleteSignNode: function deleteSignNode() {
217888
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
217889
- var signUserId = this.currentNode.customProperty.bce01 || '';
217917
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId); // const signUserId = this.currentNode.customProperty.bce01 || '';
217918
+ // if (hoEditorFactory.userInfo.id != signUserId) {
217919
+ // MessageBox.alert("不是本人签名,不允许删除!");
217920
+ // this.eleNode = null;
217921
+ // this.currentNode = null;
217922
+ // this.isCreateRightMenuModal = false;
217923
+ // return;
217924
+ // }
217890
217925
 
217891
- if (hoEditorFactory.userInfo.id != signUserId) {
217892
- message_box_default().alert("不是本人签名,不允许删除!");
217926
+ if (!this.currentNode instanceof SignNode/* SignNode */.N) {
217927
+ message_box_default().alert("请右键签名元素进行删除");
217893
217928
 
217894
- this.eleNode = null;
217895
- this.currentNode = null;
217896
- this.isCreateRightMenuModal = false;
217897
217929
  return;
217898
- } // hoEditorFactory.elementController.deleteNode(this.eleNode.node());
217930
+ }
217899
217931
 
217932
+ hoEditorFactory.elementController.deleteNode(this.currentNode); // hoEditorFactory.vueController.forceDelete();
217900
217933
 
217901
- hoEditorFactory.vueController.forceDelete();
217902
217934
  this.eleNode = null;
217903
217935
  this.currentNode = null;
217904
217936
  this.isCreateRightMenuModal = false;
@@ -218342,8 +218374,8 @@ var ImageNode = __webpack_require__(23778);
218342
218374
 
218343
218375
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
218344
218376
  components_HoDocvue_type_script_lang_js_,
218345
- HoDocvue_type_template_id_90f26168_render,
218346
- HoDocvue_type_template_id_90f26168_staticRenderFns,
218377
+ HoDocvue_type_template_id_f01421b2_render,
218378
+ HoDocvue_type_template_id_f01421b2_staticRenderFns,
218347
218379
  false,
218348
218380
  null,
218349
218381
  null,
@@ -219643,16 +219675,15 @@ var DrawPageTree = /*#__PURE__*/function () {
219643
219675
  }
219644
219676
 
219645
219677
  for (var j = 0; j < hoEditorFactory.drawTree.inViewPages.length; j++) {
219646
- var _dPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
219647
-
219648
- if (_dPage.drawDomLevel && !_dPage.drawDomLevel.stage) {
219649
- _dPage.drawDomLevel.bindStage();
219678
+ var aPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
219650
219679
 
219651
- this.updateDrawPage(_dPage.pageIndex);
219680
+ if (aPage.drawDomLevel && !aPage.drawDomLevel.stage) {
219681
+ aPage.drawDomLevel.bindStage();
219682
+ this.updateDrawPage(aPage.pageIndex);
219652
219683
  }
219653
219684
 
219654
- if (_dPage.drawSelectLevel && !_dPage.drawSelectLevel.stage) {
219655
- _dPage.drawSelectLevel.bindStage();
219685
+ if (aPage.drawSelectLevel && !aPage.drawSelectLevel.stage) {
219686
+ aPage.drawSelectLevel.bindStage();
219656
219687
  }
219657
219688
  }
219658
219689
  }