hoeditor-web 3.0.88 → 3.0.90

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.
@@ -16713,7 +16713,7 @@ var component = (0,componentNormalizer/* default */.Z)(
16713
16713
 
16714
16714
  /***/ }),
16715
16715
 
16716
- /***/ 63718:
16716
+ /***/ 47585:
16717
16717
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16718
16718
 
16719
16719
  "use strict";
@@ -16729,7 +16729,7 @@ __webpack_require__.d(__webpack_exports__, {
16729
16729
  var es_array_includes = __webpack_require__(26699);
16730
16730
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
16731
16731
  var es_string_includes = __webpack_require__(32023);
16732
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=c8ad1234&
16732
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=9af121a8&
16733
16733
 
16734
16734
 
16735
16735
  var render = function render() {
@@ -17563,7 +17563,7 @@ var render = function render() {
17563
17563
  };
17564
17564
  var staticRenderFns = [];
17565
17565
 
17566
- ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=c8ad1234&
17566
+ ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=9af121a8&
17567
17567
 
17568
17568
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
17569
17569
  var slicedToArray = __webpack_require__(27222);
@@ -17801,6 +17801,9 @@ var columns = [{
17801
17801
  },
17802
17802
  methods: {
17803
17803
  isDrawGridlinesChange: function isDrawGridlinesChange() {
17804
+ if (!this.isDrawGridlines) {
17805
+ this.gridLineDisplay = [false, false, false, false];
17806
+ }
17804
17807
  // if (!this.isDrawGridlines) {
17805
17808
  // this.printGridLines = false;
17806
17809
  // }
@@ -17961,10 +17964,10 @@ var columns = [{
17961
17964
  });
17962
17965
  ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
17963
17966
  /* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
17964
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=c8ad1234&prod&lang=scss&
17967
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=9af121a8&prod&lang=scss&
17965
17968
  // extracted by mini-css-extract-plugin
17966
17969
 
17967
- ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=c8ad1234&prod&lang=scss&
17970
+ ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=9af121a8&prod&lang=scss&
17968
17971
 
17969
17972
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
17970
17973
  var componentNormalizer = __webpack_require__(70713);
@@ -37683,29 +37686,41 @@ var Print = /*#__PURE__*/function () {
37683
37686
  (0,createClass/* default */.Z)(Print, null, [{
37684
37687
  key: "openDataUriInWindow",
37685
37688
  value: function openDataUriInWindow(PDF, fileName, width, printSilently) {
37686
- var _window$top, _window$top$chrome;
37687
37689
  if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
37688
37690
  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>';
37689
37691
  var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
37690
37692
  if (nW) {
37691
37693
  nW.document.write(htmlForNewWindow);
37692
37694
  }
37693
- } 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) {
37694
- var _window$top2, _window$top2$chrome;
37695
- (_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({
37696
- exec: 'printpdf',
37697
- data: {
37698
- base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, '')
37699
- }
37700
- });
37701
37695
  } else {
37702
- if (document.querySelector('#Ho_Editor_Print_Iframe')) {
37703
- document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
37696
+ try {
37697
+ var _window$top, _window$top$chrome;
37698
+ 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) {
37699
+ var _window$top2, _window$top2$chrome;
37700
+ (_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({
37701
+ exec: 'printpdf',
37702
+ data: {
37703
+ base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, '')
37704
+ }
37705
+ });
37706
+ } else {
37707
+ if (document.querySelector('#Ho_Editor_Print_Iframe')) {
37708
+ document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
37709
+ }
37710
+ this.printPage(PDF).catch(function (error) {
37711
+ PDF.autoPrint();
37712
+ PDF.output('dataurlnewwindow');
37713
+ });
37714
+ }
37715
+ } catch (error) {
37716
+ if (document.querySelector('#Ho_Editor_Print_Iframe')) {
37717
+ document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
37718
+ }
37719
+ this.printPage(PDF).catch(function (error) {
37720
+ PDF.autoPrint();
37721
+ PDF.output('dataurlnewwindow');
37722
+ });
37704
37723
  }
37705
- this.printPage(PDF).catch(function (error) {
37706
- PDF.autoPrint();
37707
- PDF.output('dataurlnewwindow');
37708
- });
37709
37724
  }
37710
37725
  }
37711
37726
  }, {
@@ -75236,6 +75251,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
75236
75251
  }, {
75237
75252
  key: "paintCellBorders",
75238
75253
  value: function paintCellBorders(newHeight, r, c) {
75254
+ if (!this._cell.cellProperty.isDrawGridlines) {
75255
+ this._cell.cellProperty.gridLineDisplay = [false, false, false, false];
75256
+ }
75239
75257
  if (this._cell.cellProperty.isDrawGridlines) {
75240
75258
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
75241
75259
  var x = 0.5;
@@ -75260,7 +75278,11 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
75260
75278
  if (printGridLines || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
75261
75279
  if (gridLineDisplay[0]) {
75262
75280
  //上边框
75263
- if (r == 0 || this.dTop == 0) {
75281
+ var topCell = null;
75282
+ if (r > 0) {
75283
+ topCell = this._cell.table.getMainCell(r - 1, c)[0];
75284
+ }
75285
+ if (r == 0 || this.dTop == 0 || r > 0 && topCell && !topCell.cellProperty.gridLineDisplay[1]) {
75264
75286
  this._topLine.name = "topLine";
75265
75287
  this._topLine.graphics.beginStroke(gridLinesColor[0]);
75266
75288
  if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle.solid */.he.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
@@ -75276,8 +75298,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
75276
75298
  }
75277
75299
  } else {
75278
75300
  if (r > 0) {
75279
- var topCell = this._cell.table.getMainCell(r - 1, c)[0];
75280
- var drawPageCells = topCell.drawCell.drawPageCells;
75301
+ var _topCell = this._cell.table.getMainCell(r - 1, c)[0];
75302
+ var drawPageCells = _topCell.drawCell.drawPageCells;
75281
75303
  if (drawPageCells.length > 0) {
75282
75304
  for (var i = 0; i < drawPageCells[drawPageCells.length - 1].children.length; i++) {
75283
75305
  var child = drawPageCells[drawPageCells.length - 1].children[i];
@@ -75318,7 +75340,11 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
75318
75340
  }
75319
75341
  if (gridLineDisplay[2]) {
75320
75342
  //左边框
75321
- if (c == 0) {
75343
+ var leftCell = null;
75344
+ if (c > 0) {
75345
+ leftCell = this._cell.table.getMainCell(r, c - 1)[0];
75346
+ }
75347
+ if (c == 0 || c > 0 && leftCell && !leftCell.cellProperty.gridLineDisplay[3]) {
75322
75348
  this._leftLine.name = "leftLine";
75323
75349
  this._leftLine.graphics.beginStroke(gridLinesColor[2]);
75324
75350
  if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle.solid */.he.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
@@ -75334,8 +75360,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
75334
75360
  }
75335
75361
  } else {
75336
75362
  if (c > 0) {
75337
- var leftCell = this._cell.table.getMainCell(r, c - 1)[0];
75338
- var _drawPageCells2 = leftCell.drawCell.drawPageCells;
75363
+ var _leftCell = this._cell.table.getMainCell(r, c - 1)[0];
75364
+ var _drawPageCells2 = _leftCell.drawCell.drawPageCells;
75339
75365
  if (_drawPageCells2.length > 0) {
75340
75366
  for (var _i2 = 0; _i2 < _drawPageCells2.length; _i2++) {
75341
75367
  var children = _drawPageCells2[_i2].children;
@@ -80064,7 +80090,6 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
80064
80090
  } else {
80065
80091
  ctx.fillStyle = col;
80066
80092
  }
80067
- // console.log(this, col);
80068
80093
  ctx = this._prepContext(ctx);
80069
80094
  // u2003 html实体全角空格(&emsp;) 转换为中文全角空格 u2002 html实体半角空格(&ensp;)转换为普通空格
80070
80095
  var str = this.text.replace(/\ /g, ' ').replace(/\ /g, ' ');
@@ -80088,6 +80113,10 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
80088
80113
  if (this.outline) {
80089
80114
  ctx.strokeText(str, 0, 0, docWidth || this._maxWidth);
80090
80115
  } else {
80116
+ if (this.font.indexOf("bold") != -1) {
80117
+ ctx.strokeStyle = ctx.fillStyle;
80118
+ ctx.strokeText(str, 0, 0, docWidth || this._maxWidth);
80119
+ }
80091
80120
  ctx.fillText(str, 0, 0, docWidth || this._maxWidth);
80092
80121
  }
80093
80122
  }
@@ -99925,7 +99954,7 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
99925
99954
  * A pattern object to use to fill the drawing (not supported by context2d)
99926
99955
  */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 ,以适配不支持透明度的打印机
99927
99956
  if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
99928
- var alpha=this.ctx.fillOpacity;if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.fillStyle)){console.log(window.printBlack,this.ctx.fillStyle,"?????????????");if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.fillStyle="#000000";}this.pdf.setFillColor(255,255,255,{a:alpha});this.pdf.setTextColor(0,0,0,{a:alpha});}else{// console.log(rgba.r, rgba.g, rgba.b, alpha, rgba.style,'----------', this.ctx);
99957
+ var alpha=this.ctx.fillOpacity;console.log(this.ctx,this.ctx.fillStyle);if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.fillStyle)){console.log(window.printBlack,this.ctx.fillStyle,"?????????????");if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.fillStyle="#000000";}this.pdf.setFillColor(255,255,255,{a:alpha});this.pdf.setTextColor(0,0,0,{a:alpha});}else{// console.log(rgba.r, rgba.g, rgba.b, alpha, rgba.style,'----------', this.ctx);
99929
99958
  this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}}});/**
99930
99959
  * Sets or returns the color, gradient, or pattern used for strokes
99931
99960
  *
@@ -99935,7 +99964,8 @@ this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba
99935
99964
  * @property {gradient} gradient A gradient object (linear or radial) used to create a gradient stroke (not supported by context2d)
99936
99965
  * @property {pattern} pattern A pattern object used to create a pattern stroke (not supported by context2d)
99937
99966
  */Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle;},set:function set(value){var rgba=getRGBA(value);this.ctx.strokeStyle=rgba.style;this.ctx.isStrokeTransparent=rgba.a===0;//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
99938
- if(rgba.a<1){this.ctx.strokeOpacity=0;}else{this.ctx.strokeOpacity=rgba.a;}if(rgba.a===0){this.pdf.setDrawColor(255,255,255);}else if(rgba.a===1){this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}else{this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.strokeStyle)){if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.strokeStyle="#000000";this.pdf.setDrawColor(0,0,0);}}}});/**
99967
+ if(rgba.a<1){this.ctx.strokeOpacity=0;}else{this.ctx.strokeOpacity=rgba.a;}if(rgba.a===0){this.pdf.setDrawColor(255,255,255);}else if(rgba.a===1){this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}else{this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}// console.log(this.ctx, "----------------------------");
99968
+ if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.strokeStyle)){if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.strokeStyle="#000000";this.pdf.setDrawColor(0,0,0);}}}});/**
99939
99969
  * Sets or returns the style of the end caps for a line
99940
99970
  *
99941
99971
  * @name lineCap
@@ -100165,7 +100195,8 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
100165
100195
  */Context2D.prototype.fillText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!=="string"){console.error("jsPDF.context2d.fillText: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.fillText");}maxWidth=isNaN(maxWidth)?undefined:maxWidth;if(isFillTransparent.call(this)){return;}var degs=rad2deg(this.ctx.transform.rotation);// We only use X axis as scale hint
100166
100196
  var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?parseFloat(this.letterSpacing):0.0;//自定义修改 以处理宋体粗体
100167
100197
  if(this.font.indexOf("SimSun")>=0&&this.font.indexOf("bold")>=0){//renderingMode: "stroke",
100168
- putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,renderingMode:"fillThenStroke",charSpace:acharSpace+0.35});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
100198
+ putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,// renderingMode: "fillThenStroke",
100199
+ charSpace:acharSpace+0.35});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
100169
100200
  * Draws text on the canvas (no fill)
100170
100201
  *
100171
100202
  * @name strokeText
@@ -100294,7 +100325,7 @@ return y;case"alphabetic":default:return y;}};var getTextBottom=function getText
100294
100325
  * @param counterclockwise
100295
100326
  * @param style
100296
100327
  * @param isClip
100297
- */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键的问题
100328
+ */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);console.log(options.text,textDimensions,this,"0000000000000000");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键的问题
100298
100329
  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;//自定义修改
100299
100330
  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// 自定义修改
100300
100331
  });if(needsClipping){this.pdf.restoreGraphicsState();}}}else{// This text is the last element of the page, but it got cut off due to the margin
@@ -199760,7 +199791,7 @@ var map = {
199760
199791
  "./selectDialog/SelectDialog.vue": 59075,
199761
199792
  "./sign/Sign.vue": 28715,
199762
199793
  "./table/TableCellPoper.vue": 61917,
199763
- "./table/TableCellProperty.vue": 63718,
199794
+ "./table/TableCellProperty.vue": 47585,
199764
199795
  "./table/TableColProperty.vue": 2116,
199765
199796
  "./table/TableForm.vue": 19064,
199766
199797
  "./table/TableFormTree.vue": 39703,
@@ -236014,8 +236045,8 @@ var es_string_match = __webpack_require__(4723);
236014
236045
  var es_number_constructor = __webpack_require__(9653);
236015
236046
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
236016
236047
  var es_json_stringify = __webpack_require__(38862);
236017
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=197ca538&
236018
- var HoDocvue_type_template_id_197ca538_render = function render() {
236048
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=1e9632f5&
236049
+ var HoDocvue_type_template_id_1e9632f5_render = function render() {
236019
236050
  var _vm = this,
236020
236051
  _c = _vm._self._c;
236021
236052
  return _c('div', {
@@ -236163,7 +236194,7 @@ var HoDocvue_type_template_id_197ca538_render = function render() {
236163
236194
  }
236164
236195
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
236165
236196
  };
236166
- var HoDocvue_type_template_id_197ca538_staticRenderFns = [];
236197
+ var HoDocvue_type_template_id_1e9632f5_staticRenderFns = [];
236167
236198
 
236168
236199
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
236169
236200
  var es_array_filter = __webpack_require__(57327);
@@ -239122,7 +239153,7 @@ var ParagraphNode = __webpack_require__(67945);
239122
239153
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
239123
239154
  var MarkNode = __webpack_require__(57727);
239124
239155
  ;// CONCATENATED MODULE: ./src/components/version.ts
239125
- /* harmony default export */ var version = ('3.0.88');
239156
+ /* harmony default export */ var version = ('3.0.90');
239126
239157
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
239127
239158
  var PoperTipText = __webpack_require__(36081);
239128
239159
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -239645,15 +239676,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
239645
239676
  }
239646
239677
  this.poperType = 'datePoper';
239647
239678
  } else if (Number(_parentNode.inputFieldType) === 1) {
239679
+ var _node$parentNode$down, _node$parentNode$down2;
239648
239680
  if (paintStatus === 0) {
239649
239681
  this.hoEditorProvider.setControlProperty('text', 'update', '');
239650
239682
  this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
239651
239683
  return;
239652
239684
  }
239653
239685
  var text = node.text.replace(/ /g, '');
239654
- if (text != node.parentNode.name && text !== '') {
239655
- var _node$parentNode$down, _node$parentNode$down2;
239656
- var list = (_node$parentNode$down = node.parentNode.downListProperty) !== null && _node$parentNode$down !== void 0 && _node$parentNode$down.listItems ? JSON.parse((_node$parentNode$down2 = node.parentNode.downListProperty) === null || _node$parentNode$down2 === void 0 ? void 0 : _node$parentNode$down2.listItems) : [];
239686
+ var list = (_node$parentNode$down = node.parentNode.downListProperty) !== null && _node$parentNode$down !== void 0 && _node$parentNode$down.listItems ? JSON.parse((_node$parentNode$down2 = node.parentNode.downListProperty) === null || _node$parentNode$down2 === void 0 ? void 0 : _node$parentNode$down2.listItems) : [];
239687
+ if (text != node.parentNode.name && text !== '' && list.length > 0) {
239657
239688
  if (list.filter(function (v) {
239658
239689
  return v.text.split('<元素>')[0].includes(text);
239659
239690
  }).length === 0) {
@@ -239867,10 +239898,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
239867
239898
  });
239868
239899
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
239869
239900
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
239870
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=197ca538&prod&lang=scss&
239901
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=1e9632f5&prod&lang=scss&
239871
239902
  // extracted by mini-css-extract-plugin
239872
239903
 
239873
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=197ca538&prod&lang=scss&
239904
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1e9632f5&prod&lang=scss&
239874
239905
 
239875
239906
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
239876
239907
 
@@ -239883,8 +239914,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
239883
239914
 
239884
239915
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
239885
239916
  components_HoDocvue_type_script_lang_js_,
239886
- HoDocvue_type_template_id_197ca538_render,
239887
- HoDocvue_type_template_id_197ca538_staticRenderFns,
239917
+ HoDocvue_type_template_id_1e9632f5_render,
239918
+ HoDocvue_type_template_id_1e9632f5_staticRenderFns,
239888
239919
  false,
239889
239920
  null,
239890
239921
  null,