hoeditor-web 2.0.56 → 2.0.57
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 +21 -5
- package/lib/hoeditor.css +2 -853
- package/lib/hoeditor.umd.js +21 -5
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -11800,6 +11800,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
11800
11800
|
return link.remove();
|
|
11801
11801
|
}, 100);
|
|
11802
11802
|
} else {
|
|
11803
|
+
if (height <= 560) {
|
|
11804
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11805
|
+
}
|
|
11806
|
+
|
|
11803
11807
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11804
11808
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
|
|
11805
11809
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
@@ -97645,7 +97649,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
97645
97649
|
*/return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
|
|
97646
97650
|
setLineWidth(lineWidth);// Set draw color
|
|
97647
97651
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
97648
|
-
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
97652
|
+
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}console.log(page);this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
97649
97653
|
* Returns a document-specific font key - a label assigned to a
|
|
97650
97654
|
* font name + font type combination at the time the font was added
|
|
97651
97655
|
* to the font inventory.
|
|
@@ -206740,7 +206744,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206740
206744
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206741
206745
|
var ParagraphNode = __webpack_require__(14208);
|
|
206742
206746
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206743
|
-
/* harmony default export */ var version = ('2.0.
|
|
206747
|
+
/* harmony default export */ var version = ('2.0.57');
|
|
206744
206748
|
;// 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&
|
|
206745
206749
|
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)}
|
|
206746
206750
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -210166,11 +210170,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210166
210170
|
styleobj["font_style"] = "italic";
|
|
210167
210171
|
} else if (tag == "sup") {
|
|
210168
210172
|
var str = styleobj["vertical_align"] || "";
|
|
210169
|
-
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
|
|
210173
|
+
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
|
|
210170
210174
|
} else if (tag == "sub") {
|
|
210171
210175
|
var _str6 = styleobj["vertical_align"] || "";
|
|
210172
210176
|
|
|
210173
|
-
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
|
|
210177
|
+
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
|
|
210174
210178
|
} else if (tag == "u") {
|
|
210175
210179
|
var _str7 = styleobj["text_decoration"] || "";
|
|
210176
210180
|
|
|
@@ -221389,7 +221393,19 @@ var EditController = /*#__PURE__*/function () {
|
|
|
221389
221393
|
if (!hoeditorfactory.pasteBase) {
|
|
221390
221394
|
for (var n = 0; n < nodes.length; n++) {
|
|
221391
221395
|
var node = nodes[n];
|
|
221392
|
-
|
|
221396
|
+
|
|
221397
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
|
|
221398
|
+
var style = hoeditorfactory.docTree.styles[node.styleIndex];
|
|
221399
|
+
|
|
221400
|
+
if (style.combineStyle.script != 0) {
|
|
221401
|
+
var newStyle = style.clone();
|
|
221402
|
+
newStyle.script = style.combineStyle.script;
|
|
221403
|
+
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
221404
|
+
node.styleIndex = newStyleIndex;
|
|
221405
|
+
} else {
|
|
221406
|
+
node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
221407
|
+
}
|
|
221408
|
+
}
|
|
221393
221409
|
|
|
221394
221410
|
if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221395
221411
|
node.paraNo = hoeditorfactory.docTree.curParaNo;
|