hoeditor-web 2.0.63 → 2.0.64
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 +54 -25
- package/lib/hoeditor.css +2 -855
- package/lib/hoeditor.umd.js +54 -25
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -11678,6 +11678,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
11678
11678
|
|
|
11679
11679
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11680
11680
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11681
|
+
ctx.posX = svg2pdfOptions.x;
|
|
11682
|
+
ctx.posY = svg2pdfOptions.y;
|
|
11681
11683
|
window.printBlack = hoEditorFactory.printBlack;
|
|
11682
11684
|
|
|
11683
11685
|
if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
|
|
@@ -11686,11 +11688,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
11686
11688
|
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
11687
11689
|
|
|
11688
11690
|
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
11691
|
+
// ctx.posX = 0;
|
|
11692
|
+
// ctx.posY = 1122 / 2;
|
|
11689
11693
|
}
|
|
11690
11694
|
}
|
|
11691
11695
|
|
|
11692
|
-
ctx.posX = svg2pdfOptions.x;
|
|
11693
|
-
ctx.posY = svg2pdfOptions.y;
|
|
11694
11696
|
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));
|
|
11695
11697
|
ctx = null;
|
|
11696
11698
|
_context3.next = 57;
|
|
@@ -22251,7 +22253,7 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
22251
22253
|
/*
|
|
22252
22254
|
* @Author: your name
|
|
22253
22255
|
* @Date: 2021-01-20 10:18:55
|
|
22254
|
-
* @LastEditTime: 2022-
|
|
22256
|
+
* @LastEditTime: 2022-07-08 13:55:38
|
|
22255
22257
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
22256
22258
|
* @Description: In User Settings Edit
|
|
22257
22259
|
* @FilePath: \hoeditor-web\src\editor\dom\domNode\Comment.ts
|
|
@@ -44505,15 +44507,24 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44505
44507
|
}
|
|
44506
44508
|
}, {
|
|
44507
44509
|
key: "removeComment",
|
|
44508
|
-
value: function removeComment(comment) {
|
|
44509
|
-
|
|
44510
|
-
var
|
|
44510
|
+
value: function removeComment(comment, isRecord) {
|
|
44511
|
+
if (isRecord) {
|
|
44512
|
+
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
44513
|
+
var child = this.children[i];
|
|
44511
44514
|
|
|
44512
|
-
|
|
44513
|
-
|
|
44515
|
+
if (child.name && child.name === "record" + comment.id) {
|
|
44516
|
+
this.children.splice(i, 1);
|
|
44517
|
+
}
|
|
44514
44518
|
}
|
|
44515
|
-
}
|
|
44519
|
+
} else {
|
|
44520
|
+
for (var _i = this.children.length - 1; _i >= 0; _i--) {
|
|
44521
|
+
var _child = this.children[_i];
|
|
44516
44522
|
|
|
44523
|
+
if (_child.name && _child.name === comment.id) {
|
|
44524
|
+
this.children.splice(_i, 1);
|
|
44525
|
+
}
|
|
44526
|
+
}
|
|
44527
|
+
}
|
|
44517
44528
|
|
|
44518
44529
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
|
|
44519
44530
|
}
|
|
@@ -44625,12 +44636,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44625
44636
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44626
44637
|
var _tempComment = bottomComments[0];
|
|
44627
44638
|
|
|
44628
|
-
for (var
|
|
44629
|
-
var _stageY2 = getStagePos(bottomComments[
|
|
44639
|
+
for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
|
|
44640
|
+
var _stageY2 = getStagePos(bottomComments[_i2])[1];
|
|
44630
44641
|
|
|
44631
44642
|
if (_stageY2 < minValue) {
|
|
44632
44643
|
minValue = _stageY2;
|
|
44633
|
-
_tempComment = bottomComments[
|
|
44644
|
+
_tempComment = bottomComments[_i2];
|
|
44634
44645
|
}
|
|
44635
44646
|
}
|
|
44636
44647
|
|
|
@@ -44775,13 +44786,14 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44775
44786
|
value: function repaintRecored(comments, comment, nPath, spX, spY) {
|
|
44776
44787
|
var _this5 = this;
|
|
44777
44788
|
|
|
44789
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44778
44790
|
var topComments = new Array();
|
|
44779
44791
|
var bottomComments = new Array();
|
|
44780
44792
|
var tempArr = new Array();
|
|
44781
44793
|
|
|
44782
44794
|
var getStagePos = function getStagePos(comment) {
|
|
44783
44795
|
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44784
|
-
var dline =
|
|
44796
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44785
44797
|
|
|
44786
44798
|
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44787
44799
|
|
|
@@ -44794,7 +44806,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44794
44806
|
var commentY = spY;
|
|
44795
44807
|
comments.forEach(function (value) {
|
|
44796
44808
|
if (value.id !== comment.id) {
|
|
44797
|
-
|
|
44809
|
+
var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
|
|
44810
|
+
|
|
44811
|
+
if (area && area.index == _this5.index) {
|
|
44812
|
+
tempArr.push(value);
|
|
44813
|
+
}
|
|
44798
44814
|
}
|
|
44799
44815
|
});
|
|
44800
44816
|
tempArr.forEach(function (value) {
|
|
@@ -44853,7 +44869,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44853
44869
|
commentY = nodeY;
|
|
44854
44870
|
}
|
|
44855
44871
|
|
|
44856
|
-
_this5.removeComment(commentObj);
|
|
44872
|
+
_this5.removeComment(commentObj, true);
|
|
44857
44873
|
|
|
44858
44874
|
_this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
|
|
44859
44875
|
|
|
@@ -44877,12 +44893,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44877
44893
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44878
44894
|
var _tempComment3 = bottomComments[0];
|
|
44879
44895
|
|
|
44880
|
-
for (var
|
|
44881
|
-
var _stageY4 = getStagePos(bottomComments[
|
|
44896
|
+
for (var _i3 = 1; _i3 < bottomComments.length; _i3++) {
|
|
44897
|
+
var _stageY4 = getStagePos(bottomComments[_i3])[1];
|
|
44882
44898
|
|
|
44883
44899
|
if (_stageY4 < minValue) {
|
|
44884
44900
|
minValue = _stageY4;
|
|
44885
|
-
_tempComment3 = bottomComments[
|
|
44901
|
+
_tempComment3 = bottomComments[_i3];
|
|
44886
44902
|
}
|
|
44887
44903
|
}
|
|
44888
44904
|
|
|
@@ -99557,7 +99573,8 @@ if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.get
|
|
|
99557
99573
|
if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
|
|
99558
99574
|
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
|
|
99559
99575
|
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
|
|
99560
|
-
if(rotation){
|
|
99576
|
+
if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
99577
|
+
x+=width-18;y-=height;this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
|
|
99561
99578
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
99562
99579
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
99563
99580
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -99667,7 +99684,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99667
99684
|
*
|
|
99668
99685
|
* @returns jsPDF
|
|
99669
99686
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99670
|
-
var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
|
|
99687
|
+
var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}console.log(rotation);if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
|
|
99671
99688
|
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99672
99689
|
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99673
99690
|
// if(posY) y += posY;
|
|
@@ -100468,7 +100485,8 @@ a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isN
|
|
|
100468
100485
|
* @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
|
|
100469
100486
|
*/Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img);var factorX=1;var factorY=1;var clipFactorX=1;var clipFactorY=1;if(typeof swidth!=="undefined"&&typeof width!=="undefined"){clipFactorX=width/swidth;clipFactorY=height/sheight;factorX=imageProperties.width/swidth*width/swidth;factorY=imageProperties.height/sheight*height/sheight;}//is sx and sy are set and x and y not, set x and y with values of sx and sy
|
|
100470
100487
|
if(typeof x==="undefined"){x=sx;y=sy;sx=0;sy=0;}if(typeof swidth!=="undefined"&&typeof width==="undefined"){width=swidth;height=sheight;}if(typeof swidth==="undefined"&&typeof width==="undefined"){width=imageProperties.width;height=imageProperties.height;}var decomposedTransformationMatrix=this.ctx.transform.decompose();// console.log("transform.decompose",decomposedTransformationMatrix.scale);
|
|
100471
|
-
|
|
100488
|
+
// 自定义修改 修复图片旋转角度错误问题
|
|
100489
|
+
var angle=rad2deg(decomposedTransformationMatrix.rotate.rotation);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
|
|
100472
100490
|
if(img.nodeName&&img.nodeName=="CANVAS"){xRect=matrix.applyToRectangle(new Rectangle(x+this.posX-sx*clipFactorX,y+this.posY-sy*clipFactorY,swidth*factorX,sheight*factorY));}else{xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY));}var pageArray=getPagesByPath.call(this,xRect);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath;if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.addImage(img,"JPEG",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,null,angle);if(needsClipping){this.pdf.restoreGraphicsState();}}}else{if(img.nodeName&&img.nodeName=="CANVAS"){// 自定义修改
|
|
100473
100491
|
this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
|
|
100474
100492
|
this.pdf.addImage(img,"JPEG",xRect.x+this.posX,xRect.y+this.posY,xRect.w,xRect.h,null,null,angle,this.posX,this.posY);}}};var getPagesByPath=function getPagesByPath(path,pageWrapX,pageWrapY){var result=[];pageWrapX=pageWrapX||this.pdf.internal.pageSize.width;pageWrapY=pageWrapY||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yOffset=this.posY+this.ctx.prevPageLastElemOffset;switch(path.type){default:case"mt":case"lt":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);break;case"arc":result.push(Math.floor((path.y+yOffset-path.radius)/pageWrapY)+1);result.push(Math.floor((path.y+yOffset+path.radius)/pageWrapY)+1);break;case"qct":var rectOfQuadraticCurve=getQuadraticCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x,path.y);result.push(Math.floor((rectOfQuadraticCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfQuadraticCurve.y+rectOfQuadraticCurve.h+yOffset)/pageWrapY)+1);break;case"bct":var rectOfBezierCurve=getBezierCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x2,path.y2,path.x,path.y);result.push(Math.floor((rectOfBezierCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfBezierCurve.y+rectOfBezierCurve.h+yOffset)/pageWrapY)+1);break;case"rect":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);result.push(Math.floor((path.y+path.h+yOffset)/pageWrapY)+1);}for(var i=0;i<result.length;i+=1){while(this.pdf.internal.getNumberOfPages()<result[i]){addPage.call(this);}}return result;};var addPage=function addPage(){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var font=this.font;var lineCap=this.lineCap;var lineWidth=this.lineWidth;var lineJoin=this.lineJoin;this.pdf.addPage();this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.font=font;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;};var pathPositionRedo=function pathPositionRedo(paths,x,y){for(var i=0;i<paths.length;i++){switch(paths[i].type){case"bct":paths[i].x2+=x;paths[i].y2+=y;case"qct":paths[i].x1+=x;paths[i].y1+=y;case"mt":case"lt":case"arc":default:paths[i].x+=x;paths[i].y+=y;}}return paths;};var sortPages=function sortPages(pages){return pages.sort(function(a,b){return a-b;});};var pathPreProcess=function pathPreProcess(rule,isClip){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var lineCap=this.lineCap;var oldLineWidth=this.lineWidth;var lineWidth=Math.abs(oldLineWidth*this.ctx.transform.scaleX);var lineJoin=this.lineJoin;var origPath=JSON.parse(JSON.stringify(this.path));var xPath=JSON.parse(JSON.stringify(this.path));var clipPath;var tmpPath;var pages=[];for(var i=0;i<xPath.length;i++){if(typeof xPath[i].x!=="undefined"){var page=getPagesByPath.call(this,xPath[i]);for(var ii=0;ii<page.length;ii+=1){if(pages.indexOf(page[ii])===-1){pages.push(page[ii]);}}}}for(var j=0;j<pages.length;j++){while(this.pdf.internal.getNumberOfPages()<pages[j]){addPage.call(this);}}sortPages(pages);if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var k=min;k<max+1;k++){this.pdf.setPage(k);this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=k===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=k===1?0:firstPageHeight+(k-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,rule,true);this.path=tmpPaths;}tmpPath=JSON.parse(JSON.stringify(origPath));this.path=pathPositionRedo(tmpPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);if(isClip===false||k===0){var needsClipping=(k>min||k<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}drawPaths.call(this,rule,isClip);if(needsClipping){this.pdf.restoreGraphicsState();}}this.lineWidth=oldLineWidth;}}else{this.lineWidth=lineWidth;drawPaths.call(this,rule,isClip);this.lineWidth=oldLineWidth;}this.path=origPath;};/**
|
|
@@ -207151,7 +207169,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207151
207169
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207152
207170
|
var ParagraphNode = __webpack_require__(13880);
|
|
207153
207171
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207154
|
-
/* harmony default export */ var version = ('2.0.
|
|
207172
|
+
/* harmony default export */ var version = ('2.0.64');
|
|
207155
207173
|
;// 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&
|
|
207156
207174
|
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)}
|
|
207157
207175
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -220927,10 +220945,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220927
220945
|
|
|
220928
220946
|
for (var j = 0; j < elements.length; j++) {
|
|
220929
220947
|
var element = elements[j];
|
|
220948
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
220949
|
+
var comment = void 0;
|
|
220930
220950
|
|
|
220931
220951
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220932
|
-
|
|
220933
|
-
|
|
220952
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
220953
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
220954
|
+
comments.push(comment);
|
|
220955
|
+
}
|
|
220956
|
+
|
|
220957
|
+
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
220958
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
220934
220959
|
comment.lineHeight = comment.lineHeight - 20;
|
|
220935
220960
|
comments.push(comment);
|
|
220936
220961
|
}
|
|
@@ -220949,9 +220974,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220949
220974
|
|
|
220950
220975
|
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
220951
220976
|
var spY = localPos.y;
|
|
220952
|
-
drawArea.removeComment(comment);
|
|
220977
|
+
drawArea.removeComment(comment, true);
|
|
220953
220978
|
var path = comment.eNode.getNodePath();
|
|
220954
220979
|
|
|
220980
|
+
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
220981
|
+
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
220982
|
+
}
|
|
220983
|
+
|
|
220955
220984
|
if (index === 1) {
|
|
220956
220985
|
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220957
220986
|
}
|