hoeditor-web 3.0.47 → 3.0.49

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.
@@ -14808,7 +14808,7 @@ var component = (0,componentNormalizer/* default */.Z)(
14808
14808
 
14809
14809
  /***/ }),
14810
14810
 
14811
- /***/ 54673:
14811
+ /***/ 37930:
14812
14812
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
14813
14813
 
14814
14814
  "use strict";
@@ -14822,7 +14822,7 @@ __webpack_require__.d(__webpack_exports__, {
14822
14822
 
14823
14823
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
14824
14824
  var es_function_name = __webpack_require__(68309);
14825
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=3db202b4&
14825
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
14826
14826
 
14827
14827
  var render = function render() {
14828
14828
  var _vm = this,
@@ -14865,7 +14865,7 @@ var render = function render() {
14865
14865
  })], 1), _c('li', {
14866
14866
  staticClass: "control-item",
14867
14867
  staticStyle: {
14868
- "align-items": "baseline"
14868
+ "align-items": "flex-start"
14869
14869
  }
14870
14870
  }, [_c('span', {
14871
14871
  staticClass: "label"
@@ -14891,13 +14891,17 @@ var render = function render() {
14891
14891
  }
14892
14892
  }, [_vm._v("医生签名")]), _c('a-radio', {
14893
14893
  attrs: {
14894
- "value": 3
14894
+ "value": 9
14895
14895
  }
14896
14896
  }, [_vm._v("自定义医生签名")]), _c('a-radio', {
14897
14897
  attrs: {
14898
14898
  "value": 2
14899
14899
  }
14900
- }, [_vm._v("自定义CA签名(默认带出职称)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
14900
+ }, [_vm._v("自定义CA签名(默认带出职称)")]), _c('a-radio', {
14901
+ attrs: {
14902
+ "value": 3
14903
+ }
14904
+ }, [_vm._v("自定义CA签名(默认带出职称和日期)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
14901
14905
  staticClass: "control-item"
14902
14906
  }, [_c('span', {
14903
14907
  staticClass: "label"
@@ -14913,7 +14917,7 @@ var render = function render() {
14913
14917
  },
14914
14918
  expression: "connectChar"
14915
14919
  }
14916
- })], 1) : _vm._e(), _vm.signType >= 3 ? [_c('li', {
14920
+ })], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
14917
14921
  staticClass: "control-item"
14918
14922
  }, [_c('span', {
14919
14923
  staticClass: "label"
@@ -15074,7 +15078,7 @@ var render = function render() {
15074
15078
  },
15075
15079
  expression: "allowEditSignTime"
15076
15080
  }
15077
- }, [_vm._v("允许修改签名时间")])], 1)] : _vm._e()], 2), _vm.signType >= 3 ? _c('div', {
15081
+ }, [_vm._v("允许修改签名时间")])], 1)] : _vm._e()], 2), _vm.signType >= 9 ? _c('div', {
15078
15082
  staticClass: "section-right"
15079
15083
  }, [_c('div', {
15080
15084
  staticClass: "custom-format-tool-box"
@@ -15176,7 +15180,7 @@ var render = function render() {
15176
15180
  };
15177
15181
  var staticRenderFns = [];
15178
15182
 
15179
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=3db202b4&
15183
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
15180
15184
 
15181
15185
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
15182
15186
  var style = __webpack_require__(94310);
@@ -15262,13 +15266,15 @@ var SignNode = __webpack_require__(24701);
15262
15266
  this.name = node.name;
15263
15267
  if (node.attribute == 2) {
15264
15268
  this.signType = 2; // 自定义ca签名(带职称)
15269
+ } else if (node.attribute == 3) {
15270
+ this.signType = 3; // 自定义ca签名(带职称)
15265
15271
  } else if (node.attribute == 1) {
15266
15272
  this.signType = 1; // 患者签名
15267
15273
  } else {
15268
15274
  if (node.signType == 0) {
15269
15275
  this.signType = 0; // 普通医生签名
15270
15276
  } else {
15271
- this.signType = 3; // 自定义医生签名
15277
+ this.signType = 9; // 自定义医生签名
15272
15278
  }
15273
15279
  }
15274
15280
 
@@ -15342,12 +15348,15 @@ var SignNode = __webpack_require__(24701);
15342
15348
  insertSign: function insertSign() {
15343
15349
  var customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
15344
15350
  if (this.controlStatus === 'add') {
15345
- if (this.signType === 3) {
15351
+ if (this.signType === 9) {
15346
15352
  // 自定义多人签名
15347
15353
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义医生签名', 1, this.signFormat, this.signTimeFormat, customProperty, this.connectMode, this.isFront, this.allowEditSignTime, 0);
15348
15354
  } else if (this.signType === 2) {
15349
15355
  // 自定义多人签名
15350
15356
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
15357
+ } else if (this.signType === 3) {
15358
+ // 自定义多人签名
15359
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
15351
15360
  } else {
15352
15361
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
15353
15362
  this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType);
@@ -15355,8 +15364,8 @@ var SignNode = __webpack_require__(24701);
15355
15364
  } else if (this.controlStatus === 'update') {
15356
15365
  var node = this.getCurrentSelectNode();
15357
15366
  var _name = this.name ? this.name : node.name;
15358
- var attribute = this.signType === 3 ? 0 : this.signType;
15359
- var signType = this.signType == 3 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
15367
+ var attribute = this.signType === 9 ? 0 : this.signType;
15368
+ var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
15360
15369
  this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat);
15361
15370
  }
15362
15371
  this.handleClose();
@@ -15369,10 +15378,10 @@ var SignNode = __webpack_require__(24701);
15369
15378
  });
15370
15379
  ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
15371
15380
  /* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
15372
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=3db202b4&prod&lang=scss&
15381
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15373
15382
  // extracted by mini-css-extract-plugin
15374
15383
 
15375
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=3db202b4&prod&lang=scss&
15384
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15376
15385
 
15377
15386
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
15378
15387
  var componentNormalizer = __webpack_require__(70713);
@@ -38127,9 +38136,6 @@ var DocController = /*#__PURE__*/function () {
38127
38136
  if (keyValue === "Delete") {
38128
38137
  this.deleteTextAfterPath(startPath);
38129
38138
  }
38130
- setTimeout(function () {
38131
- hoEditorFactory.vueController.getCaretPreviousText();
38132
- }, 0);
38133
38139
  }
38134
38140
  }
38135
38141
  /**
@@ -47173,6 +47179,9 @@ var CombineStyle = /*#__PURE__*/function () {
47173
47179
  //初号
47174
47180
  fontHeight = hoeditfactory.unitConvert.mmConversionPx(14.82, false);
47175
47181
  }
47182
+ if (fontHeight == 0) {
47183
+ fontHeight = this.getFontHeightByFontSize(hoeditfactory.pageProperty.fontSize);
47184
+ }
47176
47185
  return fontHeight;
47177
47186
  }
47178
47187
  }], [{
@@ -58372,9 +58381,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58372
58381
  //指纹
58373
58382
  //样式
58374
58383
  // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
58375
- //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
58384
+ //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)
58376
58385
  //自定义CA签名连接符
58377
- //其它属性{"title":"职称"}
58386
+ //其它属性{"title":"职称","time":"签名日期"}
58378
58387
  function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties) {
58379
58388
  var _this;
58380
58389
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
@@ -68469,7 +68478,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
68469
68478
  this.clearOverDitem(dlines, nextDline + 1);
68470
68479
  break;
68471
68480
  }
68472
- dTop += dTable.paragraphNode.combineParagraph.lineSpace;
68481
+ // dTop += dTable.paragraphNode.combineParagraph.lineSpace;
68473
68482
  if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
68474
68483
  this._docHeight = dTop;
68475
68484
  this._usedHeight = dTop;
@@ -75848,7 +75857,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
75848
75857
  /*
75849
75858
  * @Author: your name
75850
75859
  * @Date: 2021-09-01 16:51:49
75851
- * @LastEditTime: 2023-03-03 09:53:42
75860
+ * @LastEditTime: 2023-04-12 13:58:22
75852
75861
  * @LastEditors: liyanan 2441631434@qq.com
75853
75862
  * @Description: In User Settings Edit
75854
75863
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -75890,16 +75899,20 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
75890
75899
  _this._fingerPosition = fingerPosition;
75891
75900
  _this._attribute = attribute;
75892
75901
  _this._connectChar = connectChar;
75893
- _this._signTime = node.signTime;
75902
+ //this._signTime = node.signTime;
75894
75903
  _this._textStyle = cbStyle.getStyleKey();
75895
75904
  _this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
75896
75905
  _this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
75906
+ _this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
75897
75907
  if (_this._title != "") {
75898
75908
  _this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
75909
+ }
75910
+ if (_this._signTime != "") {
75899
75911
  _this._drawDate = new createjs.Text(_this.signTime.substring(0, 16), _this._textStyle, '#000000');
75900
75912
  }
75901
75913
  //this._textStyle = cbStyle.;
75902
- _this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight;
75914
+ var hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID);
75915
+ _this.dHeight = hoeditfactory.signHeight;
75903
75916
  //this.dHeight = 40;
75904
75917
  // 处理混乱的类型
75905
75918
  if (node.customProperty && node.customProperty.created_date) {
@@ -75948,12 +75961,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
75948
75961
  _this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
75949
75962
  _this.dWidth += _this._drawAbi02.getMeasuredWidth();
75950
75963
  }
75951
- if (_this.attribute === 0 && _this.title != "") {
75952
- _this.dWidth += _this._drawTitle.getMeasuredWidth();
75953
- if (_this._drawDate.getMeasuredWidth() > _this.dWidth) {
75954
- _this.dWidth = _this._drawDate.getMeasuredWidth();
75964
+ if (_this.attribute === 3) {
75965
+ if (_this.title != "") {
75966
+ _this.dWidth += _this._drawTitle.getMeasuredWidth();
75967
+ }
75968
+ if (_this.signTime != "") {
75969
+ if (_this._drawDate.getMeasuredWidth() > _this.dWidth) {
75970
+ _this.dWidth = _this._drawDate.getMeasuredWidth();
75971
+ }
75972
+ _this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
75955
75973
  }
75956
- _this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
75957
75974
  }
75958
75975
  }
75959
75976
  if (_this.type === 2) {
@@ -76310,20 +76327,28 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76310
76327
  bitmap.x = abi02Text.getMeasuredWidth();
76311
76328
  _this3.addChild(bitmap);
76312
76329
  } else {
76313
- if (_this3.attribute === 0 && _this3.title !== "") {
76314
- _this3._drawTitle.textBaseline = 'alphabetic';
76315
- _this3._drawTitle.textAlign = 'left';
76316
- _this3._drawTitle.x = 0;
76317
- _this3._drawTitle.y = -(_this3.dHeight - _this3._drawDate.getMeasuredHeight()) + 2;
76318
- bitmap.x = _this3._drawTitle.getMeasuredWidth();
76319
- _this3.addChildAt(_this3._drawTitle, 0);
76320
- bitmap.y = _this3._drawTitle.y;
76321
- _this3.addChild(bitmap);
76322
- _this3._drawDate.x = 0;
76323
- _this3._drawDate.y = 0;
76324
- _this3._drawDate.textBaseline = 'alphabetic';
76325
- _this3._drawDate.textAlign = 'left';
76326
- _this3.addChild(_this3._drawDate);
76330
+ if (_this3.attribute === 3 && _this3.title !== "") {
76331
+ if (_this3.signTime != "") {
76332
+ _this3._drawTitle.textBaseline = 'alphabetic';
76333
+ _this3._drawTitle.textAlign = 'left';
76334
+ _this3._drawTitle.x = 0;
76335
+ _this3._drawTitle.y = -(_this3.dHeight - _this3._drawDate.getMeasuredHeight()) + 2;
76336
+ bitmap.x = _this3._drawTitle.getMeasuredWidth();
76337
+ _this3.addChildAt(_this3._drawTitle, 0);
76338
+ bitmap.y = _this3._drawTitle.y;
76339
+ _this3.addChild(bitmap);
76340
+ _this3._drawDate.x = 0;
76341
+ _this3._drawDate.y = 0;
76342
+ _this3._drawDate.textBaseline = 'alphabetic';
76343
+ _this3._drawDate.textAlign = 'left';
76344
+ _this3.addChild(_this3._drawDate);
76345
+ } else {
76346
+ _this3._drawTitle.textBaseline = 'alphabetic';
76347
+ _this3._drawTitle.textAlign = 'left';
76348
+ _this3.addChildAt(_this3._drawTitle, 0);
76349
+ bitmap.x = _this3._drawTitle.getMeasuredWidth();
76350
+ _this3.addChild(bitmap);
76351
+ }
76327
76352
  } else {
76328
76353
  _this3.addChildAt(bitmap, 0);
76329
76354
  }
@@ -76353,7 +76378,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76353
76378
  if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
76354
76379
  drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
76355
76380
  }
76356
- if (drawNode.attribute == 0 && drawNode.title != "") {
76381
+ if (drawNode.attribute == 3 && drawNode.title != "") {
76357
76382
  drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
76358
76383
  if (_this3._drawDate.getMeasuredWidth() > drawNode.dWidth) {
76359
76384
  drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
@@ -76364,7 +76389,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76364
76389
  }
76365
76390
  if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
76366
76391
  bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
76367
- } else if (drawNode.attribute === 0 && drawNode.title !== "") {
76392
+ } else if (drawNode.attribute === 3 && drawNode.title !== "") {
76368
76393
  bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
76369
76394
  } else {
76370
76395
  bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
@@ -77611,6 +77636,8 @@ var es_string_replace = __webpack_require__(15306);
77611
77636
  var es_error_cause = __webpack_require__(21703);
77612
77637
  // EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
77613
77638
  var UnitConvert = __webpack_require__(91404);
77639
+ // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
77640
+ var HOEditorFactorys = __webpack_require__(74089);
77614
77641
  ;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
77615
77642
 
77616
77643
 
@@ -77622,6 +77649,7 @@ var UnitConvert = __webpack_require__(91404);
77622
77649
 
77623
77650
 
77624
77651
 
77652
+
77625
77653
  var DrawText = /*#__PURE__*/function (_createjs$Text) {
77626
77654
  (0,inherits/* default */.Z)(DrawText, _createjs$Text);
77627
77655
  var _super = (0,createSuper/* default */.Z)(DrawText);
@@ -77666,7 +77694,8 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
77666
77694
  if (isFullLine && _this.endIndex > startIndex && _this.endIndex < text.length - 1) {
77667
77695
  var aNexttext = text[_this.endIndex + 1];
77668
77696
  var endText = text[_this._endIndex];
77669
- if (UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText) && dLine && !_this.isFullLineNumEnglish(dLine, text.substr(startIndex, _this.endIndex - startIndex + 1))) {
77697
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(node.hoEditorFactoryID);
77698
+ if (hoEditorFactory.numLetterOnOneLine && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText) && dLine && !_this.isFullLineNumEnglish(dLine, text.substr(startIndex, _this.endIndex - startIndex + 1))) {
77670
77699
  while (_this.endIndex >= startIndex && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText)) {
77671
77700
  lastTextWidth = _this.getCharWidth(null, endText);
77672
77701
  _this.endIndex -= 1;
@@ -77974,8 +78003,6 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
77974
78003
  (0,defineProperty/* default */.Z)(DrawText, "_workingContext", void 0);
77975
78004
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
77976
78005
  var TextInputFieldNode = __webpack_require__(90161);
77977
- // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
77978
- var HOEditorFactorys = __webpack_require__(74089);
77979
78006
  // EXTERNAL MODULE: ./src/editor/utils/DrawSimpleText.ts
77980
78007
  var DrawSimpleText = __webpack_require__(57590);
77981
78008
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
@@ -79613,11 +79640,11 @@ var EditorController = /*#__PURE__*/function () {
79613
79640
  // this.insertBr();
79614
79641
  } else {
79615
79642
  // this.insert(el.value);
79616
- if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === PaintState.psReadOnly) {
79617
- el.value = '';
79618
- return;
79619
- }
79620
- HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.keyBoardInput(el.value);
79643
+ // if (hoeditorfactory.drawTree.paintStatus === PaintState.psReadOnly) {
79644
+ // el.value = '';
79645
+ // return;
79646
+ // }
79647
+ hoeditorfactory.docController.keyBoardInput(el.value);
79621
79648
  // alert(el.value);
79622
79649
  }
79623
79650
  } finally {
@@ -79825,6 +79852,7 @@ var EditorController = /*#__PURE__*/function () {
79825
79852
  return;
79826
79853
  } else if (keyCode === 32) {
79827
79854
  // 空格
79855
+
79828
79856
  var aiInfo = hoeditorfactory.drawTree.caret.aiInfo;
79829
79857
  if (aiInfo.aiText && aiInfo.pageIndex === aiInfo.lastPosition[0] && aiInfo.x === aiInfo.lastPosition[1] && aiInfo.y === aiInfo.lastPosition[2]) {
79830
79858
  hoeditorfactory.vueController.insertText(aiInfo.aiText);
@@ -86953,7 +86981,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
86953
86981
  hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
86954
86982
  hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
86955
86983
  aNode = currRange.npStart.node;
86956
- pnode = aNode.parentNode;
86984
+ if (aNode) {
86985
+ pnode = aNode.parentNode;
86986
+ }
86957
86987
  if (!(aNode && pnode)) {
86958
86988
  _context2.next = 66;
86959
86989
  break;
@@ -195792,7 +195822,7 @@ var map = {
195792
195822
  "./qrCode/QrCode.vue": 86349,
195793
195823
  "./radioCheckBox/RadioCheckbox.vue": 91377,
195794
195824
  "./selectDialog/SelectDialog.vue": 59075,
195795
- "./sign/Sign.vue": 54673,
195825
+ "./sign/Sign.vue": 37930,
195796
195826
  "./table/TableCellPoper.vue": 21277,
195797
195827
  "./table/TableCellProperty.vue": 71176,
195798
195828
  "./table/TableColProperty.vue": 2116,
@@ -231919,18 +231949,20 @@ Input.install = function (Vue) {
231919
231949
 
231920
231950
 
231921
231951
  /* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
231922
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=1ebd4c64&
231952
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=65441e6c&
231923
231953
  var render = function render() {
231924
231954
  var _vm = this,
231925
231955
  _c = _vm._self._c;
231926
231956
  return _vm.hoEditorFactoryIdList.length > 0 ? _c('div', {
231927
231957
  staticClass: "ho-docs"
231928
231958
  }, [_c('section', {
231959
+ ref: "hoEditorListNode",
231929
231960
  class: _vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',
231930
231961
  on: {
231931
231962
  "contextmenu": function contextmenu($event) {
231932
231963
  return _vm.blankAreaRightClick.apply(null, arguments);
231933
- }
231964
+ },
231965
+ "mousedown": _vm.mouseDown
231934
231966
  }
231935
231967
  }, [_vm._l(_vm.hoEditorFactoryIdList, function (hoEditorId, index) {
231936
231968
  return [_c('HoDoc', {
@@ -232037,8 +232069,8 @@ var es_string_match = __webpack_require__(4723);
232037
232069
  var es_number_constructor = __webpack_require__(9653);
232038
232070
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
232039
232071
  var es_json_stringify = __webpack_require__(38862);
232040
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=bc0f5c2a&
232041
- var HoDocvue_type_template_id_bc0f5c2a_render = function render() {
232072
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=0fdfe624&
232073
+ var HoDocvue_type_template_id_0fdfe624_render = function render() {
232042
232074
  var _vm = this,
232043
232075
  _c = _vm._self._c;
232044
232076
  return _c('div', {
@@ -232183,7 +232215,7 @@ var HoDocvue_type_template_id_bc0f5c2a_render = function render() {
232183
232215
  }
232184
232216
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
232185
232217
  };
232186
- var HoDocvue_type_template_id_bc0f5c2a_staticRenderFns = [];
232218
+ var HoDocvue_type_template_id_0fdfe624_staticRenderFns = [];
232187
232219
 
232188
232220
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
232189
232221
  var es_array_filter = __webpack_require__(57327);
@@ -232314,6 +232346,12 @@ var DrawConfig = __webpack_require__(37616);
232314
232346
  var DrawHeader = __webpack_require__(5328);
232315
232347
  // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawFooter.ts
232316
232348
  var DrawFooter = __webpack_require__(114);
232349
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
232350
+ var TextInputFieldNode = __webpack_require__(90161);
232351
+ // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
232352
+ var DrawPageCell = __webpack_require__(59105);
232353
+ // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTable.ts
232354
+ var DrawTable = __webpack_require__(74298);
232317
232355
  ;// CONCATENATED MODULE: ./src/editor/draw/DrawSelectLevel.ts
232318
232356
 
232319
232357
 
@@ -232342,6 +232380,9 @@ var DrawFooter = __webpack_require__(114);
232342
232380
 
232343
232381
 
232344
232382
 
232383
+
232384
+
232385
+
232345
232386
 
232346
232387
 
232347
232388
 
@@ -232479,13 +232520,15 @@ var DrawSelectLevel = /*#__PURE__*/function () {
232479
232520
  if (pos.y < marea.dTop) {
232480
232521
  pos.y = 0;
232481
232522
  } else {
232482
- //NOTE:指定位置到行下面 对表格有问题
232483
- // const pt = marea.globalToLocal(aevent.stageX, aevent.stageY);
232484
- // const line = marea.getDlineByPos(marea.drawLines, pt.x, pt.y);
232485
- // if (line) {
232486
- // const lasty = line.dHeight + line.y + marea.dTop;
232487
- // pos.y = pos.y >= lasty ? lasty : line.y + marea.dTop;
232488
- // }
232523
+ var pt = marea.globalToLocal(aevent.stageX, aevent.stageY);
232524
+ if (pt.y > 0 && pt.y < marea.dHeight) {
232525
+ var startPos = hoEditorFactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
232526
+ if (startPos && startPos.dline) {
232527
+ if (!(startPos.dline.parent instanceof DrawPageCell/* DrawPageCell */.k || startPos.dline instanceof DrawTable/* DrawTable */.t)) {
232528
+ pos.y = pos.y - (pt.y - startPos.dline.y) + startPos.dline.dHeight;
232529
+ }
232530
+ }
232531
+ }
232489
232532
  }
232490
232533
  hoEditorFactory.printStatus.drawPrintCaret.Position = [dPage.pageIndex, pos.y];
232491
232534
  }
@@ -232703,8 +232746,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
232703
232746
  if (!hoeditorfactory.canvasListNode) {
232704
232747
  hoeditorfactory.canvasListNode = document.querySelector(".ho-editor-list");
232705
232748
  }
232706
- hoeditorfactory.moveYParams.startY = aevent.stageY + this._pageIndex * hoeditorfactory.pageProperty.heightPixes;
232707
- hoeditorfactory.moveYParams.moveHeight = 0;
232708
232749
  if (aevent.currentTarget === this.stage) {
232709
232750
  var _hoeditorfactory$draw;
232710
232751
  if (aevent.nativeEvent.button === 0) {
@@ -232763,23 +232804,27 @@ var DrawSelectLevel = /*#__PURE__*/function () {
232763
232804
  hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
232764
232805
  }
232765
232806
  hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
232766
- // const selchange = new SelectionChangeEvent(
232767
- // this._oldRange,
232768
- // hoeditorfactory.docTree.curDomRange
232769
- // );
232770
- // hoeditorfactory.docTree.selectChange(selchange);
232771
- // setTimeout(() => {
232772
- // const curDomRange = hoeditorfactory.docTree.curDomRange.normalize();
232773
- // const node = curDomRange.npEnd.node;
232774
- // if (node instanceof TextInputFieldNode && node.text === '') {
232775
- // hoeditorfactory.vueController.getCaretPreviousText();
232776
- // } else if (node?.parentNode instanceof TextInputFieldNode && node.parentNode.text === '') {
232777
- // hoeditorfactory.vueController.getCaretPreviousText();
232778
- // }
232779
- // }, 0);
232807
+ if (aevent.nativeEvent.button === 0) {
232808
+ //鼠标点到文本域内容结尾时触发
232809
+ var curNP = hoeditorfactory.docTree.curDomRange.normalize().npEnd;
232810
+ if (curNP && curNP.node) {
232811
+ var nextNode = curNP.node.nextLeaf();
232812
+ if (nextNode && nextNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && nextNode.parentNode.inputFieldType == 0) {
232813
+ if (nextNode == nextNode.parentNode.EndMarkNode) {
232814
+ var lastPath = hoeditorfactory.docTree.getNodeLastPath(curNP.node);
232815
+ if (nextNode.parentNode.isEmpty()) {
232816
+ hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.name);
232817
+ } else {
232818
+ if (lastPath == startPos.path) {
232819
+ hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.text);
232820
+ }
232821
+ }
232822
+ }
232823
+ }
232824
+ }
232825
+ }
232780
232826
  }
232781
232827
  }
232782
-
232783
232828
  return true;
232784
232829
  }
232785
232830
  }, {
@@ -232844,29 +232889,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
232844
232889
  }
232845
232890
  var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
232846
232891
  if (endPos) {
232847
- // const result = Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY) < (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length;
232848
- // console.log(Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY), (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length);
232849
- // if (result && hoeditorfactory.moveYParams.startY && hoeditorfactory.canvasListNode) {
232850
- // const height = aevent.stageY + y - hoeditorfactory.moveYParams.startY;
232851
- // if(height > 0) {
232852
- // if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
232853
- // hoeditorfactory.canvasListNode.scrollTop += 13;
232854
- // console.log("初始 ↓ 一直向 ↓");
232855
- // } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
232856
- // console.log("初始 ↓ 中间转 ↑", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight);
232857
- // hoeditorfactory.canvasListNode.scrollTop -= 13;
232858
- // }
232859
- // } else if(height < 0) {
232860
- // if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
232861
- // console.log("初始 ↑ 一直向 ↑")
232862
- // hoeditorfactory.canvasListNode.scrollTop -= 13;
232863
- // } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
232864
- // console.log("初始 ↑ 中间转 ↓", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight)
232865
- // hoeditorfactory.canvasListNode.scrollTop += 13;
232866
- // }
232867
- // }
232868
- // hoeditorfactory.moveYParams.moveHeight = Math.abs(height);
232869
- // }
232870
232892
  hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
232871
232893
  hoeditorfactory.drawTree.selectRange.spEnd = endPos;
232872
232894
  if (endPos.path != '') {
@@ -233725,8 +233747,6 @@ var TableCellPoper = __webpack_require__(21277);
233725
233747
  var DateTimeNode = __webpack_require__(92501);
233726
233748
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
233727
233749
  var DownListNode = __webpack_require__(45712);
233728
- // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
233729
- var TextInputFieldNode = __webpack_require__(90161);
233730
233750
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
233731
233751
  var es_promise = __webpack_require__(88674);
233732
233752
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
@@ -235413,7 +235433,7 @@ var ParagraphNode = __webpack_require__(67945);
235413
235433
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235414
235434
  var MarkNode = __webpack_require__(57727);
235415
235435
  ;// CONCATENATED MODULE: ./src/components/version.ts
235416
- /* harmony default export */ var version = ('3.0.47');
235436
+ /* harmony default export */ var version = ('3.0.49');
235417
235437
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235418
235438
  var PoperTipText = __webpack_require__(15845);
235419
235439
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -235776,6 +235796,12 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235776
235796
  nodeType: node.nodeType,
235777
235797
  type: 'link'
235778
235798
  });
235799
+ } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j && node.MarkNodeType !== 2) && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
235800
+ this.$emit('leftclick', {
235801
+ name: node.parentNode.name,
235802
+ nodeType: node.parentNode.nodeType,
235803
+ type: 'TextInputFieldNode'
235804
+ });
235779
235805
  }
235780
235806
  }
235781
235807
  } else if (e.clickType === 'rightClick') {
@@ -235835,7 +235861,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235835
235861
  if (paintStatus === 4) {
235836
235862
  if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
235837
235863
  var parentNode = node.parentNode;
235838
- if (Number(parentNode.inputFieldType) === 0 && !parentNode.canModifyContent) {
235864
+ if (Number(parentNode.inputFieldType) === 0) {
235839
235865
  this.$emit('dblNodeClick', {
235840
235866
  node: this.getCurrentSelectNode,
235841
235867
  type: 'modify_node',
@@ -236126,10 +236152,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236126
236152
  });
236127
236153
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
236128
236154
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
236129
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
236155
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=0fdfe624&prod&lang=scss&
236130
236156
  // extracted by mini-css-extract-plugin
236131
236157
 
236132
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
236158
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=0fdfe624&prod&lang=scss&
236133
236159
 
236134
236160
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
236135
236161
 
@@ -236142,8 +236168,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236142
236168
 
236143
236169
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
236144
236170
  components_HoDocvue_type_script_lang_js_,
236145
- HoDocvue_type_template_id_bc0f5c2a_render,
236146
- HoDocvue_type_template_id_bc0f5c2a_staticRenderFns,
236171
+ HoDocvue_type_template_id_0fdfe624_render,
236172
+ HoDocvue_type_template_id_0fdfe624_staticRenderFns,
236147
236173
  false,
236148
236174
  null,
236149
236175
  null,
@@ -236162,12 +236188,8 @@ var es_error_cause = __webpack_require__(21703);
236162
236188
  var DrawPageMainDoc = __webpack_require__(77441);
236163
236189
  // EXTERNAL MODULE: ./src/editor/draw/DrawLine.ts + 1 modules
236164
236190
  var DrawLine = __webpack_require__(96635);
236165
- // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
236166
- var DrawPageCell = __webpack_require__(59105);
236167
236191
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageTable.ts
236168
236192
  var DrawPageTable = __webpack_require__(15694);
236169
- // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTable.ts
236170
- var DrawTable = __webpack_require__(74298);
236171
236193
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
236172
236194
  var TableNode = __webpack_require__(5010);
236173
236195
  ;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawPageTree.ts
@@ -237537,13 +237559,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237537
237559
  // }
237538
237560
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
237539
237561
  if (node instanceof TextNode/* TextNode */.R) {
237540
- if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
237562
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || !hoEditorFactory.isHideComments) {
237541
237563
  this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
237542
237564
  this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
237543
- // if(moveType === DmouseEventType.detOver) {
237544
- // console.log(this._creatorIndex, this._deleterIndex);
237545
- // console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
237546
- // }
237547
237565
  if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
237548
237566
  var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
237549
237567
  this._moveType = moveType;
@@ -237559,12 +237577,12 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237559
237577
  this.computedPosition(node.drawNodes[0]);
237560
237578
  }
237561
237579
  } else {
237562
- if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
237580
+ if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1)) {
237563
237581
  this._moveType = moveType;
237564
237582
  if (node.parentNode.tipText) {
237565
237583
  var text = JSON.stringify(node.parentNode.tipText);
237566
237584
  text = text.slice(1, text.length - 1);
237567
- var arr = text.split("\\n").filter(function (v) {
237585
+ var arr = text.split('\\n').filter(function (v) {
237568
237586
  return v;
237569
237587
  });
237570
237588
  this._tipText = arr;
@@ -237576,12 +237594,12 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237576
237594
  }
237577
237595
  }
237578
237596
  } else if (node instanceof MarkNode/* MarkNode */.j) {
237579
- if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
237597
+ if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1)) {
237580
237598
  this._moveType = moveType;
237581
237599
  if (node.parentNode.tipText) {
237582
237600
  var _text = JSON.stringify(node.parentNode.tipText);
237583
237601
  _text = _text.slice(1, _text.length - 1);
237584
- var _arr = _text.split("\\n").filter(function (v) {
237602
+ var _arr = _text.split('\\n').filter(function (v) {
237585
237603
  return v;
237586
237604
  });
237587
237605
  this._tipText = _arr;
@@ -237598,7 +237616,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237598
237616
  if (node.tipText) {
237599
237617
  var _text2 = JSON.stringify(node.tipText);
237600
237618
  _text2 = _text2.slice(1, _text2.length - 1);
237601
- var _arr2 = _text2.split("\\n").filter(function (v) {
237619
+ var _arr2 = _text2.split('\\n').filter(function (v) {
237602
237620
  return v;
237603
237621
  });
237604
237622
  this._tipText = _arr2;
@@ -237618,7 +237636,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237618
237636
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
237619
237637
  if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
237620
237638
  var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
237621
- var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, "click");
237639
+ var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, 'click');
237622
237640
  hoEditorFactory.docTree.nodeClick(nodeClickEvent);
237623
237641
  node.drawNodes[0].parent = drawLine;
237624
237642
  }
@@ -237669,10 +237687,10 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237669
237687
  value: function createParagraphTipHTML(caret, text) {
237670
237688
  var _caret$cursor$parentN;
237671
237689
  var tipdiv = document.createElement('div');
237672
- tipdiv.id = "ho_paragrapgh_tip";
237673
- tipdiv.style.left = caret.X + "px";
237674
- tipdiv.style.top = caret.Y + caret.height + "px";
237675
- tipdiv.innerHTML = text.join("<br />");
237690
+ tipdiv.id = 'ho_paragrapgh_tip';
237691
+ tipdiv.style.left = caret.X + 'px';
237692
+ tipdiv.style.top = caret.Y + caret.height + 'px';
237693
+ tipdiv.innerHTML = text.join('<br />');
237676
237694
  (_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
237677
237695
  }
237678
237696
  /**
@@ -237697,7 +237715,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
237697
237715
  }]);
237698
237716
  return NodeMouseMoveEvent;
237699
237717
  }();
237700
- (0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", "nodeMouseMove");
237718
+ (0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", 'nodeMouseMove');
237701
237719
  // EXTERNAL MODULE: ./src/editor/runTimeInfo/UserInfo.ts
237702
237720
  var UserInfo = __webpack_require__(14871);
237703
237721
  ;// CONCATENATED MODULE: ./src/editor/runTimeInfo/Option.ts
@@ -238255,7 +238273,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
238255
238273
  //size = Math.round(hoeditorfactory.unitConvert.pxConversionMm(size, true) );
238256
238274
  size = size / 96 * 72;
238257
238275
  }
238258
- if (size == 11) {
238276
+ if (size == 11 || size == 11.5) {
238259
238277
  size = 12;
238260
238278
  }
238261
238279
  tmp.size = size;
@@ -242707,7 +242725,6 @@ var comment = __webpack_require__(32980);
242707
242725
 
242708
242726
 
242709
242727
 
242710
-
242711
242728
 
242712
242729
 
242713
242730
  var VueController = /*#__PURE__*/function () {
@@ -248034,51 +248051,34 @@ var VueController = /*#__PURE__*/function () {
248034
248051
  */
248035
248052
  }, {
248036
248053
  key: "getCaretPreviousText",
248037
- value: function getCaretPreviousText() {
248054
+ value: function getCaretPreviousText(value) {
248038
248055
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248039
248056
  if (hoEditorFactory.aiTextFunc) {
248040
- var _node$parentNode;
248041
248057
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
248042
248058
  var node = curDomRange.npEnd.node;
248043
- var textFieldName = '';
248044
- var text = '';
248045
- if (node instanceof TextNode/* TextNode */.R) {
248046
- text += node.text;
248047
- }
248048
- if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248049
- textFieldName = node.parentNode.name;
248050
- } else if ((node === null || node === void 0 ? void 0 : (_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248051
- var _node$parentNode2;
248052
- textFieldName = node === null || node === void 0 ? void 0 : (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode.name;
248053
- }
248054
- var getText = function getText() {
248055
- var previousNode = node === null || node === void 0 ? void 0 : node.previousLeaf();
248056
- if (previousNode instanceof TextNode/* TextNode */.R) {
248057
- text += previousNode.text;
248058
- if (text.length < 20) {
248059
- getText();
248060
- }
248059
+ var textFieldName = value || '';
248060
+ var text = value || '';
248061
+ if (!text && !textFieldName) {
248062
+ var _node$parentNode;
248063
+ if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248064
+ textFieldName = node.parentNode.name.replace(/\s*/g, '');
248065
+ text = node.parentNode.text.replace(/\s*/g, '');
248066
+ } else if ((node === null || node === void 0 ? void 0 : (_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248067
+ var _node$parentNode2;
248068
+ textFieldName = node === null || node === void 0 ? void 0 : (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode.name.replace(/\s*/g, '');
248069
+ text = node.parentNode.parentNode.text.replace(/\s*/g, '');
248061
248070
  }
248062
- };
248071
+ }
248063
248072
  var callback = function callback(aiText) {
248064
248073
  var aiInfo = hoEditorFactory.drawTree.caret.aiInfo;
248065
248074
  hoEditorFactory.drawTree.caret.aiInfo.lastPosition = [aiInfo.pageIndex, aiInfo.x, aiInfo.y];
248066
248075
  hoEditorFactory.drawTree.caret.aiInfo.aiText = aiText;
248067
248076
  };
248068
- if (text.length < 20) {
248069
- getText();
248070
- }
248071
- if (textFieldName.replace(/\s*/g, '')) {
248072
- textFieldName += ':';
248073
- }
248074
- if (text.length >= 20) {
248075
- text = text.slice(text.length - 20, text.length);
248076
- hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
248077
- } else if (text.length > 0) {
248078
- hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
248079
- } else if (text.length === 0 && textFieldName.replace(/\s*/g, '')) {
248080
- hoEditorFactory.aiTextFunc(textFieldName.replace(/\s*/g, ''), callback);
248081
- }
248077
+ if (text) {
248078
+ hoEditorFactory.aiTextFunc(text, callback, textFieldName);
248079
+ } else if (textFieldName) {
248080
+ hoEditorFactory.aiTextFunc('', callback, textFieldName);
248081
+ } else {}
248082
248082
  }
248083
248083
  }
248084
248084
  }, {
@@ -249493,6 +249493,25 @@ var VueController = /*#__PURE__*/function () {
249493
249493
  });
249494
249494
  return pathArr;
249495
249495
  }
249496
+ }, {
249497
+ key: "showLineInfos",
249498
+ value: function showLineInfos() {
249499
+ var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryID).drawTree;
249500
+ for (var i = 0; i < drawTree.drawPages.length; i++) {
249501
+ var dpage = drawTree.drawPages[i];
249502
+ var sc = dpage.selectContainer;
249503
+ var dc = dpage.drawMainDoc;
249504
+ for (var j = 0; j < dc.numChildren; j++) {
249505
+ var dobj = dc.children[j];
249506
+ if (dobj.dHeight) {
249507
+ var dText = new createjs.Text('y=' + dc.children[j].y + ' dHeight=' + dobj.dHeight, 'SimSun 12pt');
249508
+ dText.y = dc.localToGlobal(dobj.x, dobj.y).y;
249509
+ dText.x = 0;
249510
+ sc.addChild(dText);
249511
+ }
249512
+ }
249513
+ }
249514
+ }
249496
249515
  }]);
249497
249516
  return VueController;
249498
249517
  }();
@@ -254608,11 +254627,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
254608
254627
  (0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
254609
254628
  (0,esm_defineProperty/* default */.Z)(this, "_limitCharNumber", 0);
254610
254629
  (0,esm_defineProperty/* default */.Z)(this, "_reviewJson", void 0);
254611
- (0,esm_defineProperty/* default */.Z)(this, "_moveYParams", {
254612
- startY: 0,
254613
- moveHeight: 0
254614
- });
254615
254630
  (0,esm_defineProperty/* default */.Z)(this, "_canvasListNode", void 0);
254631
+ (0,esm_defineProperty/* default */.Z)(this, "_numLetterOnOneLine", true);
254616
254632
  this._hoEditorFactoryId = id;
254617
254633
  }
254618
254634
  (0,esm_createClass/* default */.Z)(HOEditorFactory, [{
@@ -254634,6 +254650,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
254634
254650
  // 待加载的图片数量
254635
254651
  // 图片加载完成回调
254636
254652
  // 获取ai文本函数
254653
+ //private _aiText = ""; // ai文本
254637
254654
 
254638
254655
  // 医生签名图片高度
254639
254656
  // 患者签名签字图片高度
@@ -254653,6 +254670,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
254653
254670
  // 限制复制病历文本的字符数
254654
254671
  // 审阅列表菜单权限
254655
254672
 
254673
+ //连续的数字或字母是否在一行显示
254656
254674
  /**
254657
254675
  * Getter hoLocalStorage
254658
254676
  * @return {HoLocalStorage}
@@ -255173,6 +255191,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
255173
255191
  this._limitCharNumber = value;
255174
255192
  }
255175
255193
  }
255194
+ }, {
255195
+ key: "numLetterOnOneLine",
255196
+ get: function get() {
255197
+ return this._numLetterOnOneLine;
255198
+ },
255199
+ set: function set(value) {
255200
+ if (this._numLetterOnOneLine !== value) {
255201
+ this._numLetterOnOneLine = value;
255202
+ }
255203
+ }
255176
255204
  }, {
255177
255205
  key: "reviewJson",
255178
255206
  get: function get() {
@@ -255246,7 +255274,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
255246
255274
  key: "aiTextFunc",
255247
255275
  get: function get() {
255248
255276
  return this._aiTextFunc;
255249
- },
255277
+ }
255278
+ // set aiText(value: string) {
255279
+ // if (this._aiText !== value) {
255280
+ // this._aiText = value;
255281
+ // }
255282
+ // }
255283
+ // get aiText(): string {
255284
+ // return this._aiText;
255285
+ // }
255286
+ ,
255250
255287
  set: function set(value) {
255251
255288
  if (this._aiTextFunc !== value) {
255252
255289
  this._aiTextFunc = value;
@@ -255412,16 +255449,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
255412
255449
  this._canvasListNode = value;
255413
255450
  }
255414
255451
  }
255415
- }, {
255416
- key: "moveYParams",
255417
- get: function get() {
255418
- return this._moveYParams;
255419
- },
255420
- set: function set(value) {
255421
- if (value && this._moveYParams !== value) {
255422
- this._moveYParams = value;
255423
- }
255424
- }
255425
255452
  }, {
255426
255453
  key: "clear",
255427
255454
  value: function clear() {
@@ -255904,9 +255931,31 @@ var commondata = __webpack_require__(76285);
255904
255931
  // 测试
255905
255932
 
255906
255933
  isFooter: true
255907
- }
255934
+ },
255935
+ isMouseDown: false,
255936
+ // 鼠标是否处于按下状态
255937
+ mouseParams: {
255938
+ speed: 10,
255939
+ // 定时器触发时间 值越大滚动越慢
255940
+ distance: 16,
255941
+ // 每次滚动页面的距离 值越大滚动越快
255942
+ margin: 72,
255943
+ // 容器上下边距触发范围
255944
+ startY: 0,
255945
+ // 鼠标按下时初始位置
255946
+ scrollHeight: 0,
255947
+ // 容器可滚动高度
255948
+ clientHeight: 0,
255949
+ // 容器高度
255950
+ topMargin: 0,
255951
+ bottomMargin: 0
255952
+ },
255953
+ scrollDirection: 0,
255954
+ // 页面滚动方向:1表示向下,-1表示向上
255955
+ scrollTimer: null // 鼠标滑动时页面滚动定时器
255908
255956
  };
255909
255957
  },
255958
+
255910
255959
  watch: {
255911
255960
  contentIsModify: {
255912
255961
  deep: true,
@@ -256089,25 +256138,35 @@ var commondata = __webpack_require__(76285);
256089
256138
  }
256090
256139
  }
256091
256140
  },
256092
- created: function created() {
256141
+ mounted: function mounted() {
256093
256142
  var _this3 = this;
256143
+ if (this.$refs.hoEditorListNode) {
256144
+ document.addEventListener('mouseup', function () {
256145
+ _this3.isMouseDown = false;
256146
+ clearInterval(_this3.scrollTimer);
256147
+ });
256148
+ document.addEventListener('mousemove', this.mouseMove);
256149
+ }
256150
+ },
256151
+ created: function created() {
256152
+ var _this4 = this;
256094
256153
  // 禁掉默认的左键菜单
256095
256154
  window.oncontextmenu = function (e) {
256096
256155
  e.preventDefault();
256097
256156
  };
256098
256157
  this.$nextTick(function () {
256099
- if (_this3.editJson && _this3.editJson.findModal) {
256158
+ if (_this4.editJson && _this4.editJson.findModal) {
256100
256159
  document.onkeydown = function (event) {
256101
256160
  var keyCode = event.keyCode || event.which || event.charCode;
256102
256161
  var ctrlKey = event.ctrlKey || event.metaKey;
256103
256162
  // ctrl + F组合键 覆盖浏览器自身查询替换功能
256104
256163
  if (ctrlKey && keyCode === 70) {
256105
256164
  event.preventDefault();
256106
- _this3.hoEditorProvider.controlFindType = !_this3.hoEditorProvider.controlFindType;
256165
+ _this4.hoEditorProvider.controlFindType = !_this4.hoEditorProvider.controlFindType;
256107
256166
  }
256108
256167
  // esc快捷键 自动关闭查询替换弹窗
256109
256168
  if (keyCode === 27) {
256110
- _this3.hoEditorProvider.controlFindType = false;
256169
+ _this4.hoEditorProvider.controlFindType = false;
256111
256170
  }
256112
256171
  };
256113
256172
  }
@@ -256116,25 +256175,25 @@ var commondata = __webpack_require__(76285);
256116
256175
  this.docList.forEach(function () {
256117
256176
  var id = (0,plugins_util/* generateID */.y)('HO');
256118
256177
  var hoEditor = new HOEditorFactory(id);
256119
- _this3.hoEditorFactoryIdList.push(id);
256120
- if (Array.isArray(_this3.superiorSigns) && _this3.superiorSigns.length > 0) {
256121
- hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(_this3.superiorSigns);
256178
+ _this4.hoEditorFactoryIdList.push(id);
256179
+ if (Array.isArray(_this4.superiorSigns) && _this4.superiorSigns.length > 0) {
256180
+ hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(_this4.superiorSigns);
256122
256181
  }
256123
- if (_this3.isFixedPrintToA4 === true) {
256182
+ if (_this4.isFixedPrintToA4 === true) {
256124
256183
  hoEditor.isFixedPrintToA4 = '1';
256125
- } else if (_this3.isFixedPrintToA4 === false) {
256184
+ } else if (_this4.isFixedPrintToA4 === false) {
256126
256185
  hoEditor.isFixedPrintToA4 = '';
256127
256186
  } else {
256128
- hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
256129
- }
256130
- hoEditor.isUseImagePrint = _this3.isUseImagePrint;
256131
- hoEditor.isUseForm = _this3.isUseForm;
256132
- hoEditor.printBlack = _this3.printBlack;
256133
- hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
256134
- hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
256135
- hoEditor.contentIsModify = _this3.contentIsModify;
256136
- hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
256137
- hoEditor.docTree.docProperty = _this3.defaultDocProperty;
256187
+ hoEditor.isFixedPrintToA4 = _this4.isFixedPrintToA4;
256188
+ }
256189
+ hoEditor.isUseImagePrint = _this4.isUseImagePrint;
256190
+ hoEditor.isUseForm = _this4.isUseForm;
256191
+ hoEditor.printBlack = _this4.printBlack;
256192
+ hoEditor.isEnabledGlobalColor = _this4.isEnabledGlobalColor;
256193
+ hoEditor.isSameColorWithEmptyVlaue = _this4.isSameColorWithEmptyVlaue;
256194
+ hoEditor.contentIsModify = _this4.contentIsModify;
256195
+ hoEditor.isCanEditHeadFoot = _this4.isCanEditHeadFoot;
256196
+ hoEditor.docTree.docProperty = _this4.defaultDocProperty;
256138
256197
  HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
256139
256198
  });
256140
256199
  // 监听编辑器删除的url图片节点变化
@@ -256144,9 +256203,9 @@ var commondata = __webpack_require__(76285);
256144
256203
  this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
256145
256204
  this.$nextTick(function () {
256146
256205
  if (!commondata/* CommonData.instance */.G.instance().modalStatusObject) {
256147
- commondata/* CommonData.instance */.G.instance().modalStatusObject = _this3.modalStatusObject;
256206
+ commondata/* CommonData.instance */.G.instance().modalStatusObject = _this4.modalStatusObject;
256148
256207
  }
256149
- if (_this3.pageProperty && Object.keys(_this3.pageProperty).length > 0) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
256208
+ if (_this4.pageProperty && Object.keys(_this4.pageProperty).length > 0) _this4.initPageProperty((0,objectSpread2/* default */.Z)({}, _this4.pageProperty));
256150
256209
  });
256151
256210
  },
256152
256211
  methods: {
@@ -256154,10 +256213,10 @@ var commondata = __webpack_require__(76285);
256154
256213
  * 右键菜单触发
256155
256214
  */
256156
256215
  rightClickEventIn: function rightClickEventIn(rightPosition) {
256157
- var _this4 = this;
256216
+ var _this5 = this;
256158
256217
  var nodeInfoes = {
256159
256218
  node: function node() {
256160
- return _this4.hoEditorProvider.getUpdateNode();
256219
+ return _this5.hoEditorProvider.getUpdateNode();
256161
256220
  },
256162
256221
  type: this.hoEditorProvider.rightType,
256163
256222
  style: this.hoEditorProvider.expressStyle,
@@ -256170,7 +256229,7 @@ var commondata = __webpack_require__(76285);
256170
256229
  nodeInfoes.labelNode = function () {
256171
256230
  var labelNode = [];
256172
256231
  var isIncludes = '';
256173
- var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.hoEditorProvider.activeDocId);
256232
+ var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this5.hoEditorProvider.activeDocId);
256174
256233
  var currentDomRange = hoEditor.vueController.getDomRange();
256175
256234
  if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
256176
256235
  if (node instanceof LabelNode/* LabelNode */.P) {
@@ -256181,7 +256240,7 @@ var commondata = __webpack_require__(76285);
256181
256240
  isIncludes = 'toLabel';
256182
256241
  var startPath = currentDomRange.startPath;
256183
256242
  var endPath = currentDomRange.endPath;
256184
- var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this4.hoEditorProvider.activeDocId, startPath, endPath, true)[0];
256243
+ var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this5.hoEditorProvider.activeDocId, startPath, endPath, true)[0];
256185
256244
  if (selectNodes.length > 0) {
256186
256245
  selectNodes.forEach(function (v) {
256187
256246
  if (v instanceof LabelNode/* LabelNode */.P) {
@@ -256240,24 +256299,24 @@ var commondata = __webpack_require__(76285);
256240
256299
  * 初始化事件
256241
256300
  */
256242
256301
  initListener: function initListener() {
256243
- var _this5 = this;
256302
+ var _this6 = this;
256244
256303
  // 禁掉默认的左键菜单
256245
256304
  window.oncontextmenu = function (e) {
256246
256305
  e.preventDefault();
256247
256306
  };
256248
256307
  this.$nextTick(function () {
256249
- if (_this5.editJson.findModal) {
256308
+ if (_this6.editJson.findModal) {
256250
256309
  document.onkeydown = function (event) {
256251
256310
  var keyCode = event.keyCode || event.which || event.charCode;
256252
256311
  var ctrlKey = event.ctrlKey || event.metaKey;
256253
256312
  // ctrl + F组合键 覆盖浏览器自身查询替换功能
256254
256313
  if (ctrlKey && keyCode === 70) {
256255
256314
  event.preventDefault();
256256
- _this5.hoEditorProvider.controlFindType = !_this5.hoEditorProvider.controlFindType;
256315
+ _this6.hoEditorProvider.controlFindType = !_this6.hoEditorProvider.controlFindType;
256257
256316
  }
256258
256317
  // esc快捷键 自动关闭查询替换弹窗
256259
256318
  if (keyCode === 27) {
256260
- _this5.hoEditorProvider.controlFindType = false;
256319
+ _this6.hoEditorProvider.controlFindType = false;
256261
256320
  }
256262
256321
  };
256263
256322
  }
@@ -256509,7 +256568,7 @@ var commondata = __webpack_require__(76285);
256509
256568
  },
256510
256569
  // 设置字体
256511
256570
  setFontStyle: function setFontStyle() {
256512
- var _this6 = this;
256571
+ var _this7 = this;
256513
256572
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
256514
256573
  var elementNode = document.querySelector('#ho_table_auxiliary');
256515
256574
  if (elementNode) {
@@ -256529,17 +256588,90 @@ var commondata = __webpack_require__(76285);
256529
256588
  }
256530
256589
  var style = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, hoEditorFactory.vueController.getCaretTextStyle({})), hoEditorFactory.vueController.getCaretParagraphStyle({})), hoEditorFactory.vueController.getCaretTableStyle({}));
256531
256590
  Object.keys(this.hoEditorProvider.textStyle).forEach(function (key) {
256532
- if (style[key] !== undefined && style[key] !== null) _this6.hoEditorProvider.textStyle[key] = style[key];
256591
+ if (style[key] !== undefined && style[key] !== null) _this7.hoEditorProvider.textStyle[key] = style[key];
256533
256592
  });
256593
+ },
256594
+ /**
256595
+ * canvas容器内监听鼠标按下事件
256596
+ */
256597
+ mouseDown: function mouseDown(e) {
256598
+ if (e.button == 0 && this.$refs.hoEditorListNode) {
256599
+ var rect = this.$refs.hoEditorListNode.getBoundingClientRect();
256600
+ this.isMouseDown = true;
256601
+ this.mouseParams.startY = e.offsetY;
256602
+ this.scrollDirection = 0;
256603
+ this.mouseParams.topMargin = rect.top + this.mouseParams.margin; // 鼠标位置靠近容器顶部
256604
+ this.mouseParams.bottomMargin = rect.bottom - this.mouseParams.margin; // 鼠标位置靠近容器底部
256605
+ this.mouseParams.scrollHeight = this.$refs.hoEditorListNode.scrollHeight; // 容器可滚动高度
256606
+ this.mouseParams.clientHeight = this.$refs.hoEditorListNode.clientHeight; // 容器高度
256607
+ clearInterval(this.scrollTimer);
256608
+ }
256609
+ },
256610
+ /**
256611
+ * canvas容器内监听鼠标按下后滚动页面事件
256612
+ */
256613
+ mouseMove: function mouseMove(e) {
256614
+ if (this.isMouseDown && this.$refs.hoEditorListNode) {
256615
+ var deltaY = e.clientY - this.mouseParams.startY;
256616
+ var scrollY = this.$refs.hoEditorListNode.scrollTop;
256617
+ if (deltaY > 0) {
256618
+ if (scrollY < this.mouseParams.scrollHeight - this.mouseParams.clientHeight) {
256619
+ if (this.mouseParams.startY >= this.mouseParams.bottomMargin) {
256620
+ // 鼠标在容器底部附近 触发向下滚动事件
256621
+ this.$refs.hoEditorListNode.scrollTop += deltaY;
256622
+ if (this.scrollDirection !== 1) {
256623
+ this.scrollDirection = 1;
256624
+ this.startScrollTimer();
256625
+ }
256626
+ } else {
256627
+ // 鼠标在向下滚动时变更方向 停止页面滚动事件 并重置滚动方向
256628
+ this.scrollDirection = 0;
256629
+ clearInterval(this.scrollTimer);
256630
+ }
256631
+ }
256632
+ } else if (deltaY < 0) {
256633
+ if (scrollY > 0) {
256634
+ if (this.mouseParams.startY <= this.mouseParams.topMargin) {
256635
+ // 鼠标在容器顶部附近 触发向上滚动事件
256636
+ this.$refs.hoEditorListNode.scrollTop -= -deltaY;
256637
+ if (this.scrollDirection !== -1) {
256638
+ this.scrollDirection = -1;
256639
+ this.startScrollTimer();
256640
+ }
256641
+ } else {
256642
+ // 鼠标在向上滚动时变更方向 停止页面滚动事件 并重置滚动方向
256643
+ this.scrollDirection = 0;
256644
+ clearInterval(this.scrollTimer);
256645
+ }
256646
+ }
256647
+ }
256648
+ this.mouseParams.startY = e.clientY;
256649
+ }
256650
+ },
256651
+ startScrollTimer: function startScrollTimer() {
256652
+ var _this8 = this;
256653
+ if (this.$refs.hoEditorListNode) {
256654
+ this.scrollTimer = setInterval(function () {
256655
+ var delta = _this8.scrollDirection === 1 ? _this8.mouseParams.distance : -_this8.mouseParams.distance;
256656
+ var scrollY = _this8.$refs.hoEditorListNode.scrollTop;
256657
+ if (_this8.scrollDirection === 1 && scrollY < _this8.mouseParams.scrollHeight - _this8.mouseParams.clientHeight) {
256658
+ _this8.$refs.hoEditorListNode.scrollTop += delta;
256659
+ } else if (_this8.scrollDirection === -1 && scrollY > 0) {
256660
+ _this8.$refs.hoEditorListNode.scrollTop -= -delta;
256661
+ } else {
256662
+ clearInterval(_this8.scrollTimer);
256663
+ }
256664
+ }, this.mouseParams.speed);
256665
+ }
256534
256666
  }
256535
256667
  }
256536
256668
  });
256537
256669
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
256538
256670
  /* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
256539
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=1ebd4c64&prod&lang=scss&media=print&
256671
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=65441e6c&prod&lang=scss&media=print&
256540
256672
  // extracted by mini-css-extract-plugin
256541
256673
 
256542
- ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=1ebd4c64&prod&lang=scss&media=print&
256674
+ ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=65441e6c&prod&lang=scss&media=print&
256543
256675
 
256544
256676
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue
256545
256677
 
@@ -256562,8 +256694,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
256562
256694
  )
256563
256695
 
256564
256696
  /* harmony default export */ var HoDocs = (HoDocs_component.exports);
256565
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=7f1a29a4&
256566
- var ToolBarvue_type_template_id_7f1a29a4_render = function render() {
256697
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=13ecac50&
256698
+ var ToolBarvue_type_template_id_13ecac50_render = function render() {
256567
256699
  var _vm = this,
256568
256700
  _c = _vm._self._c;
256569
256701
  return _c('div', {
@@ -256641,7 +256773,7 @@ var ToolBarvue_type_template_id_7f1a29a4_render = function render() {
256641
256773
  on: {
256642
256774
  "click": _vm.printSelected
256643
256775
  }
256644
- }, [_vm._v("打印拖动鼠标选中区域")]) : _vm._e()]), _c('div', {
256776
+ }, [_vm._v("选中区打印")]) : _vm._e()]), _c('div', {
256645
256777
  staticClass: "ho-emr-tool-item",
256646
256778
  staticStyle: {
256647
256779
  "border-right": "1px solid #e6e6e6"
@@ -256651,7 +256783,7 @@ var ToolBarvue_type_template_id_7f1a29a4_render = function render() {
256651
256783
  on: {
256652
256784
  "click": _vm.printCaret
256653
256785
  }
256654
- }, [_vm._v("打印鼠标点击位置")]) : _vm._e()]), _c('div', {
256786
+ }, [_vm._v("光标处打印")]) : _vm._e()]), _c('div', {
256655
256787
  staticClass: "ho-emr-tool-item",
256656
256788
  staticStyle: {
256657
256789
  "border": "0"
@@ -256796,7 +256928,7 @@ var ToolBarvue_type_template_id_7f1a29a4_render = function render() {
256796
256928
  }, [_vm._v(_vm._s(item.title))]);
256797
256929
  }), 1)], 1) : _vm._e()], 1);
256798
256930
  };
256799
- var ToolBarvue_type_template_id_7f1a29a4_staticRenderFns = [];
256931
+ var ToolBarvue_type_template_id_13ecac50_staticRenderFns = [];
256800
256932
 
256801
256933
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
256802
256934
  var es_array_map = __webpack_require__(21249);
@@ -257742,7 +257874,7 @@ var HoColorPickers = __webpack_require__(84214);
257742
257874
  "props": (0,objectSpread2/* default */.Z)({}, {
257743
257875
  title: '字体',
257744
257876
  poperStyle: {
257745
- width: '160px',
257877
+ width: '165px',
257746
257878
  textAlign: 'left'
257747
257879
  }
257748
257880
  })
@@ -261951,6 +262083,7 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
261951
262083
  if (commentList.length == 0) {
261952
262084
  return;
261953
262085
  }
262086
+ var userInfo = this.vueController.getUserInfoes();
261954
262087
  var candeleteList = [];
261955
262088
  commentList.forEach(function (comment) {
261956
262089
  if (comment.userID == userInfo.id) {
@@ -262010,10 +262143,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
262010
262143
  });
262011
262144
  ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
262012
262145
  /* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
262013
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=7f1a29a4&prod&lang=scss&
262146
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=13ecac50&prod&lang=scss&
262014
262147
  // extracted by mini-css-extract-plugin
262015
262148
 
262016
- ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=7f1a29a4&prod&lang=scss&
262149
+ ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=13ecac50&prod&lang=scss&
262017
262150
 
262018
262151
  ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
262019
262152
 
@@ -262026,8 +262159,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
262026
262159
 
262027
262160
  var ToolBar_component = (0,componentNormalizer/* default */.Z)(
262028
262161
  toolbar_ToolBarvue_type_script_lang_js_,
262029
- ToolBarvue_type_template_id_7f1a29a4_render,
262030
- ToolBarvue_type_template_id_7f1a29a4_staticRenderFns,
262162
+ ToolBarvue_type_template_id_13ecac50_render,
262163
+ ToolBarvue_type_template_id_13ecac50_staticRenderFns,
262031
262164
  false,
262032
262165
  null,
262033
262166
  null,