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.umd.js
CHANGED
|
@@ -11810,6 +11810,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
11810
11810
|
return link.remove();
|
|
11811
11811
|
}, 100);
|
|
11812
11812
|
} else {
|
|
11813
|
+
if (height <= 560) {
|
|
11814
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11815
|
+
}
|
|
11816
|
+
|
|
11813
11817
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11814
11818
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
|
|
11815
11819
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
@@ -97655,7 +97659,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
97655
97659
|
*/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
|
|
97656
97660
|
setLineWidth(lineWidth);// Set draw color
|
|
97657
97661
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
97658
|
-
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;};/**
|
|
97662
|
+
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;};/**
|
|
97659
97663
|
* Returns a document-specific font key - a label assigned to a
|
|
97660
97664
|
* font name + font type combination at the time the font was added
|
|
97661
97665
|
* to the font inventory.
|
|
@@ -206750,7 +206754,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
206750
206754
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206751
206755
|
var ParagraphNode = __webpack_require__(13880);
|
|
206752
206756
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206753
|
-
/* harmony default export */ var version = ('2.0.
|
|
206757
|
+
/* harmony default export */ var version = ('2.0.57');
|
|
206754
206758
|
;// 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&
|
|
206755
206759
|
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)}
|
|
206756
206760
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -210176,11 +210180,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210176
210180
|
styleobj["font_style"] = "italic";
|
|
210177
210181
|
} else if (tag == "sup") {
|
|
210178
210182
|
var str = styleobj["vertical_align"] || "";
|
|
210179
|
-
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
|
|
210183
|
+
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
|
|
210180
210184
|
} else if (tag == "sub") {
|
|
210181
210185
|
var _str6 = styleobj["vertical_align"] || "";
|
|
210182
210186
|
|
|
210183
|
-
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
|
|
210187
|
+
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
|
|
210184
210188
|
} else if (tag == "u") {
|
|
210185
210189
|
var _str7 = styleobj["text_decoration"] || "";
|
|
210186
210190
|
|
|
@@ -221399,7 +221403,19 @@ var EditController = /*#__PURE__*/function () {
|
|
|
221399
221403
|
if (!hoeditorfactory.pasteBase) {
|
|
221400
221404
|
for (var n = 0; n < nodes.length; n++) {
|
|
221401
221405
|
var node = nodes[n];
|
|
221402
|
-
|
|
221406
|
+
|
|
221407
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
|
|
221408
|
+
var style = hoeditorfactory.docTree.styles[node.styleIndex];
|
|
221409
|
+
|
|
221410
|
+
if (style.combineStyle.script != 0) {
|
|
221411
|
+
var newStyle = style.clone();
|
|
221412
|
+
newStyle.script = style.combineStyle.script;
|
|
221413
|
+
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
221414
|
+
node.styleIndex = newStyleIndex;
|
|
221415
|
+
} else {
|
|
221416
|
+
node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
221417
|
+
}
|
|
221418
|
+
}
|
|
221403
221419
|
|
|
221404
221420
|
if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221405
221421
|
node.paraNo = hoeditorfactory.docTree.curParaNo;
|