hoeditor-web 3.1.210 → 3.1.212
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.css +1 -15845
- package/lib/hoeditor.umd.js +46 -11
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -113774,6 +113774,14 @@ const textParams = {
|
|
|
113774
113774
|
|
|
113775
113775
|
/***/ }),
|
|
113776
113776
|
|
|
113777
|
+
/***/ 41063:
|
|
113778
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
113779
|
+
|
|
113780
|
+
"use strict";
|
|
113781
|
+
/* harmony default export */ __webpack_exports__.A = ('3.1.212');
|
|
113782
|
+
|
|
113783
|
+
/***/ }),
|
|
113784
|
+
|
|
113777
113785
|
/***/ 31881:
|
|
113778
113786
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
113779
113787
|
|
|
@@ -135630,6 +135638,8 @@ class SeparateCharNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNod
|
|
|
135630
135638
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(58382);
|
|
135631
135639
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57703);
|
|
135632
135640
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29269);
|
|
135641
|
+
/* harmony import */ var _components_version__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41063);
|
|
135642
|
+
|
|
135633
135643
|
|
|
135634
135644
|
|
|
135635
135645
|
|
|
@@ -135709,7 +135719,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135709
135719
|
this._type = type;
|
|
135710
135720
|
this._signor = signor;
|
|
135711
135721
|
this._signTime = signTime;
|
|
135712
|
-
this.
|
|
135722
|
+
this.imgSrc = imgSrc;
|
|
135713
135723
|
this._attribute = attribute === undefined ? 0 : attribute;
|
|
135714
135724
|
this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
135715
135725
|
// if (fingerPrintSrc || (imgSrc && !fingerPrintSrc && customProperty && !customProperty.created_date)) { // 用自定义属性区分并兼容旧的患者签名
|
|
@@ -135904,7 +135914,11 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135904
135914
|
}
|
|
135905
135915
|
set imgSrc(value) {
|
|
135906
135916
|
if (this._imgSrc !== value) {
|
|
135907
|
-
|
|
135917
|
+
if (value.indexOf("http") != -1) {
|
|
135918
|
+
this._imgSrc = value + `?_=${_components_version__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A}`;
|
|
135919
|
+
} else {
|
|
135920
|
+
this._imgSrc = value;
|
|
135921
|
+
}
|
|
135908
135922
|
this.node2DrawNodeRange(0, 0);
|
|
135909
135923
|
}
|
|
135910
135924
|
}
|
|
@@ -153541,7 +153555,9 @@ class DrawSignNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_6__/* .Draw
|
|
|
153541
153555
|
handleOrientation();
|
|
153542
153556
|
}
|
|
153543
153557
|
};
|
|
153544
|
-
image.onerror = () =>
|
|
153558
|
+
image.onerror = () => {
|
|
153559
|
+
hoEditorFactory.loadImageCount--;
|
|
153560
|
+
};
|
|
153545
153561
|
} else {
|
|
153546
153562
|
const signArr = this.imgSrc.split('\n');
|
|
153547
153563
|
if (signArr.length === 1) {
|
|
@@ -223101,8 +223117,8 @@ var entry_lib_SignNode = __webpack_require__(65617);
|
|
|
223101
223117
|
var entry_lib_TextNode = __webpack_require__(32083);
|
|
223102
223118
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
223103
223119
|
var entry_lib_ParagraphNode = __webpack_require__(40504);
|
|
223104
|
-
|
|
223105
|
-
|
|
223120
|
+
// EXTERNAL MODULE: ./src/components/version.ts
|
|
223121
|
+
var entry_lib_version = __webpack_require__(41063);
|
|
223106
223122
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
223107
223123
|
var entry_lib_PoperTipText = __webpack_require__(89316);
|
|
223108
223124
|
;// ./src/components/controls/poperTipText/index.ts
|
|
@@ -223253,7 +223269,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223253
223269
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
223254
223270
|
showDeleteSignMenu: false,
|
|
223255
223271
|
// 审阅模式显示删除签名菜单
|
|
223256
|
-
version: entry_lib_version,
|
|
223272
|
+
version: entry_lib_version/* default */.A,
|
|
223257
223273
|
isHideComments: false,
|
|
223258
223274
|
showCommentsBtn: false,
|
|
223259
223275
|
domRange: {
|
|
@@ -247764,7 +247780,7 @@ for(!/[^\x00-\xFF]/.test(a),b="\x00\x00\x00\x00".slice(a.length%4||4),a+=b,c=[],
|
|
|
247764
247780
|
*/jsPDFAPI.loadImageFile=jsPDFAPI.loadFile;function browserRequest(url,sync,callback){sync=sync===false?false:true;callback=typeof callback==="function"?callback:function(){};var result=undefined;var xhr=function xhr(url,sync,callback){var request=new XMLHttpRequest();var i=0;var sanitizeUnicode=function sanitizeUnicode(data){var dataLength=data.length;var charArray=[];var StringFromCharCode=String.fromCharCode;//Transform Unicode to ASCII
|
|
247765
247781
|
for(i=0;i<dataLength;i+=1){charArray.push(StringFromCharCode(data.charCodeAt(i)&0xff));}return charArray.join("");};request.open("GET",url,!sync);// XHR binary charset opt by Marcus Granado 2006 [http://mgran.blogspot.com]
|
|
247766
247782
|
request.overrideMimeType("text/plain; charset=x-user-defined");if(sync===false){request.onload=function(){if(request.status===200){callback(sanitizeUnicode(this.responseText));}else{callback(undefined);}};}request.send(null);if(sync&&request.status===200){return sanitizeUnicode(request.responseText);}};try{result=xhr(url,sync,callback);// eslint-disable-next-line no-empty
|
|
247767
|
-
}catch(e){}return result;}})(entry_lib_jsPDF.API);/**
|
|
247783
|
+
}catch(e){if(jsPDFAPI.catchErrorBack){jsPDFAPI.catchErrorBack(e);}}return result;}})(entry_lib_jsPDF.API);/**
|
|
247768
247784
|
* jsPDF html PlugIn
|
|
247769
247785
|
*
|
|
247770
247786
|
* @name html
|
|
@@ -249300,6 +249316,8 @@ count=data.readShort();stringOffset=data.readShort();entries=[];for(i=0;0<=count
|
|
|
249300
249316
|
|
|
249301
249317
|
|
|
249302
249318
|
|
|
249319
|
+
|
|
249320
|
+
|
|
249303
249321
|
/*
|
|
249304
249322
|
* @Author: your name
|
|
249305
249323
|
* @Date: 2021-07-31 09:25:57
|
|
@@ -249732,7 +249750,6 @@ class entry_lib_PrintController {
|
|
|
249732
249750
|
* }` 返回打印位置
|
|
249733
249751
|
*/
|
|
249734
249752
|
async mergeXmlToPrintPDFNew(xmlInfoes, callback) {
|
|
249735
|
-
console.time('连续打印总用时');
|
|
249736
249753
|
let list = [];
|
|
249737
249754
|
if (Array.isArray(xmlInfoes.xmlList[0])) {
|
|
249738
249755
|
list = xmlInfoes.xmlList;
|
|
@@ -249753,6 +249770,7 @@ class entry_lib_PrintController {
|
|
|
249753
249770
|
}
|
|
249754
249771
|
hoEditorFactory.printStatus.printMode = 0;
|
|
249755
249772
|
hoEditorFactory.drawTree.paintStatus = entry_lib_DrawTree/* PaintState */.ak.psPreview;
|
|
249773
|
+
console.time('连续打印总用时');
|
|
249756
249774
|
let hPromise = Promise.resolve();
|
|
249757
249775
|
console.time('连续查看病历合并总用时');
|
|
249758
249776
|
hPromise = hPromise.then(res => {
|
|
@@ -249790,6 +249808,12 @@ class entry_lib_PrintController {
|
|
|
249790
249808
|
};
|
|
249791
249809
|
this.PDF = null;
|
|
249792
249810
|
if (hoEditorFactory.isUseImagePrint) {
|
|
249811
|
+
entry_lib_jspdf.API.catchErrorBack = error => {
|
|
249812
|
+
entry_lib_message/* default */.A.error(`打印失败,图片加载错误: ${error}`);
|
|
249813
|
+
if (error) {
|
|
249814
|
+
resolve();
|
|
249815
|
+
}
|
|
249816
|
+
};
|
|
249793
249817
|
this.PDF = new entry_lib_jspdf(options);
|
|
249794
249818
|
}
|
|
249795
249819
|
entry_lib_PrintStatus/* Print */.aS.printToPDF(this._hoEditorFactoryID, this.PDF, undefined, undefined, resolve, positionY, format);
|
|
@@ -249879,6 +249903,15 @@ class entry_lib_PrintController {
|
|
|
249879
249903
|
};
|
|
249880
249904
|
this.PDF = null;
|
|
249881
249905
|
if (hoEditorFactory.isUseImagePrint) {
|
|
249906
|
+
entry_lib_jspdf.API.catchErrorBack = error => {
|
|
249907
|
+
entry_lib_message/* default */.A.error(`打印失败,图片加载错误: ${error}`);
|
|
249908
|
+
if (error) {
|
|
249909
|
+
callback && callback({});
|
|
249910
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
249911
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
249912
|
+
this.clearJsPDF();
|
|
249913
|
+
}
|
|
249914
|
+
};
|
|
249882
249915
|
this.PDF = new entry_lib_jspdf(options);
|
|
249883
249916
|
} else {
|
|
249884
249917
|
this.PDF = document.createElement('div');
|
|
@@ -251004,7 +251037,7 @@ var entry_lib_DocController = __webpack_require__(5011);
|
|
|
251004
251037
|
|
|
251005
251038
|
|
|
251006
251039
|
class entry_lib_HOEditorFactory {
|
|
251007
|
-
//
|
|
251040
|
+
// 错误图片地址
|
|
251008
251041
|
/**
|
|
251009
251042
|
* Getter hoLocalStorage
|
|
251010
251043
|
* @return {HoLocalStorage}
|
|
@@ -251253,6 +251286,8 @@ class entry_lib_HOEditorFactory {
|
|
|
251253
251286
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "emitClickEvent", false);
|
|
251254
251287
|
// 点击元素是否触发click事件
|
|
251255
251288
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableImage", false);
|
|
251289
|
+
// 修复表格图片卡死问题
|
|
251290
|
+
(0,entry_lib_esm_defineProperty/* default */.A)(this, "errorImgurl", []);
|
|
251256
251291
|
this._hoEditorFactoryId = id;
|
|
251257
251292
|
}
|
|
251258
251293
|
get defaultLineHeight() {
|
|
@@ -252116,7 +252151,7 @@ var entry_lib_commondata = __webpack_require__(92611);
|
|
|
252116
252151
|
data() {
|
|
252117
252152
|
return {
|
|
252118
252153
|
defaultDocProperty: {
|
|
252119
|
-
version: entry_lib_version,
|
|
252154
|
+
version: entry_lib_version/* default */.A,
|
|
252120
252155
|
//版本号
|
|
252121
252156
|
type: 0,
|
|
252122
252157
|
//类型
|
|
@@ -259898,7 +259933,7 @@ var entry_lib_popper = __webpack_require__(98234);
|
|
|
259898
259933
|
data() {
|
|
259899
259934
|
return {
|
|
259900
259935
|
mouseRightMenuPopup: null,
|
|
259901
|
-
versions: entry_lib_version,
|
|
259936
|
+
versions: entry_lib_version/* default */.A,
|
|
259902
259937
|
isDeisgn: 0,
|
|
259903
259938
|
defaultTable: {
|
|
259904
259939
|
insertTable: true,
|