hoeditor-web 3.0.30 → 3.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +222 -200
- package/lib/hoeditor.umd.min.js +9 -9
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -28719,6 +28719,10 @@ var es_promise = __webpack_require__(88674);
|
|
|
28719
28719
|
var web_url = __webpack_require__(60285);
|
|
28720
28720
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
|
|
28721
28721
|
var web_url_search_params = __webpack_require__(41637);
|
|
28722
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
28723
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
28724
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
28725
|
+
var es_array_includes = __webpack_require__(26699);
|
|
28722
28726
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
28723
28727
|
var es_object_keys = __webpack_require__(47941);
|
|
28724
28728
|
// EXTERNAL MODULE: ./src/editor/events/Exception.ts
|
|
@@ -30529,8 +30533,6 @@ var es_string_match = __webpack_require__(4723);
|
|
|
30529
30533
|
var es_number_constructor = __webpack_require__(9653);
|
|
30530
30534
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
30531
30535
|
var es_string_trim = __webpack_require__(73210);
|
|
30532
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
30533
|
-
var es_array_includes = __webpack_require__(26699);
|
|
30534
30536
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.btoa.js
|
|
30535
30537
|
var web_btoa = __webpack_require__(27479);
|
|
30536
30538
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.constructor.js
|
|
@@ -34768,6 +34770,8 @@ var DrawPageTable = __webpack_require__(15694);
|
|
|
34768
34770
|
|
|
34769
34771
|
|
|
34770
34772
|
|
|
34773
|
+
|
|
34774
|
+
|
|
34771
34775
|
|
|
34772
34776
|
|
|
34773
34777
|
|
|
@@ -35296,23 +35300,23 @@ var Print = /*#__PURE__*/function () {
|
|
|
35296
35300
|
}
|
|
35297
35301
|
(0,createClass/* default */.Z)(Print, null, [{
|
|
35298
35302
|
key: "openDataUriInWindow",
|
|
35299
|
-
value: function openDataUriInWindow(PDF, fileName, width) {
|
|
35303
|
+
value: function openDataUriInWindow(PDF, fileName, width, printSilently) {
|
|
35304
|
+
var _window$top, _window$top$chrome;
|
|
35300
35305
|
if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
|
|
35301
35306
|
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>';
|
|
35302
35307
|
var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
|
|
35303
35308
|
if (nW) {
|
|
35304
35309
|
nW.document.write(htmlForNewWindow);
|
|
35305
35310
|
}
|
|
35306
|
-
}
|
|
35307
|
-
|
|
35308
|
-
|
|
35309
|
-
|
|
35310
|
-
|
|
35311
|
-
|
|
35312
|
-
|
|
35313
|
-
|
|
35314
|
-
|
|
35315
|
-
else {
|
|
35311
|
+
} else if ((_window$top = window.top) !== null && _window$top !== void 0 && (_window$top$chrome = _window$top.chrome) !== null && _window$top$chrome !== void 0 && _window$top$chrome.webview && printSilently) {
|
|
35312
|
+
var _window$top2, _window$top2$chrome;
|
|
35313
|
+
(_window$top2 = window.top) === null || _window$top2 === void 0 ? void 0 : (_window$top2$chrome = _window$top2.chrome) === null || _window$top2$chrome === void 0 ? void 0 : _window$top2$chrome.webview.postMessage({
|
|
35314
|
+
exec: 'printpdf',
|
|
35315
|
+
data: {
|
|
35316
|
+
base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, '')
|
|
35317
|
+
}
|
|
35318
|
+
});
|
|
35319
|
+
} else {
|
|
35316
35320
|
if (document.querySelector('#Ho_Editor_Print_Iframe')) {
|
|
35317
35321
|
document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
|
|
35318
35322
|
}
|
|
@@ -35374,7 +35378,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35374
35378
|
key: "printToPDF",
|
|
35375
35379
|
value: function () {
|
|
35376
35380
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
35377
|
-
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, pageNumber, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
|
|
35381
|
+
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, pageNumber, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, pageSize, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
|
|
35378
35382
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
35379
35383
|
while (1) {
|
|
35380
35384
|
switch (_context3.prev = _context3.next) {
|
|
@@ -35426,7 +35430,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35426
35430
|
_iterator.s();
|
|
35427
35431
|
case 19:
|
|
35428
35432
|
if ((_step = _iterator.n()).done) {
|
|
35429
|
-
_context3.next =
|
|
35433
|
+
_context3.next = 66;
|
|
35430
35434
|
break;
|
|
35431
35435
|
}
|
|
35432
35436
|
index = _step.value;
|
|
@@ -35435,21 +35439,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
35435
35439
|
break;
|
|
35436
35440
|
}
|
|
35437
35441
|
message/* default.info */.Z.info('请进行翻页');
|
|
35438
|
-
return _context3.abrupt("continue",
|
|
35442
|
+
return _context3.abrupt("continue", 64);
|
|
35439
35443
|
case 24:
|
|
35440
35444
|
last = index;
|
|
35441
35445
|
if (!(index < hoEditorFactory.startPageNum)) {
|
|
35442
35446
|
_context3.next = 27;
|
|
35443
35447
|
break;
|
|
35444
35448
|
}
|
|
35445
|
-
return _context3.abrupt("break",
|
|
35449
|
+
return _context3.abrupt("break", 66);
|
|
35446
35450
|
case 27:
|
|
35447
35451
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
35448
35452
|
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)) {
|
|
35449
35453
|
_context3.next = 30;
|
|
35450
35454
|
break;
|
|
35451
35455
|
}
|
|
35452
|
-
return _context3.abrupt("break",
|
|
35456
|
+
return _context3.abrupt("break", 66);
|
|
35453
35457
|
case 30:
|
|
35454
35458
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
35455
35459
|
cpage.drawDomLevel.bindStage();
|
|
@@ -35500,7 +35504,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35500
35504
|
}
|
|
35501
35505
|
}
|
|
35502
35506
|
if (!(hoEditorFactory.isUseImagePrint && type !== 'html')) {
|
|
35503
|
-
_context3.next =
|
|
35507
|
+
_context3.next = 49;
|
|
35504
35508
|
break;
|
|
35505
35509
|
}
|
|
35506
35510
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
@@ -35509,21 +35513,20 @@ var Print = /*#__PURE__*/function () {
|
|
|
35509
35513
|
ctx.posX = svg2pdfOptions.x;
|
|
35510
35514
|
ctx.posY = svg2pdfOptions.y;
|
|
35511
35515
|
window.printBlack = hoEditorFactory.printBlack;
|
|
35516
|
+
pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
35512
35517
|
if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
|
|
35513
35518
|
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
35514
|
-
if (orientation === 'p' &&
|
|
35519
|
+
if (orientation === 'p' && ['[148,210]', '[210,148]'].includes(pageSize) && index == 0) {
|
|
35515
35520
|
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
35516
35521
|
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
35517
|
-
// ctx.posX = 0;
|
|
35518
|
-
// ctx.posY = 1122 / 2;
|
|
35519
35522
|
}
|
|
35520
35523
|
}
|
|
35521
35524
|
|
|
35522
35525
|
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));
|
|
35523
35526
|
ctx = null;
|
|
35524
|
-
_context3.next =
|
|
35527
|
+
_context3.next = 63;
|
|
35525
35528
|
break;
|
|
35526
|
-
case
|
|
35529
|
+
case 49:
|
|
35527
35530
|
_ctx = new canvas2svg({
|
|
35528
35531
|
width: width,
|
|
35529
35532
|
height: height,
|
|
@@ -35531,61 +35534,61 @@ var Print = /*#__PURE__*/function () {
|
|
|
35531
35534
|
});
|
|
35532
35535
|
_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));
|
|
35533
35536
|
if (!(type === 'html')) {
|
|
35534
|
-
_context3.next =
|
|
35537
|
+
_context3.next = 56;
|
|
35535
35538
|
break;
|
|
35536
35539
|
}
|
|
35537
35540
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
35538
35541
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
35539
|
-
_context3.next =
|
|
35542
|
+
_context3.next = 62;
|
|
35540
35543
|
break;
|
|
35541
|
-
case
|
|
35544
|
+
case 56:
|
|
35542
35545
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
35543
35546
|
pageNumber++;
|
|
35544
35547
|
_context3.t0 = PDF;
|
|
35545
35548
|
if (!_context3.t0) {
|
|
35546
|
-
_context3.next =
|
|
35549
|
+
_context3.next = 62;
|
|
35547
35550
|
break;
|
|
35548
35551
|
}
|
|
35549
|
-
_context3.next =
|
|
35552
|
+
_context3.next = 62;
|
|
35550
35553
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
35551
|
-
case 61:
|
|
35552
|
-
_ctx = null;
|
|
35553
35554
|
case 62:
|
|
35555
|
+
_ctx = null;
|
|
35556
|
+
case 63:
|
|
35554
35557
|
if (index > 0 && cpage.drawDomLevel) {
|
|
35555
35558
|
(_cpage$drawDomLevel$s2 = cpage.drawDomLevel.stage) === null || _cpage$drawDomLevel$s2 === void 0 ? void 0 : _cpage$drawDomLevel$s2.removeAllChildren();
|
|
35556
35559
|
cpage.drawDomLevel.clearStage();
|
|
35557
35560
|
}
|
|
35558
35561
|
// index > 0 && cpage.drawDomLevel?.clearStage();
|
|
35559
|
-
case
|
|
35562
|
+
case 64:
|
|
35560
35563
|
_context3.next = 19;
|
|
35561
35564
|
break;
|
|
35562
|
-
case
|
|
35563
|
-
_context3.next =
|
|
35565
|
+
case 66:
|
|
35566
|
+
_context3.next = 71;
|
|
35564
35567
|
break;
|
|
35565
|
-
case
|
|
35566
|
-
_context3.prev =
|
|
35568
|
+
case 68:
|
|
35569
|
+
_context3.prev = 68;
|
|
35567
35570
|
_context3.t1 = _context3["catch"](17);
|
|
35568
35571
|
_iterator.e(_context3.t1);
|
|
35569
|
-
case
|
|
35570
|
-
_context3.prev =
|
|
35572
|
+
case 71:
|
|
35573
|
+
_context3.prev = 71;
|
|
35571
35574
|
_iterator.f();
|
|
35572
|
-
return _context3.finish(
|
|
35573
|
-
case
|
|
35575
|
+
return _context3.finish(71);
|
|
35576
|
+
case 74:
|
|
35574
35577
|
console.timeEnd('绘制svg和生成pdf');
|
|
35575
35578
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
35576
35579
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
35577
35580
|
if (!(type === 'html')) {
|
|
35578
|
-
_context3.next =
|
|
35581
|
+
_context3.next = 94;
|
|
35579
35582
|
break;
|
|
35580
35583
|
}
|
|
35581
35584
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
35582
|
-
_context3.next =
|
|
35585
|
+
_context3.next = 82;
|
|
35583
35586
|
break;
|
|
35584
35587
|
}
|
|
35585
35588
|
message/* default.info */.Z.info('无新增内容');
|
|
35586
35589
|
reslove && reslove('printend');
|
|
35587
35590
|
return _context3.abrupt("return");
|
|
35588
|
-
case
|
|
35591
|
+
case 82:
|
|
35589
35592
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
35590
35593
|
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 ");
|
|
35591
35594
|
url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
@@ -35602,20 +35605,20 @@ var Print = /*#__PURE__*/function () {
|
|
|
35602
35605
|
}, 100);
|
|
35603
35606
|
reslove && reslove('printend');
|
|
35604
35607
|
return _context3.abrupt("return");
|
|
35605
|
-
case
|
|
35608
|
+
case 94:
|
|
35606
35609
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
35607
|
-
_context3.next =
|
|
35610
|
+
_context3.next = 100;
|
|
35608
35611
|
break;
|
|
35609
35612
|
}
|
|
35610
35613
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
35611
35614
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
35612
|
-
_context3.next =
|
|
35615
|
+
_context3.next = 100;
|
|
35613
35616
|
break;
|
|
35614
35617
|
}
|
|
35615
35618
|
message/* default.info */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
|
|
35616
35619
|
reslove && reslove('printend');
|
|
35617
35620
|
return _context3.abrupt("return");
|
|
35618
|
-
case
|
|
35621
|
+
case 100:
|
|
35619
35622
|
if (type === 'pdf') {
|
|
35620
35623
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
35621
35624
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
@@ -35635,15 +35638,15 @@ var Print = /*#__PURE__*/function () {
|
|
|
35635
35638
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
35636
35639
|
}
|
|
35637
35640
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
35638
|
-
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
35641
|
+
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
|
|
35639
35642
|
}
|
|
35640
35643
|
reslove && reslove('printend');
|
|
35641
|
-
case
|
|
35644
|
+
case 102:
|
|
35642
35645
|
case "end":
|
|
35643
35646
|
return _context3.stop();
|
|
35644
35647
|
}
|
|
35645
35648
|
}
|
|
35646
|
-
}, _callee2, this, [[17,
|
|
35649
|
+
}, _callee2, this, [[17, 68, 71, 74]]);
|
|
35647
35650
|
}));
|
|
35648
35651
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
35649
35652
|
return _printToPDF.apply(this, arguments);
|
|
@@ -35858,7 +35861,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35858
35861
|
key: "printAllNew",
|
|
35859
35862
|
value: function () {
|
|
35860
35863
|
var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position) {
|
|
35861
|
-
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
35864
|
+
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, pageSize, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
35862
35865
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
|
|
35863
35866
|
while (1) {
|
|
35864
35867
|
switch (_context6.prev = _context6.next) {
|
|
@@ -35895,7 +35898,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35895
35898
|
_iterator4.s();
|
|
35896
35899
|
case 17:
|
|
35897
35900
|
if ((_step4 = _iterator4.n()).done) {
|
|
35898
|
-
_context6.next =
|
|
35901
|
+
_context6.next = 50;
|
|
35899
35902
|
break;
|
|
35900
35903
|
}
|
|
35901
35904
|
index = _step4.value;
|
|
@@ -35904,7 +35907,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35904
35907
|
break;
|
|
35905
35908
|
}
|
|
35906
35909
|
message/* default.info */.Z.info('请进行翻页');
|
|
35907
|
-
return _context6.abrupt("continue",
|
|
35910
|
+
return _context6.abrupt("continue", 48);
|
|
35908
35911
|
case 22:
|
|
35909
35912
|
last = index;
|
|
35910
35913
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
@@ -35920,15 +35923,16 @@ var Print = /*#__PURE__*/function () {
|
|
|
35920
35923
|
_context6.next = 28;
|
|
35921
35924
|
break;
|
|
35922
35925
|
}
|
|
35923
|
-
return _context6.abrupt("break",
|
|
35926
|
+
return _context6.abrupt("break", 50);
|
|
35924
35927
|
case 28:
|
|
35925
35928
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
35926
|
-
_context6.next =
|
|
35929
|
+
_context6.next = 41;
|
|
35927
35930
|
break;
|
|
35928
35931
|
}
|
|
35932
|
+
pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
35929
35933
|
if (formats.length == 2 && hoEditorFactory.isFixedPrintToA4 == '1') {
|
|
35930
35934
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(formats, orientation);
|
|
35931
|
-
} else if (hoEditorFactory.isFixedPrintToA4 == '2' &&
|
|
35935
|
+
} else if (hoEditorFactory.isFixedPrintToA4 == '2' && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
35932
35936
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage([793, 1122], 'p');
|
|
35933
35937
|
} else {
|
|
35934
35938
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
@@ -35941,7 +35945,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35941
35945
|
hoEditorFactory.isRotate = false;
|
|
35942
35946
|
}
|
|
35943
35947
|
window.printBlack = hoEditorFactory.printBlack;
|
|
35944
|
-
if (hoEditorFactory.isFixedPrintToA4 == '2' && index == 0 && !hoEditorFactory.isRotate &&
|
|
35948
|
+
if (hoEditorFactory.isFixedPrintToA4 == '2' && index == 0 && !hoEditorFactory.isRotate && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
35945
35949
|
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
35946
35950
|
if (orientation === 'p') {
|
|
35947
35951
|
// 旋转是默认以左上角为中心 需要先移动位置 再进行旋转
|
|
@@ -35954,9 +35958,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
35954
35958
|
ctx.posY = svg2pdfOptions.y;
|
|
35955
35959
|
ctx && ((_cpage$drawDomLevel8 = cpage.drawDomLevel) === null || _cpage$drawDomLevel8 === void 0 ? void 0 : (_cpage$drawDomLevel8$ = _cpage$drawDomLevel8.stage) === null || _cpage$drawDomLevel8$ === void 0 ? void 0 : _cpage$drawDomLevel8$.draw(ctx));
|
|
35956
35960
|
ctx = null;
|
|
35957
|
-
_context6.next =
|
|
35961
|
+
_context6.next = 47;
|
|
35958
35962
|
break;
|
|
35959
|
-
case
|
|
35963
|
+
case 41:
|
|
35960
35964
|
_ctx6 = new canvas2svg({
|
|
35961
35965
|
width: widthPixes,
|
|
35962
35966
|
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
@@ -35968,27 +35972,27 @@ var Print = /*#__PURE__*/function () {
|
|
|
35968
35972
|
} else {
|
|
35969
35973
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
35970
35974
|
}
|
|
35971
|
-
_context6.next =
|
|
35975
|
+
_context6.next = 46;
|
|
35972
35976
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
35973
|
-
case 45:
|
|
35974
|
-
_ctx6 = null;
|
|
35975
35977
|
case 46:
|
|
35976
|
-
|
|
35978
|
+
_ctx6 = null;
|
|
35977
35979
|
case 47:
|
|
35980
|
+
index > 0 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : _cpage$drawDomLevel10.clearStage());
|
|
35981
|
+
case 48:
|
|
35978
35982
|
_context6.next = 17;
|
|
35979
35983
|
break;
|
|
35980
|
-
case
|
|
35981
|
-
_context6.next =
|
|
35984
|
+
case 50:
|
|
35985
|
+
_context6.next = 55;
|
|
35982
35986
|
break;
|
|
35983
|
-
case
|
|
35984
|
-
_context6.prev =
|
|
35987
|
+
case 52:
|
|
35988
|
+
_context6.prev = 52;
|
|
35985
35989
|
_context6.t0 = _context6["catch"](15);
|
|
35986
35990
|
_iterator4.e(_context6.t0);
|
|
35987
|
-
case
|
|
35988
|
-
_context6.prev =
|
|
35991
|
+
case 55:
|
|
35992
|
+
_context6.prev = 55;
|
|
35989
35993
|
_iterator4.f();
|
|
35990
|
-
return _context6.finish(
|
|
35991
|
-
case
|
|
35994
|
+
return _context6.finish(55);
|
|
35995
|
+
case 58:
|
|
35992
35996
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
35993
35997
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
35994
35998
|
}
|
|
@@ -36002,12 +36006,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
36002
36006
|
}
|
|
36003
36007
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36004
36008
|
reslove();
|
|
36005
|
-
case
|
|
36009
|
+
case 62:
|
|
36006
36010
|
case "end":
|
|
36007
36011
|
return _context6.stop();
|
|
36008
36012
|
}
|
|
36009
36013
|
}
|
|
36010
|
-
}, _callee5, null, [[15,
|
|
36014
|
+
}, _callee5, null, [[15, 52, 55, 58]]);
|
|
36011
36015
|
}));
|
|
36012
36016
|
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
36013
36017
|
return _printAllNew.apply(this, arguments);
|
|
@@ -59468,12 +59472,17 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
59468
59472
|
cellProperty.downListProperty = cell.cellProperty.downListProperty;
|
|
59469
59473
|
}
|
|
59470
59474
|
}
|
|
59471
|
-
if (this._colInfos[c].colProperty.align) {
|
|
59472
|
-
|
|
59475
|
+
// if (this._colInfos[c].colProperty.align) {
|
|
59476
|
+
// cellProperty.align = this._colInfos[c].colProperty.align;
|
|
59477
|
+
// }
|
|
59478
|
+
if (cell.cellProperty.align != 0) {
|
|
59479
|
+
cellProperty.align = cell.cellProperty.align;
|
|
59473
59480
|
}
|
|
59474
59481
|
var newCell = new _CellNode__WEBPACK_IMPORTED_MODULE_25__/* .CellNode */ .D(this._hoEditorFactoryID, this.rootNodes, this, row, cell, r + i, c, 1, cell.colSpan, cellProperty);
|
|
59475
59482
|
row.splice(c, 0, newCell);
|
|
59476
59483
|
newCell.initBlankDoc();
|
|
59484
|
+
newCell.childNodes[0].styleIndex = cell.childNodes[0].styleIndex;
|
|
59485
|
+
newCell.childNodes[0].paraNo = cell.childNodes[0].paraNo;
|
|
59477
59486
|
newCell.drawCell.needUpdate = true;
|
|
59478
59487
|
} else {
|
|
59479
59488
|
var bcell = row[c];
|
|
@@ -59503,7 +59512,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
59503
59512
|
rowsSpanChangedCell.forEach(function (acell) {
|
|
59504
59513
|
acell.updateHeight(acell.getCellHeight());
|
|
59505
59514
|
});
|
|
59506
|
-
this.update();
|
|
59515
|
+
//this.update();
|
|
59507
59516
|
}
|
|
59508
59517
|
/**
|
|
59509
59518
|
* @author xyl
|
|
@@ -66890,7 +66899,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66890
66899
|
}, {
|
|
66891
66900
|
key: "canFit",
|
|
66892
66901
|
value: function canFit(dtop, dHeight) {
|
|
66893
|
-
if (dtop + dHeight > this._maxHeight) {
|
|
66902
|
+
if (dtop + dHeight > this._maxHeight && dtop > 0) {
|
|
66894
66903
|
return false;
|
|
66895
66904
|
}
|
|
66896
66905
|
return true;
|
|
@@ -67027,12 +67036,13 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67027
67036
|
if (_dPrevTable) {
|
|
67028
67037
|
if (_dPrevTable.isEndRowFinished()) _startChildIndex = _dPrevTable.endRow + 1;else _startChildIndex = _dPrevTable.endRow;
|
|
67029
67038
|
var iPreIndex = dTable.drawPageTables.indexOf(_dPrevTable);
|
|
67030
|
-
if (iPreIndex >=
|
|
67039
|
+
if (iPreIndex >= -1) {
|
|
67031
67040
|
for (var it = iPreIndex + 1; it < dTable.drawPageTables.length; it++) {
|
|
67032
67041
|
if (dTable.drawPageTables[it].parent) {
|
|
67033
67042
|
dTable.drawPageTables[it].parent.removeChild(dTable.drawPageTables[it]);
|
|
67034
67043
|
}
|
|
67035
67044
|
}
|
|
67045
|
+
iPreIndex = Math.max(iPreIndex, 0);
|
|
67036
67046
|
dTable.drawPageTables.splice(iPreIndex + 1, dTable.drawPageTables.length);
|
|
67037
67047
|
}
|
|
67038
67048
|
}
|
|
@@ -74419,7 +74429,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
74419
74429
|
/*
|
|
74420
74430
|
* @Author: your name
|
|
74421
74431
|
* @Date: 2021-09-01 16:51:49
|
|
74422
|
-
* @LastEditTime: 2023-03-
|
|
74432
|
+
* @LastEditTime: 2023-03-03 09:53:42
|
|
74423
74433
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
74424
74434
|
* @Description: In User Settings Edit
|
|
74425
74435
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -74878,7 +74888,6 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74878
74888
|
var abi02Text = new createjs.Text(_this3.abi02 + _this3._connectChar, _this3.textStyle, '#000000');
|
|
74879
74889
|
abi02Text.textBaseline = 'alphabetic';
|
|
74880
74890
|
abi02Text.textAlign = 'left';
|
|
74881
|
-
abi02Text.y = bitmap.y;
|
|
74882
74891
|
_this3.addChildAt(abi02Text, 0);
|
|
74883
74892
|
bitmap.x = abi02Text.getMeasuredWidth();
|
|
74884
74893
|
_this3.addChild(bitmap);
|
|
@@ -79631,7 +79640,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79631
79640
|
} else {
|
|
79632
79641
|
//放置时不包含第一个节点
|
|
79633
79642
|
if (dline instanceof DrawTable/* DrawTable */.t) {
|
|
79634
|
-
throw new Error("
|
|
79643
|
+
throw new Error("错误的文档结构,表格前面需要放置一个段落节点");
|
|
79635
79644
|
} else {
|
|
79636
79645
|
dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, 0, node.getLength() - 1, aEndPath);
|
|
79637
79646
|
if (dline.paragraphNode !== paraNode) {
|
|
@@ -82406,15 +82415,18 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82406
82415
|
}, {
|
|
82407
82416
|
key: "updatePageCountNodes",
|
|
82408
82417
|
value: function updatePageCountNodes() {
|
|
82418
|
+
var _this4 = this;
|
|
82409
82419
|
// const pageCount = this.drawPages.length;
|
|
82410
82420
|
var hoeditfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82411
82421
|
this.pageCountNodes.forEach(function (value, key) {
|
|
82412
82422
|
value.drawNodes[0].updatePaint();
|
|
82413
82423
|
var dArea = hoeditfactory.drawPageTree.getMainRootArea(value.drawNodes[0]);
|
|
82414
82424
|
if (dArea && value.rootPath.indexOf("main") < 0) {
|
|
82415
|
-
|
|
82425
|
+
if (dArea.index < _this4.drawPages.length) {
|
|
82426
|
+
hoeditfactory.subDocManger.updateAllSameSubDoc(dArea.index, dArea.hftType, false, false);
|
|
82427
|
+
}
|
|
82416
82428
|
}
|
|
82417
|
-
// value.text = this.drawPages.length.
|
|
82429
|
+
// value.text = this.drawPages.length.toStri
|
|
82418
82430
|
// const strText = value.getPageNumText(pageCount, false);
|
|
82419
82431
|
// (value.drawNodes[0] as DrawPageCountNode).updatePageCount(strText);
|
|
82420
82432
|
// if (value.rootPath.startsWith("main")) {
|
|
@@ -82656,7 +82668,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82656
82668
|
}, {
|
|
82657
82669
|
key: "updateDrawFormular",
|
|
82658
82670
|
value: function updateDrawFormular(cell) {
|
|
82659
|
-
var
|
|
82671
|
+
var _this5 = this;
|
|
82660
82672
|
var hoeditfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82661
82673
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
82662
82674
|
_cell$table$getCellIn2 = (0,slicedToArray/* default */.Z)(_cell$table$getCellIn, 2),
|
|
@@ -82675,16 +82687,16 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82675
82687
|
value.updateResult();
|
|
82676
82688
|
value.getParentCell().drawCell.needUpdate = true;
|
|
82677
82689
|
if (isCellInFormula) {
|
|
82678
|
-
|
|
82690
|
+
_this5.updateDrawFormular(value.getParentCell());
|
|
82679
82691
|
}
|
|
82680
82692
|
var prevNode = value.previousLeaf();
|
|
82681
82693
|
if (!prevNode) {
|
|
82682
82694
|
throw new Error('错误的绘制位置');
|
|
82683
82695
|
}
|
|
82684
82696
|
var startPath = hoeditfactory.docTree.getNodeLastPath(prevNode);
|
|
82685
|
-
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(
|
|
82697
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(_this5._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, startPath);
|
|
82686
82698
|
changeEvent.oldEndPath = startPath;
|
|
82687
|
-
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(
|
|
82699
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(_this5._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false);
|
|
82688
82700
|
hoeditfactory.docTree.change(changeEvent);
|
|
82689
82701
|
if (value.parentNode && value.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
82690
82702
|
value.parentNode.update();
|
|
@@ -86276,19 +86288,15 @@ var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
86276
86288
|
/* harmony export */ "x3": function() { return /* binding */ CellInfos; }
|
|
86277
86289
|
/* harmony export */ });
|
|
86278
86290
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27222);
|
|
86279
|
-
/* harmony import */ var
|
|
86280
|
-
/* harmony import */ var
|
|
86281
|
-
/* harmony import */ var
|
|
86282
|
-
/* harmony import */ var
|
|
86283
|
-
/* harmony import */ var
|
|
86284
|
-
/* harmony import */ var
|
|
86285
|
-
/* harmony import */ var
|
|
86286
|
-
/* harmony import */ var
|
|
86287
|
-
/* harmony import */ var
|
|
86288
|
-
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57658);
|
|
86289
|
-
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
86290
|
-
|
|
86291
|
-
|
|
86291
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66298);
|
|
86292
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
|
|
86293
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
|
|
86294
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41539);
|
|
86295
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
86296
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39714);
|
|
86297
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
86298
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57658);
|
|
86299
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
86292
86300
|
|
|
86293
86301
|
|
|
86294
86302
|
|
|
@@ -86296,23 +86304,23 @@ var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
86296
86304
|
|
|
86297
86305
|
|
|
86298
86306
|
|
|
86299
|
-
var CellSpanInfos = /*#__PURE__*/(0,
|
|
86300
|
-
(0,
|
|
86301
|
-
(0,
|
|
86302
|
-
(0,
|
|
86303
|
-
(0,
|
|
86304
|
-
(0,
|
|
86307
|
+
var CellSpanInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(function CellSpanInfos(r, c, rowSpan, colSpan) {
|
|
86308
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, CellSpanInfos);
|
|
86309
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "r", void 0);
|
|
86310
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "c", void 0);
|
|
86311
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "rowSpan", void 0);
|
|
86312
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "colSpan", void 0);
|
|
86305
86313
|
this.r = r;
|
|
86306
86314
|
this.c = c;
|
|
86307
86315
|
this.rowSpan = rowSpan;
|
|
86308
86316
|
this.colSpan = colSpan;
|
|
86309
86317
|
});
|
|
86310
|
-
var CellInfos = /*#__PURE__*/(0,
|
|
86311
|
-
(0,
|
|
86312
|
-
(0,
|
|
86313
|
-
(0,
|
|
86314
|
-
(0,
|
|
86315
|
-
(0,
|
|
86318
|
+
var CellInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(function CellInfos(r, c, endRow, endCol, cellNode) {
|
|
86319
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, CellInfos);
|
|
86320
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "r", void 0);
|
|
86321
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "c", void 0);
|
|
86322
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "cellNode", void 0);
|
|
86323
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "needRemerge", void 0);
|
|
86316
86324
|
this.r = r;
|
|
86317
86325
|
this.c = c;
|
|
86318
86326
|
this.cellNode = cellNode;
|
|
@@ -86328,16 +86336,16 @@ var CellInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_mod
|
|
|
86328
86336
|
});
|
|
86329
86337
|
var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
|
|
86330
86338
|
function TableDeleteRowUndoUnit(hoEditorFactoryID, table, row, count) {
|
|
86331
|
-
(0,
|
|
86332
|
-
(0,
|
|
86333
|
-
(0,
|
|
86334
|
-
(0,
|
|
86335
|
-
(0,
|
|
86336
|
-
(0,
|
|
86337
|
-
(0,
|
|
86338
|
-
(0,
|
|
86339
|
-
(0,
|
|
86340
|
-
(0,
|
|
86339
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TableDeleteRowUndoUnit);
|
|
86340
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_delCells", void 0);
|
|
86341
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_oldSpans", void 0);
|
|
86342
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_rowInfs", void 0);
|
|
86343
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
86344
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_row", void 0);
|
|
86345
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_count", void 0);
|
|
86346
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_table", void 0);
|
|
86347
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_opTime", void 0);
|
|
86348
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_affectText", void 0);
|
|
86341
86349
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
86342
86350
|
this._table = table;
|
|
86343
86351
|
this._oldSpans = new Array();
|
|
@@ -86348,79 +86356,60 @@ var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
|
|
|
86348
86356
|
this._opTime = new Date();
|
|
86349
86357
|
this._affectText = "起始行" + (row + 1).toString() + "行数:" + count.toString();
|
|
86350
86358
|
}
|
|
86351
|
-
(0,
|
|
86359
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(TableDeleteRowUndoUnit, [{
|
|
86352
86360
|
key: "isEmpty",
|
|
86353
86361
|
get: function get() {
|
|
86354
86362
|
return false;
|
|
86355
86363
|
}
|
|
86356
86364
|
}, {
|
|
86357
86365
|
key: "undo",
|
|
86358
|
-
value: function () {
|
|
86359
|
-
var
|
|
86360
|
-
|
|
86361
|
-
|
|
86362
|
-
|
|
86363
|
-
|
|
86364
|
-
|
|
86365
|
-
|
|
86366
|
-
|
|
86367
|
-
|
|
86368
|
-
|
|
86369
|
-
|
|
86370
|
-
|
|
86371
|
-
|
|
86372
|
-
|
|
86373
|
-
|
|
86374
|
-
|
|
86375
|
-
|
|
86376
|
-
|
|
86377
|
-
|
|
86378
|
-
|
|
86379
|
-
this._table.childNodes[cellInfo.r * this._table.colCount + cellInfo.c] = cell;
|
|
86380
|
-
if (cellInfo.needRemerge) {
|
|
86381
|
-
for (_r = cellInfo.r + 1; _r < cellInfo.r + cell.rowSpan; _r++) {
|
|
86382
|
-
for (c = cellInfo.c; c < cellInfo.c + cell.colSpan; c++) {
|
|
86383
|
-
this._table.rows[_r][c] = undefined;
|
|
86384
|
-
}
|
|
86385
|
-
}
|
|
86386
|
-
// this._table.mergeCells(
|
|
86387
|
-
// cellInfo.r,
|
|
86388
|
-
// cellInfo.c,
|
|
86389
|
-
// cell.rowSpan,
|
|
86390
|
-
// cell.colSpan
|
|
86391
|
-
// );
|
|
86392
|
-
}
|
|
86393
|
-
|
|
86394
|
-
cell.drawCell.needUpdate = false;
|
|
86395
|
-
}
|
|
86396
|
-
}
|
|
86397
|
-
for (_i = 0; _i < this._oldSpans.length; _i++) {
|
|
86398
|
-
cellSpanInfos = this._oldSpans[_i];
|
|
86399
|
-
if (cellSpanInfos) {
|
|
86400
|
-
_cell = this._table.rows[cellSpanInfos.r][cellSpanInfos.c];
|
|
86401
|
-
if (_cell) {
|
|
86402
|
-
_cell.rowSpan = cellSpanInfos.rowSpan;
|
|
86403
|
-
_cell.colSpan = cellSpanInfos.colSpan;
|
|
86404
|
-
}
|
|
86405
|
-
}
|
|
86406
|
-
}
|
|
86407
|
-
this._table.countChildNodes();
|
|
86408
|
-
_context.next = 9;
|
|
86409
|
-
return this._table.update();
|
|
86410
|
-
case 9:
|
|
86411
|
-
return _context.abrupt("return");
|
|
86412
|
-
case 10:
|
|
86413
|
-
case "end":
|
|
86414
|
-
return _context.stop();
|
|
86366
|
+
value: function undo() {
|
|
86367
|
+
var iCopyrow = this._row;
|
|
86368
|
+
if (iCopyrow > this._table.rowCount - 1) {
|
|
86369
|
+
iCopyrow = this._table.rowCount - 1;
|
|
86370
|
+
}
|
|
86371
|
+
this._table.insertRows(this._row, this._count, iCopyrow);
|
|
86372
|
+
for (var r = this._row; r < this._row + this._count; r++) {
|
|
86373
|
+
this._table.rowInfos[r] = this._rowInfs[r];
|
|
86374
|
+
}
|
|
86375
|
+
for (var i = this._delCells.length - 1; i >= 0; i--) {
|
|
86376
|
+
var cellInfo = this._delCells[i];
|
|
86377
|
+
this._table.rows[cellInfo.r][cellInfo.c] = cellInfo.cellNode;
|
|
86378
|
+
var cell = this._table.rows[cellInfo.r][cellInfo.c];
|
|
86379
|
+
if (cell) {
|
|
86380
|
+
cell.row = this._table.rows[cellInfo.r];
|
|
86381
|
+
this._table.childNodes[cellInfo.r * this._table.colCount + cellInfo.c] = cell;
|
|
86382
|
+
if (cellInfo.needRemerge) {
|
|
86383
|
+
for (var _r = cellInfo.r + 1; _r < cellInfo.r + cell.rowSpan; _r++) {
|
|
86384
|
+
for (var c = cellInfo.c; c < cellInfo.c + cell.colSpan; c++) {
|
|
86385
|
+
this._table.rows[_r][c] = undefined;
|
|
86386
|
+
}
|
|
86415
86387
|
}
|
|
86388
|
+
// this._table.mergeCells(
|
|
86389
|
+
// cellInfo.r,
|
|
86390
|
+
// cellInfo.c,
|
|
86391
|
+
// cell.rowSpan,
|
|
86392
|
+
// cell.colSpan
|
|
86393
|
+
// );
|
|
86416
86394
|
}
|
|
86417
|
-
|
|
86418
|
-
|
|
86419
|
-
|
|
86420
|
-
return _undo.apply(this, arguments);
|
|
86395
|
+
|
|
86396
|
+
cell.drawCell.needUpdate = true;
|
|
86397
|
+
}
|
|
86421
86398
|
}
|
|
86422
|
-
|
|
86423
|
-
|
|
86399
|
+
for (var _i = 0; _i < this._oldSpans.length; _i++) {
|
|
86400
|
+
var cellSpanInfos = this._oldSpans[_i];
|
|
86401
|
+
if (cellSpanInfos) {
|
|
86402
|
+
var _cell = this._table.rows[cellSpanInfos.r][cellSpanInfos.c];
|
|
86403
|
+
if (_cell) {
|
|
86404
|
+
_cell.rowSpan = cellSpanInfos.rowSpan;
|
|
86405
|
+
_cell.colSpan = cellSpanInfos.colSpan;
|
|
86406
|
+
}
|
|
86407
|
+
}
|
|
86408
|
+
}
|
|
86409
|
+
this._table.countChildNodes();
|
|
86410
|
+
this._table.update();
|
|
86411
|
+
return;
|
|
86412
|
+
}
|
|
86424
86413
|
}, {
|
|
86425
86414
|
key: "redo",
|
|
86426
86415
|
value: function redo() {
|
|
@@ -86770,6 +86759,7 @@ var TableInsertRowUndoUnit = /*#__PURE__*/function () {
|
|
|
86770
86759
|
copyRow = this._table.rowCount - 1;
|
|
86771
86760
|
}
|
|
86772
86761
|
this._table.insertRows(this._row, this._count, copyRow);
|
|
86762
|
+
this._table.countChildNodes();
|
|
86773
86763
|
this._table.update();
|
|
86774
86764
|
}
|
|
86775
86765
|
}, {
|
|
@@ -119779,7 +119769,7 @@ if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").po
|
|
|
119779
119769
|
var tmpImageData=jsPDFAPI.loadFile(src,true);if(tmpImageData!==undefined){return tmpImageData;}}if(element.nodeName==="CANVAS"){if(element.width===0||element.height===0){throw new Error("Given canvas must have data. Canvas width: "+element.width+", height: "+element.height);}var mimeType;switch(format){case"PNG":mimeType="image/png";break;case"WEBP":mimeType="image/webp";break;case"JPEG":case"JPG":default:mimeType="image/jpeg";break;}return atob(element.toDataURL(mimeType,1.0).split("base64,").pop());}};var checkImagesForAlias=function checkImagesForAlias(alias){var images=this.internal.collections[namespace+"images"];if(images){for(var e in images){if(alias===images[e].alias){return images[e];}}}};var determineWidthAndHeight=function determineWidthAndHeight(width,height,image){if(!width&&!height){width=-96;height=-96;}if(width<0){width=-1*image.width*72/width/this.internal.scaleFactor;}if(height<0){height=-1*image.height*72/height/this.internal.scaleFactor;}if(width===0){width=height*image.width/image.height;}if(height===0){height=width*image.height/image.width;}return[width,height];};var writeImageToPDF=function writeImageToPDF(x,y,width,height,image,rotation){var dims=determineWidthAndHeight.call(this,width,height,image),coord=this.internal.getCoordinateString,vcoord=this.internal.getVerticalCoordinateString;var images=getImages.call(this);width=dims[0];height=dims[1];images[image.index]=image;if(rotation){rotation*=Math.PI/180;var c=Math.cos(rotation);var s=Math.sin(rotation);//like in pdf Reference do it 4 digits instead of 2
|
|
119780
119770
|
var f4=function f4(number){return number.toFixed(4);};var rotationTransformationMatrix=[f4(c),f4(s),f4(s*-1),f4(c),0,0,"cm"];}this.internal.write("q");//Save graphics state
|
|
119781
119771
|
if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
119782
|
-
x+=Number(coord(width));y-=height;console.log(width,height,
|
|
119772
|
+
x+=Number(coord(width))+5;y-=height;console.log(width,height,x,y);this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
|
|
119783
119773
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
119784
119774
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
119785
119775
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -259822,7 +259812,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
259822
259812
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
259823
259813
|
var MarkNode = __webpack_require__(57727);
|
|
259824
259814
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
259825
|
-
/* harmony default export */ var version = ('3.0.
|
|
259815
|
+
/* harmony default export */ var version = ('3.0.31');
|
|
259826
259816
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
259827
259817
|
var PoperTipText = __webpack_require__(15845);
|
|
259828
259818
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -260877,7 +260867,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
260877
260867
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
260878
260868
|
}
|
|
260879
260869
|
// 判断是否已经满页
|
|
260880
|
-
if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight) {
|
|
260870
|
+
if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight && dTop > 0) {
|
|
260881
260871
|
if (dline instanceof DrawLine/* DrawLine */.a && restHeight >= hoEditorFactory.defaultLineHeight) {
|
|
260882
260872
|
if (drawArea.contains(dline)) {
|
|
260883
260873
|
drawArea.removeChild(dline);
|
|
@@ -260998,6 +260988,9 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
260998
260988
|
}
|
|
260999
260989
|
//普通行正常绘制
|
|
261000
260990
|
if (nextLine > startLine || nextLine === startLine && !drawArea.contains(_dobj)) {
|
|
260991
|
+
if (drawArea.numChildren == 0) {
|
|
260992
|
+
drawArea.topDline = _dobj;
|
|
260993
|
+
}
|
|
261001
260994
|
drawArea.addChild(_dobj);
|
|
261002
260995
|
_dobj.y = dTop;
|
|
261003
260996
|
// dobj.x = cbParagraph.leftMarginPixes;
|
|
@@ -264961,6 +264954,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
264961
264954
|
if (!temp) {
|
|
264962
264955
|
continue;
|
|
264963
264956
|
}
|
|
264957
|
+
if (temp.delete && temp.delete == "1") {
|
|
264958
|
+
continue;
|
|
264959
|
+
}
|
|
264964
264960
|
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {
|
|
264965
264961
|
// console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
264966
264962
|
}
|
|
@@ -265281,10 +265277,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265281
265277
|
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, aNode);
|
|
265282
265278
|
} else {
|
|
265283
265279
|
if (aNode instanceof TableNode/* TableNode */.Fh) {
|
|
265284
|
-
var nextNode = array[j + 1];
|
|
265285
265280
|
nodePath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
265281
|
+
if (!(prevNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
265282
|
+
var bparaNode = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, aNode.rootNodes, null, 0);
|
|
265283
|
+
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, bparaNode);
|
|
265284
|
+
nodePath = bparaNode.getNodePath();
|
|
265285
|
+
}
|
|
265286
|
+
var nextNode = array[j + 1];
|
|
265286
265287
|
var aparaNode = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, aNode.rootNodes, null, 0);
|
|
265287
|
-
if (nextNode instanceof ParagraphNode/* ParagraphNode */.C && nextNode.printAsSinglePage) {
|
|
265288
|
+
if (nextNode instanceof ParagraphNode/* ParagraphNode */.C && nextNode.printAsSinglePage || !(nextNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
265288
265289
|
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, aparaNode);
|
|
265289
265290
|
prevNode = aparaNode;
|
|
265290
265291
|
} else {
|
|
@@ -270198,8 +270199,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
270198
270199
|
xmlobj.footer[0].beginPath = strID;
|
|
270199
270200
|
xmlobj.footer[0].pageIndex = -1;
|
|
270200
270201
|
mergeObject.footer.push(xmlobj.footer[0]);
|
|
270201
|
-
xmlobj.main[0].printAsSinglePage = 'true';
|
|
270202
|
-
xmlobj.main[0].docId = strID;
|
|
270202
|
+
Array(xmlobj.main)[0].printAsSinglePage = 'true';
|
|
270203
|
+
Array(xmlobj.main)[0].docId = strID;
|
|
270203
270204
|
mergeObject.pageSettingsTree.push(xmlobj.pageSettings);
|
|
270204
270205
|
hoEditorFactory.printStatus.pageSettingMap.set(strID, {
|
|
270205
270206
|
widthMm: Number(xmlobj.pageSettings.widthMm),
|
|
@@ -270212,7 +270213,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
270212
270213
|
var _mergeObject$main;
|
|
270213
270214
|
(_mergeObject$main = mergeObject.main).push.apply(_mergeObject$main, (0,esm_toConsumableArray/* default */.Z)(xmlobj.main));
|
|
270214
270215
|
} else {
|
|
270215
|
-
|
|
270216
|
+
var _mergeObject$main2;
|
|
270217
|
+
(_mergeObject$main2 = mergeObject.main).push.apply(_mergeObject$main2, (0,esm_toConsumableArray/* default */.Z)(Array(xmlobj.main)));
|
|
270216
270218
|
}
|
|
270217
270219
|
};
|
|
270218
270220
|
for (i = 1; i < list.length; i++) {
|
|
@@ -272130,6 +272132,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272130
272132
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
272131
272133
|
text = node.text;
|
|
272132
272134
|
}
|
|
272135
|
+
if (text.length > 5) {
|
|
272136
|
+
text = text.substring(text.length - 5, text.length);
|
|
272137
|
+
}
|
|
272133
272138
|
return text;
|
|
272134
272139
|
}
|
|
272135
272140
|
/**
|
|
@@ -276355,6 +276360,8 @@ var jspdf = __webpack_require__(77937);
|
|
|
276355
276360
|
|
|
276356
276361
|
|
|
276357
276362
|
|
|
276363
|
+
|
|
276364
|
+
|
|
276358
276365
|
|
|
276359
276366
|
|
|
276360
276367
|
|
|
@@ -276604,7 +276611,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
276604
276611
|
if (hoEditorFactory.isFixedPrintToA4 == '1' && isSpecial) {
|
|
276605
276612
|
format = _this3._a4Size[orientation];
|
|
276606
276613
|
}
|
|
276607
|
-
|
|
276614
|
+
var pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
276615
|
+
if (hoEditorFactory.isFixedPrintToA4 == '2' && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
276608
276616
|
format = [793, 1122];
|
|
276609
276617
|
orientation = 'p';
|
|
276610
276618
|
}
|
|
@@ -276714,7 +276722,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
276714
276722
|
if (hoEditorFactory.isFixedPrintToA4 == '1') {
|
|
276715
276723
|
format = _this4._a4Size[orientation];
|
|
276716
276724
|
}
|
|
276717
|
-
|
|
276725
|
+
var pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
276726
|
+
if (hoEditorFactory.isFixedPrintToA4 == '2' && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
276718
276727
|
format = [793, 1122];
|
|
276719
276728
|
orientation = 'p';
|
|
276720
276729
|
}
|
|
@@ -276857,7 +276866,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
276857
276866
|
console.time('生成pdf用时');
|
|
276858
276867
|
return new Promise( /*#__PURE__*/function () {
|
|
276859
276868
|
var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(resolve) {
|
|
276860
|
-
var orientation, format, options;
|
|
276869
|
+
var orientation, format, pageSize, options;
|
|
276861
276870
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context4) {
|
|
276862
276871
|
while (1) {
|
|
276863
276872
|
switch (_context4.prev = _context4.next) {
|
|
@@ -276867,7 +276876,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
276867
276876
|
if (hoEditorFactory.isFixedPrintToA4 == '1') {
|
|
276868
276877
|
format = _this5._a4Size[orientation];
|
|
276869
276878
|
}
|
|
276870
|
-
|
|
276879
|
+
pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
276880
|
+
if (hoEditorFactory.isFixedPrintToA4 == '2' && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
276871
276881
|
format = [793, 1122];
|
|
276872
276882
|
orientation = 'p';
|
|
276873
276883
|
}
|
|
@@ -276881,7 +276891,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
276881
276891
|
_this5.PDF = null;
|
|
276882
276892
|
_this5.PDF = new jspdf/* default */.ZP(options);
|
|
276883
276893
|
PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, _this5.PDF, undefined, undefined, resolve, positionY, format);
|
|
276884
|
-
case
|
|
276894
|
+
case 9:
|
|
276885
276895
|
case "end":
|
|
276886
276896
|
return _context4.stop();
|
|
276887
276897
|
}
|
|
@@ -277078,7 +277088,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
277078
277088
|
hoEditorFactory.vueController.openXml(xml);
|
|
277079
277089
|
(_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
|
|
277080
277090
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
277081
|
-
PrintStatus/* Print.openDataUriInWindow */.Kh.openDataUriInWindow(_this6.PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
277091
|
+
PrintStatus/* Print.openDataUriInWindow */.Kh.openDataUriInWindow(_this6.PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
|
|
277082
277092
|
}
|
|
277083
277093
|
case 2:
|
|
277084
277094
|
case "end":
|
|
@@ -278095,6 +278105,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
278095
278105
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowCrossPatiPaste", false);
|
|
278096
278106
|
(0,esm_defineProperty/* default */.Z)(this, "_fontSizeMap", new Map());
|
|
278097
278107
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowEditInReview", false);
|
|
278108
|
+
(0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
|
|
278098
278109
|
this._hoEditorFactoryId = id;
|
|
278099
278110
|
}
|
|
278100
278111
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
@@ -278130,6 +278141,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
278130
278141
|
//不允许跨病人粘贴
|
|
278131
278142
|
|
|
278132
278143
|
//审阅模式下不允许修改(质控医生站的病历只可进行批注不可修改)
|
|
278144
|
+
|
|
278133
278145
|
/**
|
|
278134
278146
|
* Getter hoLocalStorage
|
|
278135
278147
|
* @return {HoLocalStorage}
|
|
@@ -278839,6 +278851,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
278839
278851
|
this._isUseDrawingOptimization = value;
|
|
278840
278852
|
}
|
|
278841
278853
|
}
|
|
278854
|
+
}, {
|
|
278855
|
+
key: "printSilently",
|
|
278856
|
+
get: function get() {
|
|
278857
|
+
return this._printSilently;
|
|
278858
|
+
},
|
|
278859
|
+
set: function set(value) {
|
|
278860
|
+
if (this._printSilently !== value) {
|
|
278861
|
+
this._printSilently = value;
|
|
278862
|
+
}
|
|
278863
|
+
}
|
|
278842
278864
|
}, {
|
|
278843
278865
|
key: "clear",
|
|
278844
278866
|
value: function clear() {
|