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.common.js
CHANGED
|
@@ -11668,6 +11668,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
11668
11668
|
|
|
11669
11669
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11670
11670
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11671
|
+
ctx.posX = svg2pdfOptions.x;
|
|
11672
|
+
ctx.posY = svg2pdfOptions.y;
|
|
11671
11673
|
window.printBlack = hoEditorFactory.printBlack;
|
|
11672
11674
|
|
|
11673
11675
|
if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
|
|
@@ -11676,11 +11678,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
11676
11678
|
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
11677
11679
|
|
|
11678
11680
|
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
11681
|
+
// ctx.posX = 0;
|
|
11682
|
+
// ctx.posY = 1122 / 2;
|
|
11679
11683
|
}
|
|
11680
11684
|
}
|
|
11681
11685
|
|
|
11682
|
-
ctx.posX = svg2pdfOptions.x;
|
|
11683
|
-
ctx.posY = svg2pdfOptions.y;
|
|
11684
11686
|
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));
|
|
11685
11687
|
ctx = null;
|
|
11686
11688
|
_context3.next = 57;
|
|
@@ -22241,7 +22243,7 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
22241
22243
|
/*
|
|
22242
22244
|
* @Author: your name
|
|
22243
22245
|
* @Date: 2021-01-20 10:18:55
|
|
22244
|
-
* @LastEditTime: 2022-
|
|
22246
|
+
* @LastEditTime: 2022-07-08 13:55:38
|
|
22245
22247
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
22246
22248
|
* @Description: In User Settings Edit
|
|
22247
22249
|
* @FilePath: \hoeditor-web\src\editor\dom\domNode\Comment.ts
|
|
@@ -44495,15 +44497,24 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44495
44497
|
}
|
|
44496
44498
|
}, {
|
|
44497
44499
|
key: "removeComment",
|
|
44498
|
-
value: function removeComment(comment) {
|
|
44499
|
-
|
|
44500
|
-
var
|
|
44500
|
+
value: function removeComment(comment, isRecord) {
|
|
44501
|
+
if (isRecord) {
|
|
44502
|
+
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
44503
|
+
var child = this.children[i];
|
|
44501
44504
|
|
|
44502
|
-
|
|
44503
|
-
|
|
44505
|
+
if (child.name && child.name === "record" + comment.id) {
|
|
44506
|
+
this.children.splice(i, 1);
|
|
44507
|
+
}
|
|
44504
44508
|
}
|
|
44505
|
-
}
|
|
44509
|
+
} else {
|
|
44510
|
+
for (var _i = this.children.length - 1; _i >= 0; _i--) {
|
|
44511
|
+
var _child = this.children[_i];
|
|
44506
44512
|
|
|
44513
|
+
if (_child.name && _child.name === comment.id) {
|
|
44514
|
+
this.children.splice(_i, 1);
|
|
44515
|
+
}
|
|
44516
|
+
}
|
|
44517
|
+
}
|
|
44507
44518
|
|
|
44508
44519
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
|
|
44509
44520
|
}
|
|
@@ -44615,12 +44626,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44615
44626
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44616
44627
|
var _tempComment = bottomComments[0];
|
|
44617
44628
|
|
|
44618
|
-
for (var
|
|
44619
|
-
var _stageY2 = getStagePos(bottomComments[
|
|
44629
|
+
for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
|
|
44630
|
+
var _stageY2 = getStagePos(bottomComments[_i2])[1];
|
|
44620
44631
|
|
|
44621
44632
|
if (_stageY2 < minValue) {
|
|
44622
44633
|
minValue = _stageY2;
|
|
44623
|
-
_tempComment = bottomComments[
|
|
44634
|
+
_tempComment = bottomComments[_i2];
|
|
44624
44635
|
}
|
|
44625
44636
|
}
|
|
44626
44637
|
|
|
@@ -44765,13 +44776,14 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44765
44776
|
value: function repaintRecored(comments, comment, nPath, spX, spY) {
|
|
44766
44777
|
var _this5 = this;
|
|
44767
44778
|
|
|
44779
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44768
44780
|
var topComments = new Array();
|
|
44769
44781
|
var bottomComments = new Array();
|
|
44770
44782
|
var tempArr = new Array();
|
|
44771
44783
|
|
|
44772
44784
|
var getStagePos = function getStagePos(comment) {
|
|
44773
44785
|
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44774
|
-
var dline =
|
|
44786
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44775
44787
|
|
|
44776
44788
|
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44777
44789
|
|
|
@@ -44784,7 +44796,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44784
44796
|
var commentY = spY;
|
|
44785
44797
|
comments.forEach(function (value) {
|
|
44786
44798
|
if (value.id !== comment.id) {
|
|
44787
|
-
|
|
44799
|
+
var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
|
|
44800
|
+
|
|
44801
|
+
if (area && area.index == _this5.index) {
|
|
44802
|
+
tempArr.push(value);
|
|
44803
|
+
}
|
|
44788
44804
|
}
|
|
44789
44805
|
});
|
|
44790
44806
|
tempArr.forEach(function (value) {
|
|
@@ -44843,7 +44859,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44843
44859
|
commentY = nodeY;
|
|
44844
44860
|
}
|
|
44845
44861
|
|
|
44846
|
-
_this5.removeComment(commentObj);
|
|
44862
|
+
_this5.removeComment(commentObj, true);
|
|
44847
44863
|
|
|
44848
44864
|
_this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
|
|
44849
44865
|
|
|
@@ -44867,12 +44883,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44867
44883
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44868
44884
|
var _tempComment3 = bottomComments[0];
|
|
44869
44885
|
|
|
44870
|
-
for (var
|
|
44871
|
-
var _stageY4 = getStagePos(bottomComments[
|
|
44886
|
+
for (var _i3 = 1; _i3 < bottomComments.length; _i3++) {
|
|
44887
|
+
var _stageY4 = getStagePos(bottomComments[_i3])[1];
|
|
44872
44888
|
|
|
44873
44889
|
if (_stageY4 < minValue) {
|
|
44874
44890
|
minValue = _stageY4;
|
|
44875
|
-
_tempComment3 = bottomComments[
|
|
44891
|
+
_tempComment3 = bottomComments[_i3];
|
|
44876
44892
|
}
|
|
44877
44893
|
}
|
|
44878
44894
|
|
|
@@ -99547,7 +99563,8 @@ if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.get
|
|
|
99547
99563
|
if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
|
|
99548
99564
|
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
|
|
99549
99565
|
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
|
|
99550
|
-
if(rotation){
|
|
99566
|
+
if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
99567
|
+
x+=width-18;y-=height;this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
|
|
99551
99568
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
99552
99569
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
99553
99570
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -99657,7 +99674,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99657
99674
|
*
|
|
99658
99675
|
* @returns jsPDF
|
|
99659
99676
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99660
|
-
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
|
|
99677
|
+
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
|
|
99661
99678
|
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99662
99679
|
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99663
99680
|
// if(posY) y += posY;
|
|
@@ -100458,7 +100475,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
|
|
|
100458
100475
|
* @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
|
|
100459
100476
|
*/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
|
|
100460
100477
|
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);
|
|
100461
|
-
|
|
100478
|
+
// 自定义修改 修复图片旋转角度错误问题
|
|
100479
|
+
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;// 自定义修改 处理签名图片打印和普通图片打印
|
|
100462
100480
|
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"){// 自定义修改
|
|
100463
100481
|
this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
|
|
100464
100482
|
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;};/**
|
|
@@ -207141,7 +207159,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207141
207159
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207142
207160
|
var ParagraphNode = __webpack_require__(14208);
|
|
207143
207161
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207144
|
-
/* harmony default export */ var version = ('2.0.
|
|
207162
|
+
/* harmony default export */ var version = ('2.0.64');
|
|
207145
207163
|
;// 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&
|
|
207146
207164
|
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)}
|
|
207147
207165
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -220917,10 +220935,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220917
220935
|
|
|
220918
220936
|
for (var j = 0; j < elements.length; j++) {
|
|
220919
220937
|
var element = elements[j];
|
|
220938
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
220939
|
+
var comment = void 0;
|
|
220920
220940
|
|
|
220921
220941
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220922
|
-
|
|
220923
|
-
|
|
220942
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
220943
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
220944
|
+
comments.push(comment);
|
|
220945
|
+
}
|
|
220946
|
+
|
|
220947
|
+
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
220948
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
220924
220949
|
comment.lineHeight = comment.lineHeight - 20;
|
|
220925
220950
|
comments.push(comment);
|
|
220926
220951
|
}
|
|
@@ -220939,9 +220964,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220939
220964
|
|
|
220940
220965
|
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
220941
220966
|
var spY = localPos.y;
|
|
220942
|
-
drawArea.removeComment(comment);
|
|
220967
|
+
drawArea.removeComment(comment, true);
|
|
220943
220968
|
var path = comment.eNode.getNodePath();
|
|
220944
220969
|
|
|
220970
|
+
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
220971
|
+
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
220972
|
+
}
|
|
220973
|
+
|
|
220945
220974
|
if (index === 1) {
|
|
220946
220975
|
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220947
220976
|
}
|