hoeditor-web 3.1.175 → 3.1.177

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.
@@ -209206,7 +209206,7 @@ var TextNode = __webpack_require__(27198);
209206
209206
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
209207
209207
  var ParagraphNode = __webpack_require__(67945);
209208
209208
  ;// CONCATENATED MODULE: ./src/components/version.ts
209209
- /* harmony default export */ var version = ('3.1.175');
209209
+ /* harmony default export */ var version = ('3.1.177');
209210
209210
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
209211
209211
  var PoperTipText = __webpack_require__(84531);
209212
209212
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -217722,6 +217722,8 @@ Modal.install = function (Vue) {
217722
217722
  };
217723
217723
 
217724
217724
  /* harmony default export */ var modal = (Modal);
217725
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.repeat.js
217726
+ var es_string_repeat = __webpack_require__(82481);
217725
217727
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
217726
217728
  var web_url = __webpack_require__(60285);
217727
217729
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
@@ -218372,6 +218374,8 @@ var ExpressionCalculator = __webpack_require__(71115);
218372
218374
 
218373
218375
 
218374
218376
 
218377
+
218378
+
218375
218379
 
218376
218380
 
218377
218381
 
@@ -219764,7 +219768,7 @@ var VueController = /*#__PURE__*/function () {
219764
219768
  var endPath = _curDomRange.normalize().endPath;
219765
219769
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertQrcode);
219766
219770
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219767
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
219771
+ hoEditorFactory.docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
219768
219772
  }
219769
219773
  }
219770
219774
  /**
@@ -221171,6 +221175,145 @@ var VueController = /*#__PURE__*/function () {
221171
221175
  }
221172
221176
  }
221173
221177
  }
221178
+ /**
221179
+ * 插入文本(包括大段文本)
221180
+ * @param text 文本
221181
+ * @param isAppentText 追加文本内容开头为换行符时是否处理换行
221182
+ * @param canModifyContent 判断当前位置元素是否可编辑
221183
+ */
221184
+ }, {
221185
+ key: "insertArrText",
221186
+ value: function insertArrText(textList) {
221187
+ var _this$_combineStyle,
221188
+ _this3 = this;
221189
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
221190
+ var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
221191
+ var canvasElement = document.createElement('canvas');
221192
+ var ctx = canvasElement === null || canvasElement === void 0 ? void 0 : canvasElement.getContext('2d');
221193
+ var fontSize = ((_this$_combineStyle = this._combineStyle) === null || _this$_combineStyle === void 0 ? void 0 : _this$_combineStyle.size) || 12;
221194
+ if (result && ctx) {
221195
+ ctx.font = "".concat(fontSize, "pt SimSun");
221196
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
221197
+ if (!curDomRange.isEmpty) {
221198
+ hoEditorFactory.docController.deleteRange(curDomRange, true);
221199
+ }
221200
+ var npStart = curDomRange.npStart;
221201
+ if (npStart && npStart.node) {
221202
+ var parentDNode = npStart.node.parentNode;
221203
+ var nodes = [];
221204
+ var spaceWidth = ctx.measureText(' ').width;
221205
+ hoEditorFactory.docTree.curDomRange.setSamePath(curDomRange.startPath);
221206
+ var docWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
221207
+ var dLine = hoEditorFactory.drawTree.getDrawLineByDNode(npStart.node.drawNodes[0]);
221208
+ var dLineX = dLine.x;
221209
+ if (dLine.parent instanceof DrawPageCell/* DrawPageCell */.k) {
221210
+ docWidth = Math.max(dLine.parent.dWidth, dLine.parent.maxWidth, dLine.dWidth);
221211
+ // dLineX = dLine.parent.x;
221212
+ }
221213
+
221214
+ var suffixSpace = ""; // 前补空格
221215
+ var newLine = false;
221216
+ if (parentDNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
221217
+ var parentNodeX = parentDNode.StartMarkNode.drawNodes[0].x;
221218
+ if (parentDNode.text == '') {
221219
+ dLineX = parentNodeX;
221220
+ if (!parentDNode.alignWithBlocked) {
221221
+ suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221222
+ }
221223
+ } else {
221224
+ newLine = true;
221225
+ if (parentDNode.alignWithBlocked) {
221226
+ dLineX = parentNodeX;
221227
+ suffixSpace = " ".repeat(Math.floor((dLineX - parentNodeX) / spaceWidth));
221228
+ }
221229
+ }
221230
+ } else if (npStart.node instanceof TextNode/* TextNode */.R) {
221231
+ // const dTextWidth = ctx.measureText(npStart.node.text).width;
221232
+ // dLineX = dTextWidth + npStart.node.drawNodes[0].x;
221233
+ // if(dLineX > 0) {
221234
+ // suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221235
+ // }
221236
+ }
221237
+ docWidth = docWidth - dLineX;
221238
+ var minCount = 0;
221239
+ var _loop = function _loop() {
221240
+ var text = textList[k];
221241
+ if (Array.isArray(text)) {
221242
+ var list = text.slice(0, text.length - 1);
221243
+ var maxItemWidth = 0;
221244
+ list.forEach(function (item) {
221245
+ maxItemWidth = Math.max(ctx.measureText(item).width, maxItemWidth);
221246
+ });
221247
+ var count = docWidth / maxItemWidth > 4 ? 4 : Math.floor(docWidth / maxItemWidth);
221248
+ if (minCount == 0) {
221249
+ minCount = count;
221250
+ } else {
221251
+ minCount = Math.min(minCount, count);
221252
+ }
221253
+ }
221254
+ };
221255
+ for (var k = 0; k < textList.length; k++) {
221256
+ _loop();
221257
+ }
221258
+ var _loop2 = function _loop2(_k5) {
221259
+ var text = textList[_k5];
221260
+ if (Array.isArray(text)) {
221261
+ var prevParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221262
+ nodes.push(prevParagraphNode);
221263
+ var list = text.slice(0, text.length - 1);
221264
+ var resultList = [];
221265
+ for (var i = 0; i < list.length; i += minCount) {
221266
+ resultList.push(list.slice(i, i + minCount));
221267
+ }
221268
+ resultList.forEach(function (item, key) {
221269
+ var textValue = "";
221270
+ item.forEach(function (txt, index) {
221271
+ var spaceCount = (docWidth / minCount - ctx.measureText(txt).width) / spaceWidth;
221272
+ if (spaceCount < 0) spaceCount = 0;
221273
+ if ((key !== 0 || _k5 > 0) && index == 0) {
221274
+ textValue += suffixSpace + txt + ' '.repeat(spaceCount);
221275
+ } else {
221276
+ textValue += txt + ' '.repeat(spaceCount);
221277
+ }
221278
+ });
221279
+ if (npStart.node) {
221280
+ var _textNode = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, textValue, hoEditorFactory.docTree.curStyleIndex);
221281
+ nodes.push(_textNode);
221282
+ var paragraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221283
+ nodes.push(paragraphNode);
221284
+ }
221285
+ });
221286
+ var endText = text[text.length - 1];
221287
+ var endSpaceCount = (docWidth - ctx.measureText(endText).width) / spaceWidth;
221288
+ if (endSpaceCount < 0) endSpaceCount = 0;
221289
+ endText = suffixSpace + ' '.repeat(endSpaceCount) + endText;
221290
+ var textNode = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, endText, hoEditorFactory.docTree.curStyleIndex);
221291
+ nodes.push(textNode);
221292
+ if (_k5 != textList.length - 1) {
221293
+ var nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221294
+ nodes.push(nextParagraphNode);
221295
+ }
221296
+ } else if (typeof text === "string") {
221297
+ var lines = text.split('\n');
221298
+ for (var _i3 = 0; _i3 < lines.length; _i3++) {
221299
+ if (lines[_i3] != '') {
221300
+ var _textNode2 = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, lines[_i3], hoEditorFactory.docTree.curStyleIndex);
221301
+ nodes.push(_textNode2);
221302
+ if (_i3 < lines.length - 2 || _i3 == lines.length - 2 && lines[lines.length - 1] != "") {
221303
+ var paragraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221304
+ nodes.push(paragraphNode);
221305
+ }
221306
+ }
221307
+ }
221308
+ }
221309
+ };
221310
+ for (var _k5 = 0; _k5 < textList.length; _k5++) {
221311
+ _loop2(_k5);
221312
+ }
221313
+ hoEditorFactory.docController.parseNodeData(nodes);
221314
+ }
221315
+ }
221316
+ }
221174
221317
  /**
221175
221318
  * 删除文本或者元素
221176
221319
  */
@@ -221954,8 +222097,8 @@ var VueController = /*#__PURE__*/function () {
221954
222097
  }
221955
222098
  //更新xml各节点在当前文档的样式索引
221956
222099
  var iteratesNode = function iteratesNode(nodes) {
221957
- for (var _i3 = 0; _i3 < nodes.length; _i3++) {
221958
- var node = nodes[_i3];
222100
+ for (var _i4 = 0; _i4 < nodes.length; _i4++) {
222101
+ var node = nodes[_i4];
221959
222102
  if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
221960
222103
  if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
221961
222104
  iteratesNode(node.childNodes.node);
@@ -222293,7 +222436,7 @@ var VueController = /*#__PURE__*/function () {
222293
222436
  key: "openDocsForPrint",
222294
222437
  value: function () {
222295
222438
  var _openDocsForPrint = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(list) {
222296
- var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, arrFontString, arrParaString, getDetailStyle, mergeObject, tdefault, pdefault, si, style, sstyle, pi, _style, updateNodesStyle, _loop, i, nodes;
222439
+ var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, arrFontString, arrParaString, getDetailStyle, mergeObject, tdefault, pdefault, si, style, sstyle, pi, _style, updateNodesStyle, _loop3, i, nodes;
222297
222440
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
222298
222441
  while (1) switch (_context5.prev = _context5.next) {
222299
222442
  case 0:
@@ -222494,9 +222637,9 @@ var VueController = /*#__PURE__*/function () {
222494
222637
  }
222495
222638
  }
222496
222639
  };
222497
- _loop = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop() {
222640
+ _loop3 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop3() {
222498
222641
  var fontStyleMap, paraStyleMap, xmlobj, fontStyle, defaultFontStyle, strDefaultFont, index1, jobjFontStyle, is, detailStyle, strFont, findex, paraStyle, defaultParaStyle, strDefaultPara, index2, getParaDetailStyle, jobjParaStyle, ps, detailParaStyle, strPara, pindex, ilen, strID, _strID, _mergeObject$main, _mergeObject$main2;
222499
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(_context4) {
222642
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop3$(_context4) {
222500
222643
  while (1) switch (_context4.prev = _context4.next) {
222501
222644
  case 0:
222502
222645
  fontStyleMap = new Map();
@@ -222641,7 +222784,7 @@ var VueController = /*#__PURE__*/function () {
222641
222784
  case "end":
222642
222785
  return _context4.stop();
222643
222786
  }
222644
- }, _loop);
222787
+ }, _loop3);
222645
222788
  });
222646
222789
  i = 1;
222647
222790
  case 46:
@@ -222649,7 +222792,7 @@ var VueController = /*#__PURE__*/function () {
222649
222792
  _context5.next = 51;
222650
222793
  break;
222651
222794
  }
222652
- return _context5.delegateYield(_loop(), "t0", 48);
222795
+ return _context5.delegateYield(_loop3(), "t0", 48);
222653
222796
  case 48:
222654
222797
  i++;
222655
222798
  _context5.next = 46;
@@ -223596,7 +223739,7 @@ var VueController = /*#__PURE__*/function () {
223596
223739
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
223597
223740
  var ret = [];
223598
223741
  var getAllNodes = function getAllNodes(nodes) {
223599
- var _loop2 = function _loop2() {
223742
+ var _loop4 = function _loop4() {
223600
223743
  var node = nodes[i];
223601
223744
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
223602
223745
  var elementObj = {
@@ -223667,7 +223810,7 @@ var VueController = /*#__PURE__*/function () {
223667
223810
  }
223668
223811
  };
223669
223812
  for (var i = 0; i < nodes.length; i++) {
223670
- _loop2();
223813
+ _loop4();
223671
223814
  }
223672
223815
  };
223673
223816
  if (area == undefined || area == 'header') {
@@ -223774,7 +223917,7 @@ var VueController = /*#__PURE__*/function () {
223774
223917
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
223775
223918
  var allArr = [];
223776
223919
  var getAllNodes = function getAllNodes(nodes, arr) {
223777
- var _loop3 = function _loop3() {
223920
+ var _loop5 = function _loop5() {
223778
223921
  var node = nodes[i];
223779
223922
  if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
223780
223923
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
@@ -223812,7 +223955,7 @@ var VueController = /*#__PURE__*/function () {
223812
223955
  }
223813
223956
  };
223814
223957
  for (var i = 0; i < nodes.length; i++) {
223815
- _loop3();
223958
+ _loop5();
223816
223959
  }
223817
223960
  };
223818
223961
  var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
@@ -223988,8 +224131,8 @@ var VueController = /*#__PURE__*/function () {
223988
224131
  key: "updateElementTextById",
223989
224132
  value: function () {
223990
224133
  var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(id, text) {
223991
- var _this3 = this;
223992
- var nodes, _loop4, _ret2, i;
224134
+ var _this4 = this;
224135
+ var nodes, _loop6, _ret2, i;
223993
224136
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context11) {
223994
224137
  while (1) switch (_context11.prev = _context11.next) {
223995
224138
  case 0:
@@ -223998,9 +224141,9 @@ var VueController = /*#__PURE__*/function () {
223998
224141
  _context11.next = 16;
223999
224142
  break;
224000
224143
  }
224001
- _loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
224144
+ _loop6 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop6() {
224002
224145
  var node, _hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, spath, epath, range, _nodes4, k, _xml, _x2js, _object, _json, _xml2, _x2js2, _object2, _json2;
224003
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context10) {
224146
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop6$(_context10) {
224004
224147
  while (1) switch (_context10.prev = _context10.next) {
224005
224148
  case 0:
224006
224149
  node = nodes[i];
@@ -224018,7 +224161,7 @@ var VueController = /*#__PURE__*/function () {
224018
224161
  }
224019
224162
  return _context10.abrupt("return", 0);
224020
224163
  case 5:
224021
- _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this3._hoEditorFactoryID);
224164
+ _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this4._hoEditorFactoryID);
224022
224165
  if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
224023
224166
  _context10.next = 33;
224024
224167
  break;
@@ -224037,8 +224180,8 @@ var VueController = /*#__PURE__*/function () {
224037
224180
  getChildNodes = function getChildNodes(item) {
224038
224181
  if (Array.isArray(item)) {
224039
224182
  //数组
224040
- for (var _i4 = 1; _i4 < item.length - 1; _i4++) {
224041
- var anode = _hoEditorFactory.structureConvert.convertNode(item[_i4], node.rootNodes, node);
224183
+ for (var _i5 = 1; _i5 < item.length - 1; _i5++) {
224184
+ var anode = _hoEditorFactory.structureConvert.convertNode(item[_i5], node.rootNodes, node);
224042
224185
  if (anode) {
224043
224186
  if (anode instanceof TextNode/* TextNode */.R) {
224044
224187
  if (anode.text.length > (0,esm_toConsumableArray/* default */.Z)(anode.text).length) {
@@ -224078,7 +224221,7 @@ var VueController = /*#__PURE__*/function () {
224078
224221
  getChildNodes(json.node.childNodes.node);
224079
224222
  spath = node.StartMarkNode.getNodePath();
224080
224223
  epath = node.EndMarkNode.getNodePath();
224081
- range = new DomRange/* DomRange */.a(_this3._hoEditorFactoryID, spath, epath);
224224
+ range = new DomRange/* DomRange */.a(_this4._hoEditorFactoryID, spath, epath);
224082
224225
  _hoEditorFactory.docController.deleteRange(range, true, "update");
224083
224226
  (_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
224084
224227
  node.update(0);
@@ -224090,7 +224233,7 @@ var VueController = /*#__PURE__*/function () {
224090
224233
  break;
224091
224234
  }
224092
224235
  node.childNodes.splice(1, node.childNodes.length - 2);
224093
- _nodes4 = _this3.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
224236
+ _nodes4 = _this4.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
224094
224237
  for (k = 0; k < _nodes4.length; k++) {
224095
224238
  node.childNodes.splice(1 + k, 0, _nodes4[k]);
224096
224239
  }
@@ -224147,7 +224290,7 @@ var VueController = /*#__PURE__*/function () {
224147
224290
  case "end":
224148
224291
  return _context10.stop();
224149
224292
  }
224150
- }, _loop4);
224293
+ }, _loop6);
224151
224294
  });
224152
224295
  i = nodes.length - 1;
224153
224296
  case 4:
@@ -224155,7 +224298,7 @@ var VueController = /*#__PURE__*/function () {
224155
224298
  _context11.next = 14;
224156
224299
  break;
224157
224300
  }
224158
- return _context11.delegateYield(_loop4(), "t0", 6);
224301
+ return _context11.delegateYield(_loop6(), "t0", 6);
224159
224302
  case 6:
224160
224303
  _ret2 = _context11.t0;
224161
224304
  if (!(_ret2 === 0)) {
@@ -224228,7 +224371,7 @@ var VueController = /*#__PURE__*/function () {
224228
224371
  }, {
224229
224372
  key: "createPNG",
224230
224373
  value: function createPNG(quality, type, callback) {
224231
- var _this4 = this;
224374
+ var _this5 = this;
224232
224375
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
224233
224376
  var createElementNodes = function createElementNodes() {
224234
224377
  var drawpages = hoEditorFactory.drawTree.drawPages;
@@ -224269,7 +224412,7 @@ var VueController = /*#__PURE__*/function () {
224269
224412
  document.body.appendChild(pngBox);
224270
224413
  callback && callback();
224271
224414
  document.querySelector('#hoDownLoadImageBtn').onclick = function () {
224272
- _this4.downLoadPNGHTML();
224415
+ _this5.downLoadPNGHTML();
224273
224416
  };
224274
224417
  };
224275
224418
  if (hoEditorFactory.loadImageCount <= 0) {
@@ -224326,7 +224469,7 @@ var VueController = /*#__PURE__*/function () {
224326
224469
  }, {
224327
224470
  key: "createPDF",
224328
224471
  value: function createPDF() {
224329
- var _this5 = this;
224472
+ var _this6 = this;
224330
224473
  var btn = document.createElement('button');
224331
224474
  btn.id = 'hoDownLoadPDFBtn';
224332
224475
  btn.style.position = 'fixed';
@@ -224338,7 +224481,7 @@ var VueController = /*#__PURE__*/function () {
224338
224481
  btn.style.outline = 'none';
224339
224482
  document.body.appendChild(btn);
224340
224483
  document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
224341
- _this5.saveAsPDF();
224484
+ _this6.saveAsPDF();
224342
224485
  };
224343
224486
  }
224344
224487
  /*
@@ -224469,6 +224612,11 @@ var VueController = /*#__PURE__*/function () {
224469
224612
  result.ptTop = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight);
224470
224613
  result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight * 2);
224471
224614
  }
224615
+ } else {
224616
+ result.ptLeft = result.ptX;
224617
+ result.ptRight = result.ptX + hoEditorFactory.unitConvert.pxToPt(hoEditorFactory.signHeight * 2);
224618
+ result.ptTop = result.ptY;
224619
+ result.ptBottom = result.ptY - hoEditorFactory.unitConvert.pxToPt(hoEditorFactory.signHeight);
224472
224620
  }
224473
224621
  return result;
224474
224622
  }
@@ -224748,7 +224896,7 @@ var VueController = /*#__PURE__*/function () {
224748
224896
  }, {
224749
224897
  key: "setBackgroundByName",
224750
224898
  value: function setBackgroundByName(items) {
224751
- var _this6 = this;
224899
+ var _this7 = this;
224752
224900
  var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
224753
224901
  var selectRangeArr = [];
224754
224902
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
@@ -224761,16 +224909,16 @@ var VueController = /*#__PURE__*/function () {
224761
224909
  var isCurrent = item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId || item.innerIdentifier === anode.innerIdentifier;
224762
224910
  // console.log(isCurrent, anode.name, anode.innerIdentifier)
224763
224911
  if (item.text !== '' && isCurrent && anode.text.includes(item.text)) {
224764
- var range = _this6.search(anode, item.text);
224912
+ var range = _this7.search(anode, item.text);
224765
224913
  if (range.length > 0) {
224766
224914
  selectRangeArr = selectRangeArr.concat(range);
224767
224915
  }
224768
224916
  } else if ((item.text === '' || item.text == undefined) && isCurrent) {
224769
224917
  var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
224770
224918
  var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
224771
- var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, sPath);
224772
- var pEndPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, ePath);
224773
- var selectRange = new SelectRange/* SelectRange */.E(_this6.hoEditorFactoryID);
224919
+ var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this7._hoEditorFactoryID, sPath);
224920
+ var pEndPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this7._hoEditorFactoryID, ePath);
224921
+ var selectRange = new SelectRange/* SelectRange */.E(_this7.hoEditorFactoryID);
224774
224922
  selectRange.spStart = pStartPoint;
224775
224923
  selectRange.spEnd = pEndPoint;
224776
224924
  selectRangeArr.push(selectRange);
@@ -224948,7 +225096,7 @@ var VueController = /*#__PURE__*/function () {
224948
225096
  var returnPath = textNodesPaths[j];
224949
225097
  var path = returnPath;
224950
225098
  var nodeLastPath = returnPath;
224951
- var _loop5 = function _loop5() {
225099
+ var _loop7 = function _loop7() {
224952
225100
  var np = hoEditorFactory.docTree.findNodePositionByPath(path);
224953
225101
  if (np && np.node) {
224954
225102
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -224972,8 +225120,8 @@ var VueController = /*#__PURE__*/function () {
224972
225120
  path = pathArr.join('/');
224973
225121
  }
224974
225122
  };
224975
- for (var _i5 = 0; _i5 < text.length; _i5++) {
224976
- _loop5();
225123
+ for (var _i6 = 0; _i6 < text.length; _i6++) {
225124
+ _loop7();
224977
225125
  }
224978
225126
  var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
224979
225127
  var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(this._hoEditorFactoryID, returnPath);
@@ -225486,7 +225634,7 @@ var VueController = /*#__PURE__*/function () {
225486
225634
  }, {
225487
225635
  key: "showElementsEditRecord",
225488
225636
  value: function showElementsEditRecord(objects, id) {
225489
- var _this7 = this;
225637
+ var _this8 = this;
225490
225638
  var comments = [];
225491
225639
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
225492
225640
  if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
@@ -225525,7 +225673,7 @@ var VueController = /*#__PURE__*/function () {
225525
225673
  arr[pos[0]] = [];
225526
225674
  }
225527
225675
  var obj = {
225528
- editorId: id ? id : _this7._hoEditorFactoryID,
225676
+ editorId: id ? id : _this8._hoEditorFactoryID,
225529
225677
  id: comment.id,
225530
225678
  lineHeight: comment.lineHeight,
225531
225679
  permissionLevel: comment.permissionLevel,
@@ -225655,13 +225803,13 @@ var VueController = /*#__PURE__*/function () {
225655
225803
  }, {
225656
225804
  key: "getAllSignNodeList",
225657
225805
  value: function getAllSignNodeList(bce01, showNode) {
225658
- var _this8 = this;
225806
+ var _this9 = this;
225659
225807
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225660
225808
  var signList = [];
225661
225809
  var patientSignList = [];
225662
225810
  var bce01List = [];
225663
225811
  var getAllNodes = function getAllNodes(nodes) {
225664
- var _loop6 = function _loop6() {
225812
+ var _loop8 = function _loop8() {
225665
225813
  var node = nodes[i];
225666
225814
  if (node instanceof SignNode/* SignNode */.N) {
225667
225815
  if (node.parentNode instanceof CellNode/* CellNode */.D) {
@@ -225723,7 +225871,7 @@ var VueController = /*#__PURE__*/function () {
225723
225871
  }
225724
225872
  });
225725
225873
  if (signColList.length > 0) {
225726
- var firstDataRowIndex = _this8.getTableTitleMaxRowIndex(node) + 1;
225874
+ var firstDataRowIndex = _this9.getTableTitleMaxRowIndex(node) + 1;
225727
225875
  node.rows.forEach(function (rows, rowIndex) {
225728
225876
  if (rowIndex >= firstDataRowIndex) {
225729
225877
  rows.forEach(function (cellNode, colIndex) {
@@ -225761,7 +225909,7 @@ var VueController = /*#__PURE__*/function () {
225761
225909
  }
225762
225910
  };
225763
225911
  for (var i = 0; i < nodes.length; i++) {
225764
- if (_loop6()) continue;
225912
+ if (_loop8()) continue;
225765
225913
  }
225766
225914
  };
225767
225915
  var mainNodes = hoEditorFactory.docTree.mainNodes;
@@ -225776,9 +225924,9 @@ var VueController = /*#__PURE__*/function () {
225776
225924
  }
225777
225925
  }
225778
225926
  } else {
225779
- for (var _i6 = index; _i6 >= 0; _i6--) {
225780
- if (signList[_i6] && signList[_i6].number == 1) {
225781
- sign.isTemplate = signList[_i6].isTemplate;
225927
+ for (var _i7 = index; _i7 >= 0; _i7--) {
225928
+ if (signList[_i7] && signList[_i7].number == 1) {
225929
+ sign.isTemplate = signList[_i7].isTemplate;
225782
225930
  break;
225783
225931
  }
225784
225932
  }
@@ -225845,7 +225993,7 @@ var VueController = /*#__PURE__*/function () {
225845
225993
  }, {
225846
225994
  key: "getSignNodeAndText",
225847
225995
  value: function getSignNodeAndText() {
225848
- var _this9 = this;
225996
+ var _this10 = this;
225849
225997
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225850
225998
  var signList = [];
225851
225999
  var getAllNodes = function getAllNodes(nodes) {
@@ -225865,7 +226013,7 @@ var VueController = /*#__PURE__*/function () {
225865
226013
  dataId: _node8.dataId,
225866
226014
  name: _node8.name
225867
226015
  };
225868
- sign.previousText = _this9.getPreviousText(_node8);
226016
+ sign.previousText = _this10.getPreviousText(_node8);
225869
226017
  signList.push(sign);
225870
226018
  }
225871
226019
  }
@@ -225881,10 +226029,9 @@ var VueController = /*#__PURE__*/function () {
225881
226029
  }
225882
226030
  }, {
225883
226031
  key: "getSignNodeList",
225884
- value: function getSignNodeList(nodeDataId, bce01) {
226032
+ value: function getSignNodeList(nodeDataId, bce01, path) {
225885
226033
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225886
226034
  var signList = [];
225887
- var count = 0;
225888
226035
  var arr = [];
225889
226036
  var getAllNodes = function getAllNodes(nodes) {
225890
226037
  for (var i = 0; i < nodes.length; i++) {
@@ -225909,6 +226056,7 @@ var VueController = /*#__PURE__*/function () {
225909
226056
  // sign.previousText = this.getPreviousText(node);
225910
226057
  if (_node9.imgSrc || _node9.fingerPrintSrc) {
225911
226058
  sign.signed = true;
226059
+ sign.path = _node9.getNodePath();
225912
226060
  }
225913
226061
  var reset = false;
225914
226062
  if (_node9.attribute == 1) {
@@ -225962,7 +226110,7 @@ var VueController = /*#__PURE__*/function () {
225962
226110
  var isSigned = false;
225963
226111
  signList.forEach(function (m) {
225964
226112
  if (m.filter(function (v) {
225965
- return v.dataId == nodeDataId;
226113
+ return v.dataId == nodeDataId && (!path || v.path == path);
225966
226114
  }).length == 1) {
225967
226115
  signCount = m.filter(function (v) {
225968
226116
  return v.signed;
@@ -226022,13 +226170,13 @@ var VueController = /*#__PURE__*/function () {
226022
226170
  }, {
226023
226171
  key: "html2Xml",
226024
226172
  value: function html2Xml(json) {
226025
- var _this10 = this;
226173
+ var _this11 = this;
226026
226174
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226027
226175
  var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
226028
226176
  var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
226029
226177
  var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
226030
226178
  var insertParaNode = function insertParaNode(area, index) {
226031
- var node = new ParagraphNode/* ParagraphNode */.C(_this10._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
226179
+ var node = new ParagraphNode/* ParagraphNode */.C(_this11._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
226032
226180
  if (area == 'header') {
226033
226181
  node.rootPath = 'header/0';
226034
226182
  headerNodes.splice(index, 0, node);
@@ -226150,8 +226298,8 @@ var VueController = /*#__PURE__*/function () {
226150
226298
  var rowInfosArray = new Array();
226151
226299
  var rows = node.rowInfos.length - 1;
226152
226300
  var cols = node.colInfos.length - 1;
226153
- for (var _i7 = 0; _i7 <= rows; _i7++) {
226154
- var rowInfo = node.rowInfos[_i7];
226301
+ for (var _i8 = 0; _i8 <= rows; _i8++) {
226302
+ var rowInfo = node.rowInfos[_i8];
226155
226303
  var _customProperties = {
226156
226304
  customProperty: Array(rowInfo.rowProperty.customProperties)
226157
226305
  };
@@ -226172,8 +226320,8 @@ var VueController = /*#__PURE__*/function () {
226172
226320
  };
226173
226321
  var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
226174
226322
  var keysName = Object.keys(defaultRowProp);
226175
- for (var _k5 = 0; _k5 < keysName.length; _k5++) {
226176
- if (keysName[_k5] === 'customProperties') {
226323
+ for (var _k6 = 0; _k6 < keysName.length; _k6++) {
226324
+ if (keysName[_k6] === 'customProperties') {
226177
226325
  if (rowInfo.rowProperty.customProperties.length === 0) {
226178
226326
  delete rowPropertyJson['customProperties'];
226179
226327
  }
@@ -226184,8 +226332,8 @@ var VueController = /*#__PURE__*/function () {
226184
226332
  // }
226185
226333
  // }
226186
226334
  else {
226187
- if (rowPropertyJson[keysName[_k5]] === defaultRowPropJson[keysName[_k5]]) {
226188
- delete rowPropertyJson[keysName[_k5]];
226335
+ if (rowPropertyJson[keysName[_k6]] === defaultRowPropJson[keysName[_k6]]) {
226336
+ delete rowPropertyJson[keysName[_k6]];
226189
226337
  }
226190
226338
  }
226191
226339
  }
@@ -226211,8 +226359,8 @@ var VueController = /*#__PURE__*/function () {
226211
226359
  var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
226212
226360
  //处理列宽
226213
226361
  var colInfosArray = new Array();
226214
- for (var _i8 = 0; _i8 <= cols; _i8++) {
226215
- var colInfo = node.colInfos[_i8];
226362
+ for (var _i9 = 0; _i9 <= cols; _i9++) {
226363
+ var colInfo = node.colInfos[_i9];
226216
226364
  var _customProperties2 = {
226217
226365
  customProperty: Array(colInfo.colProperty.customProperties)
226218
226366
  };
@@ -226231,9 +226379,9 @@ var VueController = /*#__PURE__*/function () {
226231
226379
  };
226232
226380
  var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
226233
226381
  var colKeysName = Object.keys(defaultColProp);
226234
- for (var _k6 = 0; _k6 < colKeysName.length; _k6++) {
226235
- if (colPropertyJson[colKeysName[_k6]] === defaultColPropJson[colKeysName[_k6]]) {
226236
- delete colPropertyJson[colKeysName[_k6]];
226382
+ for (var _k7 = 0; _k7 < colKeysName.length; _k7++) {
226383
+ if (colPropertyJson[colKeysName[_k7]] === defaultColPropJson[colKeysName[_k7]]) {
226384
+ delete colPropertyJson[colKeysName[_k7]];
226237
226385
  }
226238
226386
  }
226239
226387
  colInfosArray.push({
@@ -226340,8 +226488,8 @@ var VueController = /*#__PURE__*/function () {
226340
226488
  if (node instanceof CellNode/* CellNode */.D) {
226341
226489
  //处理子节点
226342
226490
  var childArray = new Array();
226343
- for (var _i9 = 0; _i9 < node.childNodes.length; _i9++) {
226344
- var anode = node.childNodes[_i9];
226491
+ for (var _i10 = 0; _i10 < node.childNodes.length; _i10++) {
226492
+ var anode = node.childNodes[_i10];
226345
226493
  var nodeJson = void 0;
226346
226494
  if (anode instanceof TextNode/* TextNode */.R) {
226347
226495
  if (anode.text !== '') {
@@ -226385,22 +226533,22 @@ var VueController = /*#__PURE__*/function () {
226385
226533
  };
226386
226534
  var cellPropertyJson = JSON.parse(JSON.stringify(cellProperty));
226387
226535
  var _keysName = Object.keys(defaultCellPropJson);
226388
- for (var _k7 = 0; _k7 < _keysName.length; _k7++) {
226389
- if (_keysName[_k7] === 'customProperties') {
226536
+ for (var _k8 = 0; _k8 < _keysName.length; _k8++) {
226537
+ if (_keysName[_k8] === 'customProperties') {
226390
226538
  if (!node.cellProperty.customProperties) {
226391
226539
  delete cellPropertyJson['customProperties'];
226392
226540
  } else if (node.cellProperty.customProperties.length === 0) {
226393
226541
  delete cellPropertyJson['customProperties'];
226394
226542
  }
226395
- } else if (_keysName[_k7] === 'cellInnerMargin') {
226543
+ } else if (_keysName[_k8] === 'cellInnerMargin') {
226396
226544
  if (cellPropertyJson['cellInnerMargin'] === '0,0,0.1,0.1') {
226397
226545
  delete cellPropertyJson['cellInnerMargin'];
226398
226546
  }
226399
- } else if (_keysName[_k7] === 'gridLinesColor') {
226547
+ } else if (_keysName[_k8] === 'gridLinesColor') {
226400
226548
  if (cellPropertyJson['gridLinesColor'] === '#000000,#000000,#000000,#000000') {
226401
226549
  delete cellPropertyJson['gridLinesColor'];
226402
226550
  }
226403
- } else if (_keysName[_k7] === 'gridLineDisplay') {
226551
+ } else if (_keysName[_k8] === 'gridLineDisplay') {
226404
226552
  if (cellPropertyJson['gridLineDisplay'] === 'true,true,true,true') {
226405
226553
  delete cellPropertyJson['gridLineDisplay'];
226406
226554
  }
@@ -226411,8 +226559,8 @@ var VueController = /*#__PURE__*/function () {
226411
226559
  // }
226412
226560
  // }
226413
226561
  else {
226414
- if (cellPropertyJson[_keysName[_k7]] === defaultCellPropJson[_keysName[_k7]]) {
226415
- delete cellPropertyJson[_keysName[_k7]];
226562
+ if (cellPropertyJson[_keysName[_k8]] === defaultCellPropJson[_keysName[_k8]]) {
226563
+ delete cellPropertyJson[_keysName[_k8]];
226416
226564
  }
226417
226565
  }
226418
226566
  }
@@ -226457,8 +226605,8 @@ var VueController = /*#__PURE__*/function () {
226457
226605
  };
226458
226606
  var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
226459
226607
  var doc2XmlJson = function doc2XmlJson(nodes) {
226460
- for (var _i10 = 0; _i10 < nodes.length; _i10++) {
226461
- var _node11 = nodes[_i10];
226608
+ for (var _i11 = 0; _i11 < nodes.length; _i11++) {
226609
+ var _node11 = nodes[_i11];
226462
226610
  if (_node11 instanceof TextNode/* TextNode */.R || _node11 instanceof ParagraphNode/* ParagraphNode */.C || _node11 instanceof TableNode/* TableNode */.Fh || _node11 instanceof ImageNode/* ImageNode */.H) {
226463
226611
  var nodeJson = node2Json(_node11);
226464
226612
  xmlRoot += x2js.js2xml(nodeJson);
@@ -226526,7 +226674,7 @@ var VueController = /*#__PURE__*/function () {
226526
226674
  }, {
226527
226675
  key: "updateNurseRecord",
226528
226676
  value: function updateNurseRecord(table, operType, rowIndex, data) {
226529
- var _this11 = this;
226677
+ var _this12 = this;
226530
226678
  var keys = Object.keys(data);
226531
226679
  var backfill = function backfill(r) {
226532
226680
  for (var i = 0; i < keys.length; i++) {
@@ -226535,7 +226683,7 @@ var VueController = /*#__PURE__*/function () {
226535
226683
  if (cell) {
226536
226684
  var text = data[keys[i]];
226537
226685
  cell.childNodes.splice(1, cell.childNodes.length);
226538
- var textNode = new TextNode/* TextNode */.R(_this11._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
226686
+ var textNode = new TextNode/* TextNode */.R(_this12._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
226539
226687
  cell.drawCell.needUpdate = true;
226540
226688
  cell.childNodes.push(textNode);
226541
226689
  }
@@ -226785,7 +226933,7 @@ var VueController = /*#__PURE__*/function () {
226785
226933
  }, {
226786
226934
  key: "updateAllCodeElements",
226787
226935
  value: function updateAllCodeElements(element) {
226788
- var _this12 = this;
226936
+ var _this13 = this;
226789
226937
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226790
226938
  var ret = [];
226791
226939
  var getAllNodes = function getAllNodes(nodes) {
@@ -226814,7 +226962,7 @@ var VueController = /*#__PURE__*/function () {
226814
226962
  if (ret.length > 0) {
226815
226963
  ret.forEach(function (v) {
226816
226964
  if (v.name === element.name) {
226817
- _this12.updateCodeContent(v, element.content);
226965
+ _this13.updateCodeContent(v, element.content);
226818
226966
  }
226819
226967
  });
226820
226968
  this.rebuildAll(false);
@@ -226888,7 +227036,7 @@ var VueController = /*#__PURE__*/function () {
226888
227036
  for (var j = 0; j < pathArr.length; j++) {
226889
227037
  var apath = pathArr[j];
226890
227038
  var nodeLastPath = pathArr[j];
226891
- for (var _i11 = 0; _i11 < findText.length; _i11++) {
227039
+ for (var _i12 = 0; _i12 < findText.length; _i12++) {
226892
227040
  var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
226893
227041
  if (np && np.node) {
226894
227042
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -227219,8 +227367,8 @@ var VueController = /*#__PURE__*/function () {
227219
227367
  }
227220
227368
  }
227221
227369
  }
227222
- for (var _k8 = rowCellNum; _k8 < table.childNodes.length; _k8++) {
227223
- var cell = table.childNodes[_k8];
227370
+ for (var _k9 = rowCellNum; _k9 < table.childNodes.length; _k9++) {
227371
+ var cell = table.childNodes[_k9];
227224
227372
  if (cell.childNodes.length > 1) {
227225
227373
  cell.childNodes.splice(1, cell.childNodes.length);
227226
227374
  cell.drawCell.needUpdate = true;
@@ -227250,9 +227398,9 @@ var VueController = /*#__PURE__*/function () {
227250
227398
  var result = this.clacFormula(_cell, formulaStr);
227251
227399
  if (result !== "") {
227252
227400
  _cell.childNodes.splice(1, _cell.childNodes.length);
227253
- var _textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
227401
+ var _textNode3 = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
227254
227402
  _cell.drawCell.needUpdate = true;
227255
- _cell.childNodes.push(_textNode);
227403
+ _cell.childNodes.push(_textNode3);
227256
227404
  _cell.cellProperty.oldValue = result;
227257
227405
  }
227258
227406
  }
@@ -227327,12 +227475,12 @@ var VueController = /*#__PURE__*/function () {
227327
227475
  }, {
227328
227476
  key: "markRed",
227329
227477
  value: function markRed(cell, text) {
227330
- var _this13 = this;
227478
+ var _this14 = this;
227331
227479
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
227332
227480
  var repaint = function repaint(type) {
227333
227481
  var styleIndex = cell.childNodes[0].styleIndex;
227334
227482
  var curStyle = hoEditorFactory.docTree.styles[styleIndex];
227335
- var newStyle = new TextStyle/* TextStyle */.pn(_this13._hoEditorFactoryID);
227483
+ var newStyle = new TextStyle/* TextStyle */.pn(_this14._hoEditorFactoryID);
227336
227484
  newStyle.copyProperty(curStyle, newStyle);
227337
227485
  if (type === 1) {
227338
227486
  newStyle.color = "red";
@@ -227341,7 +227489,7 @@ var VueController = /*#__PURE__*/function () {
227341
227489
  }
227342
227490
  var newIndex = hoEditorFactory.docTree.styleCompare(newStyle);
227343
227491
  cell.childNodes.splice(1, cell.childNodes.length);
227344
- var textNode = new TextNode/* TextNode */.R(_this13._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
227492
+ var textNode = new TextNode/* TextNode */.R(_this14._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
227345
227493
  cell.childNodes.push(textNode);
227346
227494
  };
227347
227495
  if (text !== cell.cellProperty.oldValue) {
@@ -227430,7 +227578,7 @@ var VueController = /*#__PURE__*/function () {
227430
227578
  }, {
227431
227579
  key: "getElementChangeRecords",
227432
227580
  value: function getElementChangeRecords() {
227433
- var _this14 = this;
227581
+ var _this15 = this;
227434
227582
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
227435
227583
  var recordArr = new Array();
227436
227584
  var records = hoEditorFactory.docTree.elementChangeRecords;
@@ -227446,7 +227594,7 @@ var VueController = /*#__PURE__*/function () {
227446
227594
  "id": key.split("|")[0],
227447
227595
  "dataid": key.split("|")[1]
227448
227596
  };
227449
- var _node16 = _this14.getNodeByDataID('all', key.split("|")[1]);
227597
+ var _node16 = _this15.getNodeByDataID('all', key.split("|")[1]);
227450
227598
  if (_node16 == null) {
227451
227599
  recordArr.push(obj);
227452
227600
  }
@@ -227468,7 +227616,7 @@ var VueController = /*#__PURE__*/function () {
227468
227616
  });
227469
227617
  }
227470
227618
  if (value[1].nodeTypes == 'sign') {
227471
- var _node17 = _this14.getNodeByDataID('main', key.replace('|', ''));
227619
+ var _node17 = _this15.getNodeByDataID('main', key.replace('|', ''));
227472
227620
  if (_node17 instanceof SignNode/* SignNode */.N) {
227473
227621
  var signJsons = _node17.node2Json();
227474
227622
  var signXml = x2js.js2xml(signJsons);
@@ -227496,7 +227644,7 @@ var VueController = /*#__PURE__*/function () {
227496
227644
  }
227497
227645
  } else {
227498
227646
  var id = key.split("|")[0];
227499
- var _node18 = _this14.getNodeByID('all', id);
227647
+ var _node18 = _this15.getNodeByID('all', id);
227500
227648
  }
227501
227649
  });
227502
227650
  return recordArr;