hoeditor-web 3.0.57 → 3.0.59

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.
@@ -3324,7 +3324,7 @@ function _extends(){return _extends=Object.assign?Object.assign.bind():function(
3324
3324
 
3325
3325
  /***/ }),
3326
3326
 
3327
- /***/ 21920:
3327
+ /***/ 37006:
3328
3328
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3329
3329
 
3330
3330
  "use strict";
@@ -3336,7 +3336,7 @@ __webpack_require__.d(__webpack_exports__, {
3336
3336
  "default": function() { return /* binding */ ControlModal; }
3337
3337
  });
3338
3338
 
3339
- ;// 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/ControlModal.vue?vue&type=template&id=c3d1bac8&
3339
+ ;// 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/ControlModal.vue?vue&type=template&id=68644c42&
3340
3340
  var render = function render() {
3341
3341
  var _vm = this,
3342
3342
  _c = _vm._self._c;
@@ -3356,6 +3356,7 @@ var render = function render() {
3356
3356
  },
3357
3357
  on: {
3358
3358
  "insertComments": _vm.insertComments,
3359
+ "updateCommentContent": _vm.updateCommentContent,
3359
3360
  "closed": _vm.handleClose
3360
3361
  },
3361
3362
  scopedSlots: _vm._u([{
@@ -3505,6 +3506,9 @@ var HOEditorFactorys = __webpack_require__(74089);
3505
3506
  insertComments: function insertComments(content) {
3506
3507
  this.$emit('insertComments', content);
3507
3508
  },
3509
+ updateCommentContent: function updateCommentContent(func) {
3510
+ this.$emit('updateCommentContent', func);
3511
+ },
3508
3512
  handleClose: function handleClose() {
3509
3513
  if (this.hoEditorProvider.isDataSource || this.hoEditorProvider.isCustoms || this.hoEditorProvider.isListStyle || this.hoEditorProvider.controlType === 'find') return false;
3510
3514
  this.$emit('closeControlmodal');
@@ -4224,7 +4228,7 @@ var component = (0,componentNormalizer/* default */.Z)(
4224
4228
 
4225
4229
  /***/ }),
4226
4230
 
4227
- /***/ 99956:
4231
+ /***/ 76926:
4228
4232
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4229
4233
 
4230
4234
  "use strict";
@@ -4236,7 +4240,7 @@ __webpack_require__.d(__webpack_exports__, {
4236
4240
  "default": function() { return /* binding */ CommentDialog; }
4237
4241
  });
4238
4242
 
4239
- ;// 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/commentDialog/CommentDialog.vue?vue&type=template&id=79641e92&
4243
+ ;// 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/commentDialog/CommentDialog.vue?vue&type=template&id=040b8f52&
4240
4244
  var render = function render() {
4241
4245
  var _vm = this,
4242
4246
  _c = _vm._self._c;
@@ -4298,9 +4302,7 @@ var render = function render() {
4298
4302
  "margin-left": "30px"
4299
4303
  },
4300
4304
  on: {
4301
- "click": function click($event) {
4302
- return _vm.$emit('closed');
4303
- }
4305
+ "click": _vm.close
4304
4306
  }
4305
4307
  }, [_vm._v("取消")])], 1)]);
4306
4308
  };
@@ -4329,9 +4331,15 @@ var staticRenderFns = [];
4329
4331
  if (this.controlStatus === 'update' && this.commentValue) {
4330
4332
  this.textContent = this.commentValue.text;
4331
4333
  }
4334
+ this.$emit("updateCommentContent", this.updateContent);
4332
4335
  },
4333
4336
  mounted: function mounted() {},
4334
4337
  methods: {
4338
+ updateContent: function updateContent(text) {
4339
+ if (!this.textContent) {
4340
+ this.textContent = text;
4341
+ }
4342
+ },
4335
4343
  sure: function sure() {
4336
4344
  var _this = this;
4337
4345
  var callback = function callback() {
@@ -4355,15 +4363,19 @@ var staticRenderFns = [];
4355
4363
  });
4356
4364
  // this.vueController.insertComment(this.textContent, this.getCustomProperty());
4357
4365
  }
4366
+ },
4367
+ close: function close() {
4368
+ this.$emit("updateCommentContent", null);
4369
+ this.$emit('closed');
4358
4370
  }
4359
4371
  }
4360
4372
  });
4361
4373
  ;// CONCATENATED MODULE: ./src/components/controls/commentDialog/CommentDialog.vue?vue&type=script&lang=js&
4362
4374
  /* harmony default export */ var commentDialog_CommentDialogvue_type_script_lang_js_ = (CommentDialogvue_type_script_lang_js_);
4363
- ;// 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/commentDialog/CommentDialog.vue?vue&type=style&index=0&id=79641e92&prod&lang=scss&
4375
+ ;// 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/commentDialog/CommentDialog.vue?vue&type=style&index=0&id=040b8f52&prod&lang=scss&
4364
4376
  // extracted by mini-css-extract-plugin
4365
4377
 
4366
- ;// CONCATENATED MODULE: ./src/components/controls/commentDialog/CommentDialog.vue?vue&type=style&index=0&id=79641e92&prod&lang=scss&
4378
+ ;// CONCATENATED MODULE: ./src/components/controls/commentDialog/CommentDialog.vue?vue&type=style&index=0&id=040b8f52&prod&lang=scss&
4367
4379
 
4368
4380
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4369
4381
  var componentNormalizer = __webpack_require__(70713);
@@ -29097,7 +29109,11 @@ var Caret = /*#__PURE__*/function () {
29097
29109
  // const g = this.cursor.graphics;
29098
29110
  // g.clear();
29099
29111
  // g.beginFill("black").rect(0, 0, 1, this._height);
29100
- this.div_cursor.style.height = Math.max(val, 12) * _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_2__/* .DrawConfig.instance */ .f.instance().scaleXY + "px";
29112
+ if (_draw_DrawConfig__WEBPACK_IMPORTED_MODULE_2__/* .DrawConfig.instance */ .f.instance().transformScale !== 1) {
29113
+ this.div_cursor.style.height = Math.max(val, 12) + "px";
29114
+ } else {
29115
+ this.div_cursor.style.height = Math.max(val, 12) * _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_2__/* .DrawConfig.instance */ .f.instance().scaleXY + "px";
29116
+ }
29101
29117
  // this.updateCaret();
29102
29118
  }
29103
29119
  }
@@ -29290,8 +29306,8 @@ var es_array_includes = __webpack_require__(26699);
29290
29306
  var es_object_keys = __webpack_require__(47941);
29291
29307
  // EXTERNAL MODULE: ./src/editor/events/Exception.ts
29292
29308
  var Exception = __webpack_require__(8277);
29293
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
29294
- var DrawTree = __webpack_require__(48970);
29309
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
29310
+ var DrawTree = __webpack_require__(51760);
29295
29311
  // EXTERNAL MODULE: ./src/editor/draw/DrawLine.ts + 1 modules
29296
29312
  var DrawLine = __webpack_require__(96635);
29297
29313
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
@@ -37584,7 +37600,7 @@ var SubDocManger = /*#__PURE__*/function () {
37584
37600
  /* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(64465);
37585
37601
  /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(32629);
37586
37602
  /* harmony import */ var _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(27198);
37587
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(48970);
37603
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(51760);
37588
37604
  /* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(78560);
37589
37605
  /* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(67945);
37590
37606
  /* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(94639);
@@ -37915,8 +37931,9 @@ var DocController = /*#__PURE__*/function () {
37915
37931
  value: function insertNodeText(node, path, text) {
37916
37932
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
37917
37933
  var curRange = hoEditorFactory.docTree.curDomRange.normalize();
37934
+ var isError;
37918
37935
  if (!curRange.isEmpty) {
37919
- this.deleteRange(curRange, true);
37936
+ isError = this.deleteRange(curRange, true);
37920
37937
  //删除选中节点
37921
37938
  // if ((hoEditorFactory.drawTree.paintStatus = PaintState.psReview)) {
37922
37939
  // this.deleteRange(curRange, true);
@@ -37933,10 +37950,12 @@ var DocController = /*#__PURE__*/function () {
37933
37950
  // }
37934
37951
  }
37935
37952
 
37936
- hoEditorFactory.undoService.begin();
37937
- // this.insertNodeByPath(textNode,this._curNodePosition.path);
37938
- hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_28__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
37939
- hoEditorFactory.undoService.commit();
37953
+ if (!isError) {
37954
+ hoEditorFactory.undoService.begin();
37955
+ // this.insertNodeByPath(textNode,this._curNodePosition.path);
37956
+ hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_28__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
37957
+ hoEditorFactory.undoService.commit();
37958
+ }
37940
37959
  }
37941
37960
  }, {
37942
37961
  key: "procText",
@@ -41470,7 +41489,7 @@ var DocController = /*#__PURE__*/function () {
41470
41489
  /* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(92501);
41471
41490
  /* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(45712);
41472
41491
  /* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(95089);
41473
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(48970);
41492
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(51760);
41474
41493
  /* harmony import */ var _treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(91105);
41475
41494
 
41476
41495
 
@@ -44950,7 +44969,7 @@ var PageProperty = /*#__PURE__*/function () {
44950
44969
  this._widthPixes = hoEditorFactory.unitConvert.mmConversionPx(this._widthMm + this._commentWidthMm, true);
44951
44970
  this._commentWidthPixes = hoEditorFactory.unitConvert.mmConversionPx(this._commentWidthMm, true);
44952
44971
  this._rightMarginPixes = hoEditorFactory.unitConvert.mmConversionPx(this._rightMarginMm + this._commentWidthMm, true);
44953
- var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
44972
+ var scaleXY = Math.max(_draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY, _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().transformScale);
44954
44973
  var width = Math.floor(this._widthPixes * scaleXY) % 2 === 1 ? Math.floor(this._widthPixes * scaleXY) + 1 : Math.floor(this._widthPixes * scaleXY);
44955
44974
  this._canvasParams.width = width;
44956
44975
  }
@@ -44967,7 +44986,7 @@ var PageProperty = /*#__PURE__*/function () {
44967
44986
  this._widthPixes = hoeditorfacotry.unitConvert.mmConversionPx(this._widthMm + this._commentWidthMm, true);
44968
44987
  hoeditorfacotry.drawTree.updateDrawTreeFirstLine();
44969
44988
  }
44970
- var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
44989
+ var scaleXY = Math.max(_draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY, _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().transformScale);
44971
44990
  var width = Math.floor(this._widthPixes * scaleXY) % 2 === 1 ? Math.floor(this._widthPixes * scaleXY) + 1 : Math.floor(this._widthPixes * scaleXY);
44972
44991
  this._canvasParams.width = width;
44973
44992
  }
@@ -44981,7 +45000,7 @@ var PageProperty = /*#__PURE__*/function () {
44981
45000
  this._heightMm = value;
44982
45001
  this._heightPixes = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._heightMm, false);
44983
45002
  }
44984
- var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
45003
+ var scaleXY = Math.max(_draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY, _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().transformScale);
44985
45004
  var height = Math.floor(this._heightPixes * scaleXY) % 2 === 1 ? Math.floor(this._heightPixes * scaleXY) + 1 : Math.floor(this._heightPixes * scaleXY);
44986
45005
  this._canvasParams.height = height;
44987
45006
  }
@@ -50532,7 +50551,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
50532
50551
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11651);
50533
50552
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19593);
50534
50553
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(78255);
50535
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(48970);
50554
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(51760);
50536
50555
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74089);
50537
50556
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62358);
50538
50557
 
@@ -50938,7 +50957,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
50938
50957
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38862);
50939
50958
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__);
50940
50959
  /* harmony import */ var _editor_draw_drawNode_DrawDateTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(81304);
50941
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48970);
50960
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(51760);
50942
50961
  /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(53901);
50943
50962
  /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(2613);
50944
50963
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74089);
@@ -51339,7 +51358,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
51339
51358
  /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(69600);
51340
51359
  /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15__);
51341
51360
  /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(93541);
51342
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48970);
51361
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(51760);
51343
51362
  /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(53901);
51344
51363
  /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(2613);
51345
51364
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74089);
@@ -53160,8 +53179,8 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
53160
53179
  }]);
53161
53180
  return DrawJumpButton;
53162
53181
  }(DrawCombineNode/* DrawCombineNode */.o);
53163
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
53164
- var DrawTree = __webpack_require__(48970);
53182
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
53183
+ var DrawTree = __webpack_require__(51760);
53165
53184
  ;// CONCATENATED MODULE: ./src/editor/dom/treeNode/JumpButtonNode.ts
53166
53185
 
53167
53186
 
@@ -53319,11 +53338,11 @@ var JumpButtonNode = /*#__PURE__*/function (_BaseNode) {
53319
53338
  /* harmony export */ "P": function() { return /* binding */ LabelNode; }
53320
53339
  /* harmony export */ });
53321
53340
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
53322
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(66298);
53341
+ /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(66298);
53323
53342
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75808);
53324
53343
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11651);
53325
53344
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19593);
53326
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(78255);
53345
+ /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(78255);
53327
53346
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9653);
53328
53347
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__);
53329
53348
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57658);
@@ -53333,12 +53352,10 @@ var JumpButtonNode = /*#__PURE__*/function (_BaseNode) {
53333
53352
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(40561);
53334
53353
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__);
53335
53354
  /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(93541);
53336
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48970);
53355
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51760);
53337
53356
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(74089);
53338
- /* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(42921);
53339
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62358);
53340
- /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91105);
53341
-
53357
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62358);
53358
+ /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(91105);
53342
53359
 
53343
53360
 
53344
53361
 
@@ -53369,7 +53386,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
53369
53386
  var _this;
53370
53387
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, LabelNode);
53371
53388
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
53372
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_associatedElement", void 0);
53389
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_associatedElement", void 0);
53373
53390
  _this._text = text;
53374
53391
  _this._styleIndex = styleIndex;
53375
53392
  _this.isAllowDelete = false;
@@ -53379,7 +53396,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
53379
53396
  _this.node2DrawNodeRange(0, 0);
53380
53397
  return _this;
53381
53398
  }
53382
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(LabelNode, [{
53399
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(LabelNode, [{
53383
53400
  key: "styleIndex",
53384
53401
  get: function get() {
53385
53402
  return this._styleIndex;
@@ -53467,8 +53484,9 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
53467
53484
  if (nodes.length > 0) {
53468
53485
  for (var j = 0; j < nodes.length; j++) {
53469
53486
  var node = nodes[j];
53470
- var result = _NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(this, node);
53471
- if (result < 0 && node.text == "") {
53487
+ //const result = NodePosition.nodePositionCompare(this, node);
53488
+ //if (result < 0 && node.text == "") {
53489
+ if (node.text == "") {
53472
53490
  drawNode.alpha = 0;
53473
53491
  break;
53474
53492
  }
@@ -53491,7 +53509,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
53491
53509
  key: "node2Json",
53492
53510
  value: function node2Json(range, isCopy) {
53493
53511
  var retObj = {
53494
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Jq[this.nodeType],
53512
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_11__/* .NodeType */ .Jq[this.nodeType],
53495
53513
  text: this.text,
53496
53514
  styleIndex: this.styleIndex,
53497
53515
  associatedElement: this.associatedElement
@@ -53511,11 +53529,11 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
53511
53529
  }], [{
53512
53530
  key: "json2Node",
53513
53531
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
53514
- return new LabelNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType.ntLabel */ .Jq.ntLabel, json.text, json.styleIndex, json.associatedElement ? json.associatedElement : undefined);
53532
+ return new LabelNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_11__/* .NodeType.ntLabel */ .Jq.ntLabel, json.text, json.styleIndex, json.associatedElement ? json.associatedElement : undefined);
53515
53533
  }
53516
53534
  }]);
53517
53535
  return LabelNode;
53518
- }(_ControlNode__WEBPACK_IMPORTED_MODULE_13__/* .ControlNode */ .w);
53536
+ }(_ControlNode__WEBPACK_IMPORTED_MODULE_12__/* .ControlNode */ .w);
53519
53537
 
53520
53538
  /***/ }),
53521
53539
 
@@ -53819,7 +53837,7 @@ var LightLocationMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
53819
53837
  /* harmony import */ var _editor_draw_drawNode_DrawMarkNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57732);
53820
53838
  /* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(29899);
53821
53839
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(74089);
53822
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(48970);
53840
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(51760);
53823
53841
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(19755);
53824
53842
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_17__);
53825
53843
 
@@ -54407,11 +54425,11 @@ var MedicalExpressionNode = /*#__PURE__*/function (_BaseNode) {
54407
54425
  /* harmony export */ "n": function() { return /* binding */ MenstrualHistoryNode; }
54408
54426
  /* harmony export */ });
54409
54427
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
54410
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(66298);
54428
+ /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(66298);
54411
54429
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75808);
54412
54430
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11651);
54413
54431
  /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19593);
54414
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(78255);
54432
+ /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(78255);
54415
54433
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41539);
54416
54434
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
54417
54435
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39714);
@@ -54420,10 +54438,19 @@ var MedicalExpressionNode = /*#__PURE__*/function (_BaseNode) {
54420
54438
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__);
54421
54439
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57658);
54422
54440
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7__);
54423
- /* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(80177);
54424
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62358);
54425
- /* harmony import */ var _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82260);
54426
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
54441
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74916);
54442
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__);
54443
+ /* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(77601);
54444
+ /* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_9__);
54445
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(15306);
54446
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__);
54447
+ /* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80177);
54448
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62358);
54449
+ /* harmony import */ var _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(82260);
54450
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74089);
54451
+
54452
+
54453
+
54427
54454
 
54428
54455
 
54429
54456
 
@@ -54437,8 +54464,8 @@ var MedicalExpressionNode = /*#__PURE__*/function (_BaseNode) {
54437
54464
  /*
54438
54465
  * @Author: your name
54439
54466
  * @Date: 2020-10-28 15:46:36
54440
- * @LastEditTime: 2022-03-25 09:33:51
54441
- * @LastEditors: Please set LastEditors
54467
+ * @LastEditTime: 2023-05-16 11:24:09
54468
+ * @LastEditors: liyanan 2441631434@qq.com
54442
54469
  * @Description: 经期史
54443
54470
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\MenstrualHistory.ts
54444
54471
  */
@@ -54460,11 +54487,11 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54460
54487
  var _this;
54461
54488
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, MenstrualHistoryNode);
54462
54489
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
54463
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_expressStyle", void 0);
54464
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menseDays", void 0);
54465
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_cycleDays", void 0);
54466
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menarcheAge", void 0);
54467
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menoPauseAge", void 0);
54490
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_expressStyle", void 0);
54491
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menseDays", void 0);
54492
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_cycleDays", void 0);
54493
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menarcheAge", void 0);
54494
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_menoPauseAge", void 0);
54468
54495
  _this._expressStyle = _this.getExpressStyle(expressStyle);
54469
54496
  _this._menseDays = menseDays;
54470
54497
  _this._cycleDays = cycleDays;
@@ -54473,7 +54500,7 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54473
54500
  _this.node2DrawNodeRange(0, 0);
54474
54501
  return _this;
54475
54502
  }
54476
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(MenstrualHistoryNode, [{
54503
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(MenstrualHistoryNode, [{
54477
54504
  key: "expressStyle",
54478
54505
  get:
54479
54506
  //表达式样式
@@ -54561,7 +54588,7 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54561
54588
  }, {
54562
54589
  key: "node2DrawNodeRange",
54563
54590
  value: function node2DrawNodeRange(startIndex, endIndex) {
54564
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
54591
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
54565
54592
  var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
54566
54593
  var cbStyle;
54567
54594
  var textStyle = hoEditorFactory.docTree.styles[curStyleIndex];
@@ -54598,7 +54625,7 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54598
54625
  }
54599
54626
  var arrValues = [this._menseDays, this._cycleDays, this._menarcheAge, this._menoPauseAge];
54600
54627
  var bIsInsert = startIndex < 0;
54601
- var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_10__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, this._expressStyle.toString(), arrValues, cbStyle, lineHight, width);
54628
+ var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_13__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, this._expressStyle.toString(), arrValues, cbStyle, lineHight, width);
54602
54629
  if (bIsInsert) {
54603
54630
  this._drawNodes.splice(0, 0, dNode);
54604
54631
  } else {
@@ -54635,7 +54662,7 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54635
54662
  key: "node2Json",
54636
54663
  value: function node2Json(range, isCopy) {
54637
54664
  var retObj = {
54638
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_9__/* .NodeType */ .Jq[this.nodeType],
54665
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Jq[this.nodeType],
54639
54666
  expressType: "MenstrualHistory",
54640
54667
  expressStyle: ExpressStyle[this.expressStyle],
54641
54668
  menseDays: this.menseDays,
@@ -54659,13 +54686,18 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
54659
54686
  }], [{
54660
54687
  key: "json2Node",
54661
54688
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
54662
- var expressStyle = ExpressStyle[json.expressStyle];
54663
- var rtn = new MenstrualHistoryNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_9__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, json.expressStyle, json.menseDays, json.cycleDays, json.menarcheAge, json.menoPauseAge);
54689
+ //const expressStyle = ExpressStyle[json.expressStyle];
54690
+ var menoPauseAge = json.menoPauseAge;
54691
+ var result = /^[0-9]*$/.test(json.menoPauseAge.replace('岁', ''));
54692
+ if (!result) {
54693
+ menoPauseAge = json.menoPauseAge.split("岁")[0];
54694
+ }
54695
+ var rtn = new MenstrualHistoryNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, json.expressStyle, json.menseDays, json.cycleDays, json.menarcheAge, menoPauseAge);
54664
54696
  return rtn;
54665
54697
  }
54666
54698
  }]);
54667
54699
  return MenstrualHistoryNode;
54668
- }(_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_8__/* .MedicalExpressionNode */ .H);
54700
+ }(_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_11__/* .MedicalExpressionNode */ .H);
54669
54701
 
54670
54702
  /***/ }),
54671
54703
 
@@ -56934,7 +56966,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
56934
56966
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_11__);
56935
56967
  /* harmony import */ var _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(88666);
56936
56968
  /* harmony import */ var _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91757);
56937
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(48970);
56969
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51760);
56938
56970
  /* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(48541);
56939
56971
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(74089);
56940
56972
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62358);
@@ -58013,8 +58045,8 @@ var DrawRareCharNode = /*#__PURE__*/function (_DrawCombineNode) {
58013
58045
  }]);
58014
58046
  return DrawRareCharNode;
58015
58047
  }(DrawCombineNode/* DrawCombineNode */.o);
58016
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
58017
- var DrawTree = __webpack_require__(48970);
58048
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
58049
+ var DrawTree = __webpack_require__(51760);
58018
58050
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
58019
58051
  var TextInputFieldNode = __webpack_require__(90161);
58020
58052
  ;// CONCATENATED MODULE: ./src/editor/dom/treeNode/RareCharNode.ts
@@ -58466,7 +58498,7 @@ var SeparateCharNode = /*#__PURE__*/function (_BaseNode) {
58466
58498
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9653);
58467
58499
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__);
58468
58500
  /* harmony import */ var _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(75638);
58469
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48970);
58501
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51760);
58470
58502
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74089);
58471
58503
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
58472
58504
 
@@ -60393,7 +60425,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
60393
60425
  /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(2613);
60394
60426
  /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(32629);
60395
60427
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(74089);
60396
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(48970);
60428
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(51760);
60397
60429
  /* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(91404);
60398
60430
  /* harmony import */ var _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(15694);
60399
60431
 
@@ -63137,7 +63169,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
63137
63169
  /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(21703);
63138
63170
  /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26__);
63139
63171
  /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(96635);
63140
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(48970);
63172
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(51760);
63141
63173
  /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(53901);
63142
63174
  /* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(48541);
63143
63175
  /* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(8277);
@@ -65644,7 +65676,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
65644
65676
  /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(68757);
65645
65677
  /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_19__);
65646
65678
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(62358);
65647
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(48970);
65679
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(51760);
65648
65680
  /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(96635);
65649
65681
  /* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(24492);
65650
65682
  /* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(29899);
@@ -66394,6 +66426,7 @@ var DrawConfig = /*#__PURE__*/function () {
66394
66426
  function DrawConfig() {
66395
66427
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawConfig);
66396
66428
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, "_scaleXY", void 0);
66429
+ (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, "_transformScale", 1);
66397
66430
  this._scaleXY = 1;
66398
66431
  }
66399
66432
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawConfig, [{
@@ -66404,6 +66437,14 @@ var DrawConfig = /*#__PURE__*/function () {
66404
66437
  set: function set(scaleXY) {
66405
66438
  this._scaleXY = scaleXY;
66406
66439
  }
66440
+ }, {
66441
+ key: "transformScale",
66442
+ get: function get() {
66443
+ return this._transformScale;
66444
+ },
66445
+ set: function set(scale) {
66446
+ this._transformScale = scale;
66447
+ }
66407
66448
  }], [{
66408
66449
  key: "instance",
66409
66450
  value: function instance() {
@@ -69659,496 +69700,6 @@ var DrawHeader = /*#__PURE__*/function (_DrawPageHeaderFooter) {
69659
69700
 
69660
69701
  /***/ }),
69661
69702
 
69662
- /***/ 72722:
69663
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
69664
-
69665
- "use strict";
69666
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
69667
- /* harmony export */ "h": function() { return /* binding */ DrawPage; }
69668
- /* harmony export */ });
69669
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80543);
69670
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81448);
69671
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70280);
69672
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(66298);
69673
- /* harmony import */ var D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(78255);
69674
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92222);
69675
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);
69676
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21703);
69677
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_4__);
69678
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38205);
69679
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_5__);
69680
- /* harmony import */ var _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32629);
69681
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(48970);
69682
- /* harmony import */ var _DrawHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5328);
69683
- /* harmony import */ var _DrawFooter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(114);
69684
- /* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80556);
69685
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
69686
- /* harmony import */ var _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(65847);
69687
-
69688
-
69689
-
69690
-
69691
-
69692
-
69693
-
69694
-
69695
-
69696
-
69697
-
69698
-
69699
-
69700
-
69701
-
69702
- var DrawPage = /*#__PURE__*/function () {
69703
- function DrawPage(hoeditorfacotryID, index //,
69704
- //doc: DocTree,
69705
- //drawTree: DrawTree
69706
- ) {
69707
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, DrawPage);
69708
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_active", void 0);
69709
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_pageIndex", void 0);
69710
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_name", void 0);
69711
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_domLevel", void 0);
69712
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_selectLevel", void 0);
69713
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_background", void 0);
69714
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
69715
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_drawDocContainer", void 0);
69716
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_headerLeftTag", void 0);
69717
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_headerRightTag", void 0);
69718
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_footerLeftTag", void 0);
69719
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_footerRightTag", void 0);
69720
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_drawHeader", void 0);
69721
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_drawFooter", void 0);
69722
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_storeDrawHeader", void 0);
69723
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_storeDrawFooter", void 0);
69724
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_needUpdateStage", void 0);
69725
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_selectContainer", void 0);
69726
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_mainDocBorder", void 0);
69727
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_drawMainDoc", void 0);
69728
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(this, "_activeDrawRect", void 0);
69729
- this._hoEditorFactoryID = hoeditorfacotryID;
69730
- this._selectContainer = new createjs.Container();
69731
- this._selectContainer.id = index;
69732
- // this._docTree = doc;
69733
- // this._drawTree = drawTree;
69734
- // this._docTree = hoeditorfacotry.docTree;
69735
- // this._drawTree = hoeditorfacotry.drawTree;
69736
- this._active = false;
69737
- this._pageIndex = index;
69738
- this._name = 'vuePage';
69739
- this._domLevel = null;
69740
- this._selectLevel = null;
69741
- this._needUpdateStage = true;
69742
- //左上角分隔标记
69743
- this._headerLeftTag = this.addAreaSplitTag(19.5, -0.5, 19.5, 19.5, 0, 19.5);
69744
- //右上角分隔标记
69745
- this._headerRightTag = this.addAreaSplitTag(0.5, -0.5, 0.5, 19.5, 19.5, 19.5);
69746
- //左下角分隔标记
69747
- this._footerLeftTag = this.addAreaSplitTag(19.5, 19.5, 19.5, 0.5, 0.5, 0.5);
69748
- //右下角分隔标记
69749
- this._footerRightTag = this.addAreaSplitTag(0.5, 20.5, 0.5, 0.5, 20.5, 0.5);
69750
- this._drawDocContainer = new createjs.Container();
69751
- }
69752
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(DrawPage, [{
69753
- key: "needUpdateStage",
69754
- get:
69755
- //当前页的激活状态
69756
- // private _docTree: DocTree;
69757
- // private _drawTree: DrawTree;
69758
- //页码
69759
-
69760
- function get() {
69761
- return this._needUpdateStage;
69762
- },
69763
- set: function set(needUpdateStage) {
69764
- this._needUpdateStage = needUpdateStage;
69765
- }
69766
- }, {
69767
- key: "storeDrawHeader",
69768
- get: function get() {
69769
- return this._storeDrawHeader;
69770
- },
69771
- set: function set(storeDrawHeader) {
69772
- this._storeDrawHeader = storeDrawHeader;
69773
- }
69774
- }, {
69775
- key: "storeDrawFooter",
69776
- get: function get() {
69777
- return this._storeDrawFooter;
69778
- },
69779
- set: function set(storeDrawFooter) {
69780
- this._storeDrawFooter = storeDrawFooter;
69781
- }
69782
- }, {
69783
- key: "drawMainDoc",
69784
- get: function get() {
69785
- return this._drawMainDoc;
69786
- }
69787
- }, {
69788
- key: "drawHeader",
69789
- get: function get() {
69790
- return this._drawHeader;
69791
- },
69792
- set: function set(drawHeader) {
69793
- this._drawHeader = drawHeader;
69794
- }
69795
- }, {
69796
- key: "drawFooter",
69797
- get: function get() {
69798
- return this._drawFooter;
69799
- },
69800
- set: function set(drawFooter) {
69801
- this._drawFooter = drawFooter;
69802
- }
69803
- }, {
69804
- key: "headerLeftTag",
69805
- get: function get() {
69806
- return this._headerLeftTag;
69807
- }
69808
- }, {
69809
- key: "headerRightTag",
69810
- get: function get() {
69811
- return this._headerRightTag;
69812
- }
69813
- //当前激活的编辑器
69814
- }, {
69815
- key: "activeDrawRect",
69816
- get: function get() {
69817
- return this._activeDrawRect;
69818
- },
69819
- set: function set(val) {
69820
- if (this._activeDrawRect != val) {
69821
- this._activeDrawRect = val;
69822
- }
69823
- }
69824
- }, {
69825
- key: "footerLeftTag",
69826
- get: function get() {
69827
- return this._footerLeftTag;
69828
- }
69829
- }, {
69830
- key: "footerRightTag",
69831
- get: function get() {
69832
- return this._footerRightTag;
69833
- }
69834
- }, {
69835
- key: "mainDocBorder",
69836
- get: function get() {
69837
- return this._mainDocBorder;
69838
- }
69839
- }, {
69840
- key: "selectContainer",
69841
- get: function get() {
69842
- return this._selectContainer;
69843
- }
69844
- }, {
69845
- key: "afterCreate",
69846
- value: function afterCreate() {
69847
- var index = this._pageIndex;
69848
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
69849
- this._drawMainDoc = hoEditorFactory.drawPageTree.drawMainDocs[index];
69850
- var headerIndex = hoEditorFactory.subDocManger.getSubDocIndex(index, _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_10__/* .HeaderFooterType.hftHead */ .pi.hftHead)[0];
69851
- this._storeDrawHeader = new _DrawHeader__WEBPACK_IMPORTED_MODULE_8__/* .DrawHeader */ .g(this._hoEditorFactoryID, "".concat(_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gHeaderPath */ .Yh, "/").concat(headerIndex), index);
69852
- var footerIndex = hoEditorFactory.subDocManger.getSubDocIndex(index, _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_10__/* .HeaderFooterType.hftFoot */ .pi.hftFoot)[0];
69853
- this._storeDrawFooter = new _DrawFooter__WEBPACK_IMPORTED_MODULE_9__/* .DrawFooter */ .d(this._hoEditorFactoryID, "".concat(_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gFooterPath */ .LE, "/").concat(footerIndex), index);
69854
- this._drawHeader = this._storeDrawHeader;
69855
- this._drawFooter = this._storeDrawFooter;
69856
- // hoEditorFactory.subDocManger.copySubDocToPages(
69857
- // hoEditorFactory.drawPageTree.drawHeaders[headerIndex],
69858
- // index,
69859
- // HeaderFooterType.hftHead
69860
- // );
69861
- // hoEditorFactory.subDocManger.repaintPageMarkNodes(
69862
- // this._drawHeader,
69863
- // HeaderFooterType.hftHead
69864
- // );
69865
- // hoEditorFactory.subDocManger.copySubDocToPages(
69866
- // hoEditorFactory.drawPageTree.drawHeaders[footerIndex],
69867
- // index,
69868
- // HeaderFooterType.hftFoot
69869
- // );
69870
- // hoEditorFactory.subDocManger.repaintPageMarkNodes(
69871
- // this._drawFooter,
69872
- // HeaderFooterType.hftFoot
69873
- // );
69874
- this._activeDrawRect = this._drawMainDoc;
69875
- }
69876
- /**
69877
- * @author xyl
69878
- * @param domLevel 文档绘制层
69879
- * @param selectLevel 选区绘制层
69880
- * @description 初始化绘制页
69881
- */
69882
- }, {
69883
- key: "init",
69884
- value: function init(domLevel, selectLevel) {
69885
- this._domLevel = domLevel;
69886
- this._selectLevel = selectLevel;
69887
- // this.repaint();
69888
- }
69889
- }, {
69890
- key: "setEnableMouseOver",
69891
- value: function setEnableMouseOver(count) {
69892
- var selectLevel = this._selectLevel;
69893
- var domLevel = this._domLevel;
69894
- if (selectLevel.stage && domLevel.stage) {
69895
- selectLevel.stage.enableMouseOver(count);
69896
- selectLevel.stage.nextStage = domLevel.stage;
69897
- domLevel.stage.enableMouseOver(count);
69898
- }
69899
- }
69900
- }, {
69901
- key: "addMainDocBorder",
69902
- value: function addMainDocBorder(topY) {
69903
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
69904
- var leftX = hoEditorFactory.pageProperty.leftMarginPixes;
69905
- var rightX = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.rightMarginPixes;
69906
- var bottomY = topY + this._drawMainDoc.dHeight;
69907
- var aTag = new createjs.Container();
69908
- var ashape = new createjs.Shape();
69909
- var color = hoEditorFactory.pageProperty.borderColor;
69910
- var paintLineStyle = hoEditorFactory.pageProperty.paintRowLine;
69911
- ashape.graphics.beginStroke(color);
69912
- if (paintLineStyle == _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__/* .PaintRowLineStyle.solid */ .kd.solid) {
69913
- ashape.graphics.setStrokeStyle(1);
69914
- } else if (paintLineStyle == _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__/* .PaintRowLineStyle.dot */ .kd.dot) {
69915
- ashape.graphics.setStrokeDash([3, 3], 0);
69916
- } else if (paintLineStyle == _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__/* .PaintRowLineStyle.dash */ .kd.dash) {
69917
- ashape.graphics.setStrokeDash([9, 9], 0);
69918
- } else if (paintLineStyle == _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__/* .PaintRowLineStyle.dashdot */ .kd.dashdot) {
69919
- ashape.graphics.setStrokeDash([9, 3, 3, 9], 0);
69920
- } else if (paintLineStyle == _editor_dom_PageProperty__WEBPACK_IMPORTED_MODULE_12__/* .PaintRowLineStyle.dashdotdo */ .kd.dashdotdo) {
69921
- ashape.graphics.setStrokeDash([9, 3, 3, 3, 3, 9], 0);
69922
- }
69923
- ashape.graphics.moveTo(leftX - 0.5, topY - 0.5);
69924
- ashape.graphics.lineTo(rightX + 0.5, topY - 0.5);
69925
- ashape.graphics.moveTo(rightX + 0.5, topY - 0.5);
69926
- ashape.graphics.lineTo(rightX + 0.5, bottomY + 0.5);
69927
- ashape.graphics.moveTo(rightX + 0.5, bottomY + 0.5);
69928
- ashape.graphics.lineTo(leftX - 0.5, bottomY + 0.5);
69929
- ashape.graphics.moveTo(leftX - 0.5, bottomY + 0.5);
69930
- ashape.graphics.lineTo(leftX - 0.5, topY - 0.5);
69931
- ashape.x = 0;
69932
- ashape.y = 0;
69933
- aTag.addChild(ashape);
69934
- return aTag;
69935
- }
69936
- }, {
69937
- key: "addAreaSplitTag",
69938
- value: function addAreaSplitTag(x1, y1, x2, y2, x3, y3) {
69939
- var aTag = new createjs.Container();
69940
- var ashape = new createjs.Shape();
69941
- ashape.graphics.beginStroke('#000').setStrokeStyle(1);
69942
- ashape.graphics.moveTo(x1, y1);
69943
- ashape.graphics.lineTo(x2, y2);
69944
- ashape.graphics.moveTo(x2, y2);
69945
- ashape.graphics.lineTo(x3, y3);
69946
- ashape.x = 0;
69947
- ashape.y = 0;
69948
- aTag.addChild(ashape);
69949
- return aTag;
69950
- }
69951
- }, {
69952
- key: "drawSelectLevel",
69953
- get: function get() {
69954
- return this._selectLevel;
69955
- }
69956
- }, {
69957
- key: "drawDomLevel",
69958
- get: function get() {
69959
- return this._domLevel;
69960
- }
69961
- // get docTree() {
69962
- // return this._docTree;
69963
- // }
69964
- // get drawTree() {
69965
- // return this._drawTree;
69966
- // }
69967
- }, {
69968
- key: "pageIndex",
69969
- get: function get() {
69970
- return this._pageIndex;
69971
- }
69972
- }, {
69973
- key: "name",
69974
- get: function get() {
69975
- return this._name;
69976
- }
69977
- /**
69978
- *
69979
- * @param mode 0:清空selectlevel 1:清空DomLevel
69980
- */
69981
- }, {
69982
- key: "clear",
69983
- value: function clear(mode) {
69984
- var lm = typeof mode != 'number' ? 2 : mode;
69985
- if (lm != 1) {
69986
- this._selectContainer.removeAllChildren();
69987
- }
69988
- if (this._domLevel && this._domLevel.stage && lm != 0) {
69989
- this._domLevel.stage.clear();
69990
- }
69991
- }
69992
- }, {
69993
- key: "destory",
69994
- value: function destory() {
69995
- this._domLevel = null;
69996
- this._selectLevel = null;
69997
- }
69998
- /**
69999
- * 更新页面绘制范围
70000
- */
70001
- }, {
70002
- key: "reFreshBounds",
70003
- value: function reFreshBounds() {
70004
- if (!this._domLevel) return;
70005
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
70006
- this.pageIndex;
70007
- var dhheight = Math.max(this._drawHeader.actualHeight + hoEditorFactory.pageProperty.headerYPixes, hoEditorFactory.pageProperty.topMarginPixes);
70008
- var dfheight = Math.max(this._drawFooter.actualHeight + hoEditorFactory.pageProperty.footerYPixes, hoEditorFactory.pageProperty.bottomMarginPixes); // Math.max(
70009
- // hoEditorFactory.pageProperty.topMarginPixes,
70010
- // wHeaderthis._domLevel.dra.actualHeight
70011
- // );
70012
- // const dfheight = Math.max(
70013
- // hoEditorFactory.pageProperty.topMarginPixes,
70014
- // this._drawFooter.actualHeight
70015
- // );
70016
- // console.log(dhheight);
70017
- // if (path.startsWith('header') || path.startsWith('footer')) {
70018
- //根据页眉,页脚高度重新设置正文位置和高度
70019
- this._domLevel.mainDocTop = dhheight;
70020
- this.drawMainDoc.maxHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
70021
- this.drawMainDoc.dHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
70022
- //TODO:正文重新绘制,还可能创建新的页面,等其他操作 this._domLevel.drawMainDoc.paintArea();
70023
- // }
70024
- // if (path.startsWith('footer')) {
70025
- this._drawHeader.y = hoEditorFactory.pageProperty.headerYPixes;
70026
- this._drawFooter.dTop = hoEditorFactory.pageProperty.heightPixes - dfheight;
70027
- this._drawFooter.y = this._drawFooter.dTop;
70028
- this._domLevel.footerTop = this._drawFooter.dTop;
70029
- this._headerLeftTag.y = dhheight - 20;
70030
- this._headerLeftTag.x = hoEditorFactory.pageProperty.leftMarginPixes - 20;
70031
- this._headerRightTag.x = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.rightMarginPixes;
70032
- this._headerRightTag.y = dhheight - 20;
70033
- this._footerLeftTag.y = this._drawFooter.y;
70034
- this._footerLeftTag.x = this._headerLeftTag.x;
70035
- this._footerRightTag.x = this._headerRightTag.x;
70036
- this._footerRightTag.y = this._drawFooter.y;
70037
- this._drawMainDoc.x = hoEditorFactory.pageProperty.leftMarginPixes;
70038
- this._mainDocBorder && (this._mainDocBorder.children = []);
70039
- if (hoEditorFactory.pageProperty.borderColor !== '#FFFFFF' && hoEditorFactory.pageProperty.isPaintBorder) {
70040
- var _this$_domLevel$stage;
70041
- this._mainDocBorder = this.addMainDocBorder(dhheight);
70042
- (_this$_domLevel$stage = this._domLevel.stage) === null || _this$_domLevel$stage === void 0 ? void 0 : _this$_domLevel$stage.addChild(this._mainDocBorder);
70043
- }
70044
- this._drawHeader.paintMask(dhheight);
70045
- this._drawFooter.paintMask(dfheight);
70046
- hoEditorFactory.pageProperty.canvasHeadFootPos.headerY = dhheight;
70047
- hoEditorFactory.pageProperty.canvasHeadFootPos.footerY = dfheight;
70048
- // }
70049
- // this.refresh();
70050
- }
70051
- /**
70052
- * 隐藏此页面上的表格边框
70053
- */
70054
- // public hideCellBorder() {
70055
- // const maindoc = this.drawDomLevel?.drawMainDoc;
70056
- // if (maindoc) {
70057
- // maindoc.drawLines.forEach((value) => {
70058
- // if (value instanceof DrawPageCell) {
70059
- // //TODO:隐藏边框
70060
- // console.log("隐藏边框");
70061
- // }
70062
- // });
70063
- // }
70064
- // }
70065
- }, {
70066
- key: "paintBackGround",
70067
- value: function () {
70068
- var _paintBackGround = (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().mark(function _callee() {
70069
- var hoEditorFactory, backColor;
70070
- return (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
70071
- while (1) {
70072
- switch (_context.prev = _context.next) {
70073
- case 0:
70074
- // const isHaveBgImage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.isHaveBgImage;
70075
- // if (!isHaveBgImage) {
70076
- //TODO:如果没有设置背景或者背景为空时绘制白色背景
70077
- if (!this._background) this._background = new createjs.Shape();
70078
- hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
70079
- this._background.graphics.clear();
70080
- backColor = hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__/* .PaintState.psPreview */ .Dh.psPreview ? '#FFFFFF' : '#FFFFFF'; // this._background.graphics
70081
- // .beginFill(backColor)
70082
- // .drawRect(
70083
- // 0,
70084
- // 0,
70085
- // hoEditorFactory.pageProperty.widthPixes,
70086
- // hoEditorFactory.pageProperty.heightPixes
70087
- // )
70088
- // .closePath();
70089
- this._background.graphics.beginFill(backColor).drawRect(0, 0, hoEditorFactory.pageProperty.canvasParams.width, hoEditorFactory.pageProperty.canvasParams.height).closePath();
70090
- if (this._domLevel && this._domLevel.stage) {
70091
- this.drawDocContainer.addChildAt(this._background, 0);
70092
- }
70093
- case 6:
70094
- case "end":
70095
- return _context.stop();
70096
- }
70097
- }
70098
- }, _callee, this);
70099
- }));
70100
- function paintBackGround() {
70101
- return _paintBackGround.apply(this, arguments);
70102
- }
70103
- return paintBackGround;
70104
- }()
70105
- }, {
70106
- key: "removeBackGroud",
70107
- value: function removeBackGroud() {
70108
- if (this._background && this._domLevel && this._domLevel.stage) {
70109
- this.drawDocContainer.removeChild(this._background);
70110
- }
70111
- }
70112
- }, {
70113
- key: "BackGround",
70114
- get: function get() {
70115
- return this._background;
70116
- }
70117
- /**
70118
- * @author xyl
70119
- * @param path 路径
70120
- * @returns 根据文档路径获取当前所在的绘制区域对象
70121
- *
70122
- */
70123
- }, {
70124
- key: "getDrawAreaByPath",
70125
- value: function getDrawAreaByPath(path) {
70126
- var arr = path.split('/');
70127
- if (arr[0] === _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gMainPath */ .d9) {
70128
- return this._drawMainDoc;
70129
- } else if (arr[0] === _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gHeaderPath */ .Yh) {
70130
- //FIXME:这样返回是过渡,因为hodoc.vue返回的pagepos不对
70131
- // return hoEditorFactory.drawTree.getHeaderByPath(path);
70132
- return this._drawHeader;
70133
- } else if (arr[0] === _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gFooterPath */ .LE) {
70134
- //FIXME:这样返回是过渡,因为hodoc.vue返回的pagepos不对
70135
- // return hoEditorFactory.drawTree.getFooterByPath(path);
70136
- return this._drawFooter;
70137
- } else {
70138
- throw new Error("\u9519\u8BEF\u7684\u6587\u6863\u8DEF\u5F84:".concat(path));
70139
- }
70140
- }
70141
- }, {
70142
- key: "drawDocContainer",
70143
- get: function get() {
70144
- return this._drawDocContainer;
70145
- }
70146
- }]);
70147
- return DrawPage;
70148
- }();
70149
-
70150
- /***/ }),
70151
-
70152
69703
  /***/ 56128:
70153
69704
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
70154
69705
 
@@ -71049,7 +70600,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
71049
70600
  /* harmony import */ var _IDrawInfos__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(78632);
71050
70601
  /* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(48541);
71051
70602
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(74089);
71052
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48970);
70603
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51760);
71053
70604
  /* harmony import */ var _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(90161);
71054
70605
 
71055
70606
 
@@ -71811,7 +71362,7 @@ var DrawDownListNode = /*#__PURE__*/function (_DrawCombineNode) {
71811
71362
  /* harmony import */ var _editor_dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57727);
71812
71363
  /* harmony import */ var _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(90161);
71813
71364
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(74089);
71814
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(48970);
71365
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51760);
71815
71366
  /* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57590);
71816
71367
 
71817
71368
 
@@ -72651,8 +72202,8 @@ var HOEditorFactorys = __webpack_require__(74089);
72651
72202
  var DrawArea = __webpack_require__(83358);
72652
72203
  // EXTERNAL MODULE: ./src/editor/draw/DrawLine.ts + 1 modules
72653
72204
  var DrawLine = __webpack_require__(96635);
72654
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
72655
- var DrawTree = __webpack_require__(48970);
72205
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
72206
+ var DrawTree = __webpack_require__(51760);
72656
72207
  // EXTERNAL MODULE: ./src/editor/draw/IDrawInfos.ts
72657
72208
  var IDrawInfos = __webpack_require__(78632);
72658
72209
  // EXTERNAL MODULE: ./src/editor/draw/PagePaintPosition.ts
@@ -73795,7 +73346,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
73795
73346
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(74089);
73796
73347
  /* harmony import */ var _drawArea_DrawHeader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(5328);
73797
73348
  /* harmony import */ var _drawArea_DrawFooter__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(114);
73798
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(48970);
73349
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(51760);
73799
73350
  /* harmony import */ var _DrawPageTable__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15694);
73800
73351
 
73801
73352
 
@@ -74050,7 +73601,7 @@ var DrawPageMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
74050
73601
  /* harmony import */ var _editor_dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(90832);
74051
73602
  /* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5010);
74052
73603
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74089);
74053
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(48970);
73604
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(51760);
74054
73605
  /* harmony import */ var _IDrawInfos__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(78632);
74055
73606
  /* harmony import */ var _DrawPageCell__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(59105);
74056
73607
  /* harmony import */ var _DrawRect__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34311);
@@ -77832,8 +77383,8 @@ var yuki_createjs = __webpack_require__(38205);
77832
77383
  var DrawCombineNode = __webpack_require__(66114);
77833
77384
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
77834
77385
  var TextNode = __webpack_require__(27198);
77835
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
77836
- var DrawTree = __webpack_require__(48970);
77386
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
77387
+ var DrawTree = __webpack_require__(51760);
77837
77388
  // EXTERNAL MODULE: ./src/editor/dom/domNode/TextStyle.ts
77838
77389
  var TextStyle = __webpack_require__(29899);
77839
77390
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
@@ -78764,7 +78315,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
78764
78315
  /* harmony import */ var core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_2__);
78765
78316
  /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38205);
78766
78317
  /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_3__);
78767
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48970);
78318
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51760);
78768
78319
  /* harmony import */ var _editor_dom_domNode_TextStyle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29899);
78769
78320
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74089);
78770
78321
  /* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57590);
@@ -79580,7 +79131,7 @@ var DrawPrintSelected = /*#__PURE__*/function (_DrawPrintBase) {
79580
79131
 
79581
79132
  /***/ }),
79582
79133
 
79583
- /***/ 48970:
79134
+ /***/ 51760:
79584
79135
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
79585
79136
 
79586
79137
  "use strict";
@@ -80203,8 +79754,477 @@ var Editor = /*#__PURE__*/function () {
80203
79754
  var DrawLine = __webpack_require__(96635);
80204
79755
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
80205
79756
  var DrawCombineNode = __webpack_require__(66114);
80206
- // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPage.ts
80207
- var DrawPage = __webpack_require__(72722);
79757
+ // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawHeader.ts
79758
+ var DrawHeader = __webpack_require__(5328);
79759
+ // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawFooter.ts
79760
+ var DrawFooter = __webpack_require__(114);
79761
+ // EXTERNAL MODULE: ./src/editor/SubDocManger.ts
79762
+ var SubDocManger = __webpack_require__(80556);
79763
+ // EXTERNAL MODULE: ./src/editor/dom/PageProperty.ts
79764
+ var PageProperty = __webpack_require__(65847);
79765
+ ;// CONCATENATED MODULE: ./src/editor/draw/drawArea/DrawPage.ts
79766
+
79767
+
79768
+
79769
+
79770
+
79771
+
79772
+
79773
+
79774
+
79775
+
79776
+
79777
+
79778
+
79779
+
79780
+
79781
+ var DrawPage = /*#__PURE__*/function () {
79782
+ function DrawPage(hoeditorfacotryID, index //,
79783
+ //doc: DocTree,
79784
+ //drawTree: DrawTree
79785
+ ) {
79786
+ (0,classCallCheck/* default */.Z)(this, DrawPage);
79787
+ (0,defineProperty/* default */.Z)(this, "_active", void 0);
79788
+ (0,defineProperty/* default */.Z)(this, "_pageIndex", void 0);
79789
+ (0,defineProperty/* default */.Z)(this, "_name", void 0);
79790
+ (0,defineProperty/* default */.Z)(this, "_domLevel", void 0);
79791
+ (0,defineProperty/* default */.Z)(this, "_selectLevel", void 0);
79792
+ (0,defineProperty/* default */.Z)(this, "_background", void 0);
79793
+ (0,defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
79794
+ (0,defineProperty/* default */.Z)(this, "_drawDocContainer", void 0);
79795
+ (0,defineProperty/* default */.Z)(this, "_headerLeftTag", void 0);
79796
+ (0,defineProperty/* default */.Z)(this, "_headerRightTag", void 0);
79797
+ (0,defineProperty/* default */.Z)(this, "_footerLeftTag", void 0);
79798
+ (0,defineProperty/* default */.Z)(this, "_footerRightTag", void 0);
79799
+ (0,defineProperty/* default */.Z)(this, "_drawHeader", void 0);
79800
+ (0,defineProperty/* default */.Z)(this, "_drawFooter", void 0);
79801
+ (0,defineProperty/* default */.Z)(this, "_storeDrawHeader", void 0);
79802
+ (0,defineProperty/* default */.Z)(this, "_storeDrawFooter", void 0);
79803
+ (0,defineProperty/* default */.Z)(this, "_needUpdateStage", void 0);
79804
+ (0,defineProperty/* default */.Z)(this, "_selectContainer", void 0);
79805
+ (0,defineProperty/* default */.Z)(this, "_mainDocBorder", void 0);
79806
+ (0,defineProperty/* default */.Z)(this, "_drawMainDoc", void 0);
79807
+ (0,defineProperty/* default */.Z)(this, "_activeDrawRect", void 0);
79808
+ this._hoEditorFactoryID = hoeditorfacotryID;
79809
+ this._selectContainer = new createjs.Container();
79810
+ this._selectContainer.id = index;
79811
+ // this._docTree = doc;
79812
+ // this._drawTree = drawTree;
79813
+ // this._docTree = hoeditorfacotry.docTree;
79814
+ // this._drawTree = hoeditorfacotry.drawTree;
79815
+ this._active = false;
79816
+ this._pageIndex = index;
79817
+ this._name = 'vuePage';
79818
+ this._domLevel = null;
79819
+ this._selectLevel = null;
79820
+ this._needUpdateStage = true;
79821
+ //左上角分隔标记
79822
+ this._headerLeftTag = this.addAreaSplitTag(19.5, -0.5, 19.5, 19.5, 0, 19.5);
79823
+ //右上角分隔标记
79824
+ this._headerRightTag = this.addAreaSplitTag(0.5, -0.5, 0.5, 19.5, 19.5, 19.5);
79825
+ //左下角分隔标记
79826
+ this._footerLeftTag = this.addAreaSplitTag(19.5, 19.5, 19.5, 0.5, 0.5, 0.5);
79827
+ //右下角分隔标记
79828
+ this._footerRightTag = this.addAreaSplitTag(0.5, 20.5, 0.5, 0.5, 20.5, 0.5);
79829
+ this._drawDocContainer = new createjs.Container();
79830
+ }
79831
+ (0,createClass/* default */.Z)(DrawPage, [{
79832
+ key: "needUpdateStage",
79833
+ get:
79834
+ //当前页的激活状态
79835
+ // private _docTree: DocTree;
79836
+ // private _drawTree: DrawTree;
79837
+ //页码
79838
+
79839
+ function get() {
79840
+ return this._needUpdateStage;
79841
+ },
79842
+ set: function set(needUpdateStage) {
79843
+ this._needUpdateStage = needUpdateStage;
79844
+ }
79845
+ }, {
79846
+ key: "storeDrawHeader",
79847
+ get: function get() {
79848
+ return this._storeDrawHeader;
79849
+ },
79850
+ set: function set(storeDrawHeader) {
79851
+ this._storeDrawHeader = storeDrawHeader;
79852
+ }
79853
+ }, {
79854
+ key: "storeDrawFooter",
79855
+ get: function get() {
79856
+ return this._storeDrawFooter;
79857
+ },
79858
+ set: function set(storeDrawFooter) {
79859
+ this._storeDrawFooter = storeDrawFooter;
79860
+ }
79861
+ }, {
79862
+ key: "drawMainDoc",
79863
+ get: function get() {
79864
+ return this._drawMainDoc;
79865
+ }
79866
+ }, {
79867
+ key: "drawHeader",
79868
+ get: function get() {
79869
+ return this._drawHeader;
79870
+ },
79871
+ set: function set(drawHeader) {
79872
+ this._drawHeader = drawHeader;
79873
+ }
79874
+ }, {
79875
+ key: "drawFooter",
79876
+ get: function get() {
79877
+ return this._drawFooter;
79878
+ },
79879
+ set: function set(drawFooter) {
79880
+ this._drawFooter = drawFooter;
79881
+ }
79882
+ }, {
79883
+ key: "headerLeftTag",
79884
+ get: function get() {
79885
+ return this._headerLeftTag;
79886
+ }
79887
+ }, {
79888
+ key: "headerRightTag",
79889
+ get: function get() {
79890
+ return this._headerRightTag;
79891
+ }
79892
+ //当前激活的编辑器
79893
+ }, {
79894
+ key: "activeDrawRect",
79895
+ get: function get() {
79896
+ return this._activeDrawRect;
79897
+ },
79898
+ set: function set(val) {
79899
+ if (this._activeDrawRect != val) {
79900
+ this._activeDrawRect = val;
79901
+ }
79902
+ }
79903
+ }, {
79904
+ key: "footerLeftTag",
79905
+ get: function get() {
79906
+ return this._footerLeftTag;
79907
+ }
79908
+ }, {
79909
+ key: "footerRightTag",
79910
+ get: function get() {
79911
+ return this._footerRightTag;
79912
+ }
79913
+ }, {
79914
+ key: "mainDocBorder",
79915
+ get: function get() {
79916
+ return this._mainDocBorder;
79917
+ }
79918
+ }, {
79919
+ key: "selectContainer",
79920
+ get: function get() {
79921
+ return this._selectContainer;
79922
+ }
79923
+ }, {
79924
+ key: "afterCreate",
79925
+ value: function afterCreate() {
79926
+ var index = this._pageIndex;
79927
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
79928
+ this._drawMainDoc = hoEditorFactory.drawPageTree.drawMainDocs[index];
79929
+ var headerIndex = hoEditorFactory.subDocManger.getSubDocIndex(index, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead)[0];
79930
+ this._storeDrawHeader = new DrawHeader/* DrawHeader */.g(this._hoEditorFactoryID, "".concat(DocTree/* gHeaderPath */.Yh, "/").concat(headerIndex), index);
79931
+ var footerIndex = hoEditorFactory.subDocManger.getSubDocIndex(index, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot)[0];
79932
+ this._storeDrawFooter = new DrawFooter/* DrawFooter */.d(this._hoEditorFactoryID, "".concat(DocTree/* gFooterPath */.LE, "/").concat(footerIndex), index);
79933
+ this._drawHeader = this._storeDrawHeader;
79934
+ this._drawFooter = this._storeDrawFooter;
79935
+ // hoEditorFactory.subDocManger.copySubDocToPages(
79936
+ // hoEditorFactory.drawPageTree.drawHeaders[headerIndex],
79937
+ // index,
79938
+ // HeaderFooterType.hftHead
79939
+ // );
79940
+ // hoEditorFactory.subDocManger.repaintPageMarkNodes(
79941
+ // this._drawHeader,
79942
+ // HeaderFooterType.hftHead
79943
+ // );
79944
+ // hoEditorFactory.subDocManger.copySubDocToPages(
79945
+ // hoEditorFactory.drawPageTree.drawHeaders[footerIndex],
79946
+ // index,
79947
+ // HeaderFooterType.hftFoot
79948
+ // );
79949
+ // hoEditorFactory.subDocManger.repaintPageMarkNodes(
79950
+ // this._drawFooter,
79951
+ // HeaderFooterType.hftFoot
79952
+ // );
79953
+ this._activeDrawRect = this._drawMainDoc;
79954
+ }
79955
+ /**
79956
+ * @author xyl
79957
+ * @param domLevel 文档绘制层
79958
+ * @param selectLevel 选区绘制层
79959
+ * @description 初始化绘制页
79960
+ */
79961
+ }, {
79962
+ key: "init",
79963
+ value: function init(domLevel, selectLevel) {
79964
+ this._domLevel = domLevel;
79965
+ this._selectLevel = selectLevel;
79966
+ // this.repaint();
79967
+ }
79968
+ }, {
79969
+ key: "setEnableMouseOver",
79970
+ value: function setEnableMouseOver(count) {
79971
+ var selectLevel = this._selectLevel;
79972
+ var domLevel = this._domLevel;
79973
+ if (selectLevel.stage && domLevel.stage) {
79974
+ selectLevel.stage.enableMouseOver(count);
79975
+ selectLevel.stage.nextStage = domLevel.stage;
79976
+ domLevel.stage.enableMouseOver(count);
79977
+ }
79978
+ }
79979
+ }, {
79980
+ key: "addMainDocBorder",
79981
+ value: function addMainDocBorder(topY) {
79982
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
79983
+ var leftX = hoEditorFactory.pageProperty.leftMarginPixes;
79984
+ var rightX = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.rightMarginPixes;
79985
+ var bottomY = topY + this._drawMainDoc.dHeight;
79986
+ var aTag = new createjs.Container();
79987
+ var ashape = new createjs.Shape();
79988
+ var color = hoEditorFactory.pageProperty.borderColor;
79989
+ var paintLineStyle = hoEditorFactory.pageProperty.paintRowLine;
79990
+ ashape.graphics.beginStroke(color);
79991
+ if (paintLineStyle == PageProperty/* PaintRowLineStyle.solid */.kd.solid) {
79992
+ ashape.graphics.setStrokeStyle(1);
79993
+ } else if (paintLineStyle == PageProperty/* PaintRowLineStyle.dot */.kd.dot) {
79994
+ ashape.graphics.setStrokeDash([3, 3], 0);
79995
+ } else if (paintLineStyle == PageProperty/* PaintRowLineStyle.dash */.kd.dash) {
79996
+ ashape.graphics.setStrokeDash([9, 9], 0);
79997
+ } else if (paintLineStyle == PageProperty/* PaintRowLineStyle.dashdot */.kd.dashdot) {
79998
+ ashape.graphics.setStrokeDash([9, 3, 3, 9], 0);
79999
+ } else if (paintLineStyle == PageProperty/* PaintRowLineStyle.dashdotdo */.kd.dashdotdo) {
80000
+ ashape.graphics.setStrokeDash([9, 3, 3, 3, 3, 9], 0);
80001
+ }
80002
+ ashape.graphics.moveTo(leftX - 0.5, topY - 0.5);
80003
+ ashape.graphics.lineTo(rightX + 0.5, topY - 0.5);
80004
+ ashape.graphics.moveTo(rightX + 0.5, topY - 0.5);
80005
+ ashape.graphics.lineTo(rightX + 0.5, bottomY + 0.5);
80006
+ ashape.graphics.moveTo(rightX + 0.5, bottomY + 0.5);
80007
+ ashape.graphics.lineTo(leftX - 0.5, bottomY + 0.5);
80008
+ ashape.graphics.moveTo(leftX - 0.5, bottomY + 0.5);
80009
+ ashape.graphics.lineTo(leftX - 0.5, topY - 0.5);
80010
+ ashape.x = 0;
80011
+ ashape.y = 0;
80012
+ aTag.addChild(ashape);
80013
+ return aTag;
80014
+ }
80015
+ }, {
80016
+ key: "addAreaSplitTag",
80017
+ value: function addAreaSplitTag(x1, y1, x2, y2, x3, y3) {
80018
+ var aTag = new createjs.Container();
80019
+ var ashape = new createjs.Shape();
80020
+ ashape.graphics.beginStroke('#000').setStrokeStyle(1);
80021
+ ashape.graphics.moveTo(x1, y1);
80022
+ ashape.graphics.lineTo(x2, y2);
80023
+ ashape.graphics.moveTo(x2, y2);
80024
+ ashape.graphics.lineTo(x3, y3);
80025
+ ashape.x = 0;
80026
+ ashape.y = 0;
80027
+ aTag.addChild(ashape);
80028
+ return aTag;
80029
+ }
80030
+ }, {
80031
+ key: "drawSelectLevel",
80032
+ get: function get() {
80033
+ return this._selectLevel;
80034
+ }
80035
+ }, {
80036
+ key: "drawDomLevel",
80037
+ get: function get() {
80038
+ return this._domLevel;
80039
+ }
80040
+ // get docTree() {
80041
+ // return this._docTree;
80042
+ // }
80043
+ // get drawTree() {
80044
+ // return this._drawTree;
80045
+ // }
80046
+ }, {
80047
+ key: "pageIndex",
80048
+ get: function get() {
80049
+ return this._pageIndex;
80050
+ }
80051
+ }, {
80052
+ key: "name",
80053
+ get: function get() {
80054
+ return this._name;
80055
+ }
80056
+ /**
80057
+ *
80058
+ * @param mode 0:清空selectlevel 1:清空DomLevel
80059
+ */
80060
+ }, {
80061
+ key: "clear",
80062
+ value: function clear(mode) {
80063
+ var lm = typeof mode != 'number' ? 2 : mode;
80064
+ if (lm != 1) {
80065
+ this._selectContainer.removeAllChildren();
80066
+ }
80067
+ if (this._domLevel && this._domLevel.stage && lm != 0) {
80068
+ this._domLevel.stage.clear();
80069
+ }
80070
+ }
80071
+ }, {
80072
+ key: "destory",
80073
+ value: function destory() {
80074
+ this._domLevel = null;
80075
+ this._selectLevel = null;
80076
+ }
80077
+ /**
80078
+ * 更新页面绘制范围
80079
+ */
80080
+ }, {
80081
+ key: "reFreshBounds",
80082
+ value: function reFreshBounds() {
80083
+ if (!this._domLevel) return;
80084
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
80085
+ this.pageIndex;
80086
+ var dhheight = Math.max(this._drawHeader.actualHeight + hoEditorFactory.pageProperty.headerYPixes, hoEditorFactory.pageProperty.topMarginPixes);
80087
+ var dfheight = Math.max(this._drawFooter.actualHeight + hoEditorFactory.pageProperty.footerYPixes, hoEditorFactory.pageProperty.bottomMarginPixes); // Math.max(
80088
+ // hoEditorFactory.pageProperty.topMarginPixes,
80089
+ // wHeaderthis._domLevel.dra.actualHeight
80090
+ // );
80091
+ // const dfheight = Math.max(
80092
+ // hoEditorFactory.pageProperty.topMarginPixes,
80093
+ // this._drawFooter.actualHeight
80094
+ // );
80095
+ // console.log(dhheight);
80096
+ // if (path.startsWith('header') || path.startsWith('footer')) {
80097
+ //根据页眉,页脚高度重新设置正文位置和高度
80098
+ this._domLevel.mainDocTop = dhheight;
80099
+ this.drawMainDoc.maxHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
80100
+ this.drawMainDoc.dHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
80101
+ //TODO:正文重新绘制,还可能创建新的页面,等其他操作 this._domLevel.drawMainDoc.paintArea();
80102
+ // }
80103
+ // if (path.startsWith('footer')) {
80104
+ this._drawHeader.y = hoEditorFactory.pageProperty.headerYPixes;
80105
+ this._drawFooter.dTop = hoEditorFactory.pageProperty.heightPixes - dfheight;
80106
+ this._drawFooter.y = this._drawFooter.dTop;
80107
+ this._domLevel.footerTop = this._drawFooter.dTop;
80108
+ this._headerLeftTag.y = dhheight - 20;
80109
+ this._headerLeftTag.x = hoEditorFactory.pageProperty.leftMarginPixes - 20;
80110
+ this._headerRightTag.x = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.rightMarginPixes;
80111
+ this._headerRightTag.y = dhheight - 20;
80112
+ this._footerLeftTag.y = this._drawFooter.y;
80113
+ this._footerLeftTag.x = this._headerLeftTag.x;
80114
+ this._footerRightTag.x = this._headerRightTag.x;
80115
+ this._footerRightTag.y = this._drawFooter.y;
80116
+ this._drawMainDoc.x = hoEditorFactory.pageProperty.leftMarginPixes;
80117
+ this._mainDocBorder && (this._mainDocBorder.children = []);
80118
+ if (hoEditorFactory.pageProperty.borderColor !== '#FFFFFF' && hoEditorFactory.pageProperty.isPaintBorder) {
80119
+ var _this$_domLevel$stage;
80120
+ this._mainDocBorder = this.addMainDocBorder(dhheight);
80121
+ (_this$_domLevel$stage = this._domLevel.stage) === null || _this$_domLevel$stage === void 0 ? void 0 : _this$_domLevel$stage.addChild(this._mainDocBorder);
80122
+ }
80123
+ this._drawHeader.paintMask(dhheight);
80124
+ this._drawFooter.paintMask(dfheight);
80125
+ hoEditorFactory.pageProperty.canvasHeadFootPos.headerY = dhheight;
80126
+ hoEditorFactory.pageProperty.canvasHeadFootPos.footerY = dfheight;
80127
+ // }
80128
+ // this.refresh();
80129
+ }
80130
+ /**
80131
+ * 隐藏此页面上的表格边框
80132
+ */
80133
+ // public hideCellBorder() {
80134
+ // const maindoc = this.drawDomLevel?.drawMainDoc;
80135
+ // if (maindoc) {
80136
+ // maindoc.drawLines.forEach((value) => {
80137
+ // if (value instanceof DrawPageCell) {
80138
+ // //TODO:隐藏边框
80139
+ // console.log("隐藏边框");
80140
+ // }
80141
+ // });
80142
+ // }
80143
+ // }
80144
+ }, {
80145
+ key: "paintBackGround",
80146
+ value: function () {
80147
+ var _paintBackGround = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
80148
+ var hoEditorFactory, backColor;
80149
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
80150
+ while (1) {
80151
+ switch (_context.prev = _context.next) {
80152
+ case 0:
80153
+ // const isHaveBgImage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.isHaveBgImage;
80154
+ // if (!isHaveBgImage) {
80155
+ //TODO:如果没有设置背景或者背景为空时绘制白色背景
80156
+ if (!this._background) this._background = new createjs.Shape();
80157
+ hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
80158
+ this._background.graphics.clear();
80159
+ backColor = hoEditorFactory.drawTree.paintStatus === PaintState.psPreview ? '#FFFFFF' : '#FFFFFF'; // this._background.graphics
80160
+ // .beginFill(backColor)
80161
+ // .drawRect(
80162
+ // 0,
80163
+ // 0,
80164
+ // hoEditorFactory.pageProperty.widthPixes,
80165
+ // hoEditorFactory.pageProperty.heightPixes
80166
+ // )
80167
+ // .closePath();
80168
+ this._background.graphics.beginFill(backColor).drawRect(0, 0, hoEditorFactory.pageProperty.canvasParams.width, hoEditorFactory.pageProperty.canvasParams.height).closePath();
80169
+ if (this._domLevel && this._domLevel.stage) {
80170
+ this.drawDocContainer.addChildAt(this._background, 0);
80171
+ }
80172
+ case 6:
80173
+ case "end":
80174
+ return _context.stop();
80175
+ }
80176
+ }
80177
+ }, _callee, this);
80178
+ }));
80179
+ function paintBackGround() {
80180
+ return _paintBackGround.apply(this, arguments);
80181
+ }
80182
+ return paintBackGround;
80183
+ }()
80184
+ }, {
80185
+ key: "removeBackGroud",
80186
+ value: function removeBackGroud() {
80187
+ if (this._background && this._domLevel && this._domLevel.stage) {
80188
+ this.drawDocContainer.removeChild(this._background);
80189
+ }
80190
+ }
80191
+ }, {
80192
+ key: "BackGround",
80193
+ get: function get() {
80194
+ return this._background;
80195
+ }
80196
+ /**
80197
+ * @author xyl
80198
+ * @param path 路径
80199
+ * @returns 根据文档路径获取当前所在的绘制区域对象
80200
+ *
80201
+ */
80202
+ }, {
80203
+ key: "getDrawAreaByPath",
80204
+ value: function getDrawAreaByPath(path) {
80205
+ var arr = path.split('/');
80206
+ if (arr[0] === DocTree/* gMainPath */.d9) {
80207
+ return this._drawMainDoc;
80208
+ } else if (arr[0] === DocTree/* gHeaderPath */.Yh) {
80209
+ //FIXME:这样返回是过渡,因为hodoc.vue返回的pagepos不对
80210
+ // return hoEditorFactory.drawTree.getHeaderByPath(path);
80211
+ return this._drawHeader;
80212
+ } else if (arr[0] === DocTree/* gFooterPath */.LE) {
80213
+ //FIXME:这样返回是过渡,因为hodoc.vue返回的pagepos不对
80214
+ // return hoEditorFactory.drawTree.getFooterByPath(path);
80215
+ return this._drawFooter;
80216
+ } else {
80217
+ throw new Error("\u9519\u8BEF\u7684\u6587\u6863\u8DEF\u5F84:".concat(path));
80218
+ }
80219
+ }
80220
+ }, {
80221
+ key: "drawDocContainer",
80222
+ get: function get() {
80223
+ return this._drawDocContainer;
80224
+ }
80225
+ }]);
80226
+ return DrawPage;
80227
+ }();
80208
80228
  // EXTERNAL MODULE: ./src/editor/dom/DomRange.ts
80209
80229
  var DomRange = __webpack_require__(94639);
80210
80230
  // EXTERNAL MODULE: ./src/editor/draw/IDrawInfos.ts
@@ -80377,10 +80397,6 @@ var DrawPageTable = __webpack_require__(15694);
80377
80397
  var DrawArea = __webpack_require__(83358);
80378
80398
  // EXTERNAL MODULE: ./src/editor/events/NodeClickEvent.ts
80379
80399
  var NodeClickEvent = __webpack_require__(84561);
80380
- // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawHeader.ts
80381
- var DrawHeader = __webpack_require__(5328);
80382
- // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawFooter.ts
80383
- var DrawFooter = __webpack_require__(114);
80384
80400
  // EXTERNAL MODULE: ./src/editor/events/PageAreaChangedEvent.ts
80385
80401
  var PageAreaChangedEvent = __webpack_require__(86626);
80386
80402
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
@@ -80391,8 +80407,6 @@ var PrintStatus = __webpack_require__(63170);
80391
80407
  var DrawPageMainDoc = __webpack_require__(77441);
80392
80408
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 1 modules
80393
80409
  var DrawTextNode = __webpack_require__(24492);
80394
- // EXTERNAL MODULE: ./src/editor/SubDocManger.ts
80395
- var SubDocManger = __webpack_require__(80556);
80396
80410
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
80397
80411
  var TableFormula = __webpack_require__(90832);
80398
80412
  // EXTERNAL MODULE: ./src/editor/draw/DrawConfig.ts
@@ -83427,7 +83441,7 @@ var DrawTree = /*#__PURE__*/function () {
83427
83441
  }, {
83428
83442
  key: "addPage",
83429
83443
  value: function addPage() {
83430
- var dpage = new DrawPage/* DrawPage */.h(this._hoEditorFactoryID, this._drawPages.length //,
83444
+ var dpage = new DrawPage(this._hoEditorFactoryID, this._drawPages.length //,
83431
83445
  //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree,
83432
83446
  //this
83433
83447
  );
@@ -85441,7 +85455,7 @@ var LineStyleUndoUnit = /*#__PURE__*/function () {
85441
85455
  /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(53901);
85442
85456
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(74089);
85443
85457
  /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24701);
85444
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(48970);
85458
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(51760);
85445
85459
 
85446
85460
 
85447
85461
 
@@ -85754,7 +85768,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
85754
85768
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
85755
85769
  /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(57727);
85756
85770
  /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(68598);
85757
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(48970);
85771
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(51760);
85758
85772
 
85759
85773
 
85760
85774
 
@@ -86577,7 +86591,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
86577
86591
  /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(32629);
86578
86592
  /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27198);
86579
86593
  /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2613);
86580
- /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48970);
86594
+ /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(51760);
86581
86595
  /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94639);
86582
86596
  /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(59057);
86583
86597
  /* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(931);
@@ -89593,8 +89607,8 @@ var es_object_to_string = __webpack_require__(41539);
89593
89607
  var es_regexp_to_string = __webpack_require__(39714);
89594
89608
  // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
89595
89609
  var HOEditorFactorys = __webpack_require__(74089);
89596
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
89597
- var DrawTree = __webpack_require__(48970);
89610
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
89611
+ var DrawTree = __webpack_require__(51760);
89598
89612
  ;// CONCATENATED MODULE: ./src/editor/undoRedo/ContainerUndoUnit.ts
89599
89613
 
89600
89614
 
@@ -196098,11 +196112,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
196098
196112
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
196099
196113
 
196100
196114
  var map = {
196101
- "./ControlModal.vue": 21920,
196115
+ "./ControlModal.vue": 37006,
196102
196116
  "./barCode/BarCodes.vue": 20329,
196103
196117
  "./colorPicker/HoColorPicker.vue": 91351,
196104
196118
  "./colorPicker/HoColorPickers.vue": 84214,
196105
- "./commentDialog/CommentDialog.vue": 99956,
196119
+ "./commentDialog/CommentDialog.vue": 76926,
196106
196120
  "./customAttributes/CustomAttributes.vue": 78869,
196107
196121
  "./dataSource/DataSource.vue": 9238,
196108
196122
  "./dateDialog/DateDialog.vue": 12144,
@@ -232418,7 +232432,7 @@ Input.install = function (Vue) {
232418
232432
 
232419
232433
 
232420
232434
  /* 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]);
232421
- ;// 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&
232435
+ ;// 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=8945c86a&
232422
232436
  var render = function render() {
232423
232437
  var _vm = this,
232424
232438
  _c = _vm._self._c;
@@ -232478,6 +232492,7 @@ var render = function render() {
232478
232492
  },
232479
232493
  on: {
232480
232494
  "insertComments": _vm.insertComments,
232495
+ "updateCommentContent": _vm.updateCommentContent,
232481
232496
  "closeControlmodal": _vm.closeControlModal
232482
232497
  },
232483
232498
  scopedSlots: _vm._u([{
@@ -232538,8 +232553,8 @@ var es_string_match = __webpack_require__(4723);
232538
232553
  var es_number_constructor = __webpack_require__(9653);
232539
232554
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
232540
232555
  var es_json_stringify = __webpack_require__(38862);
232541
- ;// 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=1734b9ac&
232542
- var HoDocvue_type_template_id_1734b9ac_render = function render() {
232556
+ ;// 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=74c3d312&
232557
+ var HoDocvue_type_template_id_74c3d312_render = function render() {
232543
232558
  var _vm = this,
232544
232559
  _c = _vm._self._c;
232545
232560
  return _c('div', {
@@ -232684,7 +232699,7 @@ var HoDocvue_type_template_id_1734b9ac_render = function render() {
232684
232699
  }
232685
232700
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
232686
232701
  };
232687
- var HoDocvue_type_template_id_1734b9ac_staticRenderFns = [];
232702
+ var HoDocvue_type_template_id_74c3d312_staticRenderFns = [];
232688
232703
 
232689
232704
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
232690
232705
  var es_array_filter = __webpack_require__(57327);
@@ -232694,23 +232709,23 @@ var es_string_includes = __webpack_require__(32023);
232694
232709
  var es_array_sort = __webpack_require__(2707);
232695
232710
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
232696
232711
  var es_string_replace = __webpack_require__(15306);
232697
- ;// 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/HoPage.vue?vue&type=template&id=59b9f9ce&scoped=true&
232698
- var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
232712
+ ;// 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/HoPage.vue?vue&type=template&id=f467d786&scoped=true&
232713
+ var HoPagevue_type_template_id_f467d786_scoped_true_render = function render() {
232699
232714
  var _vm = this,
232700
232715
  _c = _vm._self._c;
232701
232716
  return _c('div', {
232702
232717
  ref: "hoPage",
232703
232718
  class: _vm.pageClassNames,
232704
232719
  style: {
232705
- height: _vm.scaleHeight + 'px',
232706
- width: _vm.scaleWidth + 'px'
232720
+ height: _vm.normalHeight + 'px',
232721
+ width: _vm.normalWidth + 'px'
232707
232722
  }
232708
232723
  }, [_c('canvas', {
232709
232724
  ref: "domcanvas",
232710
232725
  class: _vm.domCanvasName,
232711
232726
  style: {
232712
- height: _vm.scaleHeight + 'px',
232713
- width: _vm.scaleWidth + 'px'
232727
+ height: _vm.normalHeight + 'px',
232728
+ width: _vm.normalWidth + 'px'
232714
232729
  },
232715
232730
  attrs: {
232716
232731
  "width": _vm.scaleWidth,
@@ -232720,8 +232735,8 @@ var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
232720
232735
  ref: "selectcanvas",
232721
232736
  staticClass: "selectcanvas",
232722
232737
  style: {
232723
- height: _vm.scaleHeight + 'px',
232724
- width: _vm.scaleWidth + 'px'
232738
+ height: _vm.normalHeight + 'px',
232739
+ width: _vm.normalWidth + 'px'
232725
232740
  },
232726
232741
  attrs: {
232727
232742
  "width": _vm.scaleWidth,
@@ -232735,7 +232750,7 @@ var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
232735
232750
  }), [_vm._t("hoAddCellButton")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
232736
232751
  attrs: {
232737
232752
  "textStyles": _vm.textStyles,
232738
- "scaleWidth": _vm.scaleWidth,
232753
+ "scaleWidth": _vm.canvasWidth,
232739
232754
  "hoEditorFactoryId": _vm.hoEditorId,
232740
232755
  "aiInfo": _vm.aiInfo
232741
232756
  }
@@ -232759,7 +232774,7 @@ var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
232759
232774
  }], null, true)
232760
232775
  }) : _vm._e()], 2);
232761
232776
  };
232762
- var HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns = [];
232777
+ var HoPagevue_type_template_id_f467d786_scoped_true_staticRenderFns = [];
232763
232778
 
232764
232779
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
232765
232780
  var regeneratorRuntime = __webpack_require__(80543);
@@ -232785,8 +232800,8 @@ var es_string_starts_with = __webpack_require__(23157);
232785
232800
  var es_array_splice = __webpack_require__(40561);
232786
232801
  // EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
232787
232802
  var DocTree = __webpack_require__(32629);
232788
- // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
232789
- var DrawTree = __webpack_require__(48970);
232803
+ // EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 4 modules
232804
+ var DrawTree = __webpack_require__(51760);
232790
232805
  // EXTERNAL MODULE: ./src/editor/events/SelectionChangeEvent.ts
232791
232806
  var SelectionChangeEvent = __webpack_require__(931);
232792
232807
  // EXTERNAL MODULE: ./src/editor/dom/DomRange.ts
@@ -232893,8 +232908,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
232893
232908
  this._selectCanvas.width = hoEditorFactory.pageProperty.canvasParams.width;
232894
232909
  this._selectCanvas.height = hoEditorFactory.pageProperty.canvasParams.height; // if (hoEditorFactory.drawTree.paintStatus === PaintState.psReview) {
232895
232910
  this._selectStage = new createjs.Stage(this._selectCanvas);
232896
- this._selectStage.scaleX = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
232897
- this._selectStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
232911
+ this._selectStage.scaleX = Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
232912
+ this._selectStage.scaleY = Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
232898
232913
  var dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
232899
232914
  if ((_dPage$drawDomLevel = dPage.drawDomLevel) !== null && _dPage$drawDomLevel !== void 0 && _dPage$drawDomLevel.stage) this._selectStage.nextStage = (_dPage$drawDomLevel2 = dPage.drawDomLevel) === null || _dPage$drawDomLevel2 === void 0 ? void 0 : _dPage$drawDomLevel2.stage;
232900
232915
  dPage.setEnableMouseOver(5);
@@ -233491,8 +233506,8 @@ var DrawDomLevel = /*#__PURE__*/function () {
233491
233506
  this._domCanvas.width = hoeditorfactory.pageProperty.canvasParams.width;
233492
233507
  this._domCanvas.height = hoeditorfactory.pageProperty.canvasParams.height;
233493
233508
  this._domStage = new createjs.Stage(this._domCanvas);
233494
- this._domStage.scaleX = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
233495
- this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
233509
+ this._domStage.scaleX = Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
233510
+ this._domStage.scaleY = Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
233496
233511
  var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
233497
233512
  var keys = (0,esm_toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
233498
233513
  if (a > b) {
@@ -233620,7 +233635,7 @@ var DrawDomLevel = /*#__PURE__*/function () {
233620
233635
  value: function getDrawPlaceByPos(x, y) {
233621
233636
  var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
233622
233637
  var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
233623
- var adjy = y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
233638
+ var adjy = y / Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
233624
233639
  if (adjy >= 0 && adjy <= this._mainDocTop) {
233625
233640
  return dPage.drawHeader;
233626
233641
  } else if (adjy > this._mainDocTop && adjy < this._footerTop) {
@@ -233874,7 +233889,6 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
233874
233889
 
233875
233890
 
233876
233891
 
233877
-
233878
233892
  /* harmony default export */ var HoPagevue_type_script_lang_js_ = ({
233879
233893
  name: 'HoPage',
233880
233894
  components: {
@@ -233941,6 +233955,20 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
233941
233955
  scaleWidth: function scaleWidth() {
233942
233956
  return this.canvasWidth;
233943
233957
  },
233958
+ normalWidth: function normalWidth() {
233959
+ var width = this.canvasWidth / DrawConfig/* DrawConfig.instance */.f.instance().transformScale;
233960
+ if (width % 2 === 1) {
233961
+ return width + 1;
233962
+ }
233963
+ return width;
233964
+ },
233965
+ normalHeight: function normalHeight() {
233966
+ var height = this.canvasHeight / DrawConfig/* DrawConfig.instance */.f.instance().transformScale;
233967
+ if (height % 2 === 1) {
233968
+ return height + 1;
233969
+ }
233970
+ return height;
233971
+ },
233944
233972
  domCanvasName: function domCanvasName() {
233945
233973
  return this.currentActivePages === this.index ? 'domcanvas domcanvas-selected' : 'domcanvas';
233946
233974
  }
@@ -233997,10 +234025,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
233997
234025
  });
233998
234026
  ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
233999
234027
  /* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
234000
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=59b9f9ce&prod&scoped=true&lang=css&
234028
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=f467d786&prod&scoped=true&lang=css&
234001
234029
  // extracted by mini-css-extract-plugin
234002
234030
 
234003
- ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=59b9f9ce&prod&scoped=true&lang=css&
234031
+ ;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=f467d786&prod&scoped=true&lang=css&
234004
234032
 
234005
234033
  ;// CONCATENATED MODULE: ./src/components/HoPage.vue
234006
234034
 
@@ -234013,11 +234041,11 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
234013
234041
 
234014
234042
  var HoPage_component = (0,componentNormalizer/* default */.Z)(
234015
234043
  components_HoPagevue_type_script_lang_js_,
234016
- HoPagevue_type_template_id_59b9f9ce_scoped_true_render,
234017
- HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns,
234044
+ HoPagevue_type_template_id_f467d786_scoped_true_render,
234045
+ HoPagevue_type_template_id_f467d786_scoped_true_staticRenderFns,
234018
234046
  false,
234019
234047
  null,
234020
- "59b9f9ce",
234048
+ "f467d786",
234021
234049
  null
234022
234050
 
234023
234051
  )
@@ -234199,8 +234227,6 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
234199
234227
  ;// CONCATENATED MODULE: ./src/components/backToPage/index.ts
234200
234228
 
234201
234229
  /* harmony default export */ var backToPage = (HoToPage);
234202
- // EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPage.ts
234203
- var DrawPage = __webpack_require__(72722);
234204
234230
  // EXTERNAL MODULE: ./src/plugins/util.ts
234205
234231
  var plugins_util = __webpack_require__(62783);
234206
234232
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
@@ -234217,298 +234243,6 @@ var TableCellPoper = __webpack_require__(21277);
234217
234243
  var DateTimeNode = __webpack_require__(92501);
234218
234244
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
234219
234245
  var DownListNode = __webpack_require__(45712);
234220
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
234221
- var es_promise = __webpack_require__(88674);
234222
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
234223
- var es_string_trim = __webpack_require__(73210);
234224
- ;// CONCATENATED MODULE: ./src/editor/externalCall/ElementController.ts
234225
-
234226
-
234227
-
234228
-
234229
-
234230
-
234231
-
234232
-
234233
-
234234
- /*
234235
- * @Author: your name
234236
- * @Date: 2021-07-31 09:27:53
234237
- * @LastEditTime: 2023-01-06 09:59:51
234238
- * @LastEditors: liyanan 2441631434@qq.com
234239
- * @Description: In User Settings Edit
234240
- * @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
234241
- */
234242
-
234243
-
234244
-
234245
-
234246
- var ElementController = /*#__PURE__*/function () {
234247
- function ElementController(hoEditorFactoryID) {
234248
- (0,esm_classCallCheck/* default */.Z)(this, ElementController);
234249
- (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
234250
- this._hoEditorFactoryID = hoEditorFactoryID;
234251
- }
234252
- /**
234253
- * 根据路径找节点
234254
- * @param path 路径
234255
- */
234256
- (0,esm_createClass/* default */.Z)(ElementController, [{
234257
- key: "findNodebyPath",
234258
- value: function findNodebyPath(path) {
234259
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234260
- return hoEditorFactory.vueController.findNodebyPath(path);
234261
- }
234262
- /**
234263
- * 根据节点id找节点
234264
- * @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
234265
- * @param id 节点id
234266
- */
234267
- }, {
234268
- key: "getNodeByID",
234269
- value: function getNodeByID(scope, id) {
234270
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234271
- return hoEditorFactory.vueController.getNodeByID(scope, id);
234272
- }
234273
- /**
234274
- * 根据节点名称找节点
234275
- * @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
234276
- * @param bFindAll 是否查找所有符合的 true:返回所有符合的 false:返回第一个符合的
234277
- * @param name 节点名称
234278
- */
234279
- }, {
234280
- key: "getNodesByName",
234281
- value: function getNodesByName(scope, bFindAll, name) {
234282
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234283
- return hoEditorFactory.vueController.getNodesByName(scope, bFindAll, name);
234284
- }
234285
- /**
234286
- * 获取文本域内文本内容
234287
- * @param node 文本域节点
234288
- * @returns 域内文本内容
234289
- */
234290
- }, {
234291
- key: "getTextInputFieldValue",
234292
- value: function getTextInputFieldValue(node) {
234293
- var text = node.getFieldText();
234294
- return text;
234295
- }
234296
- /**
234297
- * 获取单元格内文本内容
234298
- * @param node 单元格节点
234299
- * @returns 单元格内文本内容
234300
- */
234301
- }, {
234302
- key: "getCellText",
234303
- value: function getCellText(node) {
234304
- var text = node.getCellText();
234305
- return text;
234306
- }
234307
- /**
234308
- * 更新文本域内文本
234309
- * @param node 文本域节点
234310
- * @param text 更新文本
234311
- * @param customProperty 自定义属性
234312
- */
234313
- }, {
234314
- key: "updateTextInputFieldValue",
234315
- value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value, listItems) {
234316
- var hPromise = Promise.resolve();
234317
- hPromise = hPromise.then(function (res) {
234318
- return new Promise( /*#__PURE__*/function () {
234319
- var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve) {
234320
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
234321
- while (1) {
234322
- switch (_context.prev = _context.next) {
234323
- case 0:
234324
- if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
234325
- _context.next = 5;
234326
- break;
234327
- }
234328
- _context.next = 3;
234329
- return node.setFieldText(text, customProperty, keyValue, value);
234330
- case 3:
234331
- _context.next = 6;
234332
- break;
234333
- case 5:
234334
- console.warn("\u9700\u8981TextInputFieldNode\u7C7B\u578B\u7684node\u5143\u7D20: node==>".concat(node, " text==>").concat(text));
234335
- case 6:
234336
- resolve();
234337
- case 7:
234338
- case "end":
234339
- return _context.stop();
234340
- }
234341
- }
234342
- }, _callee);
234343
- }));
234344
- return function (_x) {
234345
- return _ref.apply(this, arguments);
234346
- };
234347
- }());
234348
- });
234349
- }
234350
- /**
234351
- * 更新单元格内文本
234352
- * @param node 单元格节点
234353
- * @param text 更新为
234354
- */
234355
- }, {
234356
- key: "updateCellText",
234357
- value: function updateCellText(node, text) {
234358
- node.setCellText(text);
234359
- }
234360
- /**
234361
- * 更新日期时间元素文本
234362
- * @param node 日期时间节点
234363
- * @param text 更新为
234364
- */
234365
- }, {
234366
- key: "updateDateTimeText",
234367
- value: function updateDateTimeText(node, text) {
234368
- node.setDateTimeText(text);
234369
- }
234370
- /**
234371
- * 更新下拉列表元素文本
234372
- * @param node 下拉列表节点
234373
- * @param text 更新为
234374
- */
234375
- }, {
234376
- key: "updateDownListText",
234377
- value: function updateDownListText(node, text) {
234378
- node.setDownListText(text);
234379
- }
234380
- /**
234381
- * 删除元素
234382
- * @param node 节点
234383
- */
234384
- }, {
234385
- key: "deleteNode",
234386
- value: function deleteNode(node) {
234387
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234388
- hoEditorFactory.vueController.deleteNode(node);
234389
- }
234390
- /**
234391
- * 验证病历文件中所有文本域的数据格式
234392
- * @param 错误列表(元素,错误信息)
234393
- */
234394
- }, {
234395
- key: "verifyTextFieldsDataFormat",
234396
- value: function verifyTextFieldsDataFormat() {
234397
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234398
- return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
234399
- }
234400
- /**
234401
- * @description 获取所有的元素:包括日期、下拉选择组件、文本域
234402
- * @returns 返回获取到的所有元素
234403
- */
234404
- }, {
234405
- key: "getAllElementNodes",
234406
- value: function getAllElementNodes() {
234407
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234408
- var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
234409
- var mainNodes = hoEditorFactory.docTree.mainNodes;
234410
- var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
234411
- var ret = new Array();
234412
- for (var i = 0; i < headerDocTree.length; i++) {
234413
- var headerNodes = headerDocTree[i].subDocNodes;
234414
- var hsPath = headerNodes[0].getNodePath();
234415
- var hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
234416
- ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, hsPath, hePath, true));
234417
- }
234418
- var msPath = mainNodes[0].getNodePath();
234419
- var mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
234420
- ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, msPath, mePath, true));
234421
- for (var _i = 0; _i < footerDocTree.length; _i++) {
234422
- var footerNodes = footerDocTree[_i].subDocNodes;
234423
- var fsPath = footerNodes[0].getNodePath();
234424
- var fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
234425
- ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, fsPath, fePath, true));
234426
- }
234427
- return ret;
234428
- }
234429
- /**
234430
- * 插入签名
234431
- * @param type 1图片 2字符串
234432
- * @param name 签名名称
234433
- * @param signor 签名人
234434
- * @param signTime 签名时间
234435
- * @param imgSrc type=1:图片路径或者base64,type=2:字符串
234436
- * @param imgWidth 图片宽
234437
- * @param imgHeight 图片高
234438
- * @param customProperty 自定义参数
234439
- */
234440
- }, {
234441
- key: "insertSignNode",
234442
- value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
234443
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234444
- hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
234445
- }
234446
- /**
234447
- * 更新签名
234448
- * @param node 签名节点
234449
- * @param type 1图片 2字符串
234450
- * @param name 签名名称
234451
- * @param signor 签名人
234452
- * @param signTime 签名时间
234453
- * @param imgSrc type=1:图片路径或者base64,type=2:字符串
234454
- * @param imgWidth 图片宽
234455
- * @param imgHeight 图片高
234456
- * @param customProperty 自定义参数
234457
- */
234458
- }, {
234459
- key: "updateSignNode",
234460
- value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
234461
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234462
- hoEditorFactory.vueController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
234463
- }
234464
- /**
234465
- * 强制删除
234466
- */
234467
- }, {
234468
- key: "forceDelete",
234469
- value: function forceDelete() {
234470
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234471
- hoEditorFactory.vueController.forceDelete();
234472
- }
234473
- /**
234474
- * @param node 单复选节点
234475
- * @param additionalInfo 附加说明
234476
- */
234477
- }, {
234478
- key: "editRadioCheckBoxText",
234479
- value: function editRadioCheckBoxText(node, appendText) {
234480
- if (!node || !(node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || !node.isEditText || appendText.trim().length === 0) return;
234481
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234482
- hoEditorFactory.vueController.editRadioCheckBoxText(node, appendText);
234483
- }
234484
- /**
234485
- * 获取当前病历中的所有元素
234486
- * @returns 返回元素是{id,name,text,json}的数据
234487
- */
234488
- }, {
234489
- key: "getAllElements",
234490
- value: function getAllElements() {
234491
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234492
- hoEditorFactory.vueController.getAllElements();
234493
- }
234494
- /**
234495
- * 根据元素id更新元素
234496
- */
234497
- }, {
234498
- key: "updateElementById",
234499
- value: function updateElementById(id, eleJson) {
234500
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234501
- hoEditorFactory.vueController.updateElementById(id, eleJson);
234502
- }
234503
- }, {
234504
- key: "moveCaretToElement",
234505
- value: function moveCaretToElement(scope, id) {
234506
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
234507
- hoEditorFactory.vueController.moveCaretToElement(scope, id);
234508
- }
234509
- }]);
234510
- return ElementController;
234511
- }();
234512
234246
  ;// CONCATENATED MODULE: ./node_modules/intersection-observer-polyfill/src/shims/es6-collections.js
234513
234247
  /**
234514
234248
  * Simple shims for WeakMap and Map classes.
@@ -235903,7 +235637,7 @@ var ParagraphNode = __webpack_require__(67945);
235903
235637
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235904
235638
  var MarkNode = __webpack_require__(57727);
235905
235639
  ;// CONCATENATED MODULE: ./src/components/version.ts
235906
- /* harmony default export */ var version = ('3.0.57');
235640
+ /* harmony default export */ var version = ('3.0.59');
235907
235641
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235908
235642
  var PoperTipText = __webpack_require__(15845);
235909
235643
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -235949,12 +235683,9 @@ var ImageNode = __webpack_require__(97186);
235949
235683
 
235950
235684
 
235951
235685
 
235952
-
235953
-
235954
-
235955
-
235956
- var defaultWidth = Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) % 2 === 1 ? Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) + 1 : Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY);
235957
- var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) % 2 === 1 ? Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) + 1 : Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY);
235686
+ var scaleXY = Math.max(DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, DrawConfig/* DrawConfig.instance */.f.instance().transformScale);
235687
+ var defaultWidth = Math.floor(793 * scaleXY) % 2 === 1 ? Math.floor(793 * scaleXY) + 1 : Math.floor(793 * scaleXY);
235688
+ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * scaleXY) + 1 : Math.floor(1122 * scaleXY);
235958
235689
  /* harmony default export */ var HoDocvue_type_script_lang_js_ = ({
235959
235690
  name: 'HoDoc',
235960
235691
  components: {
@@ -236614,10 +236345,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236614
236345
  });
236615
236346
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
236616
236347
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
236617
- ;// 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=1734b9ac&prod&lang=scss&
236348
+ ;// 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=74c3d312&prod&lang=scss&
236618
236349
  // extracted by mini-css-extract-plugin
236619
236350
 
236620
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1734b9ac&prod&lang=scss&
236351
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=74c3d312&prod&lang=scss&
236621
236352
 
236622
236353
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
236623
236354
 
@@ -236630,8 +236361,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
236630
236361
 
236631
236362
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
236632
236363
  components_HoDocvue_type_script_lang_js_,
236633
- HoDocvue_type_template_id_1734b9ac_render,
236634
- HoDocvue_type_template_id_1734b9ac_staticRenderFns,
236364
+ HoDocvue_type_template_id_74c3d312_render,
236365
+ HoDocvue_type_template_id_74c3d312_staticRenderFns,
236635
236366
  false,
236636
236367
  null,
236637
236368
  null,
@@ -238509,6 +238240,8 @@ var GenerateCode = /*#__PURE__*/function () {
238509
238240
  var message_style = __webpack_require__(94310);
238510
238241
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
238511
238242
  var message = __webpack_require__(40735);
238243
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
238244
+ var es_string_trim = __webpack_require__(73210);
238512
238245
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace-all.js
238513
238246
  var es_string_replace_all = __webpack_require__(68757);
238514
238247
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
@@ -239396,6 +239129,8 @@ var es_regexp_constructor = __webpack_require__(24603);
239396
239129
  var es_regexp_dot_all = __webpack_require__(28450);
239397
239130
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
239398
239131
  var es_regexp_sticky = __webpack_require__(88386);
239132
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
239133
+ var es_promise = __webpack_require__(88674);
239399
239134
  // EXTERNAL MODULE: ./node_modules/x2js/x2js.js
239400
239135
  var x2js_x2js = __webpack_require__(27098);
239401
239136
  var x2js_default = /*#__PURE__*/__webpack_require__.n(x2js_x2js);
@@ -242015,6 +241750,8 @@ var NodePosition = __webpack_require__(42921);
242015
241750
 
242016
241751
 
242017
241752
 
241753
+
241754
+
242018
241755
 
242019
241756
 
242020
241757
 
@@ -242027,6 +241764,7 @@ var NodePosition = __webpack_require__(42921);
242027
241764
 
242028
241765
 
242029
241766
 
241767
+
242030
241768
  var ClipboardType;
242031
241769
  (function (ClipboardType) {
242032
241770
  ClipboardType["ctText"] = "text/plain";
@@ -242338,6 +242076,10 @@ var StructureNode = /*#__PURE__*/function () {
242338
242076
  key: "Copy",
242339
242077
  value: function Copy(dom, clipboard, isClearValue, type) {
242340
242078
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
242079
+ if (hoEditorFactory.forbidPaste && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
242080
+ message/* default.warn */.Z.warn("根据书写规范要求,不允许复制病历文本内容");
242081
+ return;
242082
+ }
242341
242083
  var currDom;
242342
242084
  if (dom instanceof DomRange/* DomRange */.a) {
242343
242085
  currDom = dom.normalize();
@@ -248233,8 +247975,21 @@ var VueController = /*#__PURE__*/function () {
248233
247975
  }, {
248234
247976
  key: "setCanvasScale",
248235
247977
  value: function setCanvasScale(scale) {
247978
+ if (DrawConfig/* DrawConfig.instance */.f.instance().transformScale == 1) {
247979
+ var scaleXY = scale || 1;
247980
+ DrawConfig/* DrawConfig.instance */.f.instance().scaleXY = scaleXY;
247981
+ } else {
247982
+ DrawConfig/* DrawConfig.instance */.f.instance().scaleXY = 1;
247983
+ }
247984
+ }
247985
+ }, {
247986
+ key: "setCanvasTransformScale",
247987
+ value: function setCanvasTransformScale(scale) {
248236
247988
  var scaleXY = scale || 1;
248237
- DrawConfig/* DrawConfig.instance */.f.instance().scaleXY = scaleXY;
247989
+ if (scaleXY > 1) {
247990
+ DrawConfig/* DrawConfig.instance */.f.instance().scaleXY = 1;
247991
+ }
247992
+ DrawConfig/* DrawConfig.instance */.f.instance().transformScale = scaleXY;
248238
247993
  }
248239
247994
  /**
248240
247995
  * 根据节点名称和文本查询并设置高亮区域
@@ -250885,7 +250640,7 @@ var EditController = /*#__PURE__*/function () {
250885
250640
  value: function editKeyPaste(clipboardData) {
250886
250641
  var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250887
250642
  if (hoeditorfactory.forbidPaste && hoeditorfactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
250888
- message/* default.warn */.Z.warn("根据书写规范要求,不允许将复制文本内容粘贴到病历");
250643
+ message/* default.warn */.Z.warn("根据书写规范要求,不允许粘贴文本到病历");
250889
250644
  return;
250890
250645
  }
250891
250646
  var jsonData = "";
@@ -251138,6 +250893,294 @@ var EditController = /*#__PURE__*/function () {
251138
250893
  }]);
251139
250894
  return EditController;
251140
250895
  }();
250896
+ ;// CONCATENATED MODULE: ./src/editor/externalCall/ElementController.ts
250897
+
250898
+
250899
+
250900
+
250901
+
250902
+
250903
+
250904
+
250905
+
250906
+ /*
250907
+ * @Author: your name
250908
+ * @Date: 2021-07-31 09:27:53
250909
+ * @LastEditTime: 2023-01-06 09:59:51
250910
+ * @LastEditors: liyanan 2441631434@qq.com
250911
+ * @Description: In User Settings Edit
250912
+ * @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
250913
+ */
250914
+
250915
+
250916
+
250917
+
250918
+ var ElementController = /*#__PURE__*/function () {
250919
+ function ElementController(hoEditorFactoryID) {
250920
+ (0,esm_classCallCheck/* default */.Z)(this, ElementController);
250921
+ (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
250922
+ this._hoEditorFactoryID = hoEditorFactoryID;
250923
+ }
250924
+ /**
250925
+ * 根据路径找节点
250926
+ * @param path 路径
250927
+ */
250928
+ (0,esm_createClass/* default */.Z)(ElementController, [{
250929
+ key: "findNodebyPath",
250930
+ value: function findNodebyPath(path) {
250931
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250932
+ return hoEditorFactory.vueController.findNodebyPath(path);
250933
+ }
250934
+ /**
250935
+ * 根据节点id找节点
250936
+ * @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
250937
+ * @param id 节点id
250938
+ */
250939
+ }, {
250940
+ key: "getNodeByID",
250941
+ value: function getNodeByID(scope, id) {
250942
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250943
+ return hoEditorFactory.vueController.getNodeByID(scope, id);
250944
+ }
250945
+ /**
250946
+ * 根据节点名称找节点
250947
+ * @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
250948
+ * @param bFindAll 是否查找所有符合的 true:返回所有符合的 false:返回第一个符合的
250949
+ * @param name 节点名称
250950
+ */
250951
+ }, {
250952
+ key: "getNodesByName",
250953
+ value: function getNodesByName(scope, bFindAll, name) {
250954
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250955
+ return hoEditorFactory.vueController.getNodesByName(scope, bFindAll, name);
250956
+ }
250957
+ /**
250958
+ * 获取文本域内文本内容
250959
+ * @param node 文本域节点
250960
+ * @returns 域内文本内容
250961
+ */
250962
+ }, {
250963
+ key: "getTextInputFieldValue",
250964
+ value: function getTextInputFieldValue(node) {
250965
+ var text = node.getFieldText();
250966
+ return text;
250967
+ }
250968
+ /**
250969
+ * 获取单元格内文本内容
250970
+ * @param node 单元格节点
250971
+ * @returns 单元格内文本内容
250972
+ */
250973
+ }, {
250974
+ key: "getCellText",
250975
+ value: function getCellText(node) {
250976
+ var text = node.getCellText();
250977
+ return text;
250978
+ }
250979
+ /**
250980
+ * 更新文本域内文本
250981
+ * @param node 文本域节点
250982
+ * @param text 更新文本
250983
+ * @param customProperty 自定义属性
250984
+ */
250985
+ }, {
250986
+ key: "updateTextInputFieldValue",
250987
+ value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value, listItems) {
250988
+ var hPromise = Promise.resolve();
250989
+ hPromise = hPromise.then(function (res) {
250990
+ return new Promise( /*#__PURE__*/function () {
250991
+ var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve) {
250992
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
250993
+ while (1) {
250994
+ switch (_context.prev = _context.next) {
250995
+ case 0:
250996
+ if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
250997
+ _context.next = 5;
250998
+ break;
250999
+ }
251000
+ _context.next = 3;
251001
+ return node.setFieldText(text, customProperty, keyValue, value);
251002
+ case 3:
251003
+ _context.next = 6;
251004
+ break;
251005
+ case 5:
251006
+ console.warn("\u9700\u8981TextInputFieldNode\u7C7B\u578B\u7684node\u5143\u7D20: node==>".concat(node, " text==>").concat(text));
251007
+ case 6:
251008
+ resolve();
251009
+ case 7:
251010
+ case "end":
251011
+ return _context.stop();
251012
+ }
251013
+ }
251014
+ }, _callee);
251015
+ }));
251016
+ return function (_x) {
251017
+ return _ref.apply(this, arguments);
251018
+ };
251019
+ }());
251020
+ });
251021
+ }
251022
+ /**
251023
+ * 更新单元格内文本
251024
+ * @param node 单元格节点
251025
+ * @param text 更新为
251026
+ */
251027
+ }, {
251028
+ key: "updateCellText",
251029
+ value: function updateCellText(node, text) {
251030
+ node.setCellText(text);
251031
+ }
251032
+ /**
251033
+ * 更新日期时间元素文本
251034
+ * @param node 日期时间节点
251035
+ * @param text 更新为
251036
+ */
251037
+ }, {
251038
+ key: "updateDateTimeText",
251039
+ value: function updateDateTimeText(node, text) {
251040
+ node.setDateTimeText(text);
251041
+ }
251042
+ /**
251043
+ * 更新下拉列表元素文本
251044
+ * @param node 下拉列表节点
251045
+ * @param text 更新为
251046
+ */
251047
+ }, {
251048
+ key: "updateDownListText",
251049
+ value: function updateDownListText(node, text) {
251050
+ node.setDownListText(text);
251051
+ }
251052
+ /**
251053
+ * 删除元素
251054
+ * @param node 节点
251055
+ */
251056
+ }, {
251057
+ key: "deleteNode",
251058
+ value: function deleteNode(node) {
251059
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251060
+ hoEditorFactory.vueController.deleteNode(node);
251061
+ }
251062
+ /**
251063
+ * 验证病历文件中所有文本域的数据格式
251064
+ * @param 错误列表(元素,错误信息)
251065
+ */
251066
+ }, {
251067
+ key: "verifyTextFieldsDataFormat",
251068
+ value: function verifyTextFieldsDataFormat() {
251069
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251070
+ return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
251071
+ }
251072
+ /**
251073
+ * @description 获取所有的元素:包括日期、下拉选择组件、文本域
251074
+ * @returns 返回获取到的所有元素
251075
+ */
251076
+ }, {
251077
+ key: "getAllElementNodes",
251078
+ value: function getAllElementNodes() {
251079
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251080
+ var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
251081
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
251082
+ var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
251083
+ var ret = new Array();
251084
+ for (var i = 0; i < headerDocTree.length; i++) {
251085
+ var headerNodes = headerDocTree[i].subDocNodes;
251086
+ var hsPath = headerNodes[0].getNodePath();
251087
+ var hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
251088
+ ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, hsPath, hePath, true));
251089
+ }
251090
+ var msPath = mainNodes[0].getNodePath();
251091
+ var mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
251092
+ ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, msPath, mePath, true));
251093
+ for (var _i = 0; _i < footerDocTree.length; _i++) {
251094
+ var footerNodes = footerDocTree[_i].subDocNodes;
251095
+ var fsPath = footerNodes[0].getNodePath();
251096
+ var fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
251097
+ ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, fsPath, fePath, true));
251098
+ }
251099
+ return ret;
251100
+ }
251101
+ /**
251102
+ * 插入签名
251103
+ * @param type 1图片 2字符串
251104
+ * @param name 签名名称
251105
+ * @param signor 签名人
251106
+ * @param signTime 签名时间
251107
+ * @param imgSrc type=1:图片路径或者base64,type=2:字符串
251108
+ * @param imgWidth 图片宽
251109
+ * @param imgHeight 图片高
251110
+ * @param customProperty 自定义参数
251111
+ */
251112
+ }, {
251113
+ key: "insertSignNode",
251114
+ value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
251115
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251116
+ hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
251117
+ }
251118
+ /**
251119
+ * 更新签名
251120
+ * @param node 签名节点
251121
+ * @param type 1图片 2字符串
251122
+ * @param name 签名名称
251123
+ * @param signor 签名人
251124
+ * @param signTime 签名时间
251125
+ * @param imgSrc type=1:图片路径或者base64,type=2:字符串
251126
+ * @param imgWidth 图片宽
251127
+ * @param imgHeight 图片高
251128
+ * @param customProperty 自定义参数
251129
+ */
251130
+ }, {
251131
+ key: "updateSignNode",
251132
+ value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
251133
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251134
+ hoEditorFactory.vueController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
251135
+ }
251136
+ /**
251137
+ * 强制删除
251138
+ */
251139
+ }, {
251140
+ key: "forceDelete",
251141
+ value: function forceDelete() {
251142
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251143
+ hoEditorFactory.vueController.forceDelete();
251144
+ }
251145
+ /**
251146
+ * @param node 单复选节点
251147
+ * @param additionalInfo 附加说明
251148
+ */
251149
+ }, {
251150
+ key: "editRadioCheckBoxText",
251151
+ value: function editRadioCheckBoxText(node, appendText) {
251152
+ if (!node || !(node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || !node.isEditText || appendText.trim().length === 0) return;
251153
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251154
+ hoEditorFactory.vueController.editRadioCheckBoxText(node, appendText);
251155
+ }
251156
+ /**
251157
+ * 获取当前病历中的所有元素
251158
+ * @returns 返回元素是{id,name,text,json}的数据
251159
+ */
251160
+ }, {
251161
+ key: "getAllElements",
251162
+ value: function getAllElements() {
251163
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251164
+ hoEditorFactory.vueController.getAllElements();
251165
+ }
251166
+ /**
251167
+ * 根据元素id更新元素
251168
+ */
251169
+ }, {
251170
+ key: "updateElementById",
251171
+ value: function updateElementById(id, eleJson) {
251172
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251173
+ hoEditorFactory.vueController.updateElementById(id, eleJson);
251174
+ }
251175
+ }, {
251176
+ key: "moveCaretToElement",
251177
+ value: function moveCaretToElement(scope, id) {
251178
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
251179
+ hoEditorFactory.vueController.moveCaretToElement(scope, id);
251180
+ }
251181
+ }]);
251182
+ return ElementController;
251183
+ }();
251141
251184
  ;// CONCATENATED MODULE: ./src/editor/externalCall/NodeController.ts
251142
251185
 
251143
251186
 
@@ -256131,7 +256174,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
256131
256174
 
256132
256175
  /* harmony default export */ var HoFooter = (HoFooter_component.exports);
256133
256176
  // EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
256134
- var ControlModal = __webpack_require__(21920);
256177
+ var ControlModal = __webpack_require__(37006);
256135
256178
  // EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
256136
256179
  var FindReplace = __webpack_require__(25918);
256137
256180
  ;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
@@ -256799,6 +256842,7 @@ var commondata = __webpack_require__(76285);
256799
256842
  }
256800
256843
  return null;
256801
256844
  };
256845
+ nodeInfoes.forbidPaste = hoEditorFactory.forbidPaste;
256802
256846
  nodeInfoes.isCanUseTableProperty = hoEditorFactory.isCanUseTableProperty;
256803
256847
  this.hoEditorProvider.rightNode = (0,objectSpread2/* default */.Z)({}, nodeInfoes);
256804
256848
  this.$emit('rightClickEvent', (0,objectSpread2/* default */.Z)({}, nodeInfoes));
@@ -256836,6 +256880,9 @@ var commondata = __webpack_require__(76285);
256836
256880
  insertComments: function insertComments(content) {
256837
256881
  this.$emit('insertComments', content);
256838
256882
  },
256883
+ updateCommentContent: function updateCommentContent(func) {
256884
+ this.$emit('updateCommentContent', func);
256885
+ },
256839
256886
  leftclick: function leftclick(node) {
256840
256887
  this.$emit('leftClickEvent', node);
256841
256888
  },
@@ -257176,10 +257223,10 @@ var commondata = __webpack_require__(76285);
257176
257223
  });
257177
257224
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
257178
257225
  /* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
257179
- ;// 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&
257226
+ ;// 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=8945c86a&prod&lang=scss&media=print&
257180
257227
  // extracted by mini-css-extract-plugin
257181
257228
 
257182
- ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=65441e6c&prod&lang=scss&media=print&
257229
+ ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=8945c86a&prod&lang=scss&media=print&
257183
257230
 
257184
257231
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue
257185
257232
 
@@ -263277,7 +263324,8 @@ var popper = __webpack_require__(95551);
263277
263324
  isWebview: false,
263278
263325
  htmlText: '',
263279
263326
  txtText: '',
263280
- radioBoxSelected: false
263327
+ radioBoxSelected: false,
263328
+ forbidPaste: false
263281
263329
  };
263282
263330
  },
263283
263331
  created: function created() {
@@ -263301,12 +263349,18 @@ var popper = __webpack_require__(95551);
263301
263349
  });
263302
263350
  },
263303
263351
  mounted: function mounted() {
263304
- var _this$hoEditorProvide, _this$hoEditorProvide2, _this$hoEditorProvide3;
263352
+ var _this$hoEditorProvide, _this$hoEditorProvide2, _this$hoEditorProvide3, _this$hoEditorProvide4;
263305
263353
  this.isIncludes = (_this$hoEditorProvide = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide === void 0 ? void 0 : _this$hoEditorProvide.labelNode().isIncludes;
263306
263354
  // this.patientID = this.vueController?.getDocProperty().patientID;
263307
263355
  this.isDeisgn = this.hoEditorProvider.rightNode.paintStatus;
263356
+ this.forbidPaste = this.hoEditorProvider.rightNode.forbidPaste;
263357
+ if (((_this$hoEditorProvide2 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide2 === void 0 ? void 0 : _this$hoEditorProvide2.paintStatus) !== 0 && this.forbidPaste) {
263358
+ this.forbidPaste = true;
263359
+ } else {
263360
+ this.forbidPaste = false;
263361
+ }
263308
263362
  var virtualElement = {
263309
- getBoundingClientRect: this.generateGetBoundingClientRect((_this$hoEditorProvide2 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide2 === void 0 ? void 0 : _this$hoEditorProvide2.rightPosition)
263363
+ getBoundingClientRect: this.generateGetBoundingClientRect((_this$hoEditorProvide3 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide3 === void 0 ? void 0 : _this$hoEditorProvide3.rightPosition)
263310
263364
  };
263311
263365
  var mouseRightMenuPopup = this.$refs.mouseRightMenuPopup;
263312
263366
  if (mouseRightMenuPopup) {
@@ -263321,9 +263375,9 @@ var popper = __webpack_require__(95551);
263321
263375
  }]
263322
263376
  });
263323
263377
  }
263324
- if (((_this$hoEditorProvide3 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide3 === void 0 ? void 0 : _this$hoEditorProvide3.type) === 'RadioBox') {
263325
- var _this$hoEditorProvide4;
263326
- this.radioBoxSelected = (_this$hoEditorProvide4 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide4 === void 0 ? void 0 : _this$hoEditorProvide4.node().isSelected;
263378
+ if (((_this$hoEditorProvide4 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide4 === void 0 ? void 0 : _this$hoEditorProvide4.type) === 'RadioBox') {
263379
+ var _this$hoEditorProvide5;
263380
+ this.radioBoxSelected = (_this$hoEditorProvide5 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide5 === void 0 ? void 0 : _this$hoEditorProvide5.node().isSelected;
263327
263381
  }
263328
263382
  this.emrDebug = window && window.emrDebug0331 ? true : false;
263329
263383
  },
@@ -263573,15 +263627,14 @@ var popper = __webpack_require__(95551);
263573
263627
  }
263574
263628
  },
263575
263629
  render: function render() {
263576
- var _this$hoEditorProvide5,
263630
+ var _this$hoEditorProvide6,
263577
263631
  _this$$slots$hoRightS,
263578
- _this$hoEditorProvide6,
263579
263632
  _this$hoEditorProvide7,
263580
263633
  _this$hoEditorProvide8,
263581
263634
  _this$hoEditorProvide9,
263582
263635
  _this$hoEditorProvide10,
263583
- _this5 = this,
263584
263636
  _this$hoEditorProvide11,
263637
+ _this5 = this,
263585
263638
  _this$hoEditorProvide12,
263586
263639
  _this$hoEditorProvide13,
263587
263640
  _this$hoEditorProvide14,
@@ -263603,7 +263656,8 @@ var popper = __webpack_require__(95551);
263603
263656
  _this$hoEditorProvide30,
263604
263657
  _this$hoEditorProvide31,
263605
263658
  _this$hoEditorProvide32,
263606
- _this$hoEditorProvide33;
263659
+ _this$hoEditorProvide33,
263660
+ _this$hoEditorProvide34;
263607
263661
  var h = arguments[0];
263608
263662
  return h("div", {
263609
263663
  "directives": [{
@@ -263612,7 +263666,7 @@ var popper = __webpack_require__(95551);
263612
263666
  }],
263613
263667
  "ref": "mouseRightMenuPopup",
263614
263668
  "class": "mouse-right-menu-popup animation-in"
263615
- }, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$hoEditorProvide5 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide5 === void 0 ? void 0 : _this$hoEditorProvide5.paintStatus) !== 4 && h("ul", {
263669
+ }, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$hoEditorProvide6 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide6 === void 0 ? void 0 : _this$hoEditorProvide6.paintStatus) !== 4 && !this.forbidPaste && h("ul", {
263616
263670
  "class": "mouse-right-menu"
263617
263671
  }, [h("li", {
263618
263672
  "class": "mouse-menu-item",
@@ -263636,7 +263690,7 @@ var popper = __webpack_require__(95551);
263636
263690
  "class": "mouse-menu-item mouse-right-menu-line"
263637
263691
  })]), (_this$$slots$hoRightS = this.$slots.hoRightSlot) === null || _this$$slots$hoRightS === void 0 ? void 0 : _this$$slots$hoRightS.map(function (v) {
263638
263692
  return v;
263639
- }), ((_this$hoEditorProvide6 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide6 === void 0 ? void 0 : _this$hoEditorProvide6.paintStatus) !== 4 && h("p", [this.isIncludes === 'toLabel' && h("ul", {
263693
+ }), ((_this$hoEditorProvide7 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide7 === void 0 ? void 0 : _this$hoEditorProvide7.paintStatus) !== 4 && h("p", [this.isIncludes === 'toLabel' && h("ul", {
263640
263694
  "class": "mouse-right-menu"
263641
263695
  }, [h("li", {
263642
263696
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263654,12 +263708,12 @@ var popper = __webpack_require__(95551);
263654
263708
  "on": {
263655
263709
  "click": this.labelToText.bind(this)
263656
263710
  }
263657
- }, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$hoEditorProvide7 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide7 === void 0 ? void 0 : _this$hoEditorProvide7.paintStatus) == 0 && h("li", {
263711
+ }, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$hoEditorProvide8 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide8 === void 0 ? void 0 : _this$hoEditorProvide8.paintStatus) == 0 && h("li", {
263658
263712
  "class": "mouse-menu-item",
263659
263713
  "on": {
263660
263714
  "click": this.editLabel.bind(this)
263661
263715
  }
263662
- }, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$hoEditorProvide8 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide8 === void 0 ? void 0 : _this$hoEditorProvide8.type) === 'express' && ((_this$hoEditorProvide9 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide9 === void 0 ? void 0 : _this$hoEditorProvide9.paintStatus) === 0 && ((_this$hoEditorProvide10 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide10 === void 0 ? void 0 : _this$hoEditorProvide10.paintStatus) === 0 && h("ul", {
263716
+ }, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$hoEditorProvide9 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide9 === void 0 ? void 0 : _this$hoEditorProvide9.type) === 'express' && ((_this$hoEditorProvide10 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide10 === void 0 ? void 0 : _this$hoEditorProvide10.paintStatus) === 0 && ((_this$hoEditorProvide11 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide11 === void 0 ? void 0 : _this$hoEditorProvide11.paintStatus) === 0 && h("ul", {
263663
263717
  "class": "mouse-right-menu"
263664
263718
  }, [h("li", {
263665
263719
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263670,7 +263724,7 @@ var popper = __webpack_require__(95551);
263670
263724
  return _this5.toUpdateNodes('express', event);
263671
263725
  }
263672
263726
  }
263673
- }, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$hoEditorProvide11 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide11 === void 0 ? void 0 : _this$hoEditorProvide11.type) === 'RadioBox' || ((_this$hoEditorProvide12 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide12 === void 0 ? void 0 : _this$hoEditorProvide12.type) === 'CheckBox') && ((_this$hoEditorProvide13 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide13 === void 0 ? void 0 : _this$hoEditorProvide13.paintStatus) === 0 && h("ul", {
263727
+ }, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$hoEditorProvide12 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide12 === void 0 ? void 0 : _this$hoEditorProvide12.type) === 'RadioBox' || ((_this$hoEditorProvide13 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide13 === void 0 ? void 0 : _this$hoEditorProvide13.type) === 'CheckBox') && ((_this$hoEditorProvide14 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide14 === void 0 ? void 0 : _this$hoEditorProvide14.paintStatus) === 0 && h("ul", {
263674
263728
  "class": "mouse-right-menu"
263675
263729
  }, [h("li", {
263676
263730
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263682,7 +263736,7 @@ var popper = __webpack_require__(95551);
263682
263736
  return _this5.toUpdateNodes((_this5$hoEditorProvid = _this5.hoEditorProvider.rightNode) === null || _this5$hoEditorProvid === void 0 ? void 0 : _this5$hoEditorProvid.type, event);
263683
263737
  }
263684
263738
  }
263685
- }, [((_this$hoEditorProvide14 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide14 === void 0 ? void 0 : _this$hoEditorProvide14.type) === 'RadioBox' ? '单选框属性' : '复选框属性'])]), this.radioBoxSelected && h("ul", {
263739
+ }, [((_this$hoEditorProvide15 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide15 === void 0 ? void 0 : _this$hoEditorProvide15.type) === 'RadioBox' ? '单选框属性' : '复选框属性'])]), this.radioBoxSelected && h("ul", {
263686
263740
  "class": "mouse-right-menu"
263687
263741
  }, [h("li", {
263688
263742
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263693,7 +263747,7 @@ var popper = __webpack_require__(95551);
263693
263747
  return _this5.cancelRadioSelect();
263694
263748
  }
263695
263749
  }
263696
- }, ["\u53D6\u6D88\u9009\u4E2D"])]), ((_this$hoEditorProvide15 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide15 === void 0 ? void 0 : _this$hoEditorProvide15.type) === 'date' && ((_this$hoEditorProvide16 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide16 === void 0 ? void 0 : _this$hoEditorProvide16.paintStatus) === 0 && h("ul", {
263750
+ }, ["\u53D6\u6D88\u9009\u4E2D"])]), ((_this$hoEditorProvide16 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide16 === void 0 ? void 0 : _this$hoEditorProvide16.type) === 'date' && ((_this$hoEditorProvide17 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide17 === void 0 ? void 0 : _this$hoEditorProvide17.paintStatus) === 0 && h("ul", {
263697
263751
  "class": "mouse-right-menu"
263698
263752
  }, [h("li", {
263699
263753
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263704,7 +263758,7 @@ var popper = __webpack_require__(95551);
263704
263758
  return _this5.toUpdateNodes('date', event);
263705
263759
  }
263706
263760
  }
263707
- }, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$hoEditorProvide17 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide17 === void 0 ? void 0 : _this$hoEditorProvide17.type) === 'select' && ((_this$hoEditorProvide18 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide18 === void 0 ? void 0 : _this$hoEditorProvide18.paintStatus) === 0 && h("ul", {
263761
+ }, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$hoEditorProvide18 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide18 === void 0 ? void 0 : _this$hoEditorProvide18.type) === 'select' && ((_this$hoEditorProvide19 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide19 === void 0 ? void 0 : _this$hoEditorProvide19.paintStatus) === 0 && h("ul", {
263708
263762
  "class": "mouse-right-menu"
263709
263763
  }, [h("li", {
263710
263764
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263715,7 +263769,7 @@ var popper = __webpack_require__(95551);
263715
263769
  return _this5.toUpdateNodes('select', event);
263716
263770
  }
263717
263771
  }
263718
- }, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$hoEditorProvide19 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide19 === void 0 ? void 0 : _this$hoEditorProvide19.type) === 'barcode' && ((_this$hoEditorProvide20 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide20 === void 0 ? void 0 : _this$hoEditorProvide20.paintStatus) === 0 && h("ul", {
263772
+ }, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$hoEditorProvide20 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide20 === void 0 ? void 0 : _this$hoEditorProvide20.type) === 'barcode' && ((_this$hoEditorProvide21 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide21 === void 0 ? void 0 : _this$hoEditorProvide21.paintStatus) === 0 && h("ul", {
263719
263773
  "class": "mouse-right-menu"
263720
263774
  }, [h("li", {
263721
263775
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263726,7 +263780,7 @@ var popper = __webpack_require__(95551);
263726
263780
  return _this5.toUpdateNodes('barcode', event);
263727
263781
  }
263728
263782
  }
263729
- }, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide21 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide21 === void 0 ? void 0 : _this$hoEditorProvide21.type) === 'qrcode' && ((_this$hoEditorProvide22 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide22 === void 0 ? void 0 : _this$hoEditorProvide22.paintStatus) === 0 && h("ul", {
263783
+ }, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide22 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide22 === void 0 ? void 0 : _this$hoEditorProvide22.type) === 'qrcode' && ((_this$hoEditorProvide23 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide23 === void 0 ? void 0 : _this$hoEditorProvide23.paintStatus) === 0 && h("ul", {
263730
263784
  "class": "mouse-right-menu"
263731
263785
  }, [h("li", {
263732
263786
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263737,7 +263791,7 @@ var popper = __webpack_require__(95551);
263737
263791
  return _this5.toUpdateNodes('qrcode', event);
263738
263792
  }
263739
263793
  }
263740
- }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide23 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide23 === void 0 ? void 0 : _this$hoEditorProvide23.type) === 'edit-image' && ((_this$hoEditorProvide24 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide24 === void 0 ? void 0 : _this$hoEditorProvide24.paintStatus) === 0 && h("ul", {
263794
+ }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide24 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide24 === void 0 ? void 0 : _this$hoEditorProvide24.type) === 'edit-image' && ((_this$hoEditorProvide25 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide25 === void 0 ? void 0 : _this$hoEditorProvide25.paintStatus) === 0 && h("ul", {
263741
263795
  "class": "mouse-right-menu"
263742
263796
  }, [h("li", {
263743
263797
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263748,7 +263802,7 @@ var popper = __webpack_require__(95551);
263748
263802
  return _this5.toUpdateNodes('edit-image', event);
263749
263803
  }
263750
263804
  }
263751
- }, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$hoEditorProvide25 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide25 === void 0 ? void 0 : _this$hoEditorProvide25.type) === 'text' && ((_this$hoEditorProvide26 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide26 === void 0 ? void 0 : _this$hoEditorProvide26.paintStatus) === 0 && h("ul", {
263805
+ }, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$hoEditorProvide26 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide26 === void 0 ? void 0 : _this$hoEditorProvide26.type) === 'text' && ((_this$hoEditorProvide27 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide27 === void 0 ? void 0 : _this$hoEditorProvide27.paintStatus) === 0 && h("ul", {
263752
263806
  "class": "mouse-right-menu"
263753
263807
  }, [h("li", {
263754
263808
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263759,7 +263813,7 @@ var popper = __webpack_require__(95551);
263759
263813
  return _this5.toUpdateNodes('text', event);
263760
263814
  }
263761
263815
  }
263762
- }, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$hoEditorProvide27 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide27 === void 0 ? void 0 : _this$hoEditorProvide27.rightTypeIsTable) && this.defaultTable && (((_this$hoEditorProvide28 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide28 === void 0 ? void 0 : _this$hoEditorProvide28.paintStatus) === 0 || ((_this$hoEditorProvide29 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide29 === void 0 ? void 0 : _this$hoEditorProvide29.isCanUseTableProperty)) || this.emrDebug) && h("ul", {
263816
+ }, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$hoEditorProvide28 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide28 === void 0 ? void 0 : _this$hoEditorProvide28.rightTypeIsTable) && this.defaultTable && (((_this$hoEditorProvide29 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide29 === void 0 ? void 0 : _this$hoEditorProvide29.paintStatus) === 0 || ((_this$hoEditorProvide30 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide30 === void 0 ? void 0 : _this$hoEditorProvide30.isCanUseTableProperty)) || this.emrDebug) && h("ul", {
263763
263817
  "class": "mouse-right-menu"
263764
263818
  }, [h("li", {
263765
263819
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263798,7 +263852,7 @@ var popper = __webpack_require__(95551);
263798
263852
  return _this5.toUpdateNodes('table-formula', event);
263799
263853
  }
263800
263854
  }
263801
- }, [this.formularType[this.hoEditorProvider.rightNode.tableFormulaType]])]), ((_this$hoEditorProvide30 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide30 === void 0 ? void 0 : _this$hoEditorProvide30.rightTypeIsTable) && this.defaultTable && h("ul", {
263855
+ }, [this.formularType[this.hoEditorProvider.rightNode.tableFormulaType]])]), ((_this$hoEditorProvide31 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide31 === void 0 ? void 0 : _this$hoEditorProvide31.rightTypeIsTable) && this.defaultTable && h("ul", {
263802
263856
  "class": "mouse-right-menu"
263803
263857
  }, [h("li", {
263804
263858
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263854,7 +263908,7 @@ var popper = __webpack_require__(95551);
263854
263908
  "type": "delete"
263855
263909
  },
263856
263910
  "style": "font-size: 20px;"
263857
- }), h("span", ["\u5220\u9664\u5BF9\u89D2\u7EBF"])])]), ((_this$hoEditorProvide31 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide31 === void 0 ? void 0 : _this$hoEditorProvide31.rightTypeIsTable) && this.defaultTable && h("ul", {
263911
+ }), h("span", ["\u5220\u9664\u5BF9\u89D2\u7EBF"])])]), ((_this$hoEditorProvide32 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide32 === void 0 ? void 0 : _this$hoEditorProvide32.rightTypeIsTable) && this.defaultTable && h("ul", {
263858
263912
  "class": "mouse-right-menu"
263859
263913
  }, [h("li", {
263860
263914
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -263868,7 +263922,7 @@ var popper = __webpack_require__(95551);
263868
263922
  table: this.defaultTable,
263869
263923
  tableProperty: this.hoEditorProvider.rightNode.tableProperty
263870
263924
  })
263871
- })]), ((_this$hoEditorProvide32 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide32 === void 0 ? void 0 : _this$hoEditorProvide32.canShowComment) && h("ul", {
263925
+ })]), ((_this$hoEditorProvide33 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide33 === void 0 ? void 0 : _this$hoEditorProvide33.canShowComment) && h("ul", {
263872
263926
  "class": "mouse-right-menu"
263873
263927
  }, [h("li", {
263874
263928
  "class": "mouse-menu-item",
@@ -263877,7 +263931,7 @@ var popper = __webpack_require__(95551);
263877
263931
  return _this5.hideComments();
263878
263932
  }
263879
263933
  }
263880
- }, [(_this$hoEditorProvide33 = this.hoEditorProvider.rightNode) !== null && _this$hoEditorProvide33 !== void 0 && _this$hoEditorProvide33.isHideComments ? '显示' : '隐藏', "\u6279\u6CE8"])])]), h("ul", {
263934
+ }, [(_this$hoEditorProvide34 = this.hoEditorProvider.rightNode) !== null && _this$hoEditorProvide34 !== void 0 && _this$hoEditorProvide34.isHideComments ? '显示' : '隐藏', "\u6279\u6CE8"])])]), h("ul", {
263881
263935
  "class": "mouse-right-menu"
263882
263936
  }, [h("li", {
263883
263937
  "class": "mouse-menu-item"