hoeditor-web 2.0.57 → 2.0.60

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.
@@ -10970,7 +10970,7 @@ var PrintStatus = /*#__PURE__*/function () {
10970
10970
  this._printRecord = new PrintRecord(hoEditorFactoryID);
10971
10971
  this._DrawRange = new Array();
10972
10972
  this.pageSettingMap = new Map();
10973
- this._printAppoint = "";
10973
+ this._printAppoint = '';
10974
10974
  }
10975
10975
 
10976
10976
  (0,createClass/* default */.Z)(PrintStatus, [{
@@ -11158,16 +11158,16 @@ var PrintStatus = /*#__PURE__*/function () {
11158
11158
  return;
11159
11159
  }
11160
11160
 
11161
- if (values == "") {
11161
+ if (values == '') {
11162
11162
  values = "".concat(this.startIndex, "-").concat(hoEditorFactory.drawTree.drawPages.length);
11163
11163
  }
11164
11164
 
11165
- values = values.replace(/\s*/g, "").replace(/[^\d|-]/g, ",").replace(/\,{2,}/g, ",");
11165
+ values = values.replace(/\s*/g, '').replace(/[^\d|-]/g, ',').replace(/\,{2,}/g, ',');
11166
11166
  var val = values;
11167
- var arr = val.split(",");
11167
+ var arr = val.split(',');
11168
11168
  var pages = new Array();
11169
11169
  arr.forEach(function (value) {
11170
- var tmp = value.split("-");
11170
+ var tmp = value.split('-');
11171
11171
 
11172
11172
  if (tmp.length == 1) {
11173
11173
  pages.push(parseInt(tmp[0]));
@@ -11186,9 +11186,10 @@ var PrintStatus = /*#__PURE__*/function () {
11186
11186
 
11187
11187
  pages.sort(function (a, b) {
11188
11188
  return a - b;
11189
- });
11189
+ }); // console.log(pages);
11190
11190
  // 去重
11191
- this._printPages = (0,toConsumableArray/* default */.Z)(new Set(pages));
11191
+
11192
+ this._printPages = (0,toConsumableArray/* default */.Z)(new Set(pages)); // console.log('页码范围:', this._printPages);
11192
11193
  } catch (error) {
11193
11194
  Exception/* Exception.printCallStack */.P.printCallStack();
11194
11195
  }
@@ -11442,21 +11443,21 @@ var Print = /*#__PURE__*/function () {
11442
11443
  (0,createClass/* default */.Z)(Print, null, [{
11443
11444
  key: "openDataUriInWindow",
11444
11445
  value: function openDataUriInWindow(PDF, fileName, width) {
11445
- if (navigator && navigator.userAgent.toLowerCase().indexOf("electron") !== -1) {
11446
- var htmlForNewWindow = "<html>" + "<title>" + fileName + "</title>" + "<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>" + "<body>" + '<iframe src="' + PDF.output("bloburl") + '"></iframe>' + "</body></html>";
11447
- var nW = window.open("", "modal", "width=" + (width + 400) + ",height=800");
11446
+ if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
11447
+ var htmlForNewWindow = '<html>' + '<title>' + fileName + '</title>' + '<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>' + '<body>' + '<iframe src="' + PDF.output('bloburl') + '"></iframe>' + '</body></html>';
11448
+ var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
11448
11449
 
11449
11450
  if (nW) {
11450
11451
  nW.document.write(htmlForNewWindow);
11451
11452
  }
11452
11453
  } else {
11453
- if (document.querySelector("#Ho_Editor_Print_Iframe")) {
11454
- document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe"));
11454
+ if (document.querySelector('#Ho_Editor_Print_Iframe')) {
11455
+ document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
11455
11456
  }
11456
11457
 
11457
11458
  this.printPage(PDF).catch(function (error) {
11458
11459
  PDF.autoPrint();
11459
- PDF.output("dataurlnewwindow");
11460
+ PDF.output('dataurlnewwindow');
11460
11461
  });
11461
11462
  }
11462
11463
  }
@@ -11469,7 +11470,7 @@ var Print = /*#__PURE__*/function () {
11469
11470
  while (1) {
11470
11471
  switch (_context2.prev = _context2.next) {
11471
11472
  case 0:
11472
- oHiddFrame = document.createElement("iframe");
11473
+ oHiddFrame = document.createElement('iframe');
11473
11474
  printPromise = new Promise(function (resolve, reject) {
11474
11475
  oHiddFrame.onload = function () {
11475
11476
  try {
@@ -11478,20 +11479,20 @@ var Print = /*#__PURE__*/function () {
11478
11479
  oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi === void 0 ? void 0 : _oHiddFrame$contentWi.focus(); // Required for IE
11479
11480
 
11480
11481
  oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi2 = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi2 === void 0 ? void 0 : _oHiddFrame$contentWi2.print();
11481
- resolve("print");
11482
+ resolve('print');
11482
11483
  } catch (error) {
11483
11484
  reject(error);
11484
11485
  }
11485
11486
  };
11486
11487
  });
11487
- oHiddFrame.id = "Ho_Editor_Print_Iframe";
11488
- oHiddFrame.style.position = "fixed";
11489
- oHiddFrame.style.right = "0";
11490
- oHiddFrame.style.bottom = "0";
11491
- oHiddFrame.style.width = "0";
11492
- oHiddFrame.style.height = "0";
11493
- oHiddFrame.style.border = "0";
11494
- oHiddFrame.src = PDF.output("bloburl");
11488
+ oHiddFrame.id = 'Ho_Editor_Print_Iframe';
11489
+ oHiddFrame.style.position = 'fixed';
11490
+ oHiddFrame.style.right = '0';
11491
+ oHiddFrame.style.bottom = '0';
11492
+ oHiddFrame.style.width = '0';
11493
+ oHiddFrame.style.height = '0';
11494
+ oHiddFrame.style.border = '0';
11495
+ oHiddFrame.src = PDF.output('bloburl');
11495
11496
  document.body.appendChild(oHiddFrame);
11496
11497
  _context2.next = 13;
11497
11498
  return printPromise;
@@ -11531,7 +11532,7 @@ var Print = /*#__PURE__*/function () {
11531
11532
  break;
11532
11533
  }
11533
11534
 
11534
- message_box_default().alert("病程记录文件有删除或者内容减少,导致上一次记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打");
11535
+ message_box_default().alert('病程记录文件有删除或者内容减少,导致上一次记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打');
11535
11536
 
11536
11537
  reslove && reslove(null);
11537
11538
  return _context3.abrupt("return");
@@ -11563,17 +11564,17 @@ var Print = /*#__PURE__*/function () {
11563
11564
  hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
11564
11565
  }
11565
11566
 
11566
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11567
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11567
11568
  width = hoEditorFactory.pageProperty.widthPixes;
11568
- height = orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11569
+ height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11569
11570
 
11570
- if (type === "html") {
11571
- svgBox = document.createElement("div");
11572
- svgBox.className = "ho-print-svg-box";
11571
+ if (type === 'html') {
11572
+ svgBox = document.createElement('div');
11573
+ svgBox.className = 'ho-print-svg-box';
11573
11574
  }
11574
11575
 
11575
11576
  last = -1;
11576
- console.time("绘制svg和生成pdf");
11577
+ console.time('绘制svg和生成pdf');
11577
11578
  _iterator = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11578
11579
  _context3.prev = 15;
11579
11580
 
@@ -11581,7 +11582,7 @@ var Print = /*#__PURE__*/function () {
11581
11582
 
11582
11583
  case 17:
11583
11584
  if ((_step = _iterator.n()).done) {
11584
- _context3.next = 58;
11585
+ _context3.next = 60;
11585
11586
  break;
11586
11587
  }
11587
11588
 
@@ -11593,13 +11594,13 @@ var Print = /*#__PURE__*/function () {
11593
11594
  }
11594
11595
 
11595
11596
  _context3.next = 22;
11596
- return message_box_default().confirm("请进行翻页", "打印提示", {
11597
- confirmButtonText: "确定",
11598
- type: "info"
11597
+ return message_box_default().confirm('请进行翻页', '打印提示', {
11598
+ confirmButtonText: '确定',
11599
+ type: 'info'
11599
11600
  });
11600
11601
 
11601
11602
  case 22:
11602
- return _context3.abrupt("continue", 56);
11603
+ return _context3.abrupt("continue", 58);
11603
11604
 
11604
11605
  case 23:
11605
11606
  last = index;
@@ -11610,7 +11611,7 @@ var Print = /*#__PURE__*/function () {
11610
11611
  break;
11611
11612
  }
11612
11613
 
11613
- return _context3.abrupt("break", 58);
11614
+ return _context3.abrupt("break", 60);
11614
11615
 
11615
11616
  case 27:
11616
11617
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
@@ -11621,7 +11622,7 @@ var Print = /*#__PURE__*/function () {
11621
11622
 
11622
11623
  if (index === hoEditorFactory.startPageNum && positionY) {
11623
11624
  dShape = new createjs.Shape();
11624
- dShape.graphics.beginFill("#fff").rect(0, 0, width, positionY).endFill();
11625
+ dShape.graphics.beginFill('#fff').rect(0, 0, width, positionY).endFill();
11625
11626
  cpage.drawDocContainer.addChild(dShape);
11626
11627
  cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
11627
11628
  } // 光标处续打
@@ -11634,7 +11635,7 @@ var Print = /*#__PURE__*/function () {
11634
11635
  if (index === posIndex && posY) {
11635
11636
  _dShape = new createjs.Shape();
11636
11637
 
11637
- _dShape.graphics.beginFill("#fff").rect(0, 0, width, posY).endFill();
11638
+ _dShape.graphics.beginFill('#fff').rect(0, 0, width, posY).endFill();
11638
11639
 
11639
11640
  cpage.drawDocContainer.addChild(_dShape);
11640
11641
  cpage.drawFooter.alpha = 0;
@@ -11651,8 +11652,8 @@ var Print = /*#__PURE__*/function () {
11651
11652
  y: 0
11652
11653
  };
11653
11654
 
11654
- if (hoEditorFactory.isFixedPrintToA4 && format) {
11655
- if (orientation == "l") {
11655
+ if (hoEditorFactory.isFixedPrintToA4 == '1' && format) {
11656
+ if (orientation == 'l') {
11656
11657
  svg2pdfOptions.x = format[0] - width;
11657
11658
  svg2pdfOptions.y = (format[1] - height) / 2;
11658
11659
  } else {
@@ -11661,20 +11662,31 @@ var Print = /*#__PURE__*/function () {
11661
11662
  }
11662
11663
 
11663
11664
  if (!hoEditorFactory.isUseImagePrint) {
11664
- _context3.next = 42;
11665
+ _context3.next = 44;
11665
11666
  break;
11666
11667
  }
11667
11668
 
11668
11669
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11669
11670
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
11671
+ window.printBlack = hoEditorFactory.printBlack;
11672
+
11673
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
11674
+ // 避免切换纸张的打印方式 绘制只处理竖向情况
11675
+ if (orientation === 'p' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
11676
+ ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
11677
+
11678
+ ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
11679
+ }
11680
+ }
11681
+
11670
11682
  ctx.posX = svg2pdfOptions.x;
11671
11683
  ctx.posY = svg2pdfOptions.y;
11672
11684
  ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
11673
11685
  ctx = null;
11674
- _context3.next = 55;
11686
+ _context3.next = 57;
11675
11687
  break;
11676
11688
 
11677
- case 42:
11689
+ case 44:
11678
11690
  _ctx = new canvas2svg({
11679
11691
  width: width,
11680
11692
  height: height,
@@ -11682,142 +11694,142 @@ var Print = /*#__PURE__*/function () {
11682
11694
  });
11683
11695
  _ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
11684
11696
 
11685
- if (!(type === "html")) {
11686
- _context3.next = 49;
11697
+ if (!(type === 'html')) {
11698
+ _context3.next = 51;
11687
11699
  break;
11688
11700
  }
11689
11701
 
11690
11702
  svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
11691
11703
  svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
11692
- _context3.next = 54;
11704
+ _context3.next = 56;
11693
11705
  break;
11694
11706
 
11695
- case 49:
11707
+ case 51:
11696
11708
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11697
11709
  _context3.t0 = PDF;
11698
11710
 
11699
11711
  if (!_context3.t0) {
11700
- _context3.next = 54;
11712
+ _context3.next = 56;
11701
11713
  break;
11702
11714
  }
11703
11715
 
11704
- _context3.next = 54;
11716
+ _context3.next = 56;
11705
11717
  return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
11706
11718
 
11707
- case 54:
11719
+ case 56:
11708
11720
  _ctx = null;
11709
11721
 
11710
- case 55:
11722
+ case 57:
11711
11723
  index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
11712
11724
 
11713
- case 56:
11725
+ case 58:
11714
11726
  _context3.next = 17;
11715
11727
  break;
11716
11728
 
11717
- case 58:
11718
- _context3.next = 63;
11729
+ case 60:
11730
+ _context3.next = 65;
11719
11731
  break;
11720
11732
 
11721
- case 60:
11722
- _context3.prev = 60;
11733
+ case 62:
11734
+ _context3.prev = 62;
11723
11735
  _context3.t1 = _context3["catch"](15);
11724
11736
 
11725
11737
  _iterator.e(_context3.t1);
11726
11738
 
11727
- case 63:
11728
- _context3.prev = 63;
11739
+ case 65:
11740
+ _context3.prev = 65;
11729
11741
 
11730
11742
  _iterator.f();
11731
11743
 
11732
- return _context3.finish(63);
11744
+ return _context3.finish(65);
11733
11745
 
11734
- case 66:
11735
- console.timeEnd("绘制svg和生成pdf");
11746
+ case 68:
11747
+ console.timeEnd('绘制svg和生成pdf');
11736
11748
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
11737
11749
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11738
11750
 
11739
11751
  if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
11740
- _context3.next = 75;
11752
+ _context3.next = 77;
11741
11753
  break;
11742
11754
  }
11743
11755
 
11744
11756
  _last = hoEditorFactory.printStatus.printRecord.last();
11745
11757
 
11746
11758
  if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
11747
- _context3.next = 75;
11759
+ _context3.next = 77;
11748
11760
  break;
11749
11761
  }
11750
11762
 
11751
- message_box_default().confirm("无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录", "打印提示", {
11752
- confirmButtonText: "确定",
11753
- type: "info"
11763
+ message_box_default().confirm('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录', '打印提示', {
11764
+ confirmButtonText: '确定',
11765
+ type: 'info'
11754
11766
  });
11755
11767
 
11756
- reslove && reslove("printend");
11768
+ reslove && reslove('printend');
11757
11769
  return _context3.abrupt("return");
11758
11770
 
11759
- case 75:
11760
- if (!(type === "pdf")) {
11761
- _context3.next = 81;
11771
+ case 77:
11772
+ if (!(type === 'pdf')) {
11773
+ _context3.next = 83;
11762
11774
  break;
11763
11775
  }
11764
11776
 
11765
11777
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11766
- PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + ".pdf");
11778
+ PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
11767
11779
  hoEditorFactory.printStatus.drawPrintRecord.clear();
11768
- _context3.next = 87;
11780
+ _context3.next = 89;
11769
11781
  break;
11770
11782
 
11771
- case 81:
11783
+ case 83:
11772
11784
  if (!(svgBox && svgBox.childNodes.length === 0)) {
11773
- _context3.next = 85;
11785
+ _context3.next = 87;
11774
11786
  break;
11775
11787
  }
11776
11788
 
11777
- message_box_default().confirm("无新增内容", "打印提示", {
11778
- confirmButtonText: "确定",
11779
- type: "info"
11789
+ message_box_default().confirm('无新增内容', '打印提示', {
11790
+ confirmButtonText: '确定',
11791
+ type: 'info'
11780
11792
  });
11781
11793
 
11782
- reslove && reslove("printend");
11794
+ reslove && reslove('printend');
11783
11795
  return _context3.abrupt("return");
11784
11796
 
11785
- case 85:
11797
+ case 87:
11786
11798
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
11787
11799
 
11788
- if (type === "html") {
11800
+ if (type === 'html') {
11789
11801
  exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
11790
11802
  url = window.URL.createObjectURL(new Blob([exportHtml], {
11791
11803
  type: "text/html"
11792
11804
  }));
11793
- link = document.createElement("a");
11794
- link.style.display = "none";
11805
+ link = document.createElement('a');
11806
+ link.style.display = 'none';
11795
11807
  link.href = url;
11796
- link.setAttribute("download", fileName ? fileName : "电子病历文档");
11808
+ link.setAttribute('download', fileName ? fileName : '电子病历文档');
11797
11809
  document.body.appendChild(link);
11798
11810
  link.click();
11799
11811
  setTimeout(function () {
11800
11812
  return link.remove();
11801
11813
  }, 100);
11802
11814
  } else {
11803
- if (height <= 560) {
11815
+ if (height <= 560 && hoEditorFactory.isFixedPrintToA4 !== '2') {
11804
11816
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11805
11817
  }
11806
11818
 
11807
11819
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11808
- name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
11820
+ name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
11809
11821
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
11810
11822
  }
11811
11823
 
11812
- case 87:
11813
- reslove && reslove("printend");
11824
+ case 89:
11825
+ reslove && reslove('printend');
11814
11826
 
11815
- case 88:
11827
+ case 90:
11816
11828
  case "end":
11817
11829
  return _context3.stop();
11818
11830
  }
11819
11831
  }
11820
- }, _callee2, this, [[15, 60, 63, 66]]);
11832
+ }, _callee2, this, [[15, 62, 65, 68]]);
11821
11833
  }));
11822
11834
 
11823
11835
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
@@ -11844,9 +11856,9 @@ var Print = /*#__PURE__*/function () {
11844
11856
  hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
11845
11857
  }
11846
11858
 
11847
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11848
- svgBox = document.createElement("div");
11849
- svgBox.className = "ho-print-svg-box";
11859
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11860
+ svgBox = document.createElement('div');
11861
+ svgBox.className = 'ho-print-svg-box';
11850
11862
  last = -1;
11851
11863
  _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11852
11864
  _context4.prev = 9;
@@ -11855,7 +11867,7 @@ var Print = /*#__PURE__*/function () {
11855
11867
 
11856
11868
  case 11:
11857
11869
  if ((_step2 = _iterator2.n()).done) {
11858
- _context4.next = 39;
11870
+ _context4.next = 40;
11859
11871
  break;
11860
11872
  }
11861
11873
 
@@ -11867,13 +11879,13 @@ var Print = /*#__PURE__*/function () {
11867
11879
  }
11868
11880
 
11869
11881
  _context4.next = 16;
11870
- return message_box_default().confirm("请进行翻页", "打印提示", {
11871
- confirmButtonText: "确定",
11872
- type: "info"
11882
+ return message_box_default().confirm('请进行翻页', '打印提示', {
11883
+ confirmButtonText: '确定',
11884
+ type: 'info'
11873
11885
  });
11874
11886
 
11875
11887
  case 16:
11876
- return _context4.abrupt("continue", 37);
11888
+ return _context4.abrupt("continue", 38);
11877
11889
 
11878
11890
  case 17:
11879
11891
  last = index;
@@ -11884,7 +11896,7 @@ var Print = /*#__PURE__*/function () {
11884
11896
  break;
11885
11897
  }
11886
11898
 
11887
- return _context4.abrupt("break", 39);
11899
+ return _context4.abrupt("break", 40);
11888
11900
 
11889
11901
  case 21:
11890
11902
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
@@ -11898,69 +11910,70 @@ var Print = /*#__PURE__*/function () {
11898
11910
  }
11899
11911
 
11900
11912
  if (!hoEditorFactory.isUseImagePrint) {
11901
- _context4.next = 30;
11913
+ _context4.next = 31;
11902
11914
  break;
11903
11915
  }
11904
11916
 
11905
11917
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11906
11918
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
11919
+ window.printBlack = hoEditorFactory.printBlack;
11907
11920
  ctx && ((_cpage$drawDomLevel4 = cpage.drawDomLevel) === null || _cpage$drawDomLevel4 === void 0 ? void 0 : (_cpage$drawDomLevel4$ = _cpage$drawDomLevel4.stage) === null || _cpage$drawDomLevel4$ === void 0 ? void 0 : _cpage$drawDomLevel4$.draw(ctx));
11908
11921
  ctx = null;
11909
- _context4.next = 36;
11922
+ _context4.next = 37;
11910
11923
  break;
11911
11924
 
11912
- case 30:
11925
+ case 31:
11913
11926
  _ctx4 = new canvas2svg({
11914
11927
  width: hoEditorFactory.pageProperty.widthPixes,
11915
- height: orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11928
+ height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11916
11929
  printBlack: hoEditorFactory.printBlack
11917
11930
  });
11918
11931
  _ctx4 && ((_cpage$drawDomLevel5 = cpage.drawDomLevel) === null || _cpage$drawDomLevel5 === void 0 ? void 0 : (_cpage$drawDomLevel5$ = _cpage$drawDomLevel5.stage) === null || _cpage$drawDomLevel5$ === void 0 ? void 0 : _cpage$drawDomLevel5$.draw(_ctx4));
11919
11932
  PDF.addPage();
11920
- _context4.next = 35;
11933
+ _context4.next = 36;
11921
11934
  return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
11922
11935
 
11923
- case 35:
11936
+ case 36:
11924
11937
  _ctx4 = null;
11925
11938
 
11926
- case 36:
11939
+ case 37:
11927
11940
  index > 0 && ((_cpage$drawDomLevel6 = cpage.drawDomLevel) === null || _cpage$drawDomLevel6 === void 0 ? void 0 : _cpage$drawDomLevel6.clearStage());
11928
11941
 
11929
- case 37:
11942
+ case 38:
11930
11943
  _context4.next = 11;
11931
11944
  break;
11932
11945
 
11933
- case 39:
11934
- _context4.next = 44;
11946
+ case 40:
11947
+ _context4.next = 45;
11935
11948
  break;
11936
11949
 
11937
- case 41:
11938
- _context4.prev = 41;
11950
+ case 42:
11951
+ _context4.prev = 42;
11939
11952
  _context4.t0 = _context4["catch"](9);
11940
11953
 
11941
11954
  _iterator2.e(_context4.t0);
11942
11955
 
11943
- case 44:
11944
- _context4.prev = 44;
11956
+ case 45:
11957
+ _context4.prev = 45;
11945
11958
 
11946
11959
  _iterator2.f();
11947
11960
 
11948
- return _context4.finish(44);
11961
+ return _context4.finish(45);
11949
11962
 
11950
- case 47:
11963
+ case 48:
11951
11964
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
11952
11965
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
11953
11966
  }
11954
11967
 
11955
11968
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11956
- reslove && reslove("printend");
11969
+ reslove && reslove('printend');
11957
11970
 
11958
- case 50:
11971
+ case 51:
11959
11972
  case "end":
11960
11973
  return _context4.stop();
11961
11974
  }
11962
11975
  }
11963
- }, _callee3, null, [[9, 41, 44, 47]]);
11976
+ }, _callee3, null, [[9, 42, 45, 48]]);
11964
11977
  }));
11965
11978
 
11966
11979
  function createPDFBase64(_x9, _x10, _x11) {
@@ -11982,11 +11995,11 @@ var Print = /*#__PURE__*/function () {
11982
11995
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoEditorFactoryID);
11983
11996
  hoEditorFactory.printStatus.startIndex = 1;
11984
11997
  hoEditorFactory.printStatus.generatePageIndexs(hoEditorFactory.printStatus.printAppoint);
11985
- svgBox = document.createElement("div");
11986
- svgBox.className = "ho-print-svg-box";
11987
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11998
+ svgBox = document.createElement('div');
11999
+ svgBox.className = 'ho-print-svg-box';
12000
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11988
12001
  width = hoEditorFactory.pageProperty.widthPixes;
11989
- height = orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
12002
+ height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11990
12003
  last = -1;
11991
12004
  _iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11992
12005
  _context5.prev = 10;
@@ -12007,9 +12020,9 @@ var Print = /*#__PURE__*/function () {
12007
12020
  }
12008
12021
 
12009
12022
  _context5.next = 17;
12010
- return message_box_default().confirm("请进行翻页", "打印提示", {
12011
- confirmButtonText: "确定",
12012
- type: "info"
12023
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12024
+ confirmButtonText: '确定',
12025
+ type: 'info'
12013
12026
  });
12014
12027
 
12015
12028
  case 17:
@@ -12076,7 +12089,7 @@ var Print = /*#__PURE__*/function () {
12076
12089
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12077
12090
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
12078
12091
  htmlText.text = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(svgBox === null || svgBox === void 0 ? void 0 : svgBox.innerHTML, "</body>\n </html>\n ");
12079
- reslove && reslove("printend");
12092
+ reslove && reslove('printend');
12080
12093
 
12081
12094
  case 44:
12082
12095
  case "end":
@@ -12096,7 +12109,7 @@ var Print = /*#__PURE__*/function () {
12096
12109
  key: "printAllNew",
12097
12110
  value: function () {
12098
12111
  var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position) {
12099
- var hoEditorFactory, a4Size, svgBox, last, _iterator4, _step4, _cpage$drawDomLevel12, index, cpage, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, ctx, _cpage$drawDomLevel10, _cpage$drawDomLevel11, _ctx7, _ctx6, lastPos;
12112
+ var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel12, index, cpage, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, ctx, _cpage$drawDomLevel10, _cpage$drawDomLevel11, _ctx7, _ctx6, lastPos;
12100
12113
 
12101
12114
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
12102
12115
  while (1) {
@@ -12109,37 +12122,56 @@ var Print = /*#__PURE__*/function () {
12109
12122
  p: [793, 1122],
12110
12123
  l: [1122, 793]
12111
12124
  };
12112
- svgBox = document.createElement("div");
12113
- svgBox.className = "ho-print-svg-box";
12125
+ svgBox = document.createElement('div');
12126
+ svgBox.className = 'ho-print-svg-box';
12114
12127
  last = -1;
12128
+ widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
12129
+ heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
12130
+ orientation = widthPixes > heightPixes ? 'l' : 'p';
12131
+ formats = [widthPixes, heightPixes];
12132
+ format = a4Size[orientation];
12133
+ svg2pdfOptions = {
12134
+ x: 0,
12135
+ y: 0
12136
+ };
12137
+
12138
+ if (hoEditorFactory.isFixedPrintToA4 == '1' && format) {
12139
+ if (orientation == 'l') {
12140
+ svg2pdfOptions.x = format[0] - widthPixes;
12141
+ svg2pdfOptions.y = (format[1] - heightPixes) / 2;
12142
+ } else {
12143
+ svg2pdfOptions.x = (format[0] - widthPixes) / 2;
12144
+ }
12145
+ }
12146
+
12115
12147
  _iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
12116
- _context6.prev = 8;
12148
+ _context6.prev = 15;
12117
12149
 
12118
12150
  _iterator4.s();
12119
12151
 
12120
- case 10:
12152
+ case 17:
12121
12153
  if ((_step4 = _iterator4.n()).done) {
12122
- _context6.next = 47;
12154
+ _context6.next = 50;
12123
12155
  break;
12124
12156
  }
12125
12157
 
12126
12158
  index = _step4.value;
12127
12159
 
12128
12160
  if (!(index == -1)) {
12129
- _context6.next = 16;
12161
+ _context6.next = 23;
12130
12162
  break;
12131
12163
  }
12132
12164
 
12133
- _context6.next = 15;
12134
- return message_box_default().confirm("请进行翻页", "打印提示", {
12135
- confirmButtonText: "确定",
12136
- type: "info"
12165
+ _context6.next = 22;
12166
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12167
+ confirmButtonText: '确定',
12168
+ type: 'info'
12137
12169
  });
12138
12170
 
12139
- case 15:
12140
- return _context6.abrupt("continue", 45);
12171
+ case 22:
12172
+ return _context6.abrupt("continue", 48);
12141
12173
 
12142
- case 16:
12174
+ case 23:
12143
12175
  last = index;
12144
12176
  cpage = hoEditorFactory.drawTree.drawPages[index];
12145
12177
 
@@ -12154,55 +12186,58 @@ var Print = /*#__PURE__*/function () {
12154
12186
  }
12155
12187
 
12156
12188
  if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
12157
- _context6.next = 22;
12189
+ _context6.next = 29;
12158
12190
  break;
12159
12191
  }
12160
12192
 
12161
- return _context6.abrupt("break", 47);
12162
-
12163
- case 22:
12164
- widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
12165
- heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
12166
- orientation = widthPixes > heightPixes ? "l" : "p";
12167
- formats = [widthPixes, heightPixes];
12168
- format = a4Size[orientation];
12169
- svg2pdfOptions = {
12170
- x: 0,
12171
- y: 0
12172
- };
12173
-
12174
- if (hoEditorFactory.isFixedPrintToA4 && format) {
12175
- if (orientation == "l") {
12176
- svg2pdfOptions.x = format[0] - widthPixes;
12177
- svg2pdfOptions.y = (format[1] - heightPixes) / 2;
12178
- } else {
12179
- svg2pdfOptions.x = (format[0] - widthPixes) / 2;
12180
- }
12181
- }
12193
+ return _context6.abrupt("break", 50);
12182
12194
 
12195
+ case 29:
12183
12196
  if (!hoEditorFactory.isUseImagePrint) {
12184
- _context6.next = 38;
12197
+ _context6.next = 41;
12185
12198
  break;
12186
12199
  }
12187
12200
 
12188
- if (formats.length == 2 && !hoEditorFactory.isFixedPrintToA4) {
12201
+ if (formats.length == 2 && hoEditorFactory.isFixedPrintToA4 == '1') {
12189
12202
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage(formats, orientation);
12203
+ } else if (hoEditorFactory.isFixedPrintToA4 == '2' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
12204
+ PDF === null || PDF === void 0 ? void 0 : PDF.addPage([793, 1122], 'p');
12190
12205
  } else {
12191
12206
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
12192
12207
  }
12193
12208
 
12194
12209
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
12210
+
12211
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && index == 0 && hoEditorFactory.isRotate) {
12212
+ // 复位 需要先按移动过的位置恢复旋转前的角度,然后才能移动位置
12213
+ ctx.rotate(90 * Math.PI / 180);
12214
+ ctx.translate(0, -1122 / 2);
12215
+ hoEditorFactory.isRotate = false;
12216
+ }
12217
+
12218
+ window.printBlack = hoEditorFactory.printBlack;
12219
+
12220
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && index == 0 && !hoEditorFactory.isRotate && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
12221
+ // 避免切换纸张的打印方式 绘制只处理竖向情况
12222
+ if (orientation === 'p') {
12223
+ // 旋转是默认以左上角为中心 需要先移动位置 再进行旋转
12224
+ ctx.translate(0, 1122 / 2);
12225
+ ctx.rotate(270 * Math.PI / 180);
12226
+ hoEditorFactory.isRotate = true;
12227
+ }
12228
+ }
12229
+
12195
12230
  ctx.posX = svg2pdfOptions.x;
12196
12231
  ctx.posY = svg2pdfOptions.y;
12197
12232
  ctx && ((_cpage$drawDomLevel9 = cpage.drawDomLevel) === null || _cpage$drawDomLevel9 === void 0 ? void 0 : (_cpage$drawDomLevel9$ = _cpage$drawDomLevel9.stage) === null || _cpage$drawDomLevel9$ === void 0 ? void 0 : _cpage$drawDomLevel9$.draw(ctx));
12198
12233
  ctx = null;
12199
- _context6.next = 44;
12234
+ _context6.next = 47;
12200
12235
  break;
12201
12236
 
12202
- case 38:
12237
+ case 41:
12203
12238
  _ctx6 = new canvas2svg({
12204
12239
  width: widthPixes,
12205
- height: orientation === "l" ? heightPixes - 1 : heightPixes,
12240
+ height: orientation === 'l' ? heightPixes - 1 : heightPixes,
12206
12241
  printBlack: hoEditorFactory.printBlack
12207
12242
  });
12208
12243
  _ctx6 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : (_cpage$drawDomLevel11 = _cpage$drawDomLevel10.stage) === null || _cpage$drawDomLevel11 === void 0 ? void 0 : _cpage$drawDomLevel11.draw(_ctx6));
@@ -12213,37 +12248,37 @@ var Print = /*#__PURE__*/function () {
12213
12248
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
12214
12249
  }
12215
12250
 
12216
- _context6.next = 43;
12251
+ _context6.next = 46;
12217
12252
  return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
12218
12253
 
12219
- case 43:
12254
+ case 46:
12220
12255
  _ctx6 = null;
12221
12256
 
12222
- case 44:
12257
+ case 47:
12223
12258
  index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
12224
12259
 
12225
- case 45:
12226
- _context6.next = 10;
12260
+ case 48:
12261
+ _context6.next = 17;
12227
12262
  break;
12228
12263
 
12229
- case 47:
12230
- _context6.next = 52;
12264
+ case 50:
12265
+ _context6.next = 55;
12231
12266
  break;
12232
12267
 
12233
- case 49:
12234
- _context6.prev = 49;
12235
- _context6.t0 = _context6["catch"](8);
12268
+ case 52:
12269
+ _context6.prev = 52;
12270
+ _context6.t0 = _context6["catch"](15);
12236
12271
 
12237
12272
  _iterator4.e(_context6.t0);
12238
12273
 
12239
- case 52:
12240
- _context6.prev = 52;
12274
+ case 55:
12275
+ _context6.prev = 55;
12241
12276
 
12242
12277
  _iterator4.f();
12243
12278
 
12244
- return _context6.finish(52);
12279
+ return _context6.finish(55);
12245
12280
 
12246
- case 55:
12281
+ case 58:
12247
12282
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
12248
12283
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
12249
12284
  }
@@ -12261,12 +12296,12 @@ var Print = /*#__PURE__*/function () {
12261
12296
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12262
12297
  reslove();
12263
12298
 
12264
- case 59:
12299
+ case 62:
12265
12300
  case "end":
12266
12301
  return _context6.stop();
12267
12302
  }
12268
12303
  }
12269
- }, _callee5, null, [[8, 49, 52, 55]]);
12304
+ }, _callee5, null, [[15, 52, 55, 58]]);
12270
12305
  }));
12271
12306
 
12272
12307
  function printAllNew(_x15, _x16, _x17, _x18) {
@@ -19693,8 +19728,10 @@ var DomRange = /*#__PURE__*/function () {
19693
19728
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19694
19729
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19695
19730
  if (value.indexOf("-") >= 0) {
19696
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
19731
+ //const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19732
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._startPath + ")");
19697
19733
 
19734
+ this.setSamePath(this._startPath);
19698
19735
  return;
19699
19736
  } else {
19700
19737
  this._startPath = value;
@@ -19711,8 +19748,9 @@ var DomRange = /*#__PURE__*/function () {
19711
19748
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19712
19749
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19713
19750
  if (value.indexOf("-") >= 0) {
19714
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
19751
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._endPath + ")");
19715
19752
 
19753
+ this.setSamePath(this._endPath);
19716
19754
  return;
19717
19755
  } else {
19718
19756
  this._endPath = value;
@@ -24761,8 +24799,13 @@ var BaseNode = /*#__PURE__*/function () {
24761
24799
  var index = parentNodes.indexOf(this);
24762
24800
 
24763
24801
  if (index != -1) {
24764
- if (this.parentNode) //有父节点,使用父节点的删除方法
24765
- return this.parentNode.removeChild(this);else parentNodes.splice(index, 1);
24802
+ if (this.parentNode) {
24803
+ //有父节点,使用父节点的删除方法
24804
+ return this.parentNode.removeChild(this);
24805
+ } else {
24806
+ parentNodes.splice(index, 1);
24807
+ }
24808
+
24766
24809
  return true;
24767
24810
  }
24768
24811
 
@@ -26210,10 +26253,28 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26210
26253
  // return;
26211
26254
  // }
26212
26255
  // }
26256
+ //const startPath = `${this.getNodePath()}/0`;
26257
+ //const startPath = hoEditorFactory.docTree.curDomRange.startPath;
26258
+
26259
+
26260
+ var endPath = "";
26261
+ var startPath = "";
26262
+
26263
+ if (this.table.tableProperty.isAutoChangeLine) {
26264
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
26213
26265
 
26266
+ if (curDomRange.npEnd.node instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C) {
26267
+ startPath = curDomRange.startPath;
26268
+ endPath = startPath;
26269
+ } else {
26270
+ startPath = curDomRange.npEnd.node.prevSibling().getNodePath();
26271
+ endPath = hoEditorFactory.docTree.getNodeLastPath(curDomRange.npEnd.node);
26272
+ }
26273
+ } else {
26274
+ startPath = "".concat(this.getNodePath(), "/0");
26275
+ endPath = hoEditorFactory.docTree.getNodeLastPath(this);
26276
+ }
26214
26277
 
26215
- var startPath = "".concat(this.getNodePath(), "/0");
26216
- var endPath = hoEditorFactory.docTree.getNodeLastPath(this);
26217
26278
  var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_24__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
26218
26279
  hoEditorFactory.docController.deleteRange(aRange, true);
26219
26280
  hoEditorFactory.docController.insertPlainTextAfterPath(startPath, value);
@@ -28592,8 +28653,8 @@ var BaseNode = __webpack_require__(50369);
28592
28653
  /*
28593
28654
  * @Author: your name
28594
28655
  * @Date: 2020-11-11 10:02:30
28595
- * @LastEditTime: 2021-09-28 14:10:50
28596
- * @LastEditors: Please set LastEditors
28656
+ * @LastEditTime: 2022-06-23 09:54:03
28657
+ * @LastEditors: liyanan 2441631434@qq.com
28597
28658
  * @Description: In User Settings Edit
28598
28659
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
28599
28660
  */
@@ -28700,6 +28761,12 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28700
28761
  key: "imageDataBase64String",
28701
28762
  get: function get() {
28702
28763
  return this._imageDataBase64String;
28764
+ },
28765
+ set: function set(value) {
28766
+ if (this._imageDataBase64String !== value) {
28767
+ this._imageDataBase64String = value;
28768
+ this.node2DrawNodeRange(0, 0);
28769
+ }
28703
28770
  }
28704
28771
  /**
28705
28772
  * imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
@@ -28727,6 +28794,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28727
28794
  }, {
28728
28795
  key: "node2DrawNodeRange",
28729
28796
  value: function node2DrawNodeRange(startIndex, endIndex) {
28797
+ this._drawNodes.length = 0;
28730
28798
  var dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height //,
28731
28799
  //this.scaleX,
28732
28800
  //this.scaleY
@@ -30564,27 +30632,32 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
30564
30632
  /* harmony export */ "C": function() { return /* binding */ ParagraphNode; }
30565
30633
  /* harmony export */ });
30566
30634
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37174);
30567
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35671);
30568
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(22342);
30569
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99640);
30570
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28214);
30571
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41539);
30572
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
30573
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54747);
30574
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);
30575
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(40561);
30576
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__);
30577
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9653);
30578
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__);
30579
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50369);
30580
- /* harmony import */ var _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(53570);
30581
- /* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27807);
30582
- /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(94407);
30583
- /* harmony import */ var _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(83078);
30584
- /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95883);
30585
- /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34565);
30586
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(41005);
30587
- /* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(15798);
30635
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58913);
30636
+ /* 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);
30637
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(22342);
30638
+ /* 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);
30639
+ /* 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);
30640
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
30641
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
30642
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54747);
30643
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
30644
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(47941);
30645
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);
30646
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(40561);
30647
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_8__);
30648
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9653);
30649
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__);
30650
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(50369);
30651
+ /* harmony import */ var _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(53570);
30652
+ /* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27807);
30653
+ /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(94407);
30654
+ /* harmony import */ var _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(83078);
30655
+ /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95883);
30656
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(34565);
30657
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(41005);
30658
+ /* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(15798);
30659
+
30660
+
30588
30661
 
30589
30662
 
30590
30663
 
@@ -30604,31 +30677,58 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
30604
30677
 
30605
30678
 
30606
30679
  var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30607
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(ParagraphNode, _BaseNode);
30680
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ParagraphNode, _BaseNode);
30608
30681
 
30609
- var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ParagraphNode);
30682
+ var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(ParagraphNode);
30610
30683
 
30611
- function ParagraphNode(hoEditorFactoryID, rootNodes, parentNode, paraNo) {
30684
+ function ParagraphNode(hoEditorFactoryID, rootNodes, parentNode, paraNo, customProperty) {
30612
30685
  var _this;
30613
30686
 
30614
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ParagraphNode);
30687
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParagraphNode);
30615
30688
 
30616
- _this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .NodeType.ntParagraph */ .Jq.ntParagraph);
30689
+ _this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType.ntParagraph */ .Jq.ntParagraph);
30617
30690
  _this._parentNode = parentNode;
30618
30691
  _this._drawLines = new Array();
30619
30692
  _this._drawNodes = _this._drawLines;
30620
30693
  _this._paraNo = paraNo;
30621
- _this._styleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this.hoEditorFactoryID).docTree.curStyleIndex;
30694
+ _this._styleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this.hoEditorFactoryID).docTree.curStyleIndex;
30622
30695
  _this._dTop = 0;
30623
30696
  _this._dHeight = 0;
30624
30697
  _this._pagePaintStart = null;
30625
30698
  _this._printAsSinglePage = false;
30626
- _this._docId = ""; // this.node2DrawNode();
30699
+ _this._docId = "";
30700
+ _this._customProperty = new Object();
30701
+
30702
+ if (customProperty) {
30703
+ _this.setCustomProperty(customProperty);
30704
+ } // this.node2DrawNode();
30705
+
30627
30706
 
30628
30707
  return _this;
30629
30708
  }
30630
30709
 
30631
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(ParagraphNode, [{
30710
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(ParagraphNode, [{
30711
+ key: "setCustomProperty",
30712
+ value: function setCustomProperty(customProperty) {
30713
+ var assignvalue = function assignvalue(target, source) {
30714
+ Object.keys(source).forEach(function (value) {
30715
+ if ((0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == "object") {
30716
+ if (Object.prototype.toString.call(source[value]) === "[object Object]") {
30717
+ assignvalue(target[value], source[value]);
30718
+ } else {
30719
+ if (source[value] !== "" && source[value] !== null) {
30720
+ assignvalue(target[value], eval("(" + source[value] + ")"));
30721
+ }
30722
+ }
30723
+ } else {
30724
+ target[value] = source[value];
30725
+ }
30726
+ });
30727
+ };
30728
+
30729
+ assignvalue(this._customProperty, customProperty);
30730
+ }
30731
+ }, {
30632
30732
  key: "paraNo",
30633
30733
  get: function get() {
30634
30734
  return this._paraNo;
@@ -30655,6 +30755,16 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30655
30755
  this._styleIndex = val;
30656
30756
  }
30657
30757
  }
30758
+ }, {
30759
+ key: "customProperty",
30760
+ get: function get() {
30761
+ return this._customProperty;
30762
+ },
30763
+ set: function set(val) {
30764
+ if (val != this._customProperty) {
30765
+ this._customProperty = val;
30766
+ }
30767
+ }
30658
30768
  }, {
30659
30769
  key: "combineParagraph",
30660
30770
  get: function get() {
@@ -30676,7 +30786,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30676
30786
  key: "drootNodes",
30677
30787
  get: function get() {
30678
30788
  if (!this._drawRoots) {
30679
- var _HOEditorFactorys$ins = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30789
+ var _HOEditorFactorys$ins = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30680
30790
  _HOEditorFactorys$ins2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins, 2),
30681
30791
  dCell = _HOEditorFactorys$ins2[0],
30682
30792
  dRoots = _HOEditorFactorys$ins2[1];
@@ -30689,7 +30799,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30689
30799
  }, {
30690
30800
  key: "refreshDrootNodes",
30691
30801
  value: function refreshDrootNodes() {
30692
- var _HOEditorFactorys$ins3 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30802
+ var _HOEditorFactorys$ins3 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30693
30803
  _HOEditorFactorys$ins4 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins3, 2),
30694
30804
  dCell = _HOEditorFactorys$ins4[0],
30695
30805
  dRoots = _HOEditorFactorys$ins4[1];
@@ -30700,7 +30810,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30700
30810
  key: "getParagraphLeftWidth",
30701
30811
  value: function getParagraphLeftWidth() {
30702
30812
  //如果父文档节点派生于rectNode(用于表格基类),则取
30703
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
30813
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
30704
30814
  var pNode = this._parentNode;
30705
30815
  var aLeft;
30706
30816
  var aWidth;
@@ -30716,7 +30826,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30716
30826
  aWidth = _pRectNode$getLeftWid2[1];
30717
30827
  bRectAlign = _pRectNode$getLeftWid2[2];
30718
30828
 
30719
- if (pRectNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_16__/* .CellNode */ .D) {
30829
+ if (pRectNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_18__/* .CellNode */ .D) {
30720
30830
  aLeft = hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[2] * 10, true);
30721
30831
  aWidth = aWidth - aLeft - hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[3] * 10, true);
30722
30832
  bRectAlign = true;
@@ -30739,7 +30849,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30739
30849
  var dline = this._drawLines[index];
30740
30850
 
30741
30851
  if (dline) {
30742
- var _HOEditorFactorys$ins5 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30852
+ var _HOEditorFactorys$ins5 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
30743
30853
  _HOEditorFactorys$ins6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins5, 2),
30744
30854
  dCell = _HOEditorFactorys$ins6[0],
30745
30855
  dRoots = _HOEditorFactorys$ins6[1];
@@ -30767,9 +30877,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30767
30877
  // }
30768
30878
 
30769
30879
  while (pNode) {
30770
- if (pNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_10__/* .RectNode */ .z) {
30880
+ if (pNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_12__/* .RectNode */ .z) {
30771
30881
  return pNode;
30772
- } else if (pNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_14__/* .TextInputFieldNode */ .re && pNode.alignWithBlocked) {
30882
+ } else if (pNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__/* .TextInputFieldNode */ .re && pNode.alignWithBlocked) {
30773
30883
  return pNode;
30774
30884
  } else {
30775
30885
  pNode = pNode.parentNode;
@@ -30781,14 +30891,14 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30781
30891
  }, {
30782
30892
  key: "updateCombineParagraph",
30783
30893
  value: function updateCombineParagraph() {
30784
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
30894
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
30785
30895
  var para = hoEditorFactory.docTree.paragraphs[this._paraNo];
30786
30896
 
30787
30897
  if (!para) {
30788
30898
  para = hoEditorFactory.docTree.paragraphs[0];
30789
30899
  }
30790
30900
 
30791
- return _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .Paragraph.para2CombinePara */ .nv.para2CombinePara(this._hoEditorFactoryID, this, para, hoEditorFactory.docTree.combineParagraph);
30901
+ return _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .Paragraph.para2CombinePara */ .nv.para2CombinePara(this._hoEditorFactoryID, this, para, hoEditorFactory.docTree.combineParagraph);
30792
30902
  }
30793
30903
  /**
30794
30904
  * @author xyl
@@ -30828,10 +30938,10 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30828
30938
 
30829
30939
  if (index > 0) {
30830
30940
  var prevLine = this._drawLines[index - 1];
30831
- if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_11__/* .DrawLine */ .a) prevLine.updateLineStyle();
30941
+ if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_13__/* .DrawLine */ .a) prevLine.updateLineStyle();
30832
30942
  }
30833
30943
 
30834
- var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_11__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
30944
+ var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_13__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
30835
30945
  aline.dTop = itop;
30836
30946
  aline.dLeft = ileft;
30837
30947
  aline.x = this.combineParagraph.leftMarginPixes;
@@ -30882,7 +30992,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30882
30992
  var dline = this.drawlines[i];
30883
30993
 
30884
30994
  if (dline) {
30885
- if (dline instanceof _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_12__/* .DrawTable */ .t) {
30995
+ if (dline instanceof _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_14__/* .DrawTable */ .t) {
30886
30996
  dline.clear();
30887
30997
  } else {
30888
30998
  if (dline.parent) {
@@ -30900,12 +31010,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30900
31010
  key: "node2DrawNode",
30901
31011
  value: function node2DrawNode() {
30902
31012
  this.clear();
30903
- var itop = this.combineParagraph.topMarginPixes + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
31013
+ var itop = this.combineParagraph.topMarginPixes + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
30904
31014
  var leftTopInfos = this.getParagraphLeftWidth();
30905
31015
  var ileft = leftTopInfos[0];
30906
31016
  var paragraphWidth = leftTopInfos[1]; // console.log(this._combineParagraph);
30907
31017
 
30908
- var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_11__/* .DrawLine */ .a(this._rootPath, this, 0, paragraphWidth);
31018
+ var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_13__/* .DrawLine */ .a(this._rootPath, this, 0, paragraphWidth);
30909
31019
  this._dHeight = aline.dHeight;
30910
31020
 
30911
31021
  this._drawLines.push(aline);
@@ -30940,7 +31050,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30940
31050
  // this.drootNodes.push(this.drawlines[0]);
30941
31051
  // }
30942
31052
  if (dline) {
30943
- var dTop = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
31053
+ var dTop = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
30944
31054
  this.placeDNodeAfterDTop(dTop, dline); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.insertDline(droots,index+1,this._drawLines[0]);
30945
31055
  }
30946
31056
  }
@@ -30958,7 +31068,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
30958
31068
  var dline = prevDline;
30959
31069
 
30960
31070
  while (index === -1) {
30961
- var _TableNode$isNodeInTa = _TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode.isNodeInTable */ .Fh.isNodeInTable(dline.paragraphNode),
31071
+ var _TableNode$isNodeInTa = _TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode.isNodeInTable */ .Fh.isNodeInTable(dline.paragraphNode),
30962
31072
  _TableNode$isNodeInTa2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_TableNode$isNodeInTa, 3),
30963
31073
  bret = _TableNode$isNodeInTa2[0],
30964
31074
  aTable = _TableNode$isNodeInTa2[1],
@@ -31033,7 +31143,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31033
31143
  }, {
31034
31144
  key: "isInCell",
31035
31145
  value: function isInCell() {
31036
- return this.parentNode !== null && this.parentNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_10__/* .RectNode */ .z;
31146
+ return this.parentNode !== null && this.parentNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_12__/* .RectNode */ .z;
31037
31147
  }
31038
31148
  }, {
31039
31149
  key: "drawlines",
@@ -31043,7 +31153,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31043
31153
  }, {
31044
31154
  key: "adjustNextDline",
31045
31155
  value: function adjustNextDline(dline, index) {
31046
- var droots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(dline.rootPath);
31156
+ var droots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(dline.rootPath);
31047
31157
  var dNextLine = this.getNextDline(dline);
31048
31158
 
31049
31159
  for (var i = index; i < dline.drawItems.length; i++) {
@@ -31055,7 +31165,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31055
31165
  }, {
31056
31166
  key: "getParagraphLastNodePath",
31057
31167
  value: function getParagraphLastNodePath() {
31058
- return _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this); // return this.getParagraphLastNode().getNodePath()
31168
+ return _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this); // return this.getParagraphLastNode().getNodePath()
31059
31169
  // const pNode = this._parentNode;
31060
31170
  // if (pNode) {
31061
31171
  // const index = pNode.childNodes.indexOf(this);
@@ -31094,7 +31204,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31094
31204
  value: function updateDrawLineStyle() {
31095
31205
  for (var i = 0; i < this._drawLines.length; i++) {
31096
31206
  var dline = this._drawLines[i];
31097
- if (dline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_11__/* .DrawLine */ .a) dline.updateLineStyle();
31207
+ if (dline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_13__/* .DrawLine */ .a) dline.updateLineStyle();
31098
31208
  } // if (dline instanceof DrawLine) dline.updateLineStyle();
31099
31209
 
31100
31210
  }
@@ -31124,12 +31234,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31124
31234
  }, {
31125
31235
  key: "node2Json",
31126
31236
  value: function node2Json(range, iscopy) {
31127
- var combinePara = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
31237
+ var combinePara = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
31128
31238
  combinePara.copyStyle(this.combineParagraph);
31129
31239
  var paragraphStyle = {
31130
31240
  height: this.dHeight,
31131
31241
  top: this.dTop,
31132
- align: _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .Align */ .xM[combinePara.align],
31242
+ align: _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .Align */ .xM[combinePara.align],
31133
31243
  charSpace: combinePara.charSpace,
31134
31244
  lineSpace: combinePara.lineSpace,
31135
31245
  leftMargin: combinePara.leftMarginMm,
@@ -31145,14 +31255,15 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31145
31255
  //paragraphJson._align = Align[parseInt(paragraphJson._align)];
31146
31256
 
31147
31257
  var paga = {
31148
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .NodeType */ .Jq[this.nodeType],
31258
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType */ .Jq[this.nodeType],
31149
31259
  style: paragraphStyle,
31150
31260
  // height: this.dHeight,
31151
31261
  // top: this.dTop,
31152
31262
  styleIndex: this._paraNo,
31153
31263
  textStyleNo: this.styleIndex,
31154
31264
  printAsSinglePage: this.printAsSinglePage,
31155
- docId: this.docId
31265
+ docId: this.docId,
31266
+ customProperty: this.customProperty
31156
31267
  }; //const dictType = NodeType[this.nodeType].substring(2);
31157
31268
 
31158
31269
  if (iscopy) {
@@ -31182,8 +31293,13 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31182
31293
  var index = parentNodes.indexOf(this);
31183
31294
 
31184
31295
  if (index != -1) {
31185
- if (this.parentNode) //有父节点,使用父节点的删除方法
31186
- return this.parentNode.removeChild(this);else parentNodes.splice(index, 1);
31296
+ if (this.parentNode) {
31297
+ //有父节点,使用父节点的删除方法
31298
+ return this.parentNode.removeChild(this);
31299
+ } else {
31300
+ parentNodes.splice(index, 1);
31301
+ }
31302
+
31187
31303
  return true;
31188
31304
  }
31189
31305
 
@@ -31203,20 +31319,20 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31203
31319
  var paraNo = Number(json.styleIndex);
31204
31320
 
31205
31321
  if (json["style"]) {
31206
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
31322
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
31207
31323
  var style = json.style;
31208
- var paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .Paragraph */ .nv(hoEditorFactoryID);
31324
+ var paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .Paragraph */ .nv(hoEditorFactoryID);
31209
31325
  paragraph.leftMargin = style._leftMarginMm ? Number(style._leftMarginMm) : Number(style.leftMargin);
31210
31326
  paragraph.rightMargin = style._rightMarginMm ? Number(style._rightMarginMm) : Number(style.rightMargin);
31211
31327
  paragraph.topMargin = style._topMarginMm ? Number(style._topMarginMm) : Number(style.topMargin);
31212
31328
  paragraph.bottomMargin = style._bottomMarginMm ? Number(style._bottomMarginMm) : Number(style.bottomMargin);
31213
- paragraph.align = style._align !== undefined ? parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .Align */ .xM[style._align]) : parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_9__/* .Align */ .xM[style.align]);
31329
+ paragraph.align = style._align !== undefined ? parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .Align */ .xM[style._align]) : parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_11__/* .Align */ .xM[style.align]);
31214
31330
  paragraph.charSpace = style._charSpace ? Number(style._charSpace) : Number(style.charSpace);
31215
31331
  paragraph.lineSpace = style._lineSpace ? Number(style._lineSpace) : Number(style.lineSpace);
31216
31332
  paraNo = hoEditorFactory.docTree.styleCompare(paragraph);
31217
31333
  }
31218
31334
 
31219
- var paragraphNode = new ParagraphNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, paraNo);
31335
+ var paragraphNode = new ParagraphNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, paraNo, json.customProperty);
31220
31336
  paragraphNode.docId = json.docId && json.docId !== "" ? json.docId : "";
31221
31337
  paragraphNode.printAsSinglePage = json.printAsSinglePage ? json.printAsSinglePage === "true" ? true : false : false;
31222
31338
  paragraphNode.styleIndex = json.textStyleNo ? Number(json.textStyleNo) : 0; // paragraphNode._dHeight = Number(json.height);
@@ -31227,7 +31343,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31227
31343
  }]);
31228
31344
 
31229
31345
  return ParagraphNode;
31230
- }(_BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Hd);
31346
+ }(_BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .BaseNode */ .Hd);
31231
31347
 
31232
31348
  /***/ }),
31233
31349
 
@@ -33346,7 +33462,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
33346
33462
  }
33347
33463
 
33348
33464
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
33349
- json.isSelected = !json.isSelected ? false : json.isSelected;
33465
+ json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
33350
33466
  json.boxAlign = !json.boxAlign ? false : json.boxAlign;
33351
33467
  json.isEditText = !json.isEditText ? false : json.isEditText;
33352
33468
  json.isTransToText = !json.isTransToText ? false : json.isTransToText;
@@ -35760,6 +35876,10 @@ var ColInfos = /*#__PURE__*/function () {
35760
35876
  return this._colWidth;
35761
35877
  },
35762
35878
  set: function set(colWidth) {
35879
+ if (isNaN(colWidth)) {
35880
+ console.warn('当前列宽 === NaN');
35881
+ }
35882
+
35763
35883
  this._colWidth = colWidth;
35764
35884
  }
35765
35885
  }, {
@@ -38482,12 +38602,13 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38482
38602
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38483
38603
  /* harmony export */ "OL": function() { return /* binding */ DownListProperty; },
38484
38604
  /* harmony export */ "ZX": function() { return /* binding */ DataFormat; },
38605
+ /* harmony export */ "Zi": function() { return /* binding */ InputFieldType; },
38485
38606
  /* harmony export */ "hc": function() { return /* binding */ ExecuteStatus; },
38486
38607
  /* harmony export */ "mK": function() { return /* binding */ ReadOnlyStatus; },
38487
38608
  /* harmony export */ "re": function() { return /* binding */ TextInputFieldNode; },
38488
38609
  /* harmony export */ "wz": function() { return /* binding */ DataVerifyFormat; }
38489
38610
  /* harmony export */ });
38490
- /* unused harmony exports InputFieldType, SpecialFormat, BandDataSource */
38611
+ /* unused harmony exports SpecialFormat, BandDataSource */
38491
38612
  /* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86769);
38492
38613
  /* 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__);
38493
38614
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26982);
@@ -42518,8 +42639,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
42518
42639
  /*
42519
42640
  * @Author: your name
42520
42641
  * @Date: 2021-01-19 10:05:08
42521
- * @LastEditTime: 2021-09-26 22:46:04
42522
- * @LastEditors: Please set LastEditors
42642
+ * @LastEditTime: 2022-06-24 16:54:17
42643
+ * @LastEditors: liyanan 2441631434@qq.com
42523
42644
  * @Description: In User Settings Edit
42524
42645
  * @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
42525
42646
  */
@@ -42591,6 +42712,8 @@ var DrawResize = /*#__PURE__*/function () {
42591
42712
 
42592
42713
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
42593
42714
  hoEditorFactory.docTree.curOnDragNode = this.node;
42715
+ this.dragFlag = true;
42716
+ this.sLocation = new createjs.Point(e.stageX, e.stageY);
42594
42717
  this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true); //const drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(
42595
42718
  //this.drawNode
42596
42719
  //);
@@ -42598,8 +42721,6 @@ var DrawResize = /*#__PURE__*/function () {
42598
42721
  //drawLine.drawItems.splice(index, 1);
42599
42722
  //drawLine.removeChild(this.drawNode);
42600
42723
 
42601
- this.dragFlag = true;
42602
- this.sLocation = new createjs.Point(e.stageX, e.stageY);
42603
42724
  var shapes = this.drawNode.children;
42604
42725
  shapes.forEach(function (value, index) {
42605
42726
  // if (value.name !== this.node.id && value.alpha !== 1) {
@@ -42781,7 +42902,7 @@ var DrawResize = /*#__PURE__*/function () {
42781
42902
  //左上
42782
42903
  this.drawNode.dWidth = this.drawNode.dWidth - changeX;
42783
42904
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
42784
- this.imageY = this.imageY - changeY;
42905
+ this.imageY = this.imageY + changeY;
42785
42906
  } else if (e.target.name === "centerTop") {
42786
42907
  //向上
42787
42908
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
@@ -43435,7 +43556,7 @@ var StagePosition = /*#__PURE__*/function () {
43435
43556
  /* harmony export */ "l": function() { return /* binding */ DrawArea; }
43436
43557
  /* harmony export */ });
43437
43558
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
43438
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(22342);
43559
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(22342);
43439
43560
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
43440
43561
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
43441
43562
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66992);
@@ -43463,6 +43584,8 @@ var StagePosition = /*#__PURE__*/function () {
43463
43584
  /* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2242);
43464
43585
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(41005);
43465
43586
  /* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(95883);
43587
+ /* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(39648);
43588
+
43466
43589
 
43467
43590
 
43468
43591
 
@@ -43516,7 +43639,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
43516
43639
  // }
43517
43640
 
43518
43641
 
43519
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(DrawArea, [{
43642
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(DrawArea, [{
43520
43643
  key: "endDline",
43521
43644
  get: function get() {
43522
43645
  return this._endDline;
@@ -44354,7 +44477,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44354
44477
  var localPos = _this2.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
44355
44478
 
44356
44479
 
44357
- var spX = endDrawNode.x;
44480
+ var spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__/* .DrawPageCell */ .k ? localPos.x : endDrawNode.x;
44358
44481
  var spY = localPos.y;
44359
44482
 
44360
44483
  _this2.removeComment(value);
@@ -44585,11 +44708,176 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44585
44708
  if (child.name === comment.id) {
44586
44709
  child.alpha = 1;
44587
44710
  }
44588
- } //this.stage.update();
44711
+ }
44712
+
44713
+ hoEditorFactory.drawPageTree.updateDrawPage(this.index);
44714
+ }
44715
+ }, {
44716
+ key: "drawEditRecords",
44717
+ value: function drawEditRecords(comment, nodeX, nodeY, commentY) {
44718
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
44719
+ var commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
44720
+ var docWidth = this.docWidth;
44721
+ var container = new createjs.Container();
44722
+ container.x = docWidth + 15;
44723
+ container.y = commentY - comment.lineHeight / 2;
44724
+ container.name = comment.id;
44725
+ var commentTextShape = null; // 批注内容
44726
+
44727
+ var commentArr = comment.commentTextWarp(commentWidth, comment.text);
44728
+ var text = commentArr[0];
44729
+ var textLen = commentArr[1] > 1 ? commentArr[1] - 1 : commentArr[1];
44730
+ comment.lineHeight = 20 * textLen + 10;
44731
+ commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
44732
+ commentTextShape.lineWidth = commentWidth - 25;
44733
+ commentTextShape.lineHeight = 20;
44734
+ commentTextShape.name = "oldValue";
44735
+ commentTextShape.x = 5;
44736
+ commentTextShape.y = 10;
44737
+ commentTextShape.alpha = 1; //背景
44738
+
44739
+ var textWidth = commentTextShape.getMeasuredWidth();
44740
+ var shapeWidth = textWidth + 10 > commentWidth - 30 ? commentWidth - 30 : textWidth + 10;
44741
+ var backShape = new createjs.Shape();
44742
+ backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5").drawRoundRect(0, 0, shapeWidth, comment.lineHeight, 5);
44743
+ backShape.name = "backShape";
44744
+ backShape.alpha = 0.5; //横线
44589
44745
 
44746
+ var horizontalLine = new createjs.Shape();
44747
+ horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
44748
+ horizontalLine.name = comment.id;
44749
+ horizontalLine.alpha = 1; //指向线
44590
44750
 
44751
+ var guideLine = new createjs.Shape();
44752
+ guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
44753
+ guideLine.name = comment.id;
44754
+ guideLine.alpha = 1;
44755
+ container.addChild(backShape);
44756
+ container.addChild(commentTextShape);
44757
+ this.addChild(horizontalLine);
44758
+ this.addChild(guideLine);
44759
+ this.addChild(container);
44591
44760
  hoEditorFactory.drawPageTree.updateDrawPage(this.index);
44592
44761
  }
44762
+ }, {
44763
+ key: "repaintRecored",
44764
+ value: function repaintRecored(comments, comment, nPath, spX, spY) {
44765
+ var _this5 = this;
44766
+
44767
+ var topComments = new Array();
44768
+ var bottomComments = new Array();
44769
+ var tempArr = new Array();
44770
+
44771
+ var getStagePos = function getStagePos(comment) {
44772
+ var endDrawNode = comment.eNode.drawNodes[0];
44773
+ var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this5._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44774
+
44775
+ var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
44776
+
44777
+ var localPos = _this5.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
44778
+
44779
+
44780
+ return [endDrawNode.x, localPos.y];
44781
+ };
44782
+
44783
+ var commentY = spY;
44784
+ comments.forEach(function (value) {
44785
+ if (value.id !== comment.id) {
44786
+ tempArr.push(value);
44787
+ }
44788
+ });
44789
+ tempArr.forEach(function (value) {
44790
+ var aPath = value.eNode.getNodePath();
44791
+ var result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__/* .NodePosition.treePathCompare */ .F.treePathCompare(nPath, aPath);
44792
+
44793
+ if (result > 0) {
44794
+ topComments.push(value);
44795
+ } else {
44796
+ bottomComments.push(value);
44797
+ }
44798
+ });
44799
+
44800
+ if (topComments.length > 0) {
44801
+ var tempComment = topComments[0];
44802
+ var maxValue = getStagePos(tempComment)[1];
44803
+ var lHeight = tempComment.lineHeight;
44804
+
44805
+ for (var i = 1; i < topComments.length; i++) {
44806
+ var stageY = getStagePos(topComments[i])[1];
44807
+
44808
+ if (stageY > maxValue) {
44809
+ maxValue = stageY;
44810
+ lHeight = topComments[i].lineHeight;
44811
+ tempComment = topComments[i];
44812
+ }
44813
+ }
44814
+
44815
+ if (maxValue + lHeight + 5 > spY) {
44816
+ commentY = maxValue + lHeight + 5;
44817
+
44818
+ for (var j = 0; j < this.children.length; j++) {
44819
+ var child = this.children[j];
44820
+
44821
+ if (child.name === tempComment.id && child instanceof createjs.Container) {
44822
+ if (child.y + tempComment.lineHeight / 2 > maxValue) {
44823
+ commentY = child.y + tempComment.lineHeight / 2 + lHeight + 5;
44824
+ }
44825
+ }
44826
+ }
44827
+ }
44828
+ }
44829
+
44830
+ this.drawEditRecords(comment, spX, spY, commentY);
44831
+
44832
+ if (bottomComments.length > 0) {
44833
+ var repaintComment = function repaintComment(commentObj, commentY, lineHeight) {
44834
+ var nodeX = getStagePos(commentObj)[0];
44835
+ var nodeY = getStagePos(commentObj)[1];
44836
+ var arrIndex = bottomComments.indexOf(commentObj);
44837
+ bottomComments.splice(arrIndex, 1);
44838
+
44839
+ if (commentY + lineHeight + 5 > nodeY) {
44840
+ commentY = commentY + lineHeight + 5;
44841
+ } else {
44842
+ commentY = nodeY;
44843
+ }
44844
+
44845
+ _this5.removeComment(commentObj);
44846
+
44847
+ _this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
44848
+
44849
+ if (bottomComments.length > 0) {
44850
+ var _minValue2 = getStagePos(bottomComments[0])[1];
44851
+ var _tempComment4 = bottomComments[0];
44852
+
44853
+ for (var _j2 = 1; _j2 < bottomComments.length; _j2++) {
44854
+ var _stageY3 = getStagePos(bottomComments[_j2])[1];
44855
+
44856
+ if (_stageY3 < _minValue2) {
44857
+ _minValue2 = _stageY3;
44858
+ _tempComment4 = bottomComments[_j2];
44859
+ }
44860
+ }
44861
+
44862
+ repaintComment(_tempComment4, commentY, commentObj.lineHeight);
44863
+ }
44864
+ };
44865
+
44866
+ var minValue = getStagePos(bottomComments[0])[1];
44867
+ var _tempComment3 = bottomComments[0];
44868
+
44869
+ for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
44870
+ var _stageY4 = getStagePos(bottomComments[_i2])[1];
44871
+
44872
+ if (_stageY4 < minValue) {
44873
+ minValue = _stageY4;
44874
+ _tempComment3 = bottomComments[_i2];
44875
+ }
44876
+ }
44877
+
44878
+ repaintComment(_tempComment3, commentY, comment.lineHeight);
44879
+ }
44880
+ }
44593
44881
  }]);
44594
44882
 
44595
44883
  return DrawArea;
@@ -53284,7 +53572,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53284
53572
  if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
53285
53573
  if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
53286
53574
  if (this.node.parentNode.inputFieldType === 0) {
53287
- backColor = hoEditorFactory.option.getColorByLevel(10);
53575
+ if (backColor === hoEditorFactory.pageProperty.backColor) {
53576
+ backColor = hoEditorFactory.option.getColorByLevel(10);
53577
+ }
53288
53578
  } else {
53289
53579
  if (this.node.parentNode.keyValue == "") {
53290
53580
  backColor = hoEditorFactory.option.getColorByLevel(120);
@@ -53293,6 +53583,12 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53293
53583
  }
53294
53584
  }
53295
53585
 
53586
+ if (hoEditorFactory.isEnabledGlobalColor) {
53587
+ if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
53588
+ backColor = "transparent";
53589
+ }
53590
+ }
53591
+
53296
53592
  if (this.node.parentNode.enableGlobalColor) {
53297
53593
  backColor = "transparent";
53298
53594
  }
@@ -62974,30 +63270,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62974
63270
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
62975
63271
  /* harmony export */ "e": function() { return /* binding */ ParseUndoUnit; }
62976
63272
  /* harmony export */ });
62977
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
62978
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(22342);
62979
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41539);
62980
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
62981
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54747);
62982
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
62983
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21703);
62984
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__);
62985
- /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23375);
62986
- /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91538);
62987
- /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34534);
62988
- /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66828);
62989
- /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58416);
62990
- /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48508);
62991
- /* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(50356);
62992
- /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2242);
62993
- /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(14208);
62994
- /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95883);
62995
- /* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(8);
62996
- /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1470);
62997
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(41005);
62998
- /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34565);
62999
- /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(15868);
63000
- /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(15798);
63273
+ /* 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);
63274
+ /* 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);
63275
+ /* 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);
63276
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(22342);
63277
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);
63278
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
63279
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54747);
63280
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
63281
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
63282
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__);
63283
+ /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23375);
63284
+ /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91538);
63285
+ /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34534);
63286
+ /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(66828);
63287
+ /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58416);
63288
+ /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(48508);
63289
+ /* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50356);
63290
+ /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2242);
63291
+ /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(14208);
63292
+ /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95883);
63293
+ /* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8);
63294
+ /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1470);
63295
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(41005);
63296
+ /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(34565);
63297
+ /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(15868);
63298
+ /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(15798);
63299
+
63300
+
63001
63301
 
63002
63302
 
63003
63303
 
@@ -63021,7 +63321,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63021
63321
 
63022
63322
  var ParseUndoUnit = /*#__PURE__*/function () {
63023
63323
  function ParseUndoUnit(hoEditorFactoryID, startPath, endPath, nodes) {
63024
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, ParseUndoUnit);
63324
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParseUndoUnit);
63025
63325
 
63026
63326
  //插入后的,变更范围
63027
63327
  this._tmp = {
@@ -63031,42 +63331,66 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63031
63331
  this._hoEditorFactoryID = hoEditorFactoryID;
63032
63332
  this._startPath = startPath;
63033
63333
  this._endPath = endPath;
63034
- this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_9__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
63334
+ this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_11__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
63035
63335
 
63036
63336
  this._undoNodes = new Array();
63037
63337
  this._nodes = nodes;
63038
63338
  this._opTime = new Date();
63039
- this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
63339
+ this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
63040
63340
  }
63041
63341
 
63042
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(ParseUndoUnit, [{
63342
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(ParseUndoUnit, [{
63043
63343
  key: "undo",
63044
- value: function undo() {
63045
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID); //先删除插入绘画节点
63344
+ value: function () {
63345
+ var _undo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__/* ["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() {
63346
+ var hoEditorFactory, delEvent, np;
63347
+ 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) {
63348
+ while (1) {
63349
+ switch (_context.prev = _context.next) {
63350
+ case 0:
63351
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63352
+ delEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, this._tmp.start, this._tmp.start);
63353
+ delEvent.oldEndPath = this._tmp.end;
63354
+ delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.end); //删除插入的节点
63046
63355
 
63047
- var delEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__/* .DocAction.daDelete */ .gk.daDelete, this._tmp.start, this._tmp.start); //undo
63356
+ this._undoNodes.forEach(function (value) {
63357
+ hoEditorFactory.docTree.deleteNode(value, "update");
63358
+ });
63048
63359
 
63049
- this._undoNodes.forEach(function (value) {
63050
- hoEditorFactory.docTree.deleteNode(value, "update");
63051
- });
63360
+ delEvent.afterChangePath = this._tmp.start;
63361
+ _context.next = 8;
63362
+ return hoEditorFactory.docTree.change(delEvent);
63052
63363
 
63053
- while (!this._undo.atBottom()) {
63054
- this._undo.undo();
63055
- }
63364
+ case 8:
63365
+ hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
63366
+
63367
+ while (!this._undo.atBottom()) {
63368
+ this._undo.undo();
63369
+ }
63056
63370
 
63057
- delEvent.oldEndPath = this._tmp.start;
63058
- delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.start);
63059
- hoEditorFactory.docTree.change(delEvent); //删除插入的节点
63371
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
63372
+ hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
63373
+ np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
63060
63374
 
63061
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
63062
- hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
63063
- var np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
63375
+ if (np && np.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__/* .MarkNode */ .j && np.node.parentNode && np.node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && np.node.parentNode.childNodes.length === 2) {
63376
+ hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
63377
+ } // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63064
63378
 
63065
- if (np && np.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_18__/* .MarkNode */ .j && np.node.parentNode && np.node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__/* .TextInputFieldNode */ .re && np.node.parentNode.childNodes.length === 2) {
63066
- hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
63067
- } // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63068
63379
 
63069
- }
63380
+ case 14:
63381
+ case "end":
63382
+ return _context.stop();
63383
+ }
63384
+ }
63385
+ }, _callee, this);
63386
+ }));
63387
+
63388
+ function undo() {
63389
+ return _undo.apply(this, arguments);
63390
+ }
63391
+
63392
+ return undo;
63393
+ }()
63070
63394
  /**
63071
63395
  * @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
63072
63396
  */
@@ -63085,8 +63409,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63085
63409
  _startPosition$node;
63086
63410
 
63087
63411
  this.initParam();
63088
- var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
63089
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63412
+ var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
63413
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63090
63414
  var rootNodes = hoEditorFactory.docTree.getPathRoots(this._startPath);
63091
63415
 
63092
63416
  if (!rootNodes) {
@@ -63100,7 +63424,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63100
63424
  //删除选中节点
63101
63425
  this._undo.begin();
63102
63426
 
63103
- this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_10__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
63427
+ this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
63104
63428
 
63105
63429
  this._undo.commit();
63106
63430
  }
@@ -63113,12 +63437,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63113
63437
  var prevNode = startPosition.node;
63114
63438
  var i = -1;
63115
63439
  var path = nodeLastPath;
63116
- var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
63440
+ var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
63117
63441
 
63118
63442
  if (positon < 0) {
63119
63443
  //如果是中间,先拆分
63120
- if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__/* .TextNode */ .R) {
63121
- var textNodeSplitUndoUnit = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_8__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, curRange.startPath, startPosition.node, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, curRange.startPath, nodeLastPath));
63444
+ if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__/* .TextNode */ .R) {
63445
+ var textNodeSplitUndoUnit = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, curRange.startPath, startPosition.node, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, curRange.startPath, nodeLastPath));
63122
63446
 
63123
63447
  this._undo.begin();
63124
63448
 
@@ -63137,7 +63461,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63137
63461
  //第一个节点是段落时,不插入
63138
63462
  var curr = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath).node;
63139
63463
 
63140
- if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C) {
63464
+ if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
63141
63465
  curr.combineParagraph.copyStyle(node.combineParagraph);
63142
63466
  } else {
63143
63467
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
@@ -63155,7 +63479,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63155
63479
  var _prevNode;
63156
63480
 
63157
63481
  return {
63158
- isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh,
63482
+ isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
63159
63483
  prevNode: index == 0 ? prevNode : _this._nodes[index - 1],
63160
63484
  nextNode: index == _this._nodes.length - 1 ? (_prevNode = prevNode) === null || _prevNode === void 0 ? void 0 : _prevNode.nextSibling() : _this._nodes[index + 1]
63161
63485
  };
@@ -63168,7 +63492,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63168
63492
 
63169
63493
  var checkTableNode2 = function checkTableNode2(node) {
63170
63494
  return {
63171
- isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh,
63495
+ isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
63172
63496
  node: node,
63173
63497
  prevNode: node.prevSibling(),
63174
63498
  nextNode: node.nextSibling()
@@ -63184,8 +63508,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63184
63508
  var insertParaNode = function insertParaNode(info) {
63185
63509
  if (!info.isTable) return;
63186
63510
 
63187
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63188
- var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63511
+ if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63512
+ var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63189
63513
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.prevNode), lpara);
63190
63514
 
63191
63515
  _this._undoNodes.push(lpara);
@@ -63193,8 +63517,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63193
63517
  info.node.paragraphNode = lpara; // endNode = lpara;
63194
63518
  }
63195
63519
 
63196
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63197
- var _lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63520
+ if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63521
+ var _lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63198
63522
 
63199
63523
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.node), _lpara);
63200
63524
 
@@ -63215,7 +63539,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63215
63539
  insertParaNode(info);
63216
63540
  }
63217
63541
 
63218
- if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_14__/* .BaseCombineNode */ .V) {
63542
+ if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__/* .BaseCombineNode */ .V) {
63219
63543
  node.childNodes.forEach(function (value) {
63220
63544
  var info = checkTableNode2(value);
63221
63545
 
@@ -63236,8 +63560,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63236
63560
  var info = checkTableNode(i);
63237
63561
 
63238
63562
  if (info.isTable) {
63239
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63240
- var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(startPosition.path), hoEditorFactory.docTree.curParaNo);
63563
+ if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63564
+ var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(startPosition.path), hoEditorFactory.docTree.curParaNo);
63241
63565
  hoEditorFactory.docTree.insertNodeAfterPath(path, lpara);
63242
63566
 
63243
63567
  this._undoNodes.push(lpara);
@@ -63249,8 +63573,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63249
63573
 
63250
63574
  this._undoNodes.push(node);
63251
63575
 
63252
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63253
- var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
63576
+ if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63577
+ var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
63254
63578
 
63255
63579
  hoEditorFactory.docTree.insertNodeAfterPath(path, _lpara2);
63256
63580
  node.paragraphNode = _lpara2;
@@ -63269,7 +63593,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63269
63593
 
63270
63594
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
63271
63595
 
63272
- if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C) {
63596
+ if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
63273
63597
  node.refreshDrootNodes();
63274
63598
  }
63275
63599
 
@@ -63284,22 +63608,22 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63284
63608
 
63285
63609
  endNode = this._nodes[this._nodes.length - 1];
63286
63610
 
63287
- if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh) {
63611
+ if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh) {
63288
63612
  endNode = this._nodes[this._nodes.length - 1].nextSibling();
63289
63613
  }
63290
63614
  }
63291
63615
 
63292
63616
  var endPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
63293
- var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__/* .DocAction.daInsert */ .gk.daInsert, curRange.startPath, endPath);
63617
+ var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .DocAction.daInsert */ .gk.daInsert, curRange.startPath, endPath);
63294
63618
  hoEditorFactory.docTree.change(changeEvent);
63295
63619
 
63296
- if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__/* .TextInputFieldNode */ .re) {
63620
+ if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re) {
63297
63621
  var _startPosition$node2;
63298
63622
 
63299
63623
  (_startPosition$node2 = startPosition.node) === null || _startPosition$node2 === void 0 ? void 0 : _startPosition$node2.parentNode.update();
63300
63624
  var ppNode = startPosition.node.parentNode.parentNode;
63301
63625
 
63302
- if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_19__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
63626
+ if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
63303
63627
  ppNode.drawCell.needUpdate = true;
63304
63628
  ppNode.table.update();
63305
63629
  }
@@ -63308,7 +63632,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63308
63632
  this._tmp.start = curRange.startPath;
63309
63633
  this._tmp.end = endPath;
63310
63634
  hoEditorFactory.drawTree.moveCaretToPath(endPath);
63311
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63635
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63312
63636
  }
63313
63637
  }, {
63314
63638
  key: "isEmpty",
@@ -97817,7 +98141,8 @@ while(len--){curDa=sa.shift();if(typeof curDa!=="string"||Array.isArray(curDa)&&
97817
98141
  //we assume the user knows what they are doing.
97818
98142
  //Convert text into an array anyway to simplify
97819
98143
  //later code.
97820
- if(typeof text==="string"){if(text.match(/[\r?\n]/)){text=[text.replace(/\r\n|\r|\n/g,'')];}else{text=[text];}}//baseline
98144
+ if(typeof text==="string"){if(text.match(/[\r?\n]/)){text=[text.replace(/\r\n|\r|\n/g,'')];// 自定义修改 处理打印回车的问题
98145
+ }else{text=[text];}}//baseline
97821
98146
  var height=activeFontSize/scope.internal.scaleFactor;var descent=height*(lineHeightFactor-1);switch(options.baseline){case"bottom":y-=descent;break;case"top":y+=height-descent;break;case"hanging":y+=height-2*descent;break;case"middle":y+=height/2-descent;break;}//multiline
97822
98147
  maxWidth=options.maxWidth||0;if(maxWidth>0){if(typeof text==="string"){text=scope.splitTextToSize(text,maxWidth);}else if(Object.prototype.toString.call(text)==="[object Array]"){text=text.reduce(function(acc,textLine){return acc.concat(scope.splitTextToSize(textLine,maxWidth));},[]);}}//creating Payload-Object to make text byRef
97823
98148
  payload={text:text,x:x,y:y,options:options,mutex:{pdfEscape:pdfEscape,activeFontKey:activeFontKey,fonts:fonts,activeFontSize:activeFontSize}};events.publish("preProcessText",payload);text=payload.text;options=payload.options;//angle
@@ -97835,7 +98160,8 @@ var prevWidth=0;var newX;if(align==="right"){//The passed in x coordinate define
97835
98160
  //rightmost point of the text.
97836
98161
  x-=lineWidths[0];text=[];len=da.length;for(var i=0;i<len;i++){if(i===0){newX=getHorizontalCoordinate(x);newY=getVerticalCoordinate(y);}else{newX=scale(prevWidth-lineWidths[i]);newY=-leading;}text.push([da[i],newX,newY]);prevWidth=lineWidths[i];}}else if(align==="center"){//The passed in x coordinate defines
97837
98162
  //the center point.
97838
- x-=lineWidths[0]/2;text=[];len=da.length;for(var j=0;j<len;j++){if(j===0){newX=getHorizontalCoordinate(x);newY=getVerticalCoordinate(y);}else{newX=scale((prevWidth-lineWidths[j])/2);newY=-leading;}text.push([da[j],newX,newY]);prevWidth=lineWidths[j];}}else if(align==="left"){text=[];len=da.length;for(var h=0;h<len;h++){text.push(da[h]);}}else if(align==="justify"){text=[];len=da.length;maxWidth=maxWidth!==0?maxWidth:pageWidth;for(var l=0;l<len;l++){newY=l===0?getVerticalCoordinate(y):-leading;newX=l===0?getHorizontalCoordinate(x):0;if(l<len-1){wordSpacingPerLine.push(hpf(scale((maxWidth-lineWidths[l])/(da[l].split("").length-1))));}else{wordSpacingPerLine.push(0);}text.push([da[l],newX,newY]);}}else{throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');}}//R2L
98163
+ x-=lineWidths[0]/2;text=[];len=da.length;for(var j=0;j<len;j++){if(j===0){newX=getHorizontalCoordinate(x);newY=getVerticalCoordinate(y);}else{newX=scale((prevWidth-lineWidths[j])/2);newY=-leading;}text.push([da[j],newX,newY]);prevWidth=lineWidths[j];}}else if(align==="left"){text=[];len=da.length;for(var h=0;h<len;h++){text.push(da[h]);}}else if(align==="justify"){text=[];len=da.length;maxWidth=maxWidth!==0?maxWidth:pageWidth;for(var l=0;l<len;l++){newY=l===0?getVerticalCoordinate(y):-leading;newX=l===0?getHorizontalCoordinate(x):0;if(l<len-1){// 自定义修改 字符间距
98164
+ wordSpacingPerLine.push(hpf(scale((maxWidth-lineWidths[l])/(da[l].split("").length-1))));}else{wordSpacingPerLine.push(0);}text.push([da[l],newX,newY]);}}else{throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');}}//R2L
97839
98165
  var doReversing=typeof options.R2L==="boolean"?options.R2L:R2L;if(doReversing===true){text=processTextByFunction(text,function(text,posX,posY){return[text.split("").reverse().join(""),posX,posY];});}//creating Payload-Object to make text byRef
97840
98166
  payload={text:text,x:x,y:y,options:options,mutex:{pdfEscape:pdfEscape,activeFontKey:activeFontKey,fonts:fonts,activeFontSize:activeFontSize}};events.publish("postProcessText",payload);text=payload.text;isHex=payload.mutex.isHex||false;//Escaping
97841
98167
  var activeFontEncoding=fonts[activeFontKey].encoding;if(activeFontEncoding==="WinAnsiEncoding"||activeFontEncoding==="StandardEncoding"){text=processTextByFunction(text,function(text,posX,posY){return[ESC(text),posX,posY];});}da=transformTextToSpecialArray(text);text=[];var STRING=0;var ARRAY=1;var variant=Array.isArray(da[0])?ARRAY:STRING;var posX;var posY;var content;var wordSpacing="";var generatePosition=function generatePosition(parmPosX,parmPosY,parmTransformationMatrix){var position="";if(parmTransformationMatrix instanceof Matrix){// It is kind of more intuitive to apply a plain rotation around the text anchor set by x and y
@@ -98641,6 +98967,7 @@ stream.push(formObject.scope.__private__.encodeColorString(formObject.color));st
98641
98967
  stream.push(calcRes.text);stream.push("ET");// End Text
98642
98968
  stream.push("Q");stream.push("EMC");var appearanceStreamContent=createFormXObject(formObject);appearanceStreamContent.scope=formObject.scope;appearanceStreamContent.stream=stream.join("\n");return appearanceStreamContent;};var calculateX=function calculateX(formObject,text){var maxFontSize=formObject.fontSize===0?formObject.maxFontSize:formObject.fontSize;var returnValue={text:"",fontSize:""};// Remove Brackets
98643
98969
  text=text.substr(0,1)=="("?text.substr(1):text;text=text.substr(text.length-1)==")"?text.substr(0,text.length-1):text;// split into array of words
98970
+ // 自定义修改 字符间距
98644
98971
  var textSplit=text.split("");var fontSize=maxFontSize;// The Starting fontSize (The Maximum)
98645
98972
  var lineSpacing=2;var borderPadding=2;var height=AcroFormAppearance.internal.getHeight(formObject)||0;height=height<0?-height:height;var width=AcroFormAppearance.internal.getWidth(formObject)||0;width=width<0?-width:width;var isSmallerThanWidth=function isSmallerThanWidth(i,lastLine,fontSize){if(i+1<textSplit.length){var tmp=lastLine+" "+textSplit[i+1];var TextWidth=calculateFontSpace(tmp,formObject,fontSize).width;var FieldWidth=width-2*borderPadding;return TextWidth<=FieldWidth;}else{return false;}};fontSize++;FontSize:while(fontSize>0){text="";fontSize--;var textHeight=calculateFontSpace("3",formObject,fontSize).height;var startY=formObject.multiline?height-fontSize:(height-textHeight)/2;startY+=lineSpacing;var startX;var lastY=startY;var firstWordInLine=0,lastWordInLine=0;var lastLength;if(fontSize<=0){// In case, the Text doesn't fit at all
98646
98973
  fontSize=12;text="(...) Tj\n";text+="% Width of Text: "+calculateFontSpace(text,formObject,fontSize).width+", FieldWidth:"+width+"\n";break;}var lastLine="";var lineCount=0;Line:for(var i in textSplit){if(textSplit.hasOwnProperty(i)){lastLine+=textSplit[i]+" ";// Remove last blank
@@ -99274,7 +99601,8 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
99274
99601
  * @param {posY}
99275
99602
  *
99276
99603
  * @returns jsPDF
99277
- */jsPDFAPI.addImage=function(){var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
99604
+ */jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
99605
+ var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
99278
99606
  var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
99279
99607
  // if(posY) y += posY;
99280
99608
  initialize.call(this);var image=processImageData.call(this,imageData,format,alias,compression);writeImageToPDF.call(this,x,y,w,h,image,rotation);return this;};var processImageData=function processImageData(imageData,format,alias,compression){var result,dataAsBinaryString;if(typeof imageData==="string"&&getImageFileTypeByImageData(imageData)===UNKNOWN){imageData=unescape(imageData);var tmpImageData=convertBase64ToBinaryString(imageData,false);if(tmpImageData!==""){imageData=tmpImageData;}else{tmpImageData=jsPDFAPI.loadFile(imageData,true);if(tmpImageData!==undefined){imageData=tmpImageData;}}}if(isDOMElement(imageData)){imageData=getImageDataFromElement(imageData,format);}format=getImageFileTypeByImageData(imageData,format);if(!isImageTypeSupported(format)){throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");}// now do the heavy lifting
@@ -99729,7 +100057,8 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
99729
100057
  * A gradient object (linear or radial) used to fill the drawing (not supported by context2d)<br />
99730
100058
  * A pattern object to use to fill the drawing (not supported by context2d)
99731
100059
  */Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle;},set:function set(value){var rgba;rgba=getRGBA(value);this.ctx.fillStyle=rgba.style;this.ctx.isFillTransparent=rgba.a===0;//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
99732
- if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}var alpha=this.ctx.fillOpacity;this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}});/**
100060
+ if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
100061
+ if(window.printBlack&&this.ctx.fillStyle!=="#000000"&&this.ctx.fillStyle!=="#FFFFFF"){this.ctx.fillStyle="#000000";rgba.r=0;rgba.g=0;rgba.b=0;}var alpha=this.ctx.fillOpacity;this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}});/**
99733
100062
  * Sets or returns the color, gradient, or pattern used for strokes
99734
100063
  *
99735
100064
  * @name strokeStyle
@@ -99768,7 +100097,8 @@ if(fontFace!==null){fontFace.ref={name:family,style:style};fontFaces.push(fontFa
99768
100097
  * will be used. If not set it will fallback to previous behavior.
99769
100098
  */Object.defineProperty(this,"fontFaces",{get:function get(){return _fontFaces;},set:function set(value){_fontFaceMap=null;_fontFaces=value;}});Object.defineProperty(this,"font",{get:function get(){return this.ctx.font;},set:function set(value){this.ctx.font=value;var rx,matches;//source: https://stackoverflow.com/a/10136041
99770
100099
  // eslint-disable-next-line no-useless-escape
99771
- rx=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i;matches=rx.exec(value);if(matches!==null){var fontStyle=matches[1];var fontVariant=matches[2];var fontWeight=matches[3];var fontSize=matches[4];var lineHeight=matches[5];var fontFamily=matches[6];}else{return;}var rxFontSize=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i;var fontSizeUnit=rxFontSize.exec(fontSize)[2];if("px"===fontSizeUnit){fontSize=parseFloat(fontSize)*this.pdf.internal.scaleFactor;}else if("em"===fontSizeUnit){fontSize=Math.floor(parseFloat(fontSize)*this.pdf.getFontSize());}else{fontSize=Math.floor(parseFloat(fontSize)*this.pdf.internal.scaleFactor);}this.pdf.setFontSize(fontSize);var parts=parseFontFamily(fontFamily);if(this.fontFaces){var fontFaceMap=getFontFaceMap(this.pdf,this.fontFaces);var rules=parts.map(function(ff){return{family:ff,stretch:"normal",// TODO: Extract font-stretch from font rule (perhaps write proper parser for it?)
100100
+ rx=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i;matches=rx.exec(value);if(matches!==null){var fontStyle=matches[1];var fontVariant=matches[2];var fontWeight=matches[3];var fontSize=matches[4];var lineHeight=matches[5];var fontFamily=matches[6];}else{return;}var rxFontSize=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i;var fontSizeUnit=rxFontSize.exec(fontSize)[2];if("px"===fontSizeUnit){fontSize=parseFloat(fontSize)*this.pdf.internal.scaleFactor;//自定义修改 pt字体转为px
100101
+ }else if("em"===fontSizeUnit){fontSize=Math.floor(parseFloat(fontSize)*this.pdf.getFontSize());}else{fontSize=Math.floor(parseFloat(fontSize)*this.pdf.internal.scaleFactor);}this.pdf.setFontSize(fontSize);var parts=parseFontFamily(fontFamily);if(this.fontFaces){var fontFaceMap=getFontFaceMap(this.pdf,this.fontFaces);var rules=parts.map(function(ff){return{family:ff,stretch:"normal",// TODO: Extract font-stretch from font rule (perhaps write proper parser for it?)
99772
100102
  weight:fontWeight,style:fontStyle};});var font=resolveFontFace(fontFaceMap,rules);this.pdf.setFont(font.ref.name,font.ref.style);return;}var style="";if(fontWeight==="bold"||parseInt(fontWeight,10)>=700||fontStyle==="bold"){style="bold";}if(fontStyle==="italic"){style+="italic";}if(style.length===0){style="normal";}var jsPdfFontName="";var fallbackFonts={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"};for(var i=0;i<parts.length;i++){if(this.pdf.internal.getFont(parts[i],style,{noFallback:true,disableWarning:true})!==undefined){jsPdfFontName=parts[i];break;}else if(style==="bolditalic"&&this.pdf.internal.getFont(parts[i],"bold",{noFallback:true,disableWarning:true})!==undefined){jsPdfFontName=parts[i];style="bold";}else if(this.pdf.internal.getFont(parts[i],"normal",{noFallback:true,disableWarning:true})!==undefined){jsPdfFontName=parts[i];style="normal";break;}}if(jsPdfFontName===""){for(var j=0;j<parts.length;j++){if(fallbackFonts[parts[j]]){jsPdfFontName=fallbackFonts[parts[j]];break;}}}jsPdfFontName=jsPdfFontName===""?"Times":jsPdfFontName;this.pdf.setFont(jsPdfFontName,style);}});Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation;},set:function set(value){this.ctx.globalCompositeOperation=value;}});Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha;},set:function set(value){//自定义修改
99773
100103
  if(value<1){this.ctx.globalAlpha=0;}else{this.ctx.globalAlpha=value;}}});/**
99774
100104
  * A float specifying the amount of the line dash offset. The default value is 0.0.
@@ -99808,7 +100138,8 @@ return this.lineDash.slice();}};Context2D.prototype.fill=function(){pathPreProce
99808
100138
  * @function
99809
100139
  * @param x {Number} The x-coordinate of where to move the path to
99810
100140
  * @param y {Number} The y-coordinate of where to move the path to
99811
- */Context2D.prototype.moveTo=function(x,y){if(isNaN(x)||isNaN(y)){console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.moveTo");}x+=this.posX;y+=this.posY;var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"mt",x:pt.x,y:pt.y});this.ctx.lastPoint=new Point(x,y);};/**
100141
+ */Context2D.prototype.moveTo=function(x,y){if(isNaN(x)||isNaN(y)){console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.moveTo");}// 自定义修改 表格的边框线/页面边框位置不对的问题
100142
+ x+=this.posX;y+=this.posY;var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"mt",x:pt.x,y:pt.y});this.ctx.lastPoint=new Point(x,y);};/**
99812
100143
  * Creates a path from the current point back to the starting point
99813
100144
  *
99814
100145
  * @name closePath
@@ -99822,7 +100153,8 @@ return this.lineDash.slice();}};Context2D.prototype.fill=function(){pathPreProce
99822
100153
  * @param x The x-coordinate of where to create the line to
99823
100154
  * @param y The y-coordinate of where to create the line to
99824
100155
  * @description The lineTo() method adds a new point and creates a line TO that point FROM the last specified point in the canvas (this method does not draw the line).
99825
- */Context2D.prototype.lineTo=function(x,y){if(isNaN(x)||isNaN(y)){console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.lineTo");}x+=this.posX;y+=this.posY;var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"lt",x:pt.x,y:pt.y});this.ctx.lastPoint=new Point(pt.x,pt.y);};/**
100156
+ */Context2D.prototype.lineTo=function(x,y){if(isNaN(x)||isNaN(y)){console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.lineTo");}// 自定义修改 表格的边框线/页面边框位置不对的问题
100157
+ x+=this.posX;y+=this.posY;var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"lt",x:pt.x,y:pt.y});this.ctx.lastPoint=new Point(pt.x,pt.y);};/**
99826
100158
  * Clips a region of any shape and size from the original canvas
99827
100159
  *
99828
100160
  * @name clip
@@ -99975,7 +100307,9 @@ putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign
99975
100307
  * @param y {Number} The y coordinate where to start painting the text (relative to the canvas)
99976
100308
  * @param maxWidth {Number} Optional. The maximum allowed width of the text, in pixels
99977
100309
  * @description The strokeText() method draws text (with no fill) on the canvas. The default color of the text is black.
99978
- */Context2D.prototype.strokeText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!=="string"){console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.strokeText");}if(isStrokeTransparent.call(this)){return;}maxWidth=isNaN(maxWidth)?undefined:maxWidth;var degs=rad2deg(this.ctx.transform.rotation);var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?this.letterSpacing:0;putText.call(this,{text:text,x:x,y:y,scale:scale,renderingMode:"stroke",angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});};/**
100310
+ */Context2D.prototype.strokeText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!=="string"){console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.strokeText");}if(isStrokeTransparent.call(this)){return;}maxWidth=isNaN(maxWidth)?undefined:maxWidth;var degs=rad2deg(this.ctx.transform.rotation);var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?this.letterSpacing:0;// 自定义修改
100311
+ putText.call(this,{text:text,x:x,y:y,scale:scale,renderingMode:"stroke",angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace// 自定义修改
100312
+ });};/**
99979
100313
  * Returns an object that contains the width of the specified text
99980
100314
  *
99981
100315
  * @name measureText
@@ -100039,6 +100373,7 @@ putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign
100039
100373
  // if (isNaN(f)){
100040
100374
  // f=0;
100041
100375
  // }
100376
+ // 自定义修改 处理打印图片报错
100042
100377
  a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isNaN(f)?0:f;var matrix=new Matrix(a,b,c,d,e,f);this.ctx.transform=this.ctx.transform.multiply(matrix);// console.log("this.transform值",this.ctx.transform);
100043
100378
  };/**
100044
100379
  * Resets the current transform to the identity matrix. Then runs transform()
@@ -100067,8 +100402,9 @@ a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isN
100067
100402
  * @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
100068
100403
  */Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img);var factorX=1;var factorY=1;var clipFactorX=1;var clipFactorY=1;if(typeof swidth!=="undefined"&&typeof width!=="undefined"){clipFactorX=width/swidth;clipFactorY=height/sheight;factorX=imageProperties.width/swidth*width/swidth;factorY=imageProperties.height/sheight*height/sheight;}//is sx and sy are set and x and y not, set x and y with values of sx and sy
100069
100404
  if(typeof x==="undefined"){x=sx;y=sy;sx=0;sy=0;}if(typeof swidth!=="undefined"&&typeof width==="undefined"){width=swidth;height=sheight;}if(typeof swidth==="undefined"&&typeof width==="undefined"){width=imageProperties.width;height=imageProperties.height;}var decomposedTransformationMatrix=this.ctx.transform.decompose();// console.log("transform.decompose",decomposedTransformationMatrix.scale);
100070
- var angle=rad2deg(decomposedTransformationMatrix.rotate.shx);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;if(img.nodeName&&img.nodeName=="CANVAS"){xRect=matrix.applyToRectangle(new Rectangle(x+this.posX-sx*clipFactorX,y+this.posY-sy*clipFactorY,swidth*factorX,sheight*factorY));}else{xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY));}var pageArray=getPagesByPath.call(this,xRect);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath;if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.addImage(img,"JPEG",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,null,angle);if(needsClipping){this.pdf.restoreGraphicsState();}}}else{if(img.nodeName&&img.nodeName=="CANVAS"){// console.log("使用canvas绘制图像");
100071
- this.pdf.addImage(img.toDataURL("image/jpg"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// console.log("pdf.addImage绘制图片", xRect.x, xRect.y, xRect.w, xRect.h, null, null, angle);
100405
+ var angle=rad2deg(decomposedTransformationMatrix.rotate.shx);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
100406
+ if(img.nodeName&&img.nodeName=="CANVAS"){xRect=matrix.applyToRectangle(new Rectangle(x+this.posX-sx*clipFactorX,y+this.posY-sy*clipFactorY,swidth*factorX,sheight*factorY));}else{xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY));}var pageArray=getPagesByPath.call(this,xRect);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath;if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.addImage(img,"JPEG",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,null,angle);if(needsClipping){this.pdf.restoreGraphicsState();}}}else{if(img.nodeName&&img.nodeName=="CANVAS"){// 自定义修改
100407
+ this.pdf.addImage(img.toDataURL("image/jpg"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
100072
100408
  this.pdf.addImage(img,"JPEG",xRect.x+this.posX,xRect.y+this.posY,xRect.w,xRect.h,null,null,angle,this.posX,this.posY);}}};var getPagesByPath=function getPagesByPath(path,pageWrapX,pageWrapY){var result=[];pageWrapX=pageWrapX||this.pdf.internal.pageSize.width;pageWrapY=pageWrapY||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yOffset=this.posY+this.ctx.prevPageLastElemOffset;switch(path.type){default:case"mt":case"lt":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);break;case"arc":result.push(Math.floor((path.y+yOffset-path.radius)/pageWrapY)+1);result.push(Math.floor((path.y+yOffset+path.radius)/pageWrapY)+1);break;case"qct":var rectOfQuadraticCurve=getQuadraticCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x,path.y);result.push(Math.floor((rectOfQuadraticCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfQuadraticCurve.y+rectOfQuadraticCurve.h+yOffset)/pageWrapY)+1);break;case"bct":var rectOfBezierCurve=getBezierCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x2,path.y2,path.x,path.y);result.push(Math.floor((rectOfBezierCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfBezierCurve.y+rectOfBezierCurve.h+yOffset)/pageWrapY)+1);break;case"rect":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);result.push(Math.floor((path.y+path.h+yOffset)/pageWrapY)+1);}for(var i=0;i<result.length;i+=1){while(this.pdf.internal.getNumberOfPages()<result[i]){addPage.call(this);}}return result;};var addPage=function addPage(){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var font=this.font;var lineCap=this.lineCap;var lineWidth=this.lineWidth;var lineJoin=this.lineJoin;this.pdf.addPage();this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.font=font;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;};var pathPositionRedo=function pathPositionRedo(paths,x,y){for(var i=0;i<paths.length;i++){switch(paths[i].type){case"bct":paths[i].x2+=x;paths[i].y2+=y;case"qct":paths[i].x1+=x;paths[i].y1+=y;case"mt":case"lt":case"arc":default:paths[i].x+=x;paths[i].y+=y;}}return paths;};var sortPages=function sortPages(pages){return pages.sort(function(a,b){return a-b;});};var pathPreProcess=function pathPreProcess(rule,isClip){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var lineCap=this.lineCap;var oldLineWidth=this.lineWidth;var lineWidth=Math.abs(oldLineWidth*this.ctx.transform.scaleX);var lineJoin=this.lineJoin;var origPath=JSON.parse(JSON.stringify(this.path));var xPath=JSON.parse(JSON.stringify(this.path));var clipPath;var tmpPath;var pages=[];for(var i=0;i<xPath.length;i++){if(typeof xPath[i].x!=="undefined"){var page=getPagesByPath.call(this,xPath[i]);for(var ii=0;ii<page.length;ii+=1){if(pages.indexOf(page[ii])===-1){pages.push(page[ii]);}}}}for(var j=0;j<pages.length;j++){while(this.pdf.internal.getNumberOfPages()<pages[j]){addPage.call(this);}}sortPages(pages);if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var k=min;k<max+1;k++){this.pdf.setPage(k);this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=k===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=k===1?0:firstPageHeight+(k-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,rule,true);this.path=tmpPaths;}tmpPath=JSON.parse(JSON.stringify(origPath));this.path=pathPositionRedo(tmpPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);if(isClip===false||k===0){var needsClipping=(k>min||k<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}drawPaths.call(this,rule,isClip);if(needsClipping){this.pdf.restoreGraphicsState();}}this.lineWidth=oldLineWidth;}}else{this.lineWidth=lineWidth;drawPaths.call(this,rule,isClip);this.lineWidth=oldLineWidth;}this.path=origPath;};/**
100073
100409
  * Processes the paths
100074
100410
  *
@@ -100089,10 +100425,13 @@ return y;case"alphabetic":default:return y;}};var getTextBottom=function getText
100089
100425
  * @param counterclockwise
100090
100426
  * @param style
100091
100427
  * @param isClip
100092
- */var drawArc=function drawArc(x,y,r,a1,a2,counterclockwise,style,isClip){var curves=createArc.call(this,r,a1,a2,counterclockwise);for(var i=0;i<curves.length;i++){var curve=curves[i];if(i===0){doMove.call(this,curve.x1+x,curve.y1+y);}drawCurve.call(this,x,y,curve.x2,curve.y2,curve.x3,curve.y3,curve.x4,curve.y4);}if(!isClip){putStyle.call(this,style);}else{doClip.call(this);}};var putStyle=function putStyle(style){switch(style){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f");break;}};var doClip=function doClip(){this.pdf.clip();this.pdf.discardPath();};var doMove=function doMove(x,y){this.pdf.internal.out(getHorizontalCoordinateString(x)+" "+getVerticalCoordinateString(y)+" m");};var putText=function putText(options){var textAlign;switch(options.align){case"right":case"end":textAlign="right";break;case"center":textAlign="center";break;case"left":case"start":default:textAlign="left";break;}var textDimensions=this.pdf.getTextDimensions(options.text);var yBaseLine=getBaseline.call(this,options.y);var yBottom=getTextBottom.call(this,yBaseLine);var yTop=yBottom-textDimensions.h;var pt=this.ctx.transform.applyToPoint(new Point(options.x,yBaseLine));var decomposedTransformationMatrix=this.ctx.transform.decompose();var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);var baselineRect=this.ctx.transform.applyToRectangle(new Rectangle(options.x,yBaseLine,textDimensions.w,textDimensions.h));var textBounds=matrix.applyToRectangle(new Rectangle(options.x,yTop,textDimensions.w,textDimensions.h));var pageArray=getPagesByPath.call(this,textBounds);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath,oldSize,oldLineWidth;options.text=options.text.replace(/[\t]/g,' ');if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusBottomMargin=this.pdf.internal.pageSize.height-this.margin[2];var pageHeightMinusMargins=pageHeightMinusBottomMargin-this.margin[0];var pageWidthMinusRightMargin=this.pdf.internal.pageSize.width-this.margin[1];var pageWidthMinusMargins=pageWidthMinusRightMargin-this.margin[3];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;var acharSpace=options.charSpace?parseFloat(options.charSpace):0.0;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-1*previousPageHeightSum+topMargin);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var textBoundsOnPage=pathPositionRedo([JSON.parse(JSON.stringify(textBounds))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];if(options.scale>=0.01){oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale);oldLineWidth=this.lineWidth;this.lineWidth=oldLineWidth*options.scale;}var doSlice=this.autoPaging!=="text";if(doSlice||textBoundsOnPage.y+textBoundsOnPage.h<=pageHeightMinusBottomMargin){if(doSlice||textBoundsOnPage.y>=topMargin&&textBoundsOnPage.x<=pageWidthMinusRightMargin){var croppedText=doSlice?options.text:this.pdf.splitTextToSize(options.text,options.maxWidth||pageWidthMinusRightMargin-textBoundsOnPage.x)[0];var baseLineRectOnPage=pathPositionRedo([JSON.parse(JSON.stringify(baselineRect))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=doSlice&&(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.text(croppedText,baseLineRectOnPage.x,baseLineRectOnPage.y,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,charSpace:acharSpace});if(needsClipping){this.pdf.restoreGraphicsState();}}}else{// This text is the last element of the page, but it got cut off due to the margin
100428
+ */var drawArc=function drawArc(x,y,r,a1,a2,counterclockwise,style,isClip){var curves=createArc.call(this,r,a1,a2,counterclockwise);for(var i=0;i<curves.length;i++){var curve=curves[i];if(i===0){doMove.call(this,curve.x1+x,curve.y1+y);}drawCurve.call(this,x,y,curve.x2,curve.y2,curve.x3,curve.y3,curve.x4,curve.y4);}if(!isClip){putStyle.call(this,style);}else{doClip.call(this);}};var putStyle=function putStyle(style){switch(style){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f");break;}};var doClip=function doClip(){this.pdf.clip();this.pdf.discardPath();};var doMove=function doMove(x,y){this.pdf.internal.out(getHorizontalCoordinateString(x)+" "+getVerticalCoordinateString(y)+" m");};var putText=function putText(options){var textAlign;switch(options.align){case"right":case"end":textAlign="right";break;case"center":textAlign="center";break;case"left":case"start":default:textAlign="left";break;}var textDimensions=this.pdf.getTextDimensions(options.text);var yBaseLine=getBaseline.call(this,options.y);var yBottom=getTextBottom.call(this,yBaseLine);var yTop=yBottom-textDimensions.h;var pt=this.ctx.transform.applyToPoint(new Point(options.x,yBaseLine));var decomposedTransformationMatrix=this.ctx.transform.decompose();var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);var baselineRect=this.ctx.transform.applyToRectangle(new Rectangle(options.x,yBaseLine,textDimensions.w,textDimensions.h));var textBounds=matrix.applyToRectangle(new Rectangle(options.x,yTop,textDimensions.w,textDimensions.h));var pageArray=getPagesByPath.call(this,textBounds);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath,oldSize,oldLineWidth;options.text=options.text.replace(/[\t]/g,' ');// 自定义修改 修复打印不了tab键的问题
100429
+ if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusBottomMargin=this.pdf.internal.pageSize.height-this.margin[2];var pageHeightMinusMargins=pageHeightMinusBottomMargin-this.margin[0];var pageWidthMinusRightMargin=this.pdf.internal.pageSize.width-this.margin[1];var pageWidthMinusMargins=pageWidthMinusRightMargin-this.margin[3];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;var acharSpace=options.charSpace?parseFloat(options.charSpace):0.0;//自定义修改
100430
+ if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-1*previousPageHeightSum+topMargin);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var textBoundsOnPage=pathPositionRedo([JSON.parse(JSON.stringify(textBounds))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];if(options.scale>=0.01){oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale);oldLineWidth=this.lineWidth;this.lineWidth=oldLineWidth*options.scale;}var doSlice=this.autoPaging!=="text";if(doSlice||textBoundsOnPage.y+textBoundsOnPage.h<=pageHeightMinusBottomMargin){if(doSlice||textBoundsOnPage.y>=topMargin&&textBoundsOnPage.x<=pageWidthMinusRightMargin){var croppedText=doSlice?options.text:this.pdf.splitTextToSize(options.text,options.maxWidth||pageWidthMinusRightMargin-textBoundsOnPage.x)[0];var baseLineRectOnPage=pathPositionRedo([JSON.parse(JSON.stringify(baselineRect))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=doSlice&&(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.text(croppedText,baseLineRectOnPage.x,baseLineRectOnPage.y,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,charSpace:acharSpace// 自定义修改
100431
+ });if(needsClipping){this.pdf.restoreGraphicsState();}}}else{// This text is the last element of the page, but it got cut off due to the margin
100093
100432
  // so we render it in the next page
100094
100433
  if(textBoundsOnPage.y<pageHeightMinusBottomMargin){// As a result, all other elements have their y offset increased
100095
- this.ctx.prevPageLastElemOffset+=pageHeightMinusBottomMargin-textBoundsOnPage.y;}}if(options.scale>=0.01){this.pdf.setFontSize(oldSize);this.lineWidth=oldLineWidth;}}}else{if(options.scale>=0.01){oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale);oldLineWidth=this.lineWidth;this.lineWidth=oldLineWidth*options.scale;}// console.log("options.text",options.text);
100434
+ this.ctx.prevPageLastElemOffset+=pageHeightMinusBottomMargin-textBoundsOnPage.y;}}if(options.scale>=0.01){this.pdf.setFontSize(oldSize);this.lineWidth=oldLineWidth;}}}else{if(options.scale>=0.01){oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale);oldLineWidth=this.lineWidth;this.lineWidth=oldLineWidth*options.scale;}// 自定义修改
100096
100435
  var acharSpace=options.charSpace?parseFloat(options.charSpace):0.0;this.pdf.text(options.text,pt.x+this.posX,pt.y+this.posY,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,// maxWidth: options.maxWidth,
100097
100436
  charSpace:acharSpace});if(options.scale>=0.01){this.pdf.setFontSize(oldSize);this.lineWidth=oldLineWidth;}}};var drawLine=function drawLine(x,y,prevX,prevY){prevX=prevX||0;prevY=prevY||0;this.pdf.internal.out(getHorizontalCoordinateString(x+prevX)+" "+getVerticalCoordinateString(y+prevY)+" l");};var drawLines=function drawLines(lines,x,y){return this.pdf.lines(lines,x,y,null,null);};var drawCurve=function drawCurve(x,y,x1,y1,x2,y2,x3,y3){this.pdf.internal.out([f2(getHorizontalCoordinate(x1+x)),f2(getVerticalCoordinate(y1+y)),f2(getHorizontalCoordinate(x2+x)),f2(getVerticalCoordinate(y2+y)),f2(getHorizontalCoordinate(x3+x)),f2(getVerticalCoordinate(y3+y)),"c"].join(" "));};/**
100098
100437
  * Return a array of objects that represent bezier curves which approximate the circular arc centered at the origin, from startAngle to endAngle (radians) with the specified radius.
@@ -100946,7 +101285,8 @@ var startOfLine=i;workingLen=0;while(i!==l){if(workingLen+widths_array[i]>maxLen
100946
101285
  // By default, for PDF, it's "point".
100947
101286
  var splitParagraphIntoLines=function splitParagraphIntoLines(text,maxlen,options){// at this time works only on Western scripts, ones with space char
100948
101287
  // separating the words. Feel free to expand.
100949
- if(!options){options={};}var line=[],lines=[line],line_length=options.textIndent||0,separator_length=0,current_word_length=0,word,widths_array,words=text.split(""),spaceCharWidth=getCharWidthsArray.apply(this,[" ",options])[0],i,l,tmp,lineIndent;if(options.lineIndent===-1){lineIndent=words[0].length+2;}else{lineIndent=options.lineIndent||0;}if(lineIndent){var pad=Array(lineIndent).join(" "),wrds=[];words.map(function(wrd){wrd=wrd.split(/\s*\n/);if(wrd.length>1){wrds=wrds.concat(wrd.map(function(wrd,idx){return(idx&&wrd.length?"\n":"")+wrd;}));}else{wrds.push(wrd[0]);}});words=wrds;lineIndent=getStringUnitWidth.apply(this,[pad,options]);}for(i=0,l=words.length;i<l;i++){var force=0;word=words[i];if(lineIndent&&word[0]=="\n"){word=word.substr(1);force=1;}widths_array=getCharWidthsArray.apply(this,[word,options]);current_word_length=widths_array.reduce(function(pv,cv){return pv+cv;},0);if(line_length+separator_length+current_word_length>maxlen||force){if(current_word_length>maxlen){// this happens when you have space-less long URLs for example.
101288
+ if(!options){options={};}// 自定义修改 字符间距 split(" ") ==> split("")
101289
+ var line=[],lines=[line],line_length=options.textIndent||0,separator_length=0,current_word_length=0,word,widths_array,words=text.split(""),spaceCharWidth=getCharWidthsArray.apply(this,[" ",options])[0],i,l,tmp,lineIndent;if(options.lineIndent===-1){lineIndent=words[0].length+2;}else{lineIndent=options.lineIndent||0;}if(lineIndent){var pad=Array(lineIndent).join(" "),wrds=[];words.map(function(wrd){wrd=wrd.split(/\s*\n/);if(wrd.length>1){wrds=wrds.concat(wrd.map(function(wrd,idx){return(idx&&wrd.length?"\n":"")+wrd;}));}else{wrds.push(wrd[0]);}});words=wrds;lineIndent=getStringUnitWidth.apply(this,[pad,options]);}for(i=0,l=words.length;i<l;i++){var force=0;word=words[i];if(lineIndent&&word[0]=="\n"){word=word.substr(1);force=1;}widths_array=getCharWidthsArray.apply(this,[word,options]);current_word_length=widths_array.reduce(function(pv,cv){return pv+cv;},0);if(line_length+separator_length+current_word_length>maxlen||force){if(current_word_length>maxlen){// this happens when you have space-less long URLs for example.
100950
101290
  // we just chop these to size. We do NOT insert hiphens
100951
101291
  tmp=splitLongWord.apply(this,[word,widths_array,maxlen-(line_length+separator_length),maxlen]);// first line we add to existing line object
100952
101292
  line.push(tmp.shift());// it's ok to have extra space indicator there
@@ -198762,7 +199102,7 @@ var es_function_name = __webpack_require__(68309);
198762
199102
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
198763
199103
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
198764
199104
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
198765
- ;// 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/HoDocs.vue?vue&type=template&id=3651fabe&
199105
+ ;// 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/HoDocs.vue?vue&type=template&id=78774540&
198766
199106
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e(),_c('ViewContinuousXml',{attrs:{"hoEditorFactoryId":_vm.activeDocId}})],1):_vm._e()}
198767
199107
  var staticRenderFns = []
198768
199108
 
@@ -200366,11 +200706,12 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200366
200706
  drawNode.children.splice(d, 1);
200367
200707
  }
200368
200708
  }
200369
- }
200370
200709
 
200371
- hoeditorfactory.docTree.curOnDragNode = null;
200372
- HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex); //if (drawLine instanceof DrawLine) drawLine.updateCache();
200710
+ hoeditorfactory.docTree.curOnDragNode = null;
200711
+ HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
200712
+ } //if (drawLine instanceof DrawLine) drawLine.updateCache();
200373
200713
  //drawNode.stage.update();
200714
+
200374
200715
  }
200375
200716
 
200376
200717
  var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
@@ -206744,7 +207085,7 @@ var SignNode = __webpack_require__(34450);
206744
207085
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206745
207086
  var ParagraphNode = __webpack_require__(14208);
206746
207087
  ;// CONCATENATED MODULE: ./src/components/version.ts
206747
- /* harmony default export */ var version = ('2.0.57');
207088
+ /* harmony default export */ var version = ('2.0.60');
206748
207089
  ;// 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&
206749
207090
  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)}
206750
207091
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -208900,9 +209241,7 @@ var DrawPageTree = /*#__PURE__*/function () {
208900
209241
  }
208901
209242
 
208902
209243
  if (dPage.drawDomLevel && dPage.drawDomLevel.stage) {
208903
- {
208904
- dPage.drawDomLevel.clearStage();
208905
- }
209244
+ dPage.drawDomLevel.clearStage();
208906
209245
  }
208907
209246
  }
208908
209247
  }
@@ -214408,6 +214747,9 @@ var StagePosition = __webpack_require__(57674);
214408
214747
 
214409
214748
 
214410
214749
 
214750
+
214751
+
214752
+
214411
214753
 
214412
214754
 
214413
214755
 
@@ -219205,7 +219547,7 @@ var VueController = /*#__PURE__*/function () {
219205
219547
  var _loop2 = function _loop2(i) {
219206
219548
  var node = nodes[i];
219207
219549
 
219208
- 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) {
219550
+ 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) {
219209
219551
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
219210
219552
  }).length === 0) {
219211
219553
  if (arr.filter(function (v) {
@@ -219667,6 +220009,17 @@ var VueController = /*#__PURE__*/function () {
219667
220009
  var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
219668
220010
  return [caret.pageIndex + 1, caret.stageX * 0.75, y];
219669
220011
  }
220012
+ /**
220013
+ * 获取光标位置
220014
+ * returns [pageIndex, x, y]
220015
+ */
220016
+ // public getSignNodePosition(): [number, number, number] {
220017
+ // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
220018
+ // const caret = hoEditorFactory.drawTree.caret;
220019
+ // const y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
220020
+ // return [caret.pageIndex + 1, caret.stageX * 0.75, y];
220021
+ // }
220022
+
219670
220023
  /**
219671
220024
  * 文档生成并返回base64格式pdf文件 患者签名使用
219672
220025
  */
@@ -219749,7 +220102,7 @@ var VueController = /*#__PURE__*/function () {
219749
220102
 
219750
220103
  }, {
219751
220104
  key: "insertWriteSign",
219752
- value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition) {
220105
+ value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition, callback) {
219753
220106
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219754
220107
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219755
220108
  var startPath = curDomRange.normalize().startPath;
@@ -219780,7 +220133,11 @@ var VueController = /*#__PURE__*/function () {
219780
220133
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219781
220134
 
219782
220135
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219783
- hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition);
220136
+ Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)]).then(function () {
220137
+ setTimeout(function () {
220138
+ callback && callback();
220139
+ }, 0);
220140
+ });
219784
220141
  }
219785
220142
  }, 0);
219786
220143
  }
@@ -219788,7 +220145,11 @@ var VueController = /*#__PURE__*/function () {
219788
220145
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219789
220146
 
219790
220147
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219791
- hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220148
+ Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220149
+ setTimeout(function () {
220150
+ callback && callback();
220151
+ }, 0);
220152
+ });
219792
220153
  }
219793
220154
  }
219794
220155
  }
@@ -220213,6 +220574,44 @@ var VueController = /*#__PURE__*/function () {
220213
220574
  hoEditorFactory.docTree.curDomRange = newRange;
220214
220575
  hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
220215
220576
  }
220577
+ /**
220578
+ * 查询光标所在位置之前的文本内容
220579
+ */
220580
+
220581
+ }, {
220582
+ key: "getCaretPreviousTextNode",
220583
+ value: function getCaretPreviousTextNode() {
220584
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220585
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220586
+ var node = curDomRange.npEnd.node;
220587
+ var text = "";
220588
+
220589
+ var getText = function getText(previousNode) {
220590
+ if (previousNode instanceof TextNode/* TextNode */.R || previousNode instanceof LabelNode/* LabelNode */.P || previousNode instanceof DownListNode/* DownListNode */.yF) {
220591
+ return previousNode.text;
220592
+ } else if ((previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re && (previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode.inputFieldType) === TextInputFieldNode/* InputFieldType.dropDownList */.Zi.dropDownList) {
220593
+ return previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode.text;
220594
+ }
220595
+ };
220596
+
220597
+ if (node instanceof TextNode/* TextNode */.R && !(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
220598
+ if (node.text) {
220599
+ text = node.text;
220600
+ } else {
220601
+ text = getText(node.previousLeaf());
220602
+ }
220603
+ } else if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220604
+ text = getText(node.parentNode.previousLeaf());
220605
+
220606
+ if (!text) {
220607
+ text = getText(node.previousLeaf());
220608
+ }
220609
+ } else if (node instanceof SignNode/* SignNode */.N && node.type !== 3) {
220610
+ text = getText(node.previousLeaf());
220611
+ }
220612
+
220613
+ return text;
220614
+ }
220216
220615
  /**
220217
220616
  * 初始化文档
220218
220617
  */
@@ -220392,6 +220791,72 @@ var VueController = /*#__PURE__*/function () {
220392
220791
  }
220393
220792
  }
220394
220793
  }
220794
+ }, {
220795
+ key: "showElementsEditRecord",
220796
+ value: function showElementsEditRecord(objects) {
220797
+ var comments = [];
220798
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220799
+
220800
+ for (var i = 0; i < objects.length; i++) {
220801
+ var object = objects[i];
220802
+ var name = object.name;
220803
+ var oldValue = object.oldValue;
220804
+ var elements = this.getNodesByName("main", true, name);
220805
+
220806
+ for (var j = 0; j < elements.length; j++) {
220807
+ var element = elements[j];
220808
+
220809
+ if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220810
+ var commentID = hoEditorFactory.gernerateCode.generateID("C");
220811
+ var comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
220812
+ comment.lineHeight = comment.lineHeight - 20;
220813
+ comments.push(comment);
220814
+ }
220815
+ }
220816
+ }
220817
+
220818
+ comments.forEach(function (comment, index) {
220819
+ index++;
220820
+ var endDrawNode = comment.eNode.drawNodes[0];
220821
+ var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
220822
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
220823
+
220824
+ var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
220825
+
220826
+ var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
220827
+
220828
+ var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
220829
+ var spY = localPos.y;
220830
+ drawArea.removeComment(comment);
220831
+ var path = comment.eNode.getNodePath();
220832
+
220833
+ if (index === 1) {
220834
+ drawArea.drawEditRecords(comment, spX, spY, spY);
220835
+ }
220836
+
220837
+ if (index >= 2) {
220838
+ drawArea.repaintRecored(comments, comment, path, spX, spY);
220839
+ }
220840
+ });
220841
+ }
220842
+ }, {
220843
+ key: "updateImageSrc",
220844
+ value: function updateImageSrc(node, src) {
220845
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220846
+ var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
220847
+ var ePath = node.getNodePath();
220848
+ var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
220849
+ changeEvent.oldEndPath = ePath;
220850
+ changeEvent.afterChangePath = ePath;
220851
+ changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
220852
+ node.imageDataBase64String = src;
220853
+ hoEditorFactory.docTree.change(changeEvent);
220854
+ }
220855
+ }, {
220856
+ key: "setParaCustomProperty",
220857
+ value: function setParaCustomProperty(paragraphNode, customProperty) {
220858
+ paragraphNode.setCustomProperty(customProperty);
220859
+ }
220395
220860
  }]);
220396
220861
 
220397
220862
  return VueController;
@@ -222454,7 +222919,7 @@ var PrintController = /*#__PURE__*/function () {
222454
222919
  beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
222455
222920
  xml = hoEditorFactory.vueController.getDocXml(true);
222456
222921
  htmlText = {
222457
- text: ""
222922
+ text: ''
222458
222923
  };
222459
222924
  hPromise = Promise.resolve();
222460
222925
  hPromise = hPromise.then(function () {
@@ -222525,12 +222990,14 @@ var PrintController = /*#__PURE__*/function () {
222525
222990
  path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
222526
222991
  beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
222527
222992
  xml = hoEditorFactory.vueController.getDocXml(true);
222528
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
222993
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
222529
222994
  format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
222530
222995
  options = {
222531
222996
  orientation: orientation,
222532
- unit: "px",
222533
- format: format
222997
+ unit: 'px',
222998
+ format: format,
222999
+ hotfixes: ['px_scaling'],
223000
+ compress: true
222534
223001
  };
222535
223002
  PDF = new jspdf/* default */.ZP(options);
222536
223003
  hPromise = Promise.resolve();
@@ -222553,7 +223020,7 @@ var PrintController = /*#__PURE__*/function () {
222553
223020
  hoEditorFactory.vueController.openXml(xml);
222554
223021
  PDF.deletePage(1);
222555
223022
  return new Promise(function (resolves) {
222556
- resolves(PDF.output("datauristring"));
223023
+ resolves(PDF.output('datauristring'));
222557
223024
  });
222558
223025
  });
222559
223026
 
@@ -222568,7 +223035,7 @@ var PrintController = /*#__PURE__*/function () {
222568
223035
  setTimeout(function () {
222569
223036
  hoEditorFactory.vueController.moveCaretToPath(path);
222570
223037
  }, 0);
222571
- return _context2.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ""));
223038
+ return _context2.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
222572
223039
 
222573
223040
  case 20:
222574
223041
  return _context2.abrupt("return", null);
@@ -222595,10 +223062,10 @@ var PrintController = /*#__PURE__*/function () {
222595
223062
  }, {
222596
223063
  key: "setjsPDFFonts",
222597
223064
  value: function setjsPDFFonts(font) {
222598
- jspdf/* default.API.events.push */.ZP.API.events.push(["addFonts", function () {
222599
- this.addFileToVFS("SimSun-normal.ttf", font);
222600
- this.addFont("SimSun-normal.ttf", "SimSun", "normal");
222601
- this.setFont("SimSun", "normal");
223065
+ jspdf/* default.API.events.push */.ZP.API.events.push(['addFonts', function () {
223066
+ this.addFileToVFS('SimSun-normal.ttf', font);
223067
+ this.addFont('SimSun-normal.ttf', 'SimSun', 'normal');
223068
+ this.setFont('SimSun', 'normal');
222602
223069
  }]);
222603
223070
  this._isSetFont = true;
222604
223071
 
@@ -222629,8 +223096,8 @@ var PrintController = /*#__PURE__*/function () {
222629
223096
  return;
222630
223097
  }
222631
223098
 
222632
- var fileType = type ? type : "pdf";
222633
- var fileName = pdfName ? pdfName : hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档"; // 保存打印前文档状态 和 内容
223099
+ var fileType = type ? type : 'pdf';
223100
+ var fileName = pdfName ? pdfName : hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档'; // 保存打印前文档状态 和 内容
222634
223101
 
222635
223102
  var beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
222636
223103
  var xml = hoEditorFactory.vueController.getDocXml(true);
@@ -222644,16 +223111,21 @@ var PrintController = /*#__PURE__*/function () {
222644
223111
  });
222645
223112
  hPromise = hPromise.then(function () {
222646
223113
  return new Promise(function (resolve) {
222647
- var orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
223114
+ var orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
222648
223115
  var format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
222649
223116
 
222650
- if (hoEditorFactory.isFixedPrintToA4 && isSpecial) {
223117
+ if (hoEditorFactory.isFixedPrintToA4 == '1' && isSpecial) {
222651
223118
  format = _this3._a4Size[orientation];
222652
223119
  }
222653
223120
 
223121
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223122
+ format = [793, 1122];
223123
+ orientation = 'p';
223124
+ }
223125
+
222654
223126
  var options = {
222655
223127
  orientation: orientation,
222656
- unit: "px",
223128
+ unit: 'px',
222657
223129
  format: format
222658
223130
  };
222659
223131
  // const PDF = new jsPDF(orientation, "px", [hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm], false, true, );
@@ -222683,14 +223155,20 @@ var PrintController = /*#__PURE__*/function () {
222683
223155
 
222684
223156
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
222685
223157
  var beforeStatus = hoEditorFactory.drawTree.paintStatus;
223158
+ var xml = "";
223159
+
223160
+ if (hoEditorFactory.printStatus.printRange !== 2) {
223161
+ xml = hoEditorFactory.vueController.getDocXml(true, true);
223162
+ }
223163
+
222686
223164
  hoEditorFactory.startPageNum = 0;
222687
223165
  hoEditorFactory.firstPageStartTop = 0;
222688
223166
 
222689
223167
  if (!this._isSetFont) {
222690
223168
  this._waitPrint = true;
222691
223169
 
222692
- message_box_default().alert("<p>\u6253\u5370\u6240\u9700\u6587\u4EF6\u6B63\u5728\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019</p><p>\u52A0\u8F7D\u5B8C\u6210\u540E\u4F1A\u81EA\u52A8\u8FDB\u884C\u6253\u5370</p>", "提示", {
222693
- iconClass: "el-icon-loading",
223170
+ message_box_default().alert("<p>\u6253\u5370\u6240\u9700\u6587\u4EF6\u6B63\u5728\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019</p><p>\u52A0\u8F7D\u5B8C\u6210\u540E\u4F1A\u81EA\u52A8\u8FDB\u884C\u6253\u5370</p>", '提示', {
223171
+ iconClass: 'el-icon-loading',
222694
223172
  center: true,
222695
223173
  showConfirmButton: false,
222696
223174
  dangerouslyUseHTMLString: true
@@ -222704,12 +223182,12 @@ var PrintController = /*#__PURE__*/function () {
222704
223182
  }
222705
223183
 
222706
223184
  if (printMode && printAppoint) {
222707
- var appoint = printAppoint.replace(/\s*/g, "").replace(/[^\d]/g, ",").split(",");
223185
+ var appoint = printAppoint.replace(/\s*/g, '').replace(/[^\d]/g, ',').split(',');
222708
223186
  var maxLen = hoEditorFactory.drawTree.drawPages.length;
222709
223187
  var error = appoint.filter(function (pages) {
222710
223188
  return pages && Number(pages) > maxLen;
222711
223189
  });
222712
- if (error.length > 0) return "指定页输入超出文档页范围";
223190
+ if (error.length > 0) return '指定页输入超出文档页范围';
222713
223191
  }
222714
223192
 
222715
223193
  var setStatus = new Promise( /*#__PURE__*/function () {
@@ -222754,18 +223232,23 @@ var PrintController = /*#__PURE__*/function () {
222754
223232
  setStatus.then(function (res) {
222755
223233
  if (res) {
222756
223234
  return new Promise(function (reslove, reject) {
222757
- var orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
223235
+ var orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
222758
223236
  var format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
222759
223237
 
222760
- if (hoEditorFactory.isFixedPrintToA4) {
223238
+ if (hoEditorFactory.isFixedPrintToA4 == '1') {
222761
223239
  format = _this4._a4Size[orientation];
222762
223240
  }
222763
223241
 
223242
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223243
+ format = [793, 1122];
223244
+ orientation = 'p';
223245
+ }
223246
+
222764
223247
  var options = {
222765
223248
  orientation: orientation,
222766
- unit: "px",
223249
+ unit: 'px',
222767
223250
  format: format,
222768
- hotfixes: ["px_scaling"],
223251
+ hotfixes: ['px_scaling'],
222769
223252
  compress: true
222770
223253
  };
222771
223254
  var PDF = new jspdf/* default */.ZP(options);
@@ -222773,20 +223256,26 @@ var PrintController = /*#__PURE__*/function () {
222773
223256
  });
222774
223257
  }
222775
223258
  }).then(function (res) {
222776
- if (res === "printend") {
223259
+ if (res === 'printend') {
222777
223260
  if (callback) {
222778
223261
  callback(hoEditorFactory.printStatus.printRecord.last());
222779
223262
  }
222780
223263
 
222781
- hoEditorFactory.drawTree.paintStatus = beforeStatus;
222782
- hoEditorFactory.printStatus.printRange = 2;
222783
223264
  hoEditorFactory.printStatus.printAppoint = '';
222784
223265
  hoEditorFactory.printStatus.drawPrintRecord.Position = [0, 0];
222785
223266
  hoEditorFactory.startPageNum = 0;
222786
223267
  hoEditorFactory.firstPageStartTop = 0;
222787
- hoEditorFactory.printStatus.clearArea();
222788
- hoEditorFactory.printStatus.drawPrintRecord.clear();
222789
- hoEditorFactory.drawTree.rebuildAllDrawLine(false);
223268
+
223269
+ if (hoEditorFactory.printStatus.printRange !== 2) {
223270
+ hoEditorFactory.printStatus.printRange = 2;
223271
+ hoEditorFactory.drawTree.paintStatus = 5;
223272
+ hoEditorFactory.vueController.openXml(xml);
223273
+ } else {
223274
+ hoEditorFactory.drawTree.paintStatus = beforeStatus;
223275
+ hoEditorFactory.printStatus.clearArea();
223276
+ hoEditorFactory.printStatus.drawPrintRecord.clear();
223277
+ hoEditorFactory.vueController.rebuildAll(true);
223278
+ }
222790
223279
  }
222791
223280
  });
222792
223281
  }
@@ -222854,7 +223343,7 @@ var PrintController = /*#__PURE__*/function () {
222854
223343
  while (1) {
222855
223344
  switch (_context5.prev = _context5.next) {
222856
223345
  case 0:
222857
- console.time("连续打印总用时");
223346
+ console.time('连续打印总用时');
222858
223347
  list = [];
222859
223348
  xmlInfoes.xmlList.forEach(function (v) {
222860
223349
  list.push([v.isMerge, v.xml]);
@@ -222873,7 +223362,7 @@ var PrintController = /*#__PURE__*/function () {
222873
223362
  hoEditorFactory.printStatus.printMode = 0;
222874
223363
  hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
222875
223364
  hPromise = Promise.resolve();
222876
- console.time("连续查看病历合并总用时");
223365
+ console.time('连续查看病历合并总用时');
222877
223366
  hPromise = hPromise.then(function (res) {
222878
223367
  return new Promise(function (resolve) {
222879
223368
  Promise.all([hoEditorFactory.vueController.openDocsForPrint(list)]).then(function () {
@@ -222887,8 +223376,8 @@ var PrintController = /*#__PURE__*/function () {
222887
223376
  });
222888
223377
  });
222889
223378
  hPromise = hPromise.then(function () {
222890
- console.timeEnd("连续查看病历合并总用时");
222891
- console.time("生成pdf用时");
223379
+ console.timeEnd('连续查看病历合并总用时');
223380
+ console.time('生成pdf用时');
222892
223381
  return new Promise( /*#__PURE__*/function () {
222893
223382
  var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(resolve) {
222894
223383
  var orientation, format, options, PDF;
@@ -222896,23 +223385,28 @@ var PrintController = /*#__PURE__*/function () {
222896
223385
  while (1) {
222897
223386
  switch (_context4.prev = _context4.next) {
222898
223387
  case 0:
222899
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
223388
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
222900
223389
  format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
222901
223390
 
222902
- if (hoEditorFactory.isFixedPrintToA4) {
223391
+ if (hoEditorFactory.isFixedPrintToA4 == '1') {
222903
223392
  format = _this5._a4Size[orientation];
222904
223393
  }
222905
223394
 
223395
+ if (hoEditorFactory.isFixedPrintToA4 == '2' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223396
+ format = [793, 1122];
223397
+ orientation = 'p';
223398
+ }
223399
+
222906
223400
  options = {
222907
223401
  orientation: orientation,
222908
- unit: "px",
223402
+ unit: 'px',
222909
223403
  format: format,
222910
- hotfixes: ["px_scaling"]
223404
+ hotfixes: ['px_scaling']
222911
223405
  };
222912
223406
  PDF = new jspdf/* default */.ZP(options);
222913
223407
  PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, PDF, undefined, undefined, resolve, positionY, format);
222914
223408
 
222915
- case 6:
223409
+ case 7:
222916
223410
  case "end":
222917
223411
  return _context4.stop();
222918
223412
  }
@@ -222928,7 +223422,7 @@ var PrintController = /*#__PURE__*/function () {
222928
223422
  _context5.next = 17;
222929
223423
  return hPromise.then(function (res) {
222930
223424
  if (res) {
222931
- console.timeEnd("生成pdf用时");
223425
+ console.timeEnd('生成pdf用时');
222932
223426
  return new Promise(function (resolves) {
222933
223427
  var last = hoEditorFactory.printStatus.printRecord.last();
222934
223428
  var pos;
@@ -222963,7 +223457,7 @@ var PrintController = /*#__PURE__*/function () {
222963
223457
  // hoEditorFactory.drawTree.rebuildAllDrawLine(false);
222964
223458
  // }, 0);
222965
223459
 
222966
- console.timeEnd("连续打印总用时");
223460
+ console.timeEnd('连续打印总用时');
222967
223461
  resolves(pos);
222968
223462
  });
222969
223463
  } else {
@@ -222979,7 +223473,7 @@ var PrintController = /*#__PURE__*/function () {
222979
223473
  // hoEditorFactory.drawTree.rebuildAllDrawLine(false);
222980
223474
  // }, 0);
222981
223475
 
222982
- console.timeEnd("连续打印总用时");
223476
+ console.timeEnd('连续打印总用时');
222983
223477
  return null;
222984
223478
  }
222985
223479
  });
@@ -223017,7 +223511,7 @@ var PrintController = /*#__PURE__*/function () {
223017
223511
  }()
223018
223512
  /**
223019
223513
  * 批量打印病历 当前
223020
- * @param xmlList [boolean, string, boolean, boolean][]
223514
+ * @param xmlList [string, boolean, string, boolean][]
223021
223515
  * 四个参数分别是: xml内容 是否合并 病程记录id:用来判断是否是病程记录和返回对应病程记录的坐标(处理多个不同病程记录的情况) 是否是最后一份病程记录
223022
223516
  */
223023
223517
 
@@ -223041,8 +223535,8 @@ var PrintController = /*#__PURE__*/function () {
223041
223535
  xmlIndex = -1;
223042
223536
  mergeList = [];
223043
223537
  options = {
223044
- unit: "px",
223045
- hotfixes: ["px_scaling"],
223538
+ unit: 'px',
223539
+ hotfixes: ['px_scaling'],
223046
223540
  compress: true
223047
223541
  };
223048
223542
  PDF = new jspdf/* default */.ZP(options);
@@ -223102,6 +223596,8 @@ var PrintController = /*#__PURE__*/function () {
223102
223596
  } else {
223103
223597
  hoEditorFactory.loadImageCallback = toPrint;
223104
223598
  }
223599
+
223600
+ mergeList = [];
223105
223601
  });
223106
223602
  } else {
223107
223603
  createSvg();
@@ -223124,7 +223620,7 @@ var PrintController = /*#__PURE__*/function () {
223124
223620
  hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
223125
223621
  hoEditorFactory.vueController.openXml(xml);
223126
223622
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
223127
- name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
223623
+ name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
223128
223624
  PrintStatus/* Print.openDataUriInWindow */.Kh.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
223129
223625
  }
223130
223626
 
@@ -224035,6 +224531,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
224035
224531
  this._lastSaveTime = new Date(Date.now());
224036
224532
  this._superiorSigns = []; //上级医生签名
224037
224533
 
224534
+ this._isEnabledGlobalColor = false;
224038
224535
  this._hoEditorFactoryId = id;
224039
224536
  }
224040
224537
  /**
@@ -224692,6 +225189,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
224692
225189
  this._isFixedPrintToA4 = value;
224693
225190
  }
224694
225191
  }
225192
+ }, {
225193
+ key: "isRotate",
225194
+ get: function get() {
225195
+ return this._isRotate;
225196
+ },
225197
+ set: function set(value) {
225198
+ if (this._isRotate !== value) {
225199
+ this._isRotate = value;
225200
+ }
225201
+ }
224695
225202
  }, {
224696
225203
  key: "isUseImagePrint",
224697
225204
  get: function get() {
@@ -224722,6 +225229,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
224722
225229
  this._printBlack = value;
224723
225230
  }
224724
225231
  }
225232
+ }, {
225233
+ key: "isEnabledGlobalColor",
225234
+ get: function get() {
225235
+ return this._isEnabledGlobalColor;
225236
+ },
225237
+ set: function set(value) {
225238
+ if (this._isEnabledGlobalColor !== value) {
225239
+ this._isEnabledGlobalColor = value;
225240
+ }
225241
+ }
224725
225242
  }, {
224726
225243
  key: "clear",
224727
225244
  value: function clear() {
@@ -225078,9 +225595,9 @@ var HoFooter_component = normalizeComponent(
225078
225595
  )
225079
225596
 
225080
225597
  /* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
225081
- ;// 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/ControlModal.vue?vue&type=template&id=2efd7672&
225082
- var ControlModalvue_type_template_id_2efd7672_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
225083
- var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
225598
+ ;// 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/ControlModal.vue?vue&type=template&id=35544190&
225599
+ var ControlModalvue_type_template_id_35544190_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'edit-image')?_c('CanvasImageDialog',{attrs:{"vueController":_vm.vueController,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
225600
+ var ControlModalvue_type_template_id_35544190_staticRenderFns = []
225084
225601
 
225085
225602
 
225086
225603
  ;// 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/selectDialog/SelectDialog.vue?vue&type=template&id=3b6d4c1e&scoped=true&
@@ -228366,9 +228883,9 @@ var Delimiter_component = normalizeComponent(
228366
228883
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
228367
228884
 
228368
228885
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
228369
- ;// 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/sign/Sign.vue?vue&type=template&id=0d96e4f0&
228370
- var Signvue_type_template_id_0d96e4f0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"paDDing":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("单人签名")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("多人签名")])],1),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名 ")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1):_vm._e()]),(_vm.signType === 1)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
228371
- var Signvue_type_template_id_0d96e4f0_staticRenderFns = []
228886
+ ;// 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/sign/Sign.vue?vue&type=template&id=6c042af0&
228887
+ var Signvue_type_template_id_6c042af0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"paDDing":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("常规签名")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义签名")])],1),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名 ")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1):_vm._e()]),(_vm.signType === 1)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
228888
+ var Signvue_type_template_id_6c042af0_staticRenderFns = []
228372
228889
 
228373
228890
 
228374
228891
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
@@ -228515,8 +229032,8 @@ Sign = __decorate([vue_class_component_esm({
228515
229032
 
228516
229033
  var Sign_component = normalizeComponent(
228517
229034
  sign_Signvue_type_script_lang_ts_,
228518
- Signvue_type_template_id_0d96e4f0_render,
228519
- Signvue_type_template_id_0d96e4f0_staticRenderFns,
229035
+ Signvue_type_template_id_6c042af0_render,
229036
+ Signvue_type_template_id_6c042af0_staticRenderFns,
228520
229037
  false,
228521
229038
  null,
228522
229039
  null,
@@ -228891,9 +229408,339 @@ var UploadImageDialog_component = normalizeComponent(
228891
229408
  )
228892
229409
 
228893
229410
  /* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
229411
+ ;// 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/upload/CanvasImageDialog.vue?vue&type=template&id=6832ea7e&scoped=true&
229412
+ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"canvas-image",class:_vm.animationClassNames,style:({ width: _vm.canvasWidth + 250 + 'px', height: _vm.canvasHeight + 150 + 'px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("编辑图片")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",attrs:{"id":"loon_canvas_editor"}},[_c('div',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"loon_canvas_editor_box"}},[_c('canvas',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"image_canvas","width":_vm.canvasWidth,"height":_vm.canvasHeight}}),(_vm.tool === 0 && _vm.textAreaStyle.width)?_c('textarea',{ref:"textCanvas",style:(_vm.textAreaStyle),attrs:{"id":"text_canvas"},on:{"blur":function($event){return _vm.drawText()}}}):_vm._e()])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"type":_vm.tool === 0 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 0}}},[_vm._v("文字")]),_c('el-button',{attrs:{"type":_vm.tool === 1 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 1}}},[_vm._v("画笔")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasUndo()}}},[_vm._v("撤销")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasRedo()}}},[_vm._v("恢复")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
229413
+ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns = []
229414
+
229415
+
229416
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
229417
+
229418
+
229419
+
229420
+ //
229421
+ //
229422
+ //
229423
+ //
229424
+ //
229425
+ //
229426
+ //
229427
+ //
229428
+ //
229429
+ //
229430
+ //
229431
+ //
229432
+ //
229433
+ //
229434
+ //
229435
+ //
229436
+ //
229437
+ //
229438
+ //
229439
+ //
229440
+ //
229441
+ //
229442
+ //
229443
+ //
229444
+
229445
+
229446
+ /* harmony default export */ var CanvasImageDialogvue_type_script_lang_js_ = ({
229447
+ name: 'canvasImageDialog',
229448
+ props: {
229449
+ hoEditorFactoryId: {
229450
+ type: String,
229451
+ required: true
229452
+ },
229453
+ vueController: {
229454
+ type: Object,
229455
+ required: true
229456
+ }
229457
+ },
229458
+ data: function data() {
229459
+ return {
229460
+ canvasWidth: 500,
229461
+ canvasHeight: 400,
229462
+ animationClassNames: 'control-modal-contents image-modal animation-in',
229463
+ uploadLoading: false,
229464
+ eraserEnabled: false,
229465
+ activeBgColor: '#fff',
229466
+ ifPop: false,
229467
+ lWidth: 2,
229468
+ opacity: 1,
229469
+ strokeColor: '#FF0000',
229470
+ radius: 5,
229471
+ canvasHistory: [],
229472
+ step: -1,
229473
+ canvas: null,
229474
+ textarea: null,
229475
+ canvasArea: null,
229476
+ context: null,
229477
+ painting: false,
229478
+ // 定义一个变量初始化画笔状态
229479
+ startPoint: {
229480
+ x: undefined,
229481
+ y: undefined
229482
+ },
229483
+ // 记录画笔最后一次的位置
229484
+ tool: 1,
229485
+ textAreaStyle: {}
229486
+ };
229487
+ },
229488
+ watch: {
229489
+ tool: function tool() {
229490
+ if (this.tool === 0) {
229491
+ this.canvas.removeEventListener('mousemove', this.move);
229492
+ } else if (this.tool === 1) {
229493
+ this.canvas.addEventListener('mousemove', this.move);
229494
+ }
229495
+ },
229496
+ canvasHistory: function canvasHistory() {}
229497
+ },
229498
+ mounted: function mounted() {
229499
+ var _this = this;
229500
+
229501
+ this.canvas = document.querySelector('#image_canvas');
229502
+ this.canvasArea = document.querySelector('#loon_canvas_editor_box');
229503
+ this.context = this.canvas.getContext('2d');
229504
+ this.listenDrawLine();
229505
+ var updateNode = this.getImageNode();
229506
+ var image = new Image();
229507
+ image.src = updateNode.imageDataBase64String;
229508
+
229509
+ image.onload = function () {
229510
+ _this.canvasWidth = image.naturalWidth;
229511
+ _this.canvasHeight = image.naturalHeight;
229512
+
229513
+ _this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
229514
+
229515
+ setTimeout(function () {
229516
+ _this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
229517
+
229518
+ _this.canvasDraw();
229519
+ }, 0);
229520
+ };
229521
+ },
229522
+ methods: {
229523
+ getImageNode: function getImageNode() {
229524
+ var value;
229525
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
229526
+ var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
229527
+
229528
+ if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
229529
+ value = curOnDragNode;
229530
+ }
229531
+
229532
+ return value;
229533
+ },
229534
+ listenDrawLine: function listenDrawLine() {
229535
+ this.canvas.addEventListener('mousedown', this.down);
229536
+ this.canvas.addEventListener('mousemove', this.move);
229537
+ this.canvasArea.addEventListener('mouseup', this.up);
229538
+ },
229539
+ clearListenDrawLine: function clearListenDrawLine() {
229540
+ this.canvas.removeEventListener('mousedown', this.down);
229541
+ this.canvas.removeEventListener('mousemove', this.move);
229542
+ this.canvasArea.removeEventListener('mouseup', this.up);
229543
+ },
229544
+ changeTool: function changeTool(tool) {
229545
+ this.tool = tool;
229546
+ },
229547
+ down: function down(e) {
229548
+ var _this2 = this;
229549
+
229550
+ this.painting = true;
229551
+ this.startPoint = {
229552
+ x: e.offsetX,
229553
+ y: e.offsetY
229554
+ };
229555
+
229556
+ if (this.tool === 0) {
229557
+ this.textAreaStyle = {
229558
+ width: '100px',
229559
+ height: '27px',
229560
+ left: e.offsetX + 'px',
229561
+ top: e.offsetY + 'px'
229562
+ };
229563
+ setTimeout(function () {
229564
+ if (_this2.$refs.textCanvas) {
229565
+ _this2.$refs.textCanvas.focus();
229566
+ }
229567
+ }, 0);
229568
+ }
229569
+
229570
+ e.stopPropagation();
229571
+ e.preventDefault();
229572
+ },
229573
+ move: function move(e) {
229574
+ switch (this.tool) {
229575
+ case 0:
229576
+ {
229577
+ this.drawText(e);
229578
+ break;
229579
+ }
229580
+
229581
+ case 1:
229582
+ {
229583
+ this.drawLine(e);
229584
+ break;
229585
+ }
229586
+ }
229587
+ },
229588
+ up: function up(e) {
229589
+ if (this.tool === 0) {
229590
+ this.canvas.removeEventListener('mousemove', this.move);
229591
+ }
229592
+
229593
+ this.painting = false;
229594
+
229595
+ if (this.tool === 1) {
229596
+ this.canvasDraw();
229597
+ }
229598
+
229599
+ e.stopPropagation();
229600
+ e.preventDefault();
229601
+ },
229602
+ changeText: function changeText(e) {
229603
+ if (e.offsetX - this.startPoint.x > 0) {
229604
+ this.textAreaStyle.width = e.offsetX - this.startPoint.x + 'px';
229605
+ } else {
229606
+ this.textAreaStyle.width = -(e.offsetX - this.startPoint.x) + 'px';
229607
+ this.textAreaStyle.left = e.offsetX + 'px';
229608
+ }
229609
+
229610
+ if (e.offsetY - this.startPoint.y > 0) {
229611
+ this.textAreaStyle.height = e.offsetY - this.startPoint.y + 'px';
229612
+ } else {
229613
+ this.textAreaStyle.height = -(e.offsetY - this.startPoint.y) + 'px';
229614
+ this.textAreaStyle.top = e.offsetY + 'px';
229615
+ }
229616
+ },
229617
+ drawText: function drawText() {
229618
+ if (this.$refs.textCanvas && this.$refs.textCanvas.value) {
229619
+ this.context.font = '16px 宋体';
229620
+ this.context.fillStyle = '#F00';
229621
+ this.context.fillText(this.$refs.textCanvas.value, this.textAreaStyle.left.split('px')[0], Number(this.textAreaStyle.top.split('px')[0]) + 16);
229622
+ this.canvasDraw();
229623
+ this.$refs.textCanvas.value = '';
229624
+ this.textAreaStyle = {};
229625
+ }
229626
+ },
229627
+ drawLine: function drawLine(e) {
229628
+ if (!this.painting) return;
229629
+ this.context.beginPath();
229630
+ this.context.lineWidth = this.lWidth;
229631
+ this.context.strokeStyle = this.strokeColor; // 设置线条末端样式。
229632
+
229633
+ this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
229634
+
229635
+ this.context.lineJoin = 'round';
229636
+ this.context.moveTo(this.startPoint.x, this.startPoint.y);
229637
+ this.context.lineTo(e.offsetX, e.offsetY);
229638
+ this.context.stroke();
229639
+ this.context.closePath();
229640
+ this.startPoint = {
229641
+ x: e.offsetX,
229642
+ y: e.offsetY
229643
+ };
229644
+ e.stopPropagation();
229645
+ e.preventDefault();
229646
+ },
229647
+ // 绘制方法
229648
+ canvasDraw: function canvasDraw() {
229649
+ this.step++;
229650
+
229651
+ if (this.step < this.canvasHistory.length) {
229652
+ this.canvasHistory.length = this.step; // 截断数组
229653
+ }
229654
+
229655
+ var quality = 1;
229656
+ var base64 = this.canvas.toDataURL('image/jpeg', quality); //压缩语句
229657
+ // 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
229658
+
229659
+ while (base64.length / 1024 > 100) {
229660
+ quality -= 0.01;
229661
+ base64 = this.canvas.toDataURL('image/jpeg', quality);
229662
+ } // 添加新的绘制到历史记录
229663
+
229664
+
229665
+ this.canvasHistory.push(this.canvas.toDataURL());
229666
+ },
229667
+ // 撤销方法
229668
+ canvasUndo: function canvasUndo() {
229669
+ var _this3 = this;
229670
+
229671
+ if (this.step > 0) {
229672
+ this.step--;
229673
+ var canvasPic = new Image();
229674
+ canvasPic.src = this.canvasHistory[this.step];
229675
+ this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
229676
+
229677
+ canvasPic.onload = function () {
229678
+ _this3.context.drawImage(canvasPic, 0, 0);
229679
+ };
229680
+ }
229681
+ },
229682
+ // 恢复方法
229683
+ canvasRedo: function canvasRedo() {
229684
+ var _this4 = this;
229685
+
229686
+ if (this.step < this.canvasHistory.length - 1) {
229687
+ this.step++;
229688
+ var canvasPic = new Image();
229689
+ canvasPic.src = this.canvasHistory[this.step];
229690
+ this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
229691
+
229692
+ canvasPic.onload = function () {
229693
+ _this4.context.drawImage(canvasPic, 0, 0);
229694
+ };
229695
+ }
229696
+ },
229697
+ handleClose: function handleClose() {
229698
+ this.clearListenDrawLine();
229699
+ this.$emit('closed');
229700
+ },
229701
+ sure: function sure() {
229702
+ var updateNode = this.getImageNode();
229703
+ var src = this.canvasHistory[this.canvasHistory.length - 1];
229704
+
229705
+ if (updateNode && src) {
229706
+ this.vueController.updateImageSrc(updateNode, src);
229707
+ this.handleClose();
229708
+ }
229709
+ }
229710
+ }
229711
+ });
229712
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
229713
+ /* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
229714
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
229715
+ // extracted by mini-css-extract-plugin
229716
+
229717
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
229718
+
229719
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
229720
+
229721
+
229722
+
229723
+ ;
229724
+
229725
+
229726
+ /* normalize component */
229727
+
229728
+ var CanvasImageDialog_component = normalizeComponent(
229729
+ upload_CanvasImageDialogvue_type_script_lang_js_,
229730
+ CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render,
229731
+ CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns,
229732
+ false,
229733
+ null,
229734
+ "6832ea7e",
229735
+ null
229736
+
229737
+ )
229738
+
229739
+ /* harmony default export */ var CanvasImageDialog = (CanvasImageDialog_component.exports);
228894
229740
  ;// CONCATENATED MODULE: ./src/components/controls/upload/index.ts
228895
229741
 
228896
- /* harmony default export */ var upload = (upload_UploadImageDialog);
229742
+
229743
+
228897
229744
  ;// 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/watermark/WaterSet.vue?vue&type=template&id=58b59c58&
228898
229745
  var WaterSetvue_type_template_id_58b59c58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents water-set animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("水印")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("内容")]),_c('el-input',{attrs:{"type":"text","size":"mini","clearable":"","placeholder":"文本内容","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("角度")]),_c('el-radio-group',{attrs:{"size":"mini"},on:{"change":_vm.codeChange},model:{value:(_vm.rotate),callback:function ($$v) {_vm.rotate=$$v},expression:"rotate"}},[_c('el-radio-button',{attrs:{"label":0}},[_vm._v("水平")]),_c('el-radio-button',{attrs:{"label":1}},[_vm._v("倾斜")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("颜色")]),_c('el-color-picker',{attrs:{"show-alpha":""},on:{"change":_vm.codeChange},model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)]),_c('div',{staticClass:"section-right"},[_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{attrs:{"id":"water"}},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.waterUrl),expression:"waterUrl"}],attrs:{"src":_vm.waterUrl,"alt":"背景水印"}})])])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
228899
229746
  var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
@@ -230678,7 +231525,8 @@ ControlModal = __decorate([vue_class_component_esm({
230678
231525
  CommentDialog: commentDialog,
230679
231526
  PageInfoes: pageInfoes,
230680
231527
  Delimiter: delimiter,
230681
- UploadImageDialog: upload
231528
+ UploadImageDialog: upload_UploadImageDialog,
231529
+ CanvasImageDialog: CanvasImageDialog
230682
231530
  }
230683
231531
  })], ControlModal);
230684
231532
  /* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
@@ -230694,8 +231542,8 @@ ControlModal = __decorate([vue_class_component_esm({
230694
231542
  ;
230695
231543
  var ControlModal_component = normalizeComponent(
230696
231544
  controls_ControlModalvue_type_script_lang_ts_,
230697
- ControlModalvue_type_template_id_2efd7672_render,
230698
- ControlModalvue_type_template_id_2efd7672_staticRenderFns,
231545
+ ControlModalvue_type_template_id_35544190_render,
231546
+ ControlModalvue_type_template_id_35544190_staticRenderFns,
230699
231547
  false,
230700
231548
  null,
230701
231549
  null,
@@ -231384,7 +232232,7 @@ var ControlMixin = /*#__PURE__*/function (_Vue) {
231384
232232
  this.rightType = node.controlStyle;
231385
232233
  this.dataSource = node.bandDataSource;
231386
232234
  } else if (node instanceof ImageNode/* ImageNode */.H) {
231387
- this.rightType = "img";
232235
+ this.rightType = "edit-image";
231388
232236
  } else if (node instanceof LabelNode/* LabelNode */.P) {
231389
232237
  this.rightType = "label";
231390
232238
  } else if (node instanceof SignNode/* SignNode */.N) {
@@ -231914,14 +232762,14 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
231914
232762
  _this.defaultDocProperty = {
231915
232763
  version: version,
231916
232764
  type: 0,
231917
- title: "",
231918
- docID: "",
231919
- patientID: "",
231920
- patientName: "",
231921
- lastEditTime: "",
231922
- lastEditorID: "",
231923
- lastEditorName: "",
231924
- currentIP: ""
232765
+ title: '',
232766
+ docID: '',
232767
+ patientID: '',
232768
+ patientName: '',
232769
+ lastEditTime: '',
232770
+ lastEditorID: '',
232771
+ lastEditorName: '',
232772
+ currentIP: ''
231925
232773
  };
231926
232774
  _this.contentIsModify = {
231927
232775
  isModify: false
@@ -231937,7 +232785,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
231937
232785
  }, {
231938
232786
  key: "contentIsModifyChange",
231939
232787
  value: function contentIsModifyChange(value) {
231940
- this.$emit("contentIsModify", this.contentIsModify);
232788
+ this.$emit('contentIsModify', this.contentIsModify);
231941
232789
  }
231942
232790
  }, {
231943
232791
  key: "editJsonChange",
@@ -231954,12 +232802,12 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
231954
232802
  }, {
231955
232803
  key: "textStyleChange",
231956
232804
  value: function textStyleChange(val) {
231957
- this.$emit("textStyleChange", val);
232805
+ this.$emit('textStyleChange', val);
231958
232806
  }
231959
232807
  }, {
231960
232808
  key: "modalStatusChange",
231961
232809
  value: function modalStatusChange(newStr) {
231962
- if (newStr[0] !== "find") {
232810
+ if (newStr[0] !== 'find') {
231963
232811
  this.setControlProperty(newStr[0], newStr[1], newStr[2]);
231964
232812
  } else {
231965
232813
  this.controlFindType = true;
@@ -231968,20 +232816,20 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
231968
232816
  }, {
231969
232817
  key: "controlTypeChange",
231970
232818
  value: function controlTypeChange(newValue, oldValue) {
231971
- if (newValue === "" && ['text', 'date', 'comment'].includes(oldValue)) {
231972
- this.$emit("closeTextModal");
232819
+ if (newValue === '' && ['text', 'date', 'comment'].includes(oldValue)) {
232820
+ this.$emit('closeTextModal');
231973
232821
  this.customPropertyValue = {};
231974
232822
  }
231975
232823
 
231976
232824
  if (['text', 'date'].includes(newValue)) {
231977
232825
  if ((0,type/* isObject */.Kn)(this.customPropertyValue)) {
231978
- this.$emit("openTextModal", _objectSpread2({}, this.customPropertyValue));
232826
+ this.$emit('openTextModal', _objectSpread2({}, this.customPropertyValue));
231979
232827
  }
231980
232828
  } else if (['comment'].includes(newValue)) {
231981
232829
  var _HOEditorFactorys$ins;
231982
232830
 
231983
232831
  var customProperty = (_HOEditorFactorys$ins = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId).vueController.getOnSelectedComment()) === null || _HOEditorFactorys$ins === void 0 ? void 0 : _HOEditorFactorys$ins.customProperty;
231984
- if (customProperty) this.$emit("openTextModal", _objectSpread2({}, customProperty));
232832
+ if (customProperty) this.$emit('openTextModal', _objectSpread2({}, customProperty));
231985
232833
  }
231986
232834
  }
231987
232835
  }, {
@@ -232013,7 +232861,15 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232013
232861
  value: function isFixedPrintToA4Change() {
232014
232862
  var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
232015
232863
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
232016
- hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
232864
+ var isFixedPrintToA4 = this.isFixedPrintToA4;
232865
+
232866
+ if (isFixedPrintToA4 === true) {
232867
+ isFixedPrintToA4 = '1';
232868
+ } else if (isFixedPrintToA4 === false) {
232869
+ isFixedPrintToA4 = '';
232870
+ }
232871
+
232872
+ hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = isFixedPrintToA4);
232017
232873
  } // 监听默认打印纸张设置变化
232018
232874
 
232019
232875
  }, {
@@ -232057,6 +232913,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232057
232913
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
232058
232914
  hoEditorFactory && (hoEditorFactory.printBlack = this.printBlack);
232059
232915
  }
232916
+ }, {
232917
+ key: "isEnabledGlobalColorChange",
232918
+ value: function isEnabledGlobalColorChange() {
232919
+ var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
232920
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
232921
+ hoEditorFactory && (hoEditorFactory.isEnabledGlobalColor = this.isEnabledGlobalColor);
232922
+ }
232060
232923
  }, {
232061
232924
  key: "created",
232062
232925
  value: function created() {
@@ -232087,7 +232950,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232087
232950
  }); // 初始化所有文档
232088
232951
 
232089
232952
  this.docList.forEach(function () {
232090
- var id = (0,util/* generateID */.y)("HO");
232953
+ var id = (0,util/* generateID */.y)('HO');
232091
232954
  var hoEditor = new HOEditorFactory(id);
232092
232955
 
232093
232956
  _this3.hoEditorFactoryIdList.push(id);
@@ -232096,10 +232959,18 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232096
232959
  hoEditor.superiorSigns = (0,toConsumableArray/* default */.Z)(_this3.superiorSigns);
232097
232960
  }
232098
232961
 
232099
- hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
232962
+ if (_this3.isFixedPrintToA4 === true) {
232963
+ hoEditor.isFixedPrintToA4 = '1';
232964
+ } else if (_this3.isFixedPrintToA4 === false) {
232965
+ hoEditor.isFixedPrintToA4 = '';
232966
+ } else {
232967
+ hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
232968
+ }
232969
+
232100
232970
  hoEditor.isUseImagePrint = _this3.isUseImagePrint;
232101
232971
  hoEditor.isUseForm = _this3.isUseForm;
232102
232972
  hoEditor.printBlack = _this3.printBlack;
232973
+ hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
232103
232974
  hoEditor.contentIsModify = _this3.contentIsModify;
232104
232975
  hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
232105
232976
  hoEditor.docTree.docProperty = _this3.defaultDocProperty;
@@ -232130,17 +233001,17 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232130
233001
 
232131
233002
  var getLabelNode = function getLabelNode() {
232132
233003
  var labelNode = [];
232133
- var isIncludes = "";
233004
+ var isIncludes = '';
232134
233005
  var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.activeDocId);
232135
233006
  var currentDomRange = hoEditor.vueController.getDomRange();
232136
233007
 
232137
233008
  if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
232138
233009
  if (nodeInfoes.node() instanceof LabelNode/* LabelNode */.P) {
232139
233010
  labelNode.push(nodeInfoes.node());
232140
- isIncludes = "toText";
233011
+ isIncludes = 'toText';
232141
233012
  }
232142
233013
  } else {
232143
- isIncludes = "toLabel";
233014
+ isIncludes = 'toLabel';
232144
233015
  var startPath = currentDomRange.startPath;
232145
233016
  var endPath = currentDomRange.endPath;
232146
233017
  var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this4.activeDocId, startPath, endPath, true)[0];
@@ -232148,7 +233019,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232148
233019
  if (selectNodes.length > 0) {
232149
233020
  selectNodes.forEach(function (v) {
232150
233021
  if (v instanceof LabelNode/* LabelNode */.P) {
232151
- isIncludes = "toText";
233022
+ isIncludes = 'toText';
232152
233023
  labelNode.push(v);
232153
233024
  }
232154
233025
  });
@@ -232187,7 +233058,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232187
233058
  };
232188
233059
  }
232189
233060
 
232190
- this.$emit("rightClickEvent", nodeInfoes);
233061
+ this.$emit('rightClickEvent', nodeInfoes);
232191
233062
  }
232192
233063
  /**
232193
233064
  * 初始化事件
@@ -232229,7 +233100,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232229
233100
  }, {
232230
233101
  key: "insertComments",
232231
233102
  value: function insertComments(content) {
232232
- this.$emit("insertComments", content);
233103
+ this.$emit('insertComments', content);
232233
233104
  }
232234
233105
  /**
232235
233106
  * 双击事件
@@ -232238,7 +233109,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232238
233109
  }, {
232239
233110
  key: "dblNodeClick",
232240
233111
  value: function dblNodeClick(node) {
232241
- this.$emit("dblClickEvent", node);
233112
+ this.$emit('dblClickEvent', node);
232242
233113
  } // 设置字体
232243
233114
 
232244
233115
  }, {
@@ -232260,7 +233131,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232260
233131
  this.activeDocId = activeDocId;
232261
233132
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
232262
233133
  hoEditorFactory.hoLocalStorage.initHoWebSql();
232263
- this.$emit("docReady", {
233134
+ this.$emit('docReady', {
232264
233135
  vueController: hoEditorFactory.vueController,
232265
233136
  baseController: hoEditorFactory.baseController,
232266
233137
  domController: hoEditorFactory.domController,
@@ -232291,7 +233162,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232291
233162
  var property = _objectSpread2({}, pageProperty); // 字体
232292
233163
 
232293
233164
 
232294
- property.fontFormat = property.fontFormat ? (_property$fontFormat = property.fontFormat) === null || _property$fontFormat === void 0 ? void 0 : _property$fontFormat.match(/[\u4e00-\u9fa5]/g).join("") : "宋体"; // 字号
233165
+ property.fontFormat = property.fontFormat ? (_property$fontFormat = property.fontFormat) === null || _property$fontFormat === void 0 ? void 0 : _property$fontFormat.match(/[\u4e00-\u9fa5]/g).join('') : '宋体'; // 字号
232295
233166
 
232296
233167
  if (isNaN(Number(property.fontSize))) {
232297
233168
  json_font_namespaceObject.CH.forEach(function (v) {
@@ -232318,12 +233189,12 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232318
233189
 
232319
233190
  if (pageProperty.elementBackColor) {
232320
233191
  hoEditorFactory.vueController.setReviewLevelColor({
232321
- reviewLev1Color: "#F19191",
232322
- reviewLev2Color: "#FFFFFF",
232323
- reviewLev3Color: "#FFFFFF",
232324
- fieldColor: "#DFFFFF",
232325
- dateTimeColor: "#FBFAD0",
232326
- downListColor: "#D2ECB1"
233192
+ reviewLev1Color: '#F19191',
233193
+ reviewLev2Color: '#FFFFFF',
233194
+ reviewLev3Color: '#FFFFFF',
233195
+ fieldColor: '#DFFFFF',
233196
+ dateTimeColor: '#FBFAD0',
233197
+ downListColor: '#D2ECB1'
232327
233198
  });
232328
233199
  } // 复制粘贴基准值
232329
233200
 
@@ -232394,7 +233265,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232394
233265
  }, {
232395
233266
  key: "closeControlModal",
232396
233267
  value: function closeControlModal() {
232397
- this.setControlProperty("", "add", "");
233268
+ this.setControlProperty('', 'add', '');
232398
233269
  }
232399
233270
  /**
232400
233271
  * 非文档区域右键事件
@@ -232403,7 +233274,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232403
233274
  }, {
232404
233275
  key: "blankAreaRightClick",
232405
233276
  value: function blankAreaRightClick(e) {
232406
- if (e.target instanceof HTMLDivElement && e.target.className === "editor") {}
233277
+ if (e.target instanceof HTMLDivElement && e.target.className === 'editor') {}
232407
233278
  }
232408
233279
  }]);
232409
233280
 
@@ -232441,7 +233312,7 @@ __decorate([Prop({
232441
233312
  })], HoDocs.prototype, "isUseTipText", void 0);
232442
233313
 
232443
233314
  __decorate([Prop({
232444
- default: false
233315
+ default: ''
232445
233316
  })], HoDocs.prototype, "isFixedPrintToA4", void 0);
232446
233317
 
232447
233318
  __decorate([Prop({
@@ -232456,54 +233327,60 @@ __decorate([Prop({
232456
233327
  default: true
232457
233328
  })], HoDocs.prototype, "printBlack", void 0);
232458
233329
 
232459
- __decorate([Watch("contentIsModify", {
233330
+ __decorate([Prop({
233331
+ default: false
233332
+ })], HoDocs.prototype, "isEnabledGlobalColor", void 0);
233333
+
233334
+ __decorate([Watch('contentIsModify', {
232460
233335
  deep: true
232461
233336
  })], HoDocs.prototype, "contentIsModifyChange", null);
232462
233337
 
232463
- __decorate([Watch("editJson")], HoDocs.prototype, "editJsonChange", null);
233338
+ __decorate([Watch('editJson')], HoDocs.prototype, "editJsonChange", null);
232464
233339
 
232465
233340
  __decorate([Provide()], HoDocs.prototype, "getCustomProperty", null);
232466
233341
 
232467
- __decorate([Watch("textStyle", {
233342
+ __decorate([Watch('textStyle', {
232468
233343
  deep: true
232469
233344
  })], HoDocs.prototype, "textStyleChange", null);
232470
233345
 
232471
- __decorate([Watch("modalStatus", {
233346
+ __decorate([Watch('modalStatus', {
232472
233347
  deep: true
232473
233348
  })], HoDocs.prototype, "modalStatusChange", null);
232474
233349
 
232475
- __decorate([Watch("controlType", {
233350
+ __decorate([Watch('controlType', {
232476
233351
  deep: true
232477
233352
  })], HoDocs.prototype, "controlTypeChange", null);
232478
233353
 
232479
- __decorate([Watch("pageProperty", {
233354
+ __decorate([Watch('pageProperty', {
232480
233355
  deep: true
232481
233356
  })], HoDocs.prototype, "pagePropertyChange", null);
232482
233357
 
232483
- __decorate([Watch("docProperty", {
233358
+ __decorate([Watch('docProperty', {
232484
233359
  deep: true
232485
233360
  })], HoDocs.prototype, "docPropertyChange", null);
232486
233361
 
232487
- __decorate([Watch("isFixedPrintToA4", {
233362
+ __decorate([Watch('isFixedPrintToA4', {
232488
233363
  deep: true
232489
233364
  })], HoDocs.prototype, "isFixedPrintToA4Change", null);
232490
233365
 
232491
- __decorate([Watch("isUseImagePrint", {
233366
+ __decorate([Watch('isUseImagePrint', {
232492
233367
  deep: true
232493
233368
  })], HoDocs.prototype, "isUseImagePrintChange", null);
232494
233369
 
232495
- __decorate([Watch("isUseForm", {
233370
+ __decorate([Watch('isUseForm', {
232496
233371
  deep: true
232497
233372
  })], HoDocs.prototype, "isUseFormChange", null);
232498
233373
 
232499
- __decorate([Watch("superiorSigns")], HoDocs.prototype, "superiorSignsChange", null);
233374
+ __decorate([Watch('superiorSigns')], HoDocs.prototype, "superiorSignsChange", null);
232500
233375
 
232501
- __decorate([Watch("isCanEditHeadFoot")], HoDocs.prototype, "isCanEditHeadFootChange", null);
233376
+ __decorate([Watch('isCanEditHeadFoot')], HoDocs.prototype, "isCanEditHeadFootChange", null);
232502
233377
 
232503
- __decorate([Watch("printBlack")], HoDocs.prototype, "printBlackChange", null);
233378
+ __decorate([Watch('printBlack')], HoDocs.prototype, "printBlackChange", null);
233379
+
233380
+ __decorate([Watch('isEnabledGlobalColor')], HoDocs.prototype, "isEnabledGlobalColorChange", null);
232504
233381
 
232505
233382
  HoDocs = __decorate([vue_class_component_esm({
232506
- name: "HoDocs",
233383
+ name: 'HoDocs',
232507
233384
  components: {
232508
233385
  HoDoc: components_HoDoc,
232509
233386
  HoFooter: components_HoFooter,
@@ -236638,9 +237515,9 @@ var ToolTablevue_type_template_id_194f516e_render = function () {var _vm=this;va
236638
237515
  var ToolTablevue_type_template_id_194f516e_staticRenderFns = []
236639
237516
 
236640
237517
 
236641
- ;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=2fd610cb&
236642
- var HoTableFeaturesvue_type_template_id_2fd610cb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"pregnantWeeks"},on:{"click":function($event){return _vm.openFormula(['孕周计算公式', 'pregnantWeeks'])}}},[_vm._v(" 孕周 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
236643
- var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
237518
+ ;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=02d0c560&
237519
+ var HoTableFeaturesvue_type_template_id_02d0c560_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
237520
+ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
236644
237521
 
236645
237522
 
236646
237523
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
@@ -237044,8 +237921,8 @@ var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
237044
237921
 
237045
237922
  var HoTableFeatures_component = normalizeComponent(
237046
237923
  insert_HoTableFeaturesvue_type_script_lang_js_,
237047
- HoTableFeaturesvue_type_template_id_2fd610cb_render,
237048
- HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns,
237924
+ HoTableFeaturesvue_type_template_id_02d0c560_render,
237925
+ HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns,
237049
237926
  false,
237050
237927
  null,
237051
237928
  null,
@@ -238125,7 +239002,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238125
239002
  _this$rightNode13,
238126
239003
  _this$rightNode14,
238127
239004
  _this$rightNode15,
238128
- _this$rightNode16;
239005
+ _this$rightNode16,
239006
+ _this$rightNode17;
238129
239007
 
238130
239008
  var h = arguments[0];
238131
239009
  return h("div", {
@@ -238223,7 +239101,18 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238223
239101
  return _this4.toUpdateNodes("qrcode", event);
238224
239102
  }
238225
239103
  }
238226
- }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), (((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "text" || this.emrDebug) && h("ul", {
239104
+ }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "edit-image" && h("ul", {
239105
+ "class": "mouse-right-menu"
239106
+ }, [h("li", {
239107
+ "class": "mouse-menu-item mouse-right-menu-line"
239108
+ }), h("li", {
239109
+ "class": "mouse-menu-item",
239110
+ "on": {
239111
+ "click": function click() {
239112
+ return _this4.toUpdateNodes("edit-image", event);
239113
+ }
239114
+ }
239115
+ }, ["\u7F16\u8F91\u56FE\u7247"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.type) === "text" || this.emrDebug) && h("ul", {
238227
239116
  "class": "mouse-right-menu"
238228
239117
  }, [h("li", {
238229
239118
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238234,7 +239123,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238234
239123
  return _this4.toUpdateNodes("text", event);
238235
239124
  }
238236
239125
  }
238237
- }, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.rightTypeIsTable) && this.defaultTable && ((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.paintStatus) === 0 || this.emrDebug) && h("ul", {
239126
+ }, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.rightTypeIsTable) && this.defaultTable && ((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.paintStatus) === 0 || this.emrDebug) && h("ul", {
238238
239127
  "class": "mouse-right-menu"
238239
239128
  }, [h("li", {
238240
239129
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238266,7 +239155,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238266
239155
  return _this4.toUpdateNodes("table-cell", event);
238267
239156
  }
238268
239157
  }
238269
- }, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.rightTypeIsTable) && this.defaultTable && h("ul", {
239158
+ }, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.rightTypeIsTable) && this.defaultTable && h("ul", {
238270
239159
  "class": "mouse-right-menu"
238271
239160
  }, [h("li", {
238272
239161
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238280,7 +239169,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238280
239169
  table: this.defaultTable,
238281
239170
  tableProperty: this.rightNode.tableProperty
238282
239171
  })
238283
- })]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.canShowComment) && h("ul", {
239172
+ })]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.canShowComment) && h("ul", {
238284
239173
  "class": "mouse-right-menu"
238285
239174
  }, [h("li", {
238286
239175
  "class": "mouse-menu-item",
@@ -238289,7 +239178,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238289
239178
  return _this4.hideComments();
238290
239179
  }
238291
239180
  }
238292
- }, [(_this$rightNode16 = this.rightNode) !== null && _this$rightNode16 !== void 0 && _this$rightNode16.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
239181
+ }, [(_this$rightNode17 = this.rightNode) !== null && _this$rightNode17 !== void 0 && _this$rightNode17.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
238293
239182
  "class": "mouse-right-menu"
238294
239183
  }, [h("li", {
238295
239184
  "class": "mouse-menu-item"
@@ -238321,9 +239210,9 @@ HoRightMenu = __decorate([vue_class_component_esm({
238321
239210
  }
238322
239211
  })], HoRightMenu);
238323
239212
  /* harmony default export */ var toolbar_HoRightMenu = (HoRightMenu);
238324
- ;// 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/view/view.vue?vue&type=template&id=3c4d2e63&
238325
- var viewvue_type_template_id_3c4d2e63_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs",staticStyle:{"width":"1px","height":"1px"}},[_c('section',{staticClass:"ho-editor-list editor-no-footer"},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('PrintDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId},on:{"setActiveDocIndex":_vm.setActiveDocIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange}})]})],2)]):_vm._e()}
238326
- var viewvue_type_template_id_3c4d2e63_staticRenderFns = []
239213
+ ;// 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/view/view.vue?vue&type=template&id=4a7f3e3a&
239214
+ var viewvue_type_template_id_4a7f3e3a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs",staticStyle:{"width":"1px","height":"1px"}},[_c('section',{staticClass:"ho-editor-list editor-no-footer"},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('PrintDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId},on:{"setActiveDocIndex":_vm.setActiveDocIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange}})]})],2)]):_vm._e()}
239215
+ var viewvue_type_template_id_4a7f3e3a_staticRenderFns = []
238327
239216
 
238328
239217
 
238329
239218
  ;// 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/view/viewDoc.vue?vue&type=template&id=717b1315&
@@ -238766,8 +239655,7 @@ var PrintDocs = /*#__PURE__*/function (_Mixins) {
238766
239655
  key: "isFixedPrintToA4Change",
238767
239656
  value: function isFixedPrintToA4Change() {
238768
239657
  var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
238769
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
238770
- hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
239658
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId); // hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
238771
239659
  } // 打印时彩色字体转成黑色 printBlack
238772
239660
 
238773
239661
  }, {
@@ -238845,7 +239733,7 @@ var PrintDocs = /*#__PURE__*/function (_Mixins) {
238845
239733
  __decorate([Prop()], PrintDocs.prototype, "pageProperty", void 0);
238846
239734
 
238847
239735
  __decorate([Prop({
238848
- default: false
239736
+ default: ''
238849
239737
  })], PrintDocs.prototype, "isFixedPrintToA4", void 0);
238850
239738
 
238851
239739
  __decorate([Prop({
@@ -238887,8 +239775,8 @@ PrintDocs = __decorate([vue_class_component_esm({
238887
239775
 
238888
239776
  var view_component = normalizeComponent(
238889
239777
  view_viewvue_type_script_lang_ts_,
238890
- viewvue_type_template_id_3c4d2e63_render,
238891
- viewvue_type_template_id_3c4d2e63_staticRenderFns,
239778
+ viewvue_type_template_id_4a7f3e3a_render,
239779
+ viewvue_type_template_id_4a7f3e3a_staticRenderFns,
238892
239780
  false,
238893
239781
  null,
238894
239782
  null,
@@ -238959,8 +239847,8 @@ var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item);
238959
239847
  var lib_form = __webpack_require__(54223);
238960
239848
  var form_default = /*#__PURE__*/__webpack_require__.n(lib_form);
238961
239849
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/upload.js
238962
- var lib_upload = __webpack_require__(26906);
238963
- var upload_default = /*#__PURE__*/__webpack_require__.n(lib_upload);
239850
+ var upload = __webpack_require__(26906);
239851
+ var upload_default = /*#__PURE__*/__webpack_require__.n(upload);
238964
239852
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/dropdown-item.js
238965
239853
  var dropdown_item = __webpack_require__(42173);
238966
239854
  var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item);