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.common.js
CHANGED
|
@@ -47440,16 +47440,13 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47440
47440
|
_this._signTime = signTime;
|
|
47441
47441
|
_this._imgSrc = imgSrc;
|
|
47442
47442
|
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
47443
|
-
_this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
47444
|
-
|
|
47445
|
-
|
|
47446
|
-
|
|
47447
|
-
|
|
47448
|
-
_this._type = 3;
|
|
47449
|
-
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
47443
|
+
_this._connectChar = connectChar === undefined ? ":" : connectChar; // if (fingerPrintSrc || (imgSrc && !fingerPrintSrc && customProperty && !customProperty.created_date)) { // 用自定义属性区分并兼容旧的患者签名
|
|
47444
|
+
// this._attribute = 1;
|
|
47445
|
+
// this._type = 3;
|
|
47446
|
+
// }
|
|
47447
|
+
// if(attribute == 1) { // 患者签名修改 type == 3
|
|
47450
47448
|
// this._type = 3;
|
|
47451
47449
|
// }
|
|
47452
|
-
|
|
47453
47450
|
|
|
47454
47451
|
if (fingerPrintSrc) {
|
|
47455
47452
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -65714,14 +65711,14 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65714
65711
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22342);
|
|
65715
65712
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
|
|
65716
65713
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
|
|
65717
|
-
/* harmony import */ var
|
|
65718
|
-
/* harmony import */ var
|
|
65719
|
-
/* harmony import */ var
|
|
65720
|
-
/* harmony import */ var
|
|
65721
|
-
/* harmony import */ var
|
|
65722
|
-
/* harmony import */ var
|
|
65723
|
-
/* harmony import */ var
|
|
65724
|
-
/* harmony import */ var
|
|
65714
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26699);
|
|
65715
|
+
/* 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__);
|
|
65716
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32023);
|
|
65717
|
+
/* 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__);
|
|
65718
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74916);
|
|
65719
|
+
/* 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__);
|
|
65720
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23123);
|
|
65721
|
+
/* 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__);
|
|
65725
65722
|
/* harmony import */ var _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15798);
|
|
65726
65723
|
/* harmony import */ var _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34450);
|
|
65727
65724
|
/* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24113);
|
|
@@ -65743,7 +65740,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65743
65740
|
/*
|
|
65744
65741
|
* @Author: your name
|
|
65745
65742
|
* @Date: 2021-09-01 16:51:49
|
|
65746
|
-
* @LastEditTime: 2022-08-
|
|
65743
|
+
* @LastEditTime: 2022-08-29 10:17:11
|
|
65747
65744
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65748
65745
|
* @Description: In User Settings Edit
|
|
65749
65746
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -65782,9 +65779,22 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65782
65779
|
|
|
65783
65780
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
65784
65781
|
|
|
65785
|
-
_this._textStyle = cbStyle.getStyleKey();
|
|
65782
|
+
_this._textStyle = cbStyle.getStyleKey(); // 处理混乱的类型
|
|
65786
65783
|
|
|
65787
|
-
if (
|
|
65784
|
+
if (node.customProperty && node.customProperty.created_date) {
|
|
65785
|
+
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65786
|
+
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65787
|
+
node.type = 1;
|
|
65788
|
+
_this.type = 1;
|
|
65789
|
+
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65790
|
+
node.type = 2;
|
|
65791
|
+
_this.type = 2;
|
|
65792
|
+
}
|
|
65793
|
+
|
|
65794
|
+
console.warn('医生签名');
|
|
65795
|
+
}
|
|
65796
|
+
|
|
65797
|
+
if (_this.number > 0 && _this.type === 2) {
|
|
65788
65798
|
var signArr = imgSrc.split('\n');
|
|
65789
65799
|
|
|
65790
65800
|
if (signArr.length > 1) {
|
|
@@ -65810,7 +65820,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65810
65820
|
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
65811
65821
|
_this.dWidth = dText.getMeasuredWidth();
|
|
65812
65822
|
} else {
|
|
65813
|
-
if (type === 1) {
|
|
65823
|
+
if (_this.type === 1) {
|
|
65814
65824
|
var scale = _this.dHeight / imgHeight;
|
|
65815
65825
|
|
|
65816
65826
|
if (number === 1) {
|
|
@@ -65825,7 +65835,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65825
65835
|
}
|
|
65826
65836
|
}
|
|
65827
65837
|
|
|
65828
|
-
if (type === 2) {
|
|
65838
|
+
if (_this.type === 2) {
|
|
65829
65839
|
var _signArr = imgSrc.split('\n');
|
|
65830
65840
|
|
|
65831
65841
|
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
@@ -65855,28 +65865,13 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65855
65865
|
}
|
|
65856
65866
|
}
|
|
65857
65867
|
}
|
|
65858
|
-
}
|
|
65868
|
+
} // if ((((imgSrc || fingerPrintSrc) && this.type == 1) || this.type == 3) && node.customProperty && !node.customProperty.created_date) {
|
|
65859
65869
|
|
|
65860
|
-
if ((imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
65861
|
-
// 处理混乱的
|
|
65862
|
-
if (node.customProperty && node.customProperty.abi02) {
|
|
65863
|
-
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65864
|
-
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65865
|
-
node.type = 1;
|
|
65866
|
-
_this.type = 1;
|
|
65867
|
-
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65868
|
-
node.type = 2;
|
|
65869
|
-
_this.type = 2;
|
|
65870
|
-
}
|
|
65871
|
-
|
|
65872
|
-
console.warn('医生签名');
|
|
65873
65870
|
|
|
65874
|
-
|
|
65875
|
-
|
|
65876
|
-
console.warn('患者签名');
|
|
65871
|
+
if (fingerPrintSrc || imgSrc && !fingerPrintSrc && node.customProperty && !node.customProperty.created_date) {
|
|
65872
|
+
console.warn('患者签名');
|
|
65877
65873
|
|
|
65878
|
-
|
|
65879
|
-
}
|
|
65874
|
+
_this.drawWriteSignNode(node);
|
|
65880
65875
|
} else {
|
|
65881
65876
|
console.warn('医生签名');
|
|
65882
65877
|
|
|
@@ -66184,6 +66179,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66184
66179
|
image.src = _this3.imgSrc;
|
|
66185
66180
|
var bitmap = new createjs.Bitmap(image);
|
|
66186
66181
|
bitmap.y = -_this3.dHeight;
|
|
66182
|
+
bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
66187
66183
|
|
|
66188
66184
|
if (_this3.number === 1) {
|
|
66189
66185
|
bitmap.x = 0;
|
|
@@ -214341,9 +214337,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214341
214337
|
var es_number_constructor = __webpack_require__(9653);
|
|
214342
214338
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214343
214339
|
var es_json_stringify = __webpack_require__(38862);
|
|
214344
|
-
;// 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=
|
|
214345
|
-
var
|
|
214346
|
-
var
|
|
214340
|
+
;// 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&
|
|
214341
|
+
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)}
|
|
214342
|
+
var HoDocvue_type_template_id_5f466836_staticRenderFns = []
|
|
214347
214343
|
|
|
214348
214344
|
|
|
214349
214345
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -217984,7 +217980,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217984
217980
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217985
217981
|
var ParagraphNode = __webpack_require__(14208);
|
|
217986
217982
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217987
|
-
/* harmony default export */ var version = ('2.0.
|
|
217983
|
+
/* harmony default export */ var version = ('2.0.95');
|
|
217988
217984
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217989
217985
|
var PoperTipText = __webpack_require__(91831);
|
|
217990
217986
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218470,7 +218466,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218470
218466
|
|
|
218471
218467
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218472
218468
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218473
|
-
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.
|
|
218469
|
+
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218474
218470
|
this.$emit('dblNodeClick', {
|
|
218475
218471
|
node: this.getCurrentSelectNode,
|
|
218476
218472
|
type: 'sign'
|
|
@@ -218763,8 +218759,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218763
218759
|
|
|
218764
218760
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218765
218761
|
components_HoDocvue_type_script_lang_js_,
|
|
218766
|
-
|
|
218767
|
-
|
|
218762
|
+
HoDocvue_type_template_id_5f466836_render,
|
|
218763
|
+
HoDocvue_type_template_id_5f466836_staticRenderFns,
|
|
218768
218764
|
false,
|
|
218769
218765
|
null,
|
|
218770
218766
|
null,
|