hoeditor-web 2.0.94 → 2.0.95
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 +43 -47
- package/lib/hoeditor.css +2 -827
- package/lib/hoeditor.umd.js +43 -47
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -47450,16 +47450,13 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47450
47450
|
_this._signTime = signTime;
|
|
47451
47451
|
_this._imgSrc = imgSrc;
|
|
47452
47452
|
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
47453
|
-
_this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
47454
|
-
|
|
47455
|
-
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
_this._type = 3;
|
|
47459
|
-
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
47453
|
+
_this._connectChar = connectChar === undefined ? ":" : connectChar; // if (fingerPrintSrc || (imgSrc && !fingerPrintSrc && customProperty && !customProperty.created_date)) { // 用自定义属性区分并兼容旧的患者签名
|
|
47454
|
+
// this._attribute = 1;
|
|
47455
|
+
// this._type = 3;
|
|
47456
|
+
// }
|
|
47457
|
+
// if(attribute == 1) { // 患者签名修改 type == 3
|
|
47460
47458
|
// this._type = 3;
|
|
47461
47459
|
// }
|
|
47462
|
-
|
|
47463
47460
|
|
|
47464
47461
|
if (fingerPrintSrc) {
|
|
47465
47462
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -65724,14 +65721,14 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65724
65721
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(16296);
|
|
65725
65722
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83964);
|
|
65726
65723
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46455);
|
|
65727
|
-
/* harmony import */ var
|
|
65728
|
-
/* harmony import */ var
|
|
65729
|
-
/* harmony import */ var
|
|
65730
|
-
/* harmony import */ var
|
|
65731
|
-
/* harmony import */ var
|
|
65732
|
-
/* harmony import */ var
|
|
65733
|
-
/* harmony import */ var
|
|
65734
|
-
/* harmony import */ var
|
|
65724
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26699);
|
|
65725
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
65726
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32023);
|
|
65727
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
65728
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74916);
|
|
65729
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
65730
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23123);
|
|
65731
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
65735
65732
|
/* harmony import */ var _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69088);
|
|
65736
65733
|
/* harmony import */ var _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78975);
|
|
65737
65734
|
/* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(93777);
|
|
@@ -65753,7 +65750,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65753
65750
|
/*
|
|
65754
65751
|
* @Author: your name
|
|
65755
65752
|
* @Date: 2021-09-01 16:51:49
|
|
65756
|
-
* @LastEditTime: 2022-08-
|
|
65753
|
+
* @LastEditTime: 2022-08-29 10:17:11
|
|
65757
65754
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65758
65755
|
* @Description: In User Settings Edit
|
|
65759
65756
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -65792,9 +65789,22 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65792
65789
|
|
|
65793
65790
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
65794
65791
|
|
|
65795
|
-
_this._textStyle = cbStyle.getStyleKey();
|
|
65792
|
+
_this._textStyle = cbStyle.getStyleKey(); // 处理混乱的类型
|
|
65796
65793
|
|
|
65797
|
-
if (
|
|
65794
|
+
if (node.customProperty && node.customProperty.created_date) {
|
|
65795
|
+
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65796
|
+
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65797
|
+
node.type = 1;
|
|
65798
|
+
_this.type = 1;
|
|
65799
|
+
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65800
|
+
node.type = 2;
|
|
65801
|
+
_this.type = 2;
|
|
65802
|
+
}
|
|
65803
|
+
|
|
65804
|
+
console.warn('医生签名');
|
|
65805
|
+
}
|
|
65806
|
+
|
|
65807
|
+
if (_this.number > 0 && _this.type === 2) {
|
|
65798
65808
|
var signArr = imgSrc.split('\n');
|
|
65799
65809
|
|
|
65800
65810
|
if (signArr.length > 1) {
|
|
@@ -65820,7 +65830,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65820
65830
|
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
65821
65831
|
_this.dWidth = dText.getMeasuredWidth();
|
|
65822
65832
|
} else {
|
|
65823
|
-
if (type === 1) {
|
|
65833
|
+
if (_this.type === 1) {
|
|
65824
65834
|
var scale = _this.dHeight / imgHeight;
|
|
65825
65835
|
|
|
65826
65836
|
if (number === 1) {
|
|
@@ -65835,7 +65845,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65835
65845
|
}
|
|
65836
65846
|
}
|
|
65837
65847
|
|
|
65838
|
-
if (type === 2) {
|
|
65848
|
+
if (_this.type === 2) {
|
|
65839
65849
|
var _signArr = imgSrc.split('\n');
|
|
65840
65850
|
|
|
65841
65851
|
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
@@ -65865,28 +65875,13 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65865
65875
|
}
|
|
65866
65876
|
}
|
|
65867
65877
|
}
|
|
65868
|
-
}
|
|
65878
|
+
} // if ((((imgSrc || fingerPrintSrc) && this.type == 1) || this.type == 3) && node.customProperty && !node.customProperty.created_date) {
|
|
65869
65879
|
|
|
65870
|
-
if ((imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
65871
|
-
// 处理混乱的
|
|
65872
|
-
if (node.customProperty && node.customProperty.abi02) {
|
|
65873
|
-
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65874
|
-
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65875
|
-
node.type = 1;
|
|
65876
|
-
_this.type = 1;
|
|
65877
|
-
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65878
|
-
node.type = 2;
|
|
65879
|
-
_this.type = 2;
|
|
65880
|
-
}
|
|
65881
|
-
|
|
65882
|
-
console.warn('医生签名');
|
|
65883
65880
|
|
|
65884
|
-
|
|
65885
|
-
|
|
65886
|
-
console.warn('患者签名');
|
|
65881
|
+
if (fingerPrintSrc || imgSrc && !fingerPrintSrc && node.customProperty && !node.customProperty.created_date) {
|
|
65882
|
+
console.warn('患者签名');
|
|
65887
65883
|
|
|
65888
|
-
|
|
65889
|
-
}
|
|
65884
|
+
_this.drawWriteSignNode(node);
|
|
65890
65885
|
} else {
|
|
65891
65886
|
console.warn('医生签名');
|
|
65892
65887
|
|
|
@@ -66194,6 +66189,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66194
66189
|
image.src = _this3.imgSrc;
|
|
66195
66190
|
var bitmap = new createjs.Bitmap(image);
|
|
66196
66191
|
bitmap.y = -_this3.dHeight;
|
|
66192
|
+
bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
66197
66193
|
|
|
66198
66194
|
if (_this3.number === 1) {
|
|
66199
66195
|
bitmap.x = 0;
|
|
@@ -214351,9 +214347,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214351
214347
|
var es_number_constructor = __webpack_require__(9653);
|
|
214352
214348
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214353
214349
|
var es_json_stringify = __webpack_require__(38862);
|
|
214354
|
-
;// 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/HoDoc.vue?vue&type=template&id=
|
|
214355
|
-
var
|
|
214356
|
-
var
|
|
214350
|
+
;// 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/HoDoc.vue?vue&type=template&id=5f466836&
|
|
214351
|
+
var HoDocvue_type_template_id_5f466836_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
214352
|
+
var HoDocvue_type_template_id_5f466836_staticRenderFns = []
|
|
214357
214353
|
|
|
214358
214354
|
|
|
214359
214355
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -217994,7 +217990,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217994
217990
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217995
217991
|
var ParagraphNode = __webpack_require__(13880);
|
|
217996
217992
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217997
|
-
/* harmony default export */ var version = ('2.0.
|
|
217993
|
+
/* harmony default export */ var version = ('2.0.95');
|
|
217998
217994
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217999
217995
|
var PoperTipText = __webpack_require__(97824);
|
|
218000
217996
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218480,7 +218476,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218480
218476
|
|
|
218481
218477
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218482
218478
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218483
|
-
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.
|
|
218479
|
+
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218484
218480
|
this.$emit('dblNodeClick', {
|
|
218485
218481
|
node: this.getCurrentSelectNode,
|
|
218486
218482
|
type: 'sign'
|
|
@@ -218773,8 +218769,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218773
218769
|
|
|
218774
218770
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218775
218771
|
components_HoDocvue_type_script_lang_js_,
|
|
218776
|
-
|
|
218777
|
-
|
|
218772
|
+
HoDocvue_type_template_id_5f466836_render,
|
|
218773
|
+
HoDocvue_type_template_id_5f466836_staticRenderFns,
|
|
218778
218774
|
false,
|
|
218779
218775
|
null,
|
|
218780
218776
|
null,
|