hoeditor-web 2.0.58 → 2.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.common.js +81 -77
- package/lib/hoeditor.css +854 -2
- package/lib/hoeditor.umd.js +81 -77
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -11581,7 +11581,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11581
11581
|
|
|
11582
11582
|
case 17:
|
|
11583
11583
|
if ((_step = _iterator.n()).done) {
|
|
11584
|
-
_context3.next =
|
|
11584
|
+
_context3.next = 60;
|
|
11585
11585
|
break;
|
|
11586
11586
|
}
|
|
11587
11587
|
|
|
@@ -11599,7 +11599,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11599
11599
|
});
|
|
11600
11600
|
|
|
11601
11601
|
case 22:
|
|
11602
|
-
return _context3.abrupt("continue",
|
|
11602
|
+
return _context3.abrupt("continue", 58);
|
|
11603
11603
|
|
|
11604
11604
|
case 23:
|
|
11605
11605
|
last = index;
|
|
@@ -11610,7 +11610,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11610
11610
|
break;
|
|
11611
11611
|
}
|
|
11612
11612
|
|
|
11613
|
-
return _context3.abrupt("break",
|
|
11613
|
+
return _context3.abrupt("break", 60);
|
|
11614
11614
|
|
|
11615
11615
|
case 27:
|
|
11616
11616
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -11661,12 +11661,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
11661
11661
|
}
|
|
11662
11662
|
|
|
11663
11663
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11664
|
-
_context3.next =
|
|
11664
|
+
_context3.next = 44;
|
|
11665
11665
|
break;
|
|
11666
11666
|
}
|
|
11667
11667
|
|
|
11668
11668
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11669
11669
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11670
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
11670
11671
|
|
|
11671
11672
|
if (hoEditorFactory.isFixedPrintToA4T && format) {
|
|
11672
11673
|
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
@@ -11681,10 +11682,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
11681
11682
|
ctx.posY = svg2pdfOptions.y;
|
|
11682
11683
|
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));
|
|
11683
11684
|
ctx = null;
|
|
11684
|
-
_context3.next =
|
|
11685
|
+
_context3.next = 57;
|
|
11685
11686
|
break;
|
|
11686
11687
|
|
|
11687
|
-
case
|
|
11688
|
+
case 44:
|
|
11688
11689
|
_ctx = new canvas2svg({
|
|
11689
11690
|
width: width,
|
|
11690
11691
|
height: height,
|
|
@@ -11693,68 +11694,68 @@ var Print = /*#__PURE__*/function () {
|
|
|
11693
11694
|
_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));
|
|
11694
11695
|
|
|
11695
11696
|
if (!(type === 'html')) {
|
|
11696
|
-
_context3.next =
|
|
11697
|
+
_context3.next = 51;
|
|
11697
11698
|
break;
|
|
11698
11699
|
}
|
|
11699
11700
|
|
|
11700
11701
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
11701
11702
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
11702
|
-
_context3.next =
|
|
11703
|
+
_context3.next = 56;
|
|
11703
11704
|
break;
|
|
11704
11705
|
|
|
11705
|
-
case
|
|
11706
|
+
case 51:
|
|
11706
11707
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11707
11708
|
_context3.t0 = PDF;
|
|
11708
11709
|
|
|
11709
11710
|
if (!_context3.t0) {
|
|
11710
|
-
_context3.next =
|
|
11711
|
+
_context3.next = 56;
|
|
11711
11712
|
break;
|
|
11712
11713
|
}
|
|
11713
11714
|
|
|
11714
|
-
_context3.next =
|
|
11715
|
+
_context3.next = 56;
|
|
11715
11716
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
11716
11717
|
|
|
11717
|
-
case
|
|
11718
|
+
case 56:
|
|
11718
11719
|
_ctx = null;
|
|
11719
11720
|
|
|
11720
|
-
case
|
|
11721
|
+
case 57:
|
|
11721
11722
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
11722
11723
|
|
|
11723
|
-
case
|
|
11724
|
+
case 58:
|
|
11724
11725
|
_context3.next = 17;
|
|
11725
11726
|
break;
|
|
11726
11727
|
|
|
11727
|
-
case
|
|
11728
|
-
_context3.next =
|
|
11728
|
+
case 60:
|
|
11729
|
+
_context3.next = 65;
|
|
11729
11730
|
break;
|
|
11730
11731
|
|
|
11731
|
-
case
|
|
11732
|
-
_context3.prev =
|
|
11732
|
+
case 62:
|
|
11733
|
+
_context3.prev = 62;
|
|
11733
11734
|
_context3.t1 = _context3["catch"](15);
|
|
11734
11735
|
|
|
11735
11736
|
_iterator.e(_context3.t1);
|
|
11736
11737
|
|
|
11737
|
-
case
|
|
11738
|
-
_context3.prev =
|
|
11738
|
+
case 65:
|
|
11739
|
+
_context3.prev = 65;
|
|
11739
11740
|
|
|
11740
11741
|
_iterator.f();
|
|
11741
11742
|
|
|
11742
|
-
return _context3.finish(
|
|
11743
|
+
return _context3.finish(65);
|
|
11743
11744
|
|
|
11744
|
-
case
|
|
11745
|
+
case 68:
|
|
11745
11746
|
console.timeEnd('绘制svg和生成pdf');
|
|
11746
11747
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11747
11748
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11748
11749
|
|
|
11749
11750
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
11750
|
-
_context3.next =
|
|
11751
|
+
_context3.next = 77;
|
|
11751
11752
|
break;
|
|
11752
11753
|
}
|
|
11753
11754
|
|
|
11754
11755
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
11755
11756
|
|
|
11756
11757
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
11757
|
-
_context3.next =
|
|
11758
|
+
_context3.next = 77;
|
|
11758
11759
|
break;
|
|
11759
11760
|
}
|
|
11760
11761
|
|
|
@@ -11766,21 +11767,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
11766
11767
|
reslove && reslove('printend');
|
|
11767
11768
|
return _context3.abrupt("return");
|
|
11768
11769
|
|
|
11769
|
-
case
|
|
11770
|
+
case 77:
|
|
11770
11771
|
if (!(type === 'pdf')) {
|
|
11771
|
-
_context3.next =
|
|
11772
|
+
_context3.next = 83;
|
|
11772
11773
|
break;
|
|
11773
11774
|
}
|
|
11774
11775
|
|
|
11775
11776
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11776
11777
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
11777
11778
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
11778
|
-
_context3.next =
|
|
11779
|
+
_context3.next = 89;
|
|
11779
11780
|
break;
|
|
11780
11781
|
|
|
11781
|
-
case
|
|
11782
|
+
case 83:
|
|
11782
11783
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
11783
|
-
_context3.next =
|
|
11784
|
+
_context3.next = 87;
|
|
11784
11785
|
break;
|
|
11785
11786
|
}
|
|
11786
11787
|
|
|
@@ -11792,7 +11793,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11792
11793
|
reslove && reslove('printend');
|
|
11793
11794
|
return _context3.abrupt("return");
|
|
11794
11795
|
|
|
11795
|
-
case
|
|
11796
|
+
case 87:
|
|
11796
11797
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
11797
11798
|
|
|
11798
11799
|
if (type === 'html') {
|
|
@@ -11819,15 +11820,15 @@ var Print = /*#__PURE__*/function () {
|
|
|
11819
11820
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
11820
11821
|
}
|
|
11821
11822
|
|
|
11822
|
-
case
|
|
11823
|
+
case 89:
|
|
11823
11824
|
reslove && reslove('printend');
|
|
11824
11825
|
|
|
11825
|
-
case
|
|
11826
|
+
case 90:
|
|
11826
11827
|
case "end":
|
|
11827
11828
|
return _context3.stop();
|
|
11828
11829
|
}
|
|
11829
11830
|
}
|
|
11830
|
-
}, _callee2, this, [[15,
|
|
11831
|
+
}, _callee2, this, [[15, 62, 65, 68]]);
|
|
11831
11832
|
}));
|
|
11832
11833
|
|
|
11833
11834
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
@@ -11865,7 +11866,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11865
11866
|
|
|
11866
11867
|
case 11:
|
|
11867
11868
|
if ((_step2 = _iterator2.n()).done) {
|
|
11868
|
-
_context4.next =
|
|
11869
|
+
_context4.next = 40;
|
|
11869
11870
|
break;
|
|
11870
11871
|
}
|
|
11871
11872
|
|
|
@@ -11883,7 +11884,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11883
11884
|
});
|
|
11884
11885
|
|
|
11885
11886
|
case 16:
|
|
11886
|
-
return _context4.abrupt("continue",
|
|
11887
|
+
return _context4.abrupt("continue", 38);
|
|
11887
11888
|
|
|
11888
11889
|
case 17:
|
|
11889
11890
|
last = index;
|
|
@@ -11894,7 +11895,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11894
11895
|
break;
|
|
11895
11896
|
}
|
|
11896
11897
|
|
|
11897
|
-
return _context4.abrupt("break",
|
|
11898
|
+
return _context4.abrupt("break", 40);
|
|
11898
11899
|
|
|
11899
11900
|
case 21:
|
|
11900
11901
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -11908,18 +11909,19 @@ var Print = /*#__PURE__*/function () {
|
|
|
11908
11909
|
}
|
|
11909
11910
|
|
|
11910
11911
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11911
|
-
_context4.next =
|
|
11912
|
+
_context4.next = 31;
|
|
11912
11913
|
break;
|
|
11913
11914
|
}
|
|
11914
11915
|
|
|
11915
11916
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11916
11917
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11918
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
11917
11919
|
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));
|
|
11918
11920
|
ctx = null;
|
|
11919
|
-
_context4.next =
|
|
11921
|
+
_context4.next = 37;
|
|
11920
11922
|
break;
|
|
11921
11923
|
|
|
11922
|
-
case
|
|
11924
|
+
case 31:
|
|
11923
11925
|
_ctx4 = new canvas2svg({
|
|
11924
11926
|
width: hoEditorFactory.pageProperty.widthPixes,
|
|
11925
11927
|
height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
|
|
@@ -11927,37 +11929,37 @@ var Print = /*#__PURE__*/function () {
|
|
|
11927
11929
|
});
|
|
11928
11930
|
_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));
|
|
11929
11931
|
PDF.addPage();
|
|
11930
|
-
_context4.next =
|
|
11932
|
+
_context4.next = 36;
|
|
11931
11933
|
return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
|
|
11932
11934
|
|
|
11933
|
-
case
|
|
11935
|
+
case 36:
|
|
11934
11936
|
_ctx4 = null;
|
|
11935
11937
|
|
|
11936
|
-
case
|
|
11938
|
+
case 37:
|
|
11937
11939
|
index > 0 && ((_cpage$drawDomLevel6 = cpage.drawDomLevel) === null || _cpage$drawDomLevel6 === void 0 ? void 0 : _cpage$drawDomLevel6.clearStage());
|
|
11938
11940
|
|
|
11939
|
-
case
|
|
11941
|
+
case 38:
|
|
11940
11942
|
_context4.next = 11;
|
|
11941
11943
|
break;
|
|
11942
11944
|
|
|
11943
|
-
case
|
|
11944
|
-
_context4.next =
|
|
11945
|
+
case 40:
|
|
11946
|
+
_context4.next = 45;
|
|
11945
11947
|
break;
|
|
11946
11948
|
|
|
11947
|
-
case
|
|
11948
|
-
_context4.prev =
|
|
11949
|
+
case 42:
|
|
11950
|
+
_context4.prev = 42;
|
|
11949
11951
|
_context4.t0 = _context4["catch"](9);
|
|
11950
11952
|
|
|
11951
11953
|
_iterator2.e(_context4.t0);
|
|
11952
11954
|
|
|
11953
|
-
case
|
|
11954
|
-
_context4.prev =
|
|
11955
|
+
case 45:
|
|
11956
|
+
_context4.prev = 45;
|
|
11955
11957
|
|
|
11956
11958
|
_iterator2.f();
|
|
11957
11959
|
|
|
11958
|
-
return _context4.finish(
|
|
11960
|
+
return _context4.finish(45);
|
|
11959
11961
|
|
|
11960
|
-
case
|
|
11962
|
+
case 48:
|
|
11961
11963
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
11962
11964
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11963
11965
|
}
|
|
@@ -11965,12 +11967,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
11965
11967
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11966
11968
|
reslove && reslove('printend');
|
|
11967
11969
|
|
|
11968
|
-
case
|
|
11970
|
+
case 51:
|
|
11969
11971
|
case "end":
|
|
11970
11972
|
return _context4.stop();
|
|
11971
11973
|
}
|
|
11972
11974
|
}
|
|
11973
|
-
}, _callee3, null, [[9,
|
|
11975
|
+
}, _callee3, null, [[9, 42, 45, 48]]);
|
|
11974
11976
|
}));
|
|
11975
11977
|
|
|
11976
11978
|
function createPDFBase64(_x9, _x10, _x11) {
|
|
@@ -12129,7 +12131,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12129
12131
|
|
|
12130
12132
|
case 10:
|
|
12131
12133
|
if ((_step4 = _iterator4.n()).done) {
|
|
12132
|
-
_context6.next =
|
|
12134
|
+
_context6.next = 49;
|
|
12133
12135
|
break;
|
|
12134
12136
|
}
|
|
12135
12137
|
|
|
@@ -12147,7 +12149,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12147
12149
|
});
|
|
12148
12150
|
|
|
12149
12151
|
case 15:
|
|
12150
|
-
return _context6.abrupt("continue",
|
|
12152
|
+
return _context6.abrupt("continue", 47);
|
|
12151
12153
|
|
|
12152
12154
|
case 16:
|
|
12153
12155
|
last = index;
|
|
@@ -12168,7 +12170,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12168
12170
|
break;
|
|
12169
12171
|
}
|
|
12170
12172
|
|
|
12171
|
-
return _context6.abrupt("break",
|
|
12173
|
+
return _context6.abrupt("break", 49);
|
|
12172
12174
|
|
|
12173
12175
|
case 22:
|
|
12174
12176
|
widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
|
|
@@ -12191,7 +12193,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12191
12193
|
}
|
|
12192
12194
|
|
|
12193
12195
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
12194
|
-
_context6.next =
|
|
12196
|
+
_context6.next = 40;
|
|
12195
12197
|
break;
|
|
12196
12198
|
}
|
|
12197
12199
|
|
|
@@ -12202,6 +12204,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12202
12204
|
}
|
|
12203
12205
|
|
|
12204
12206
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
12207
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
12205
12208
|
|
|
12206
12209
|
if (hoEditorFactory.isFixedPrintToA4T && format && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
|
|
12207
12210
|
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
@@ -12216,10 +12219,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
12216
12219
|
ctx.posY = svg2pdfOptions.y;
|
|
12217
12220
|
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));
|
|
12218
12221
|
ctx = null;
|
|
12219
|
-
_context6.next =
|
|
12222
|
+
_context6.next = 46;
|
|
12220
12223
|
break;
|
|
12221
12224
|
|
|
12222
|
-
case
|
|
12225
|
+
case 40:
|
|
12223
12226
|
_ctx6 = new canvas2svg({
|
|
12224
12227
|
width: widthPixes,
|
|
12225
12228
|
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
@@ -12233,37 +12236,37 @@ var Print = /*#__PURE__*/function () {
|
|
|
12233
12236
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
12234
12237
|
}
|
|
12235
12238
|
|
|
12236
|
-
_context6.next =
|
|
12239
|
+
_context6.next = 45;
|
|
12237
12240
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
12238
12241
|
|
|
12239
|
-
case
|
|
12242
|
+
case 45:
|
|
12240
12243
|
_ctx6 = null;
|
|
12241
12244
|
|
|
12242
|
-
case
|
|
12245
|
+
case 46:
|
|
12243
12246
|
index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
|
|
12244
12247
|
|
|
12245
|
-
case
|
|
12248
|
+
case 47:
|
|
12246
12249
|
_context6.next = 10;
|
|
12247
12250
|
break;
|
|
12248
12251
|
|
|
12249
|
-
case
|
|
12250
|
-
_context6.next =
|
|
12252
|
+
case 49:
|
|
12253
|
+
_context6.next = 54;
|
|
12251
12254
|
break;
|
|
12252
12255
|
|
|
12253
|
-
case
|
|
12254
|
-
_context6.prev =
|
|
12256
|
+
case 51:
|
|
12257
|
+
_context6.prev = 51;
|
|
12255
12258
|
_context6.t0 = _context6["catch"](8);
|
|
12256
12259
|
|
|
12257
12260
|
_iterator4.e(_context6.t0);
|
|
12258
12261
|
|
|
12259
|
-
case
|
|
12260
|
-
_context6.prev =
|
|
12262
|
+
case 54:
|
|
12263
|
+
_context6.prev = 54;
|
|
12261
12264
|
|
|
12262
12265
|
_iterator4.f();
|
|
12263
12266
|
|
|
12264
|
-
return _context6.finish(
|
|
12267
|
+
return _context6.finish(54);
|
|
12265
12268
|
|
|
12266
|
-
case
|
|
12269
|
+
case 57:
|
|
12267
12270
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
12268
12271
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
12269
12272
|
}
|
|
@@ -12281,12 +12284,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
12281
12284
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
12282
12285
|
reslove();
|
|
12283
12286
|
|
|
12284
|
-
case
|
|
12287
|
+
case 61:
|
|
12285
12288
|
case "end":
|
|
12286
12289
|
return _context6.stop();
|
|
12287
12290
|
}
|
|
12288
12291
|
}
|
|
12289
|
-
}, _callee5, null, [[8,
|
|
12292
|
+
}, _callee5, null, [[8, 51, 54, 57]]);
|
|
12290
12293
|
}));
|
|
12291
12294
|
|
|
12292
12295
|
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
@@ -33386,7 +33389,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
33386
33389
|
}
|
|
33387
33390
|
|
|
33388
33391
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
33389
|
-
json.isSelected = !json.isSelected ? false : json.isSelected;
|
|
33392
|
+
json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
|
|
33390
33393
|
json.boxAlign = !json.boxAlign ? false : json.boxAlign;
|
|
33391
33394
|
json.isEditText = !json.isEditText ? false : json.isEditText;
|
|
33392
33395
|
json.isTransToText = !json.isTransToText ? false : json.isTransToText;
|
|
@@ -99969,8 +99972,9 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
|
|
|
99969
99972
|
* @property {(color|gradient|pattern)} value The color of the drawing. Default value is #000000<br />
|
|
99970
99973
|
* A gradient object (linear or radial) used to fill the drawing (not supported by context2d)<br />
|
|
99971
99974
|
* A pattern object to use to fill the drawing (not supported by context2d)
|
|
99972
|
-
*/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 ,以适配不支持透明度的打印机
|
|
99973
|
-
if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}
|
|
99975
|
+
*/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;console.log(this.ctx.fillStyle,this.ctx.fillStyle!=="#000000"&&this.ctx.fillStyle!=="#FFFFFF");//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
|
|
99976
|
+
if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
|
|
99977
|
+
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});}});/**
|
|
99974
99978
|
* Sets or returns the color, gradient, or pattern used for strokes
|
|
99975
99979
|
*
|
|
99976
99980
|
* @name strokeStyle
|
|
@@ -206986,7 +206990,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206986
206990
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206987
206991
|
var ParagraphNode = __webpack_require__(14208);
|
|
206988
206992
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206989
|
-
/* harmony default export */ var version = ('2.0.
|
|
206993
|
+
/* harmony default export */ var version = ('2.0.59');
|
|
206990
206994
|
;// 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&
|
|
206991
206995
|
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)}
|
|
206992
206996
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|