hoeditor-web 3.0.89 → 3.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +48 -32
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -37686,29 +37686,41 @@ var Print = /*#__PURE__*/function () {
|
|
|
37686
37686
|
(0,createClass/* default */.Z)(Print, null, [{
|
|
37687
37687
|
key: "openDataUriInWindow",
|
|
37688
37688
|
value: function openDataUriInWindow(PDF, fileName, width, printSilently) {
|
|
37689
|
-
var _window$top, _window$top$chrome;
|
|
37690
37689
|
if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
|
|
37691
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>';
|
|
37692
37691
|
var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
|
|
37693
37692
|
if (nW) {
|
|
37694
37693
|
nW.document.write(htmlForNewWindow);
|
|
37695
37694
|
}
|
|
37696
|
-
} 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) {
|
|
37697
|
-
var _window$top2, _window$top2$chrome;
|
|
37698
|
-
(_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({
|
|
37699
|
-
exec: 'printpdf',
|
|
37700
|
-
data: {
|
|
37701
|
-
base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, '')
|
|
37702
|
-
}
|
|
37703
|
-
});
|
|
37704
37695
|
} else {
|
|
37705
|
-
|
|
37706
|
-
|
|
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
|
+
});
|
|
37707
37723
|
}
|
|
37708
|
-
this.printPage(PDF).catch(function (error) {
|
|
37709
|
-
PDF.autoPrint();
|
|
37710
|
-
PDF.output('dataurlnewwindow');
|
|
37711
|
-
});
|
|
37712
37724
|
}
|
|
37713
37725
|
}
|
|
37714
37726
|
}, {
|
|
@@ -80101,6 +80113,10 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
80101
80113
|
if (this.outline) {
|
|
80102
80114
|
ctx.strokeText(str, 0, 0, docWidth || this._maxWidth);
|
|
80103
80115
|
} else {
|
|
80116
|
+
if (this.font.indexOf("bold") != -1) {
|
|
80117
|
+
ctx.strokeStyle = ctx.fillStyle;
|
|
80118
|
+
ctx.strokeText(str, 0, 0, docWidth || this._maxWidth);
|
|
80119
|
+
}
|
|
80104
80120
|
ctx.fillText(str, 0, 0, docWidth || this._maxWidth);
|
|
80105
80121
|
}
|
|
80106
80122
|
}
|
|
@@ -99364,14 +99380,14 @@ if(image.colorSpace===color_spaces.INDEXED){var objId=this.internal.newObject();
|
|
|
99364
99380
|
putStream({data:arrayBufferToBinaryString(new Uint8Array(image.palette)),objectId:objId});out("endobj");}};var putResourcesCallback=function putResourcesCallback(){var images=this.internal.collections[namespace+"images"];for(var i in images){putImage.call(this,images[i]);}};var putXObjectsDictCallback=function putXObjectsDictCallback(){var images=this.internal.collections[namespace+"images"],out=this.internal.write,image;for(var i in images){image=images[i];out("/I"+image.index,image.objectId,"0","R");}};var checkCompressValue=function checkCompressValue(value){if(value&&typeof value==="string")value=value.toUpperCase();return value in jsPDFAPI.image_compression?value:image_compression.NONE;};var initialize=function initialize(){if(!this.internal.collections[namespace+"images"]){this.internal.collections[namespace+"images"]={};this.internal.events.subscribe("putResources",putResourcesCallback);this.internal.events.subscribe("putXobjectDict",putXObjectsDictCallback);}};var getImages=function getImages(){var images=this.internal.collections[namespace+"images"];initialize.call(this);return images;};var getImageIndex=function getImageIndex(){return Object.keys(this.internal.collections[namespace+"images"]).length;};var notDefined=function notDefined(value){return typeof value==="undefined"||value===null||value.length===0;};var generateAliasFromImageData=function generateAliasFromImageData(imageData){if(typeof imageData==="string"||isArrayBufferView(imageData)){return sHashCode(imageData);}else if(isArrayBufferView(imageData.data)){return sHashCode(imageData.data);}return null;};var isImageTypeSupported=function isImageTypeSupported(type){return typeof jsPDFAPI["process"+type.toUpperCase()]==="function";};var isDOMElement=function isDOMElement(object){return (0,esm_typeof/* default */.Z)(object)==="object"&&object.nodeType===1;};var getImageDataFromElement=function getImageDataFromElement(element,format){//if element is an image which uses data url definition, just return the dataurl
|
|
99365
99381
|
if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.getAttribute("src");//is base64 encoded dataUrl, directly process it
|
|
99366
99382
|
if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
|
|
99367
|
-
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;
|
|
99383
|
+
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(image.exifdata&&image.exifdata.Orientation){rotation={6:270,8:90,// 5: 180,
|
|
99368
99384
|
// 7: 180,
|
|
99369
99385
|
2:270,4:90// 1: 180,
|
|
99370
99386
|
// 3: 180
|
|
99371
99387
|
}[image.exifdata.Orientation];}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
|
|
99372
99388
|
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
|
|
99373
99389
|
if(rotation){if(image.exifdata&&image.exifdata.Orientation){if(image.exifdata.Orientation==8||image.exifdata.Orientation==4){x+=height;y-=width-10;}else if(image.exifdata.Orientation==6||image.exifdata.Orientation==2){y-=width-10;}}else{// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
99374
|
-
x+=Number(coord(width))+20;y-=height;}
|
|
99390
|
+
x+=Number(coord(width))+20;y-=height;}this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
|
|
99375
99391
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
99376
99392
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
99377
99393
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -99938,8 +99954,7 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
|
|
|
99938
99954
|
* A pattern object to use to fill the drawing (not supported by context2d)
|
|
99939
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 ,以适配不支持透明度的打印机
|
|
99940
99956
|
if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
|
|
99941
|
-
var alpha=this.ctx.fillOpacity;
|
|
99942
|
-
this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}}});/**
|
|
99957
|
+
var alpha=this.ctx.fillOpacity;if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(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{this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}}});/**
|
|
99943
99958
|
* Sets or returns the color, gradient, or pattern used for strokes
|
|
99944
99959
|
*
|
|
99945
99960
|
* @name strokeStyle
|
|
@@ -100179,7 +100194,8 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
|
|
|
100179
100194
|
*/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
|
|
100180
100195
|
var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?parseFloat(this.letterSpacing):0.0;//自定义修改 以处理宋体粗体
|
|
100181
100196
|
if(this.font.indexOf("SimSun")>=0&&this.font.indexOf("bold")>=0){//renderingMode: "stroke",
|
|
100182
|
-
|
|
100197
|
+
putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,// renderingMode: "fillThenStroke",
|
|
100198
|
+
charSpace:acharSpace});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
|
|
100183
100199
|
* Draws text on the canvas (no fill)
|
|
100184
100200
|
*
|
|
100185
100201
|
* @name strokeText
|
|
@@ -100308,7 +100324,7 @@ return y;case"alphabetic":default:return y;}};var getTextBottom=function getText
|
|
|
100308
100324
|
* @param counterclockwise
|
|
100309
100325
|
* @param style
|
|
100310
100326
|
* @param isClip
|
|
100311
|
-
*/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);
|
|
100327
|
+
*/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键的问题
|
|
100312
100328
|
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;//自定义修改
|
|
100313
100329
|
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// 自定义修改
|
|
100314
100330
|
});if(needsClipping){this.pdf.restoreGraphicsState();}}}else{// This text is the last element of the page, but it got cut off due to the margin
|
|
@@ -236028,8 +236044,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
236028
236044
|
var es_number_constructor = __webpack_require__(9653);
|
|
236029
236045
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
236030
236046
|
var es_json_stringify = __webpack_require__(38862);
|
|
236031
|
-
;// 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=
|
|
236032
|
-
var
|
|
236047
|
+
;// 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&
|
|
236048
|
+
var HoDocvue_type_template_id_1e9632f5_render = function render() {
|
|
236033
236049
|
var _vm = this,
|
|
236034
236050
|
_c = _vm._self._c;
|
|
236035
236051
|
return _c('div', {
|
|
@@ -236177,7 +236193,7 @@ var HoDocvue_type_template_id_197ca538_render = function render() {
|
|
|
236177
236193
|
}
|
|
236178
236194
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
236179
236195
|
};
|
|
236180
|
-
var
|
|
236196
|
+
var HoDocvue_type_template_id_1e9632f5_staticRenderFns = [];
|
|
236181
236197
|
|
|
236182
236198
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
236183
236199
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -239136,7 +239152,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
239136
239152
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
239137
239153
|
var MarkNode = __webpack_require__(57727);
|
|
239138
239154
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
239139
|
-
/* harmony default export */ var version = ('3.0.
|
|
239155
|
+
/* harmony default export */ var version = ('3.0.91');
|
|
239140
239156
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
239141
239157
|
var PoperTipText = __webpack_require__(36081);
|
|
239142
239158
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -239659,15 +239675,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
239659
239675
|
}
|
|
239660
239676
|
this.poperType = 'datePoper';
|
|
239661
239677
|
} else if (Number(_parentNode.inputFieldType) === 1) {
|
|
239678
|
+
var _node$parentNode$down, _node$parentNode$down2;
|
|
239662
239679
|
if (paintStatus === 0) {
|
|
239663
239680
|
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
239664
239681
|
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
239665
239682
|
return;
|
|
239666
239683
|
}
|
|
239667
239684
|
var text = node.text.replace(/ /g, '');
|
|
239668
|
-
|
|
239669
|
-
|
|
239670
|
-
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) : [];
|
|
239685
|
+
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
|
+
if (text != node.parentNode.name && text !== '' && list.length > 0) {
|
|
239671
239687
|
if (list.filter(function (v) {
|
|
239672
239688
|
return v.text.split('<元素>')[0].includes(text);
|
|
239673
239689
|
}).length === 0) {
|
|
@@ -239881,10 +239897,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
239881
239897
|
});
|
|
239882
239898
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
239883
239899
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
239884
|
-
;// 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=
|
|
239900
|
+
;// 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&
|
|
239885
239901
|
// extracted by mini-css-extract-plugin
|
|
239886
239902
|
|
|
239887
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
239903
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1e9632f5&prod&lang=scss&
|
|
239888
239904
|
|
|
239889
239905
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
239890
239906
|
|
|
@@ -239897,8 +239913,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
239897
239913
|
|
|
239898
239914
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
239899
239915
|
components_HoDocvue_type_script_lang_js_,
|
|
239900
|
-
|
|
239901
|
-
|
|
239916
|
+
HoDocvue_type_template_id_1e9632f5_render,
|
|
239917
|
+
HoDocvue_type_template_id_1e9632f5_staticRenderFns,
|
|
239902
239918
|
false,
|
|
239903
239919
|
null,
|
|
239904
239920
|
null,
|