hoeditor-web 3.1.207 → 3.1.209

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.
@@ -99645,7 +99645,7 @@ var component = (0,componentNormalizer/* default */.A)(
99645
99645
 
99646
99646
  /***/ }),
99647
99647
 
99648
- /***/ 91934:
99648
+ /***/ 68738:
99649
99649
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
99650
99650
 
99651
99651
  "use strict";
@@ -99659,7 +99659,7 @@ __webpack_require__.d(__webpack_exports__, {
99659
99659
 
99660
99660
  // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
99661
99661
  var i18n = __webpack_require__(49850);
99662
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=04d2d7a4
99662
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=6f69b467
99663
99663
 
99664
99664
  var render = function render() {
99665
99665
  var _vm = this,
@@ -99827,7 +99827,15 @@ var render = function render() {
99827
99827
  },
99828
99828
  expression: "readType"
99829
99829
  }
99830
- }, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.222", null, "自动回填"))])], 1), _c('li', {
99830
+ }, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.222", null, "自动回填"))]), _c('a-checkbox', {
99831
+ model: {
99832
+ value: _vm.toText,
99833
+ callback: function ($$v) {
99834
+ _vm.toText = $$v;
99835
+ },
99836
+ expression: "toText"
99837
+ }
99838
+ }, [_vm._v("转换到文本域")])], 1), _c('li', {
99831
99839
  staticClass: "control-item"
99832
99840
  }, [_c('span', {
99833
99841
  staticClass: "label"
@@ -100082,10 +100090,12 @@ var render = function render() {
100082
100090
  };
100083
100091
  var staticRenderFns = [];
100084
100092
 
100085
- ;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=04d2d7a4
100093
+ ;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=6f69b467
100086
100094
 
100087
100095
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
100088
100096
  var es_array_push = __webpack_require__(44114);
100097
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
100098
+ var es_json_stringify = __webpack_require__(33110);
100089
100099
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
100090
100100
  var es_regexp_exec = __webpack_require__(27495);
100091
100101
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
@@ -100108,6 +100118,8 @@ var DownListNode = __webpack_require__(82400);
100108
100118
  var HOEditorFactorys = __webpack_require__(57703);
100109
100119
  // EXTERNAL MODULE: ./src/plugins/type.ts
100110
100120
  var type = __webpack_require__(53861);
100121
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts + 1 modules
100122
+ var TextInputFieldNode = __webpack_require__(65018);
100111
100123
  ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=js
100112
100124
 
100113
100125
 
@@ -100126,6 +100138,9 @@ var type = __webpack_require__(53861);
100126
100138
 
100127
100139
 
100128
100140
 
100141
+
100142
+
100143
+
100129
100144
 
100130
100145
 
100131
100146
 
@@ -100154,6 +100169,7 @@ var type = __webpack_require__(53861);
100154
100169
  dataMetaIdentifier: '',
100155
100170
  identifierFormat: '',
100156
100171
  readType: false,
100172
+ toText: false,
100157
100173
  keyValue: '',
100158
100174
  customProperty: {},
100159
100175
  errorArr: [],
@@ -100457,6 +100473,60 @@ var type = __webpack_require__(53861);
100457
100473
  this.vueController.insertDownList('add', params, list);
100458
100474
  } else if (this.controlStatus === 'update') {
100459
100475
  this.clearWatchProps();
100476
+ if (this.toText) {
100477
+ const downListProperty = new TextInputFieldNode/* DownListProperty */.ic();
100478
+ downListProperty.allowMultiSelected = this.allowMultiSelect;
100479
+ downListProperty.splitCharacter = ",";
100480
+ downListProperty.isMultiLinesDisplay = this.false;
100481
+ downListProperty.mutexSelect = this.mutexSelect;
100482
+ downListProperty.usePrefix = this.usePrefix;
100483
+ downListProperty.selectPrefix = this.selectPrefix;
100484
+ downListProperty.unSelectPrefix = this.unSelectPrefix;
100485
+ downListProperty.listItems = JSON.stringify(list);
100486
+ const toTextParams = {
100487
+ inputFieldType: 1,
100488
+ id: this.id,
100489
+ labelText: this.name,
100490
+ text: this.text,
100491
+ name: this.name,
100492
+ tipText: this.tipText,
100493
+ isTipText: false,
100494
+ readOnlyStatus: 1,
100495
+ fixedWidth: 0,
100496
+ isCentered: false,
100497
+ canModifyContent: true,
100498
+ isAllowDelete: this.isAllowDelete,
100499
+ enableGlobalColor: false,
100500
+ downListProperty: downListProperty,
100501
+ customProperty: this.customProperty,
100502
+ alignWithBlocked: false,
100503
+ innerIdentifier: this.innerIdentifier,
100504
+ //内部标识符
100505
+ dataMetaIdentifier: this.dataMetaIdentifier,
100506
+ //数据元标识符
100507
+ identifierFormat: this.identifierFormat,
100508
+ //标识格式
100509
+ readType: this.readType,
100510
+ readTypeBool: this.readType ? 1 : 0,
100511
+ keyValue: keyValue.join(','),
100512
+ value: value.join(','),
100513
+ insCheckSyncUpdateList: false,
100514
+ hideDuringPrint: false,
100515
+ notReplaceElement: false,
100516
+ includesKeyword: JSON.stringify([]),
100517
+ // 元素包含关键字
100518
+ valueArea: JSON.stringify([]) // 元素值域范围
100519
+ };
100520
+ const downlistNode = this.getSelectNode();
100521
+ if (downlistNode) {
100522
+ this.vueController.deleteNode(downlistNode);
100523
+ this.$nextTick(() => {
100524
+ this.vueController.insertTextInputField("add", toTextParams);
100525
+ this.$nextTick(() => this.handleClose());
100526
+ });
100527
+ return;
100528
+ }
100529
+ }
100460
100530
  this.modifyProps.value = params.value;
100461
100531
  this.modifyProps.keyValue = params.keyValue;
100462
100532
  this.modifyProps['customProperty'] = this.customProperty;
@@ -100480,10 +100550,10 @@ var type = __webpack_require__(53861);
100480
100550
 
100481
100551
  /* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_js = (SelectDialogvue_type_script_lang_js);
100482
100552
 
100483
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=04d2d7a4&prod&lang=less
100553
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=6f69b467&prod&lang=less
100484
100554
  // extracted by mini-css-extract-plugin
100485
100555
 
100486
- ;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=04d2d7a4&prod&lang=less
100556
+ ;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=6f69b467&prod&lang=less
100487
100557
 
100488
100558
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
100489
100559
  var componentNormalizer = __webpack_require__(81656);
@@ -106137,7 +106207,7 @@ var component = (0,componentNormalizer/* default */.A)(
106137
106207
 
106138
106208
  /***/ }),
106139
106209
 
106140
- /***/ 68707:
106210
+ /***/ 95044:
106141
106211
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
106142
106212
 
106143
106213
  "use strict";
@@ -106151,7 +106221,7 @@ __webpack_require__.d(__webpack_exports__, {
106151
106221
 
106152
106222
  // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
106153
106223
  var i18n = __webpack_require__(49850);
106154
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=22ffd471
106224
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=1d194886
106155
106225
 
106156
106226
  var render = function render() {
106157
106227
  var _vm = this,
@@ -106764,7 +106834,7 @@ var staticRenderFns = [function () {
106764
106834
  }, [_c('span', [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.254", null, "单元格编号"))]), _vm._v(":")]);
106765
106835
  }];
106766
106836
 
106767
- ;// ./src/components/controls/table/TableFormula.vue?vue&type=template&id=22ffd471
106837
+ ;// ./src/components/controls/table/TableFormula.vue?vue&type=template&id=1d194886
106768
106838
 
106769
106839
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
106770
106840
  var es_array_push = __webpack_require__(44114);
@@ -106871,7 +106941,9 @@ var HoColorPicker = __webpack_require__(53071);
106871
106941
  iss: [/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.256", null, "计算ISS的一般原则:本法把人体分为6个区域,ISS是身体3个最严重损伤区域的最高AIS值的平方和。ISS=AIS1²+AIS2²+AIS3²"), /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.255", null, "示例:a1,a2,a3,a4,a5,a6")],
106872
106942
  curveChart: [
106873
106943
  // "视力曲线图(Visual Acuity Curve)是眼科检查中常用的一种工具,用于评估和记录不同距离或不同条件下的视力情况。通过绘制视力曲线图,医生可以直观地了解患者的视力变化,从而帮助诊断和治疗各种眼部疾病。",
106874
- "横轴(X轴): 通常表示距离,单位可以是米(m)或英尺(ft), 值域区间为(+2.00 到 -5.00, 每单元格间隔为0.5)", "纵轴(Y轴): 表示视力,通常以最小分辨角对数表示。值域区间为(0.0到1.5之间, 每单元格间隔为0.1)", "单元格编号:(a1:a3表示从a1到a3的连续单元格)"]
106944
+ // "横轴(X轴): 通常表示距离,单位可以是米(m)或英尺(ft), 值域区间为(+2.00 到 -5.00, 每单元格间隔为0.5)",
106945
+ // "纵轴(Y轴): 表示视力,通常以最小分辨角对数表示。值域区间为(0.0到1.5之间, 每单元格间隔为0.1)",
106946
+ "单元格编号:(a1:a3表示从a1到a3的连续单元格)"]
106875
106947
  },
106876
106948
  bodySurfaceAreaWeight: '',
106877
106949
  startDateCode: '',
@@ -107036,7 +107108,9 @@ var HoColorPicker = __webpack_require__(53071);
107036
107108
  this.vueController.lockCell(this.curve);
107037
107109
  }
107038
107110
  setTimeout(() => {
107039
- this.vueController.insertTableFormula(this.curve.codeY.toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType */.D.ftCurveChart, this.curve);
107111
+ this.curve.codeX = this.curve.codeX.toLocaleLowerCase();
107112
+ this.curve.codeY = this.curve.codeY.toLocaleLowerCase();
107113
+ this.vueController.insertTableFormula(this.curve.codeY, this.isHideZero, TableFormula/* FormularType */.D.ftCurveChart, this.curve);
107040
107114
  }, 100);
107041
107115
  }
107042
107116
  this.handleClose();
@@ -107061,10 +107135,10 @@ var HoColorPicker = __webpack_require__(53071);
107061
107135
 
107062
107136
  /* harmony default export */ var table_TableFormulavue_type_script_lang_js = (TableFormulavue_type_script_lang_js);
107063
107137
 
107064
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=22ffd471&prod&lang=less
107138
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=1d194886&prod&lang=less
107065
107139
  // extracted by mini-css-extract-plugin
107066
107140
 
107067
- ;// ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=22ffd471&prod&lang=less
107141
+ ;// ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=1d194886&prod&lang=less
107068
107142
 
107069
107143
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
107070
107144
  var componentNormalizer = __webpack_require__(81656);
@@ -120514,21 +120588,25 @@ class DocController {
120514
120588
  */
120515
120589
  insertComment(text, curDomRange, source) {
120516
120590
  const domRange = curDomRange.normalize();
120591
+ const npEnd = domRange.npEnd.node;
120517
120592
  if (!domRange.npStart.node) {
120518
120593
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .W.NodeNotFound();
120519
120594
  }
120520
- if (!domRange.npEnd.node) {
120595
+ if (!npEnd) {
120521
120596
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .W.NodeNotFound();
120522
120597
  }
120523
120598
  const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_67__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
120524
120599
  const commentID = hoEditorFactory.gernerateCode.generateID('C');
120525
120600
  const startPath = domRange.startPath;
120526
- const endPath = domRange.endPath;
120601
+ let endPath = domRange.endPath;
120602
+ // 插入批注时候如果选区在空文本域内,取文本域结尾MarkNode路径作为endPath 把标记节点放在文本域外面避免文本域结构被破坏
120603
+ if (npEnd && npEnd instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNode */ .y && npEnd.MarkNodeType == _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtContent) {
120604
+ const nextLeafNode = npEnd.nextLeaf();
120605
+ if (nextLeafNode) {
120606
+ endPath = nextLeafNode.getNodePath();
120607
+ }
120608
+ }
120527
120609
  const ePNode = hoEditorFactory.docTree.getParentNode(endPath); //结束节点的父节点
120528
- // const eStyleIndex =
120529
- // domRange.npEnd.node instanceof TextNode
120530
- // ? domRange.npEnd.node.styleIndex
120531
- // : 0;
120532
120610
  const endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Z6.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtEnd);
120533
120611
  endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtEnd;
120534
120612
  endNode.isReadOnly = true;
@@ -120547,15 +120625,6 @@ class DocController {
120547
120625
  hoEditorFactory.undoService.begin();
120548
120626
  hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeStyleUndoUnit */ ._(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .Operate */ .l('insertComment', commentID)));
120549
120627
  hoEditorFactory.undoService.commit();
120550
- // const newEndpath = endNode.getNodePath();
120551
- // const newRange = new DomRange(
120552
- // this._hoEditorFactoryID,
120553
- // newEndpath,
120554
- // newEndpath
120555
- // );
120556
- // const cgEvent = new SelectionChangeEvent(newRange, newRange); //选中范围变化事件
120557
- // hoEditorFactory.docTree.selectChange(cgEvent);
120558
- // hoEditorFactory.docTree.curDomRange = newRange;
120559
120628
  }
120560
120629
  /**
120561
120630
  * 删除批注
@@ -128094,7 +128163,6 @@ class CellNode extends _RectNode__WEBPACK_IMPORTED_MODULE_22__/* .RectNode */ .P
128094
128163
  this._colSpan = colSpan;
128095
128164
  this._table = pNode;
128096
128165
  this._row = row;
128097
- //this._valign = VAlign.vatop;
128098
128166
  this._cellProperty = cellProperty;
128099
128167
  this.cell2DrawNode(r, c);
128100
128168
  }
@@ -128187,11 +128255,6 @@ class CellNode extends _RectNode__WEBPACK_IMPORTED_MODULE_22__/* .RectNode */ .P
128187
128255
  this.clearDrawNodes(0, this.drawNodes.length - 1);
128188
128256
  }
128189
128257
  cell2DrawNodeRange(r, c) {
128190
- // let dHeight = 0;
128191
- // let dWidth = 0;
128192
- // const [r, c] = this._table.getCellInfos(this);
128193
- // const dLeft = this._table.colInfos[c].dLeft;
128194
- // const dTop = this._table.rowInfos[r].rowBaseDTop;
128195
128258
  let aWidth = 0;
128196
128259
  for (let i = c; i <= c + this._colSpan - 1; i++) {
128197
128260
  if (this._table.colInfos[i]) {
@@ -130784,13 +130847,7 @@ class ImageNode extends BaseNode/* BaseNode */.Yp {
130784
130847
  //this._scaleX = scaleX ? scaleX : 1;
130785
130848
  //this._scaleY = scaleY ? scaleY : 1;
130786
130849
  if (this.parentNode && this.parentNode instanceof CellNode/* CellNode */.H) {
130787
- const rowInfos = this.parentNode.table.rowInfos[this.parentNode.table.rows.indexOf(this.parentNode.row)];
130788
- if (rowInfos.rowProperty.isSpecifyHeight) {
130789
- let rowHeight = rowInfos.rowHeight - 10;
130790
- if (height > rowHeight) {
130791
- height = rowHeight;
130792
- }
130793
- }
130850
+ // height -= 10;
130794
130851
  }
130795
130852
  this._width = width;
130796
130853
  this._height = height;
@@ -138278,8 +138335,6 @@ class TableNode extends _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .
138278
138335
  mainCell.drawCell.needUpdate = true;
138279
138336
  rowsSpanChangedCell.push(mainCell);
138280
138337
  }
138281
- //this.cellsMerge(mr, mc, mainCell.rowSpan, mainCell.colSpan);
138282
- //set_ColSpan
138283
138338
  }
138284
138339
  }
138285
138340
  c -= 1;
@@ -138295,7 +138350,6 @@ class TableNode extends _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .
138295
138350
  rowProperty.withFormula = copyRowProperty.withFormula;
138296
138351
  const rowsInfo = new RowInfos(this, rowProperty);
138297
138352
  rowsInfo.rowHeight = this._rowInfos[copyIndex].rowHeight;
138298
- //rowsInfo.heightFixed = this._rowInfos[copyIndex].heightFixed;
138299
138353
  this._rowInfos.splice(r + i, 0, rowsInfo);
138300
138354
  c = 0;
138301
138355
  while (c < this._colCount) {
@@ -143515,11 +143569,11 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
143515
143569
  this._childNodes2.length = 0;
143516
143570
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
143517
143571
  const curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
143518
- const cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
143519
- const dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
143520
- const istart = Math.max(startIndex, 0);
143521
- const iend = Math.min(endIndex, this.text.length - 1);
143522
- const astyle = hoEditorFactory.docTree.styles[0];
143572
+ // const cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
143573
+ // const dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
143574
+ // const istart = Math.max(startIndex, 0);
143575
+ // const iend = Math.min(endIndex, this.text.length - 1);
143576
+ // const astyle = hoEditorFactory.docTree.styles[0];
143523
143577
  const index = curStyleIndex;
143524
143578
  // if (this.enableGlobalColor) {
143525
143579
  // index = astyle.changeStyleString("fontBackColor", "transparent");
@@ -143544,6 +143598,17 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
143544
143598
  }
143545
143599
  this._childNodes.splice(1, 0, new TextNode/* TextNode */.E(this._hoEditorFactoryID, this.rootNodes, this, BaseNode/* NodeType */.Z6.ntText, this.text, index));
143546
143600
  }
143601
+ // if(this.name == '现病史' || this.name == "请输入") {
143602
+ // console.log("++++++");
143603
+ // console.log(this.childNodes2);
143604
+ // console.log(this.childNodes);
143605
+ // console.log("++++++");
143606
+ // } else if(this.name == "辅助检查结果") {
143607
+ // console.log("------");
143608
+ // console.log(this.childNodes2);
143609
+ // console.log(this.childNodes);
143610
+ // console.log("------");
143611
+ // }
143547
143612
  }
143548
143613
  clearDrawNodes(startIndex, endIndex) {
143549
143614
  this.childNodes.forEach((value, index) => {
@@ -143880,26 +143945,28 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
143880
143945
  break;
143881
143946
  }
143882
143947
  }
143883
- if (childArray.length > 0) {
143884
- if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
143885
- if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
143886
- childArray.splice(0, 1);
143887
- }
143888
- if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
143889
- childArray.splice(childArray.length - 1, 1);
143890
- childArray.splice(0, 1);
143891
- }
143892
- }
143893
- if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
143894
- if (childArray[0].nodeType !== 'ntMark') {
143895
- childArray.splice(childArray.length - 1, 1);
143896
- }
143897
- if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
143898
- childArray.splice(childArray.length - 1, 1);
143899
- childArray.splice(0, 1);
143900
- }
143901
- }
143902
- }
143948
+
143949
+ // if (childArray.length > 0) {
143950
+ // console.log(childArray);
143951
+ // if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
143952
+ // if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
143953
+ // childArray.splice(0, 1);
143954
+ // }
143955
+ // if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
143956
+ // childArray.splice(childArray.length - 1, 1);
143957
+ // childArray.splice(0, 1);
143958
+ // }
143959
+ // }
143960
+ // if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
143961
+ // if (childArray[0].nodeType !== 'ntMark') {
143962
+ // childArray.splice(childArray.length - 1, 1);
143963
+ // }
143964
+ // if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
143965
+ // childArray.splice(childArray.length - 1, 1);
143966
+ // childArray.splice(0, 1);
143967
+ // }
143968
+ // }
143969
+ // }
143903
143970
  }
143904
143971
  let childNodes = {};
143905
143972
  if (isCopy) {
@@ -144031,6 +144098,28 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144031
144098
  }
144032
144099
  static json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
144033
144100
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(hoEditorFactoryID);
144101
+ // 兼容处理 批注内容删除时候 空文本域第二个节点丢失和类型错误问题
144102
+ // if(json.name == '现病史') {
144103
+ // console.log(json);
144104
+ // }
144105
+ // if(json.childNodes && Array.isArray(json.childNodes.node)) {
144106
+ // const nodes = json.childNodes.node;
144107
+ // if(nodes.length == 2 && nodes[0].nodeType == 'ntMark' && nodes[0].type == 0 && nodes[1].nodeType == 'ntMark' && nodes[1].type == 2) {
144108
+ // json.childNodes.node = [nodes[0], {
144109
+ // nodeType: 'ntMark',
144110
+ // type: "1",
144111
+ // text: json.name,
144112
+ // styleIndex: nodes[0].styleIndex
144113
+ // }, nodes[1]];
144114
+ // } else if(nodes.length == 3 && nodes[1].nodeType == 'ntMark' && nodes[1].type == 2 && nodes[2].nodeType == 'ntMark' && nodes[2].type == 2) {
144115
+ // json.childNodes.node = [nodes[0], {
144116
+ // nodeType: nodes[0].nodeType,
144117
+ // type: "1",
144118
+ // text: json.name,
144119
+ // styleIndex: nodes[0].styleIndex
144120
+ // }, nodes[2]];
144121
+ // }
144122
+ // }
144034
144123
  let eachCount = 0;
144035
144124
  let isErrorValid = false;
144036
144125
  delete json.nodeType;
@@ -144063,24 +144152,13 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144063
144152
  json.valueArea = !json.valueArea ? "[]" : json.valueArea;
144064
144153
  json.isElementLink = !json.isElementLink ? false : json.isElementLink;
144065
144154
  const temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Z6.ntField, json);
144066
- // this.insertChild
144067
144155
  if (json.childNodes) {
144068
144156
  const nodes = new Array();
144069
144157
  const getChildNodes = item => {
144070
- // eachCount++;
144071
- // if(json.name === '1-1') {
144072
- // console.time(`1-1---${eachCount}`);
144073
- // };
144074
144158
  if (Array.isArray(item)) {
144075
144159
  //数组
144076
144160
  for (let i = 0; i < item.length; i++) {
144077
- // if(json.name === '1-1' && item[i].name) {
144078
- // console.time(`----${i}----1-1----${item[i].name}`);
144079
- // };
144080
144161
  const node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
144081
- // if(json.name === '1-1' && item[i].name) {
144082
- // console.timeEnd(`----${i}----1-1----${item[i].name}`);
144083
- // };
144084
144162
  if (node) {
144085
144163
  if (node instanceof TextNode/* TextNode */.E) {
144086
144164
  if (node.text.length > [...node.text].length) {
@@ -144119,11 +144197,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144119
144197
  if (node instanceof MarkNode/* MarkNode */.y && node.MarkNodeType === MarkNode/* MarkNodeType */.g.mtEnd && node.text.substring(0, 1) === 'C') {
144120
144198
  hoEditorFactory.structureConvert._markNodes.push(node);
144121
144199
  }
144122
- // if (node instanceof SignNode &&
144123
- // ((node.imgSrc != "" && ((hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes((node.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
144124
- // || hoEditorFactory.lockContent)) {
144125
- // hoEditorFactory.structureConvert._superiorSign[0] = node;
144126
- // }
144127
144200
  }
144128
144201
  } else {
144129
144202
  //单个对象
@@ -144144,7 +144217,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144144
144217
  }
144145
144218
  }
144146
144219
  } else {
144147
- //nodes.push(node);
144148
144220
  if (isClearSign) {
144149
144221
  if (node instanceof SignNode/* SignNode */.u) {
144150
144222
  if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
@@ -144167,15 +144239,8 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144167
144239
  if (node instanceof MarkNode/* MarkNode */.y && node.MarkNodeType === MarkNode/* MarkNodeType */.g.mtEnd && node.text.substring(0, 1) === 'C') {
144168
144240
  hoEditorFactory.structureConvert._markNodes.push(node);
144169
144241
  }
144170
- // if (node instanceof SignNode &&
144171
- // ((node.imgSrc != "" && ((hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes((node.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
144172
- // || hoEditorFactory.lockContent)) {
144173
- // hoEditorFactory.structureConvert._superiorSign[0] = node;
144174
- // }
144175
144242
  }
144176
- // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
144177
144243
  };
144178
- // if(json.name === '1-1') console.time("1-1--0");
144179
144244
  if (isPaste) {
144180
144245
  if (json.childNodes.item) {
144181
144246
  getChildNodes(json.childNodes.item);
@@ -144185,7 +144250,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144185
144250
  } else if (json.childNodes.node) {
144186
144251
  getChildNodes(json.childNodes.node);
144187
144252
  }
144188
- // if(json.name === '1-1') console.timeEnd("1-1--0");
144189
144253
  if (nodes.length > 0) {
144190
144254
  if (nodes[0] instanceof MarkNode/* MarkNode */.y) {
144191
144255
  temp.childNodes.length = 0;
@@ -144201,7 +144265,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144201
144265
  }
144202
144266
  }
144203
144267
  }
144204
- //if (hoEditorFactory.drawTree.paintStatus === PaintState.psDesign) {
144205
144268
  const sChildNode = temp.childNodes[0];
144206
144269
  const eChildNode = temp.childNodes[temp.childNodes.length - 1];
144207
144270
  if (!(sChildNode instanceof MarkNode/* MarkNode */.y) || sChildNode instanceof MarkNode/* MarkNode */.y && sChildNode.MarkNodeType !== MarkNode/* MarkNodeType */.g.mtStart) {
@@ -144213,7 +144276,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144213
144276
  if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof MarkNode/* MarkNode */.y && temp.childNodes[1].MarkNodeType == MarkNode/* MarkNodeType */.g.mtContent) {
144214
144277
  temp.childNodes.splice(1, 1);
144215
144278
  }
144216
- //}
144217
144279
  if (temp.childNodes[1] instanceof TableFormula/* TableFormula */.d) {
144218
144280
  return temp;
144219
144281
  }
@@ -144228,9 +144290,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
144228
144290
  if (childFields.length === 0 && !isErrorValid) {
144229
144291
  //不嵌套 用text
144230
144292
  const fieldText = temp.getFieldText();
144231
- // if (temp.text === fieldText && temp.text.indexOf("\n") > 0) {
144232
- // temp.text = temp.text.replaceAll("\n", "");
144233
- // }
144234
144293
  if (temp.text !== fieldText && (temp.inputFieldType == 0 || temp.inputFieldType == 1 && temp.readType == 1)) {
144235
144294
  temp.childNodes.splice(1, temp.childNodes.length - 2);
144236
144295
  const styleIndex = temp.childNodes[0].styleIndex;
@@ -146607,22 +146666,27 @@ class StagePosition {
146607
146666
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
146608
146667
  /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98992);
146609
146668
  /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
146610
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3949);
146611
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
146612
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62953);
146613
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
146614
- /* harmony import */ var _DrawLine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39222);
146615
- /* harmony import */ var _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(60030);
146616
- /* harmony import */ var _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49542);
146617
- /* harmony import */ var _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(87523);
146618
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56419);
146619
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_9__);
146620
- /* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(53714);
146621
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(57703);
146622
- /* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(30486);
146623
- /* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51613);
146624
- /* harmony import */ var _components_common_comment__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(73514);
146625
- /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(58382);
146669
+ /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54520);
146670
+ /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__);
146671
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3949);
146672
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
146673
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62953);
146674
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
146675
+ /* harmony import */ var _DrawLine__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39222);
146676
+ /* harmony import */ var _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(60030);
146677
+ /* harmony import */ var _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49542);
146678
+ /* harmony import */ var _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(87523);
146679
+ /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56419);
146680
+ /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_10__);
146681
+ /* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(53714);
146682
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57703);
146683
+ /* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(30486);
146684
+ /* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51613);
146685
+ /* harmony import */ var _components_common_comment__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(73514);
146686
+ /* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(58382);
146687
+ /* harmony import */ var _types_EditorType__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(27195);
146688
+
146689
+
146626
146690
 
146627
146691
 
146628
146692
 
@@ -146639,7 +146703,7 @@ class StagePosition {
146639
146703
 
146640
146704
 
146641
146705
 
146642
- class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRect */ .N {
146706
+ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_7__/* .DrawRect */ .N {
146643
146707
  // public get startDline(): number {
146644
146708
  // return this._startDline;
146645
146709
  // }
@@ -146762,12 +146826,12 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146762
146826
  }
146763
146827
  get bottomDline() {
146764
146828
  if (!this._bottomDline) {
146765
- const dRoots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this._rootPath)[1];
146829
+ const dRoots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this._rootPath)[1];
146766
146830
  const dline = dRoots[this._endDline];
146767
- if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
146831
+ if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
146768
146832
  const dPageTable = dline.getDrawTableByPageIndex(this._index);
146769
146833
  if (dPageTable) this._bottomDline = dPageTable;
146770
- } else if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D) {
146834
+ } else if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) {
146771
146835
  this._bottomDline = dline;
146772
146836
  }
146773
146837
  }
@@ -146806,7 +146870,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146806
146870
  // if (this._startDline >= this.drawR) {
146807
146871
  // return true;
146808
146872
  // }
146809
- if (this._lastDrawLine instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawPageTable */ .Yt) {
146873
+ if (this._lastDrawLine instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) {
146810
146874
  ret = this._lastDrawLine.endRow === this._lastDrawLine.table.rowCount - 1 && this._lastDrawLine.isEndRowFinished();
146811
146875
  } else {
146812
146876
  ret = true;
@@ -146840,8 +146904,8 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146840
146904
  let bottom = 0;
146841
146905
  let top = 99999;
146842
146906
  for (let i = 0; i < ditems.length; i++) {
146843
- if (ditems[i] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D || ditems[i] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawPageTable */ .Yt || ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
146844
- if (ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
146907
+ if (ditems[i] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D || ditems[i] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt || ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
146908
+ if (ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
146845
146909
  dLine = ditems[i].drawPageTables.values().next().value;
146846
146910
  } else {
146847
146911
  dLine = ditems[i];
@@ -146877,7 +146941,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146877
146941
  * @returns 根据绘制坐标,行高 判断能否摆放下当前行。
146878
146942
  */
146879
146943
  canFit(dtop, dHeight) {
146880
- if (dtop + dHeight > this._maxHeight && dtop > 0) {
146944
+ if (dtop + dHeight > this.maxHeight && dtop > 0) {
146881
146945
  return false;
146882
146946
  }
146883
146947
  return true;
@@ -146888,7 +146952,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146888
146952
  paintBackground() {
146889
146953
  if (!this._background) this._background = new createjs.Shape();
146890
146954
  this._background.graphics.clear();
146891
- this._background.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, Math.max(this.docHeight, this._dHeight)).closePath();
146955
+ this._background.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, Math.max(this.docHeight, this._dHeight)).closePath();
146892
146956
  this.addChildAt(this._background, 0);
146893
146957
  this.setChildIndex(this._background, 0);
146894
146958
  }
@@ -146903,7 +146967,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146903
146967
  if (this._allowAcrossPage) return;
146904
146968
  if (!this._mask) this._mask = new createjs.Shape();
146905
146969
  this._mask.graphics.clear();
146906
- this._mask.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, aheight + 1).closePath();
146970
+ this._mask.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, aheight + 1).closePath();
146907
146971
  //遮罩不是当前容器的Child
146908
146972
  this._mask.x = this.x;
146909
146973
  this._mask.y = this.y;
@@ -146916,33 +146980,33 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146916
146980
  let bFinishedPaint = true;
146917
146981
  let isFull = false;
146918
146982
  let ret = startIndex;
146919
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
146983
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
146920
146984
  let nextDline = startIndex;
146921
146985
  let dRestHeight = Infinity;
146922
- if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
146923
- this._endDline = startIndex;
146986
+ if (this.allowAcrossPage) dRestHeight = this.maxHeight - dTop;
146987
+ this.endDline = startIndex;
146924
146988
  while (nextDline < dlines.length) {
146925
146989
  const dline = dlines[nextDline];
146926
146990
  const hidden = dline.paragraphNode.customProperty.hidden;
146927
- if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
146928
- if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D) this.setHidden(dline);
146991
+ if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
146992
+ if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) this.setHidden(dline);
146929
146993
  nextDline += 1;
146930
146994
  continue;
146931
146995
  }
146932
146996
  if (dline.paragraphNode.printAsSinglePage && dline.paragraphNode.drawlines[0] === dline && dTop > 0) {
146933
- this._endDline = nextDline - 1;
146997
+ this.endDline = nextDline - 1;
146934
146998
  this.clearOverDitem(dlines, nextDline);
146935
146999
  isFull = true;
146936
147000
  bFinishedPaint = false;
146937
147001
  break;
146938
147002
  }
146939
- if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n && dRestHeight < hoEditorFactory.defaultLineHeight || dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D && dRestHeight < dline.dHeight && dTop > 0) {
146940
- if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D && dRestHeight >= hoEditorFactory.defaultLineHeight) {
147003
+ if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n && dRestHeight < hoEditorFactory.defaultLineHeight || dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dRestHeight < dline.dHeight && dTop > 0) {
147004
+ if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dRestHeight >= hoEditorFactory.defaultLineHeight) {
146941
147005
  if (this.contains(dline)) {
146942
147006
  this.removeChild(dline);
146943
147007
  }
146944
147008
  }
146945
- if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
147009
+ if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
146946
147010
  let index = -1;
146947
147011
  for (let i = dline.drawPageTables.length - 1; i >= 0; i--) {
146948
147012
  if (this.contains(dline.drawPageTables[i])) {
@@ -146958,20 +147022,19 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146958
147022
  dline.drawPageTables.splice(index, dline.drawPageTables.length);
146959
147023
  }
146960
147024
  }
146961
- this._endDline = nextDline - 1;
147025
+ this.endDline = nextDline - 1;
146962
147026
  this.clearOverDitem(dlines, nextDline);
146963
147027
  isFull = true;
146964
147028
  bFinishedPaint = false;
146965
147029
  break;
146966
147030
  }
146967
- // const pagePos = hoEditorFactory.drawTree.getDrawLinePagePos(dline);
146968
- if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
147031
+ if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
146969
147032
  const dTable = dline;
146970
147033
  let dPrevTable = null;
146971
147034
  let startChildIndex = 0;
146972
147035
  const dHeadHeight = dTable.getHeadHeight();
146973
147036
  let dPageTable = dTable.getDrawTableByParentArea(this);
146974
- if (dHeadHeight + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_12__/* .gDefaultRowHeight */ .ip > dRestHeight || !dTable.isFirstRowCanFit(dRestHeight)) {
147037
+ if (dHeadHeight + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip > dRestHeight || !dTable.isFirstRowCanFit(dRestHeight)) {
146975
147038
  if (dPageTable) {
146976
147039
  dPageTable.parent.removeChild(dPageTable);
146977
147040
  }
@@ -146993,7 +147056,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
146993
147056
  3: 当前表格不是表格的最后绘制表格,且剩余高度大于一行
146994
147057
  */
146995
147058
  if (dPageTable) {
146996
- if (dTable.needUpdate || dPageTable.dHeight - dRestHeight > _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_12__/* .gDefaultRowHeight */ .ip || dTable.drawPageTables.indexOf(dPageTable) < dTable.drawPageTables.length - 1 && restHeight > dPageTable.dHeight + hoEditorFactory.defaultLineHeight) {
147059
+ if (dTable.needUpdate || dPageTable.dHeight - dRestHeight > _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip || dTable.drawPageTables.indexOf(dPageTable) < dTable.drawPageTables.length - 1 && restHeight > dPageTable.dHeight + hoEditorFactory.defaultLineHeight) {
146997
147060
  const newTop = dTable.drawUpdate(this, dPrevTable, dTop, dRestHeight);
146998
147061
  dTop = newTop;
146999
147062
  } else {
@@ -147028,53 +147091,59 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147028
147091
  }
147029
147092
  }
147030
147093
  if (dPageTable && (dPageTable.endRow < dPageTable.table.rowCount - 1 || !dPageTable.isEndRowFinished())) {
147031
- this._endDline = nextDline;
147094
+ this.endDline = nextDline;
147032
147095
  if (dPageTable) this.lastDrawLine = dPageTable;
147033
147096
  isFull = true;
147034
147097
  bFinishedPaint = false;
147035
147098
  this.clearOverDitem(dlines, nextDline + 1);
147036
147099
  break;
147037
147100
  }
147038
- // dTop += dTable.paragraphNode.combineParagraph.lineSpace;
147039
147101
  if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
147040
147102
  this._docHeight = dTop;
147041
147103
  this._usedHeight = dTop;
147042
- // const index = this.dTable.update(this, dTop, dRestHeight);
147043
- // if (dTable.drawPageTables.length > 0) {
147044
- // }
147045
147104
  //如果当前表格未绘制完成,需要在下一页继续绘制、
147046
- this._endDline = nextDline;
147105
+ this.endDline = nextDline;
147047
147106
  nextDline += 1;
147048
147107
  continue;
147049
147108
  } else {
147050
147109
  //页摆放不下,
147051
- // const lheight = dTop +
147052
- // dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147053
- // console.log(lheight)
147054
147110
  const canfit = this.canFit(dTop, dline.dHeight);
147055
147111
  if (!canfit && this._allowAcrossPage) {
147056
- this._endDline = nextDline - 1;
147057
- if (this._endDline == -1) {
147058
- this._endDline = -2;
147112
+ this.endDline = nextDline - 1;
147113
+ if (this.endDline == -1) {
147114
+ this.endDline = -2;
147059
147115
  }
147060
147116
  this.clearOverDitem(dlines, nextDline);
147061
147117
  isFull = true;
147062
147118
  bFinishedPaint = false;
147063
147119
  break;
147064
147120
  } else {
147065
- if (!this.contains(dline)) this.addChild(dline);
147121
+ if (!this.contains(dline)) {
147122
+ if (hoEditorFactory.fixTableImage && this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
147123
+ this.addChildAt(dline, 0);
147124
+ } else {
147125
+ this.addChild(dline);
147126
+ }
147127
+ }
147128
+ ;
147066
147129
  if (this.numChildren == 1) {
147067
147130
  this.topDline = dline;
147068
147131
  }
147069
147132
  const cbParagraph = dline.paragraphNode.combineParagraph;
147070
- // dline.x = cbParagraph.leftMarginPixes;
147071
147133
  dline.visible = canfit;
147072
147134
  if (nextDline === startIndex) {
147073
147135
  dTop += cbParagraph.topMarginPixes;
147074
147136
  }
147075
147137
  dline.y = dTop;
147076
- if (!this._allowAcrossPage && nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D && dline.drawItems.length == 0) {
147138
+ if (!this._allowAcrossPage && nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length == 0) {
147077
147139
  dTop += 0;
147140
+ } else if (hoEditorFactory.fixTableImage && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length) {
147141
+ const imageList = dline.drawItems.filter(item => item.node && item.node.nodeType === _types_EditorType__WEBPACK_IMPORTED_MODULE_17__/* .NodeType */ .Z6.ntImage);
147142
+ if (imageList.length) {
147143
+ dTop += dline.dHeight;
147144
+ } else {
147145
+ dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147146
+ }
147078
147147
  } else {
147079
147148
  dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147080
147149
  }
@@ -147082,7 +147151,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147082
147151
  this._docHeight = dTop;
147083
147152
  this._usedHeight = dTop;
147084
147153
  this._lastDrawLine = dline;
147085
- this._endDline = nextDline;
147154
+ this.endDline = nextDline;
147086
147155
  ret += 1;
147087
147156
  nextDline += 1;
147088
147157
  }
@@ -147091,8 +147160,6 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147091
147160
  this.paintFrontGround();
147092
147161
  this.paintBackground();
147093
147162
  return bFinishedPaint;
147094
- // drawPage.repaint();
147095
- // return [ret, isFull];
147096
147163
  }
147097
147164
  /**
147098
147165
  *
@@ -147104,52 +147171,28 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147104
147171
  */
147105
147172
  paintArea(dlines, startIndex, aTop //顶点
147106
147173
  ) {
147107
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147108
- // if (this.rootPath.startsWith("header")) {
147109
- // console.log("drawheader.paintArea");
147110
- // } else if (this.rootPath.startsWith("footer")) {
147111
- // console.log("drawfooter.paintArea");
147112
- // } else {
147113
- // console.log("drawMainDoc.paintArea");
147114
- // }
147115
- // let isFull = false;
147116
- // this.clearAfter(drawPage, dlines, startIndex);
147174
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147117
147175
  this._docHeight = aTop;
147118
- // if (aTop === 0) {
147119
- // this._startDline = startIndex;
147120
- // }
147121
147176
  let ret = startIndex;
147122
147177
  let isFull = false;
147123
- // const dlineIter = this.listDrawLineByPathRange(
147124
- // startIndex,
147125
- // dlines.length - 1
147126
- // );
147127
147178
  let nextDline = startIndex;
147128
147179
  let dTop = aTop;
147129
147180
  this._changed = true;
147130
- // if (this.drawLines.length > 0 && startIndex > 0) {
147131
- // dTop =
147132
- // this.drawLines[this.drawLines.length - 1].dTop +
147133
- // this.drawLines[this.drawLines.length - 1].dHeight +
147134
- // this.drawLines[this.drawLines.length - 1].paragraphNode.combineParagraph
147135
- // .lineSpace;
147136
- // }
147137
147181
  let restHeight = Infinity;
147138
147182
  if (this.allowAcrossPage) restHeight = this.maxHeight - dTop;
147139
147183
  let mark = false;
147140
147184
  while (nextDline < dlines.length) {
147141
147185
  const dline = dlines[nextDline];
147142
147186
  const hidden = dline.paragraphNode.customProperty.hidden;
147143
- if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
147144
- if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D) this.setHidden(dline);
147187
+ if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
147188
+ if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) this.setHidden(dline);
147145
147189
  nextDline += 1;
147146
147190
  mark = true;
147147
147191
  continue;
147148
147192
  }
147149
- // const pagePos = hoEditorFactory.drawTree.getDrawLinePagePos(dline);
147150
- if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
147193
+ if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
147151
147194
  const dTable = dline;
147152
- if (dTable.getHeadHeight() + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_12__/* .gDefaultRowHeight */ .ip > restHeight || !dTable.isFirstRowCanFit(restHeight)) {
147195
+ if (dTable.getHeadHeight() + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip > restHeight || !dTable.isFirstRowCanFit(restHeight)) {
147153
147196
  isFull = true;
147154
147197
  this.clearOverDitem(dlines, nextDline);
147155
147198
  return [isFull, dTop, restHeight];
@@ -147166,71 +147209,35 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147166
147209
  if (dTable.isFinishedPaint()) {
147167
147210
  nextDline += 1;
147168
147211
  } else {
147169
- this._endDline = nextDline;
147212
+ this.endDline = nextDline;
147170
147213
  isFull = true;
147171
147214
  if (dPageTable) this._docHeight = dTop + dPageTable.dHeight;
147172
- // + dline.paragraphNode.combineParagraph.lineSpace;
147173
147215
  this.clearOverDitem(dlines, nextDline + 1);
147174
147216
  break;
147175
147217
  }
147176
- // else {
147177
- // const dPageTable = dTable.getDrawTableByParentArea(this);
147178
- // if (!dPageTable) {
147179
- // const [
147180
- // nextArea,
147181
- // nextPageIndex,
147182
- // nextTop,
147183
- // nextRestHeight,
147184
- // ] = dTable.update(this, dTop, restHeight);
147185
- // return nextArea.paintArea(
147186
- // dlines,
147187
- // nextPageIndex,
147188
- // nextDline + 1,
147189
- // nextTop
147190
- // );
147191
- // } else {
147192
- // const [
147193
- // nextArea,
147194
- // nextPageIndex,
147195
- // nextTop,
147196
- // nextRestHeight,
147197
- // ] = dPageTable.update(
147198
- // this,
147199
- // pageIndex,
147200
- // dTop,
147201
- // restHeight,
147202
- // dPageTable.startRow
147203
- // );
147204
- // return nextArea.paintArea(
147205
- // dlines,
147206
- // nextPageIndex,
147207
- // nextDline + 1,
147208
- // nextTop
147209
- // );
147210
- // }
147211
- // }
147212
147218
  } else {
147213
147219
  //页摆放不下,
147214
- // const lheight = dTop +
147215
- // dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147216
- // console.log(lheight)
147217
147220
  const canfit = this.canFit(dTop, dline.dHeight);
147218
- if (!canfit && (dTop > 0 || this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_13__/* .DrawPageCell */ .M) && this._allowAcrossPage) {
147219
- const nextArea = this.getNextDrawArea();
147220
- this._endDline = nextDline - 1;
147221
- if (this._endDline == -1) {
147222
- this._endDline = -2;
147221
+ if (!canfit && (dTop > 0 || this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) && this._allowAcrossPage) {
147222
+ // const nextArea = this.getNextDrawArea();
147223
+ this.endDline = nextDline - 1;
147224
+ if (this.endDline == -1) {
147225
+ this.endDline = -2;
147223
147226
  }
147224
147227
  isFull = true;
147225
147228
  this._docHeight -= aTop;
147226
147229
  // this.clearOverDitem(dlines, nextDline);
147227
147230
  return [isFull, dTop, restHeight];
147228
147231
  } else {
147229
- this.addChild(dline);
147232
+ if (hoEditorFactory.fixTableImage && this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
147233
+ this.addChildAt(dline, 0);
147234
+ } else {
147235
+ this.addChild(dline);
147236
+ }
147230
147237
  if (this.numChildren == 1) {
147231
147238
  this.topDline = dline;
147232
147239
  }
147233
- this._endDline = nextDline;
147240
+ this.endDline = nextDline;
147234
147241
  const cbParagraph = dline.paragraphNode.combineParagraph;
147235
147242
  //dline.x = cbParagraph.leftMarginPixes;
147236
147243
  dline.visible = canfit;
@@ -147238,8 +147245,15 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147238
147245
  dTop += cbParagraph.topMarginPixes;
147239
147246
  }
147240
147247
  dline.y = dTop;
147241
- if (nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D && dline.drawItems.length == 0) {
147248
+ if (nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length == 0) {
147242
147249
  dTop += 0;
147250
+ } else if (hoEditorFactory.fixTableImage && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length) {
147251
+ const imageList = dline.drawItems.filter(item => item && item.nodeType === _types_EditorType__WEBPACK_IMPORTED_MODULE_17__/* .NodeType */ .Z6.ntImage);
147252
+ if (imageList.length) {
147253
+ dTop += dline.dHeight;
147254
+ } else {
147255
+ dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147256
+ }
147243
147257
  } else {
147244
147258
  dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
147245
147259
  }
@@ -147252,10 +147266,10 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147252
147266
  }
147253
147267
  }
147254
147268
  }
147255
- this._docHeight -= aTop;
147269
+ this.docHeight -= aTop;
147256
147270
  this.paintFrontGround();
147257
147271
  this.paintBackground();
147258
- if (mark && dlines.length > 0 && dlines[0].parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_13__/* .DrawPageCell */ .M) {
147272
+ if (mark && dlines.length > 0 && dlines[0].parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
147259
147273
  dlines[0].parent.cell.drawCell.needUpdate = true;
147260
147274
  hoEditorFactory.docTree.redrawHiddenParas.push(dlines[0].parent.cell.table);
147261
147275
  }
@@ -147281,14 +147295,14 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147281
147295
  // }
147282
147296
  getFirstDline() {
147283
147297
  let mainStartRedrawline = 0;
147284
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147298
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147285
147299
  while (mainStartRedrawline < this.children.length) {
147286
- if (this.children[mainStartRedrawline] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D || this.children[mainStartRedrawline] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawPageTable */ .Yt) break;else mainStartRedrawline += 1;
147300
+ if (this.children[mainStartRedrawline] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D || this.children[mainStartRedrawline] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) break;else mainStartRedrawline += 1;
147287
147301
  }
147288
147302
  const dStartDline = this.children[mainStartRedrawline];
147289
- if (dStartDline instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawPageTable */ .Yt) {
147303
+ if (dStartDline instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) {
147290
147304
  mainStartRedrawline = hoEditorFactory.drawTree.mainDNodes.indexOf(dStartDline.table.drawTable);
147291
- } else if (dStartDline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_5__/* .DrawLine */ .D) {
147305
+ } else if (dStartDline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) {
147292
147306
  mainStartRedrawline = hoEditorFactory.drawTree.mainDNodes.indexOf(dStartDline);
147293
147307
  }
147294
147308
  return mainStartRedrawline;
@@ -147296,7 +147310,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147296
147310
  clearOverDitem(dRoots, start) {
147297
147311
  for (let i = start; i < dRoots.length; i++) {
147298
147312
  const dFirstItem = dRoots[i];
147299
- if (dFirstItem instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_7__/* .DrawTable */ .n) {
147313
+ if (dFirstItem instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
147300
147314
  const dPageTable = dFirstItem.drawPageTables[0];
147301
147315
  if (this.contains(dPageTable)) {
147302
147316
  this.removeChild(dPageTable);
@@ -147313,7 +147327,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147313
147327
  }
147314
147328
  }
147315
147329
  drawComments() {
147316
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147330
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147317
147331
  hoEditorFactory.commentParams.repaint++;
147318
147332
  return;
147319
147333
  const comments = new Map();
@@ -147351,7 +147365,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147351
147365
  const dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
147352
147366
  const stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
147353
147367
  const localPos = this.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
147354
- const spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_13__/* .DrawPageCell */ .M ? localPos.x : endDrawNode.x;
147368
+ const spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M ? localPos.x : endDrawNode.x;
147355
147369
  const spY = localPos.y;
147356
147370
  this.removeComment(value);
147357
147371
  const path = value.eNode.getNodePath();
@@ -147379,10 +147393,10 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147379
147393
  }
147380
147394
  }
147381
147395
  }
147382
- _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
147396
+ _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
147383
147397
  }
147384
147398
  repaint(comment, nPath, spX, spY) {
147385
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147399
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147386
147400
  const comments = this.areaComments;
147387
147401
  const topComments = new Array();
147388
147402
  const bottomComments = new Array();
@@ -147405,7 +147419,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147405
147419
  });
147406
147420
  tempArr.forEach(value => {
147407
147421
  const aPath = value.eNode.getNodePath();
147408
- const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_10__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
147422
+ const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
147409
147423
  if (result > 0) {
147410
147424
  topComments.push(value);
147411
147425
  } else {
@@ -147476,7 +147490,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147476
147490
  }
147477
147491
  }
147478
147492
  drawComment(comment, nodeX, nodeY, commentY) {
147479
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147493
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147480
147494
  const docWidth = this.docWidth;
147481
147495
  const commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
147482
147496
  const container = new createjs.Container();
@@ -147550,7 +147564,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147550
147564
  }
147551
147565
  }
147552
147566
  onMouseDown(e, comment) {
147553
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147567
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147554
147568
  hoEditorFactory.drawTree.curOnSelectedComment = comment;
147555
147569
  e.target.alpha = 1;
147556
147570
  for (let i = 0; i < this.children.length; i++) {
@@ -147562,7 +147576,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147562
147576
  if (hoEditorFactory.reviewJson.editComment !== false || hoEditorFactory.reviewJson.deleteComment !== false) {
147563
147577
  setTimeout(() => {
147564
147578
  if (hoEditorFactory.drawTree.activePage) {
147565
- _components_common_comment__WEBPACK_IMPORTED_MODULE_14__/* .hoCreateComment */ .h.open({
147579
+ _components_common_comment__WEBPACK_IMPORTED_MODULE_15__/* .hoCreateComment */ .h.open({
147566
147580
  x: child.x,
147567
147581
  y: child.y + hoEditorFactory.drawTree.activePage.drawMainDoc.y,
147568
147582
  width: 0,
@@ -147583,7 +147597,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147583
147597
  hoEditorFactory.drawPageTree.updateDrawPage(this.index);
147584
147598
  }
147585
147599
  drawEditRecords(comment, nodeX, nodeY, commentY) {
147586
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147600
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147587
147601
  const commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
147588
147602
  const docWidth = this.docWidth;
147589
147603
  const container = new createjs.Container();
@@ -147629,7 +147643,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147629
147643
  hoEditorFactory.drawPageTree.updateDrawPage(this.index);
147630
147644
  }
147631
147645
  repaintRecored(comments, comment, nPath, spX, spY) {
147632
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147646
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
147633
147647
  const topComments = new Array();
147634
147648
  const bottomComments = new Array();
147635
147649
  const tempArr = new Array();
@@ -147651,7 +147665,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
147651
147665
  });
147652
147666
  tempArr.forEach(value => {
147653
147667
  const aPath = value.eNode.getNodePath();
147654
- const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_10__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
147668
+ const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
147655
147669
  if (result > 0) {
147656
147670
  topComments.push(value);
147657
147671
  } else {
@@ -148378,18 +148392,19 @@ class DrawCell extends _DrawRect__WEBPACK_IMPORTED_MODULE_7__/* .DrawRect */ .N
148378
148392
  return null;
148379
148393
  }
148380
148394
  paintCell(dParent, dTop, dHeight, maxHeight, startDline) {
148381
- // let ret = 0;
148382
148395
  const [aleft, awidth] = this._cell.getLeftWidth();
148383
148396
  this._dWidth = awidth;
148384
148397
  let valignTop = 0;
148385
148398
  if (startDline === 0) {
148386
148399
  const aHeight = this._cell.drawCell.calcCellHeight();
148387
- const cellMaxHeigth = Math.min(maxHeight, aHeight);
148400
+ const cellMaxHeight = Math.min(maxHeight, aHeight);
148388
148401
  if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vatop) {
148389
- valignTop = 1;
148390
- } else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vacenter && cellMaxHeigth > this._cell.drawCell.docHeight) {
148391
- valignTop = (cellMaxHeigth - this._cell.drawCell.docHeight) / 2;
148402
+ // ---去掉靠上对齐时候顶上1像素留白导致单元格插入的图片卡死问题---
148403
+ valignTop = 0;
148404
+ } else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vacenter && cellMaxHeight > this._cell.drawCell.docHeight) {
148405
+ valignTop = (cellMaxHeight - this._cell.drawCell.docHeight) / 2;
148392
148406
  } else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vabottom && aHeight > this._cell.drawCell.docHeight) {
148407
+ // aHeight不准确影响靠下对齐判断
148393
148408
  valignTop = aHeight - this._cell.drawCell.docHeight;
148394
148409
  }
148395
148410
  }
@@ -150273,8 +150288,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150273
150288
  return ret;
150274
150289
  }
150275
150290
  updateDHeight() {
150276
- const innerBottom = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
150277
- const innerTop = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
150291
+ const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID);
150292
+ const innerBottom = hoEditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
150293
+ const innerTop = hoEditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
150278
150294
  const index = this.cell.drawCell.drawPageCells.indexOf(this);
150279
150295
  let docHeight = 0;
150280
150296
  if (index == 0 || index == this.cell.drawCell.drawPageCells.length - 1) {
@@ -150316,6 +150332,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150316
150332
  (0,defineProperty/* default */.A)(this, "_bottomLine", void 0);
150317
150333
  (0,defineProperty/* default */.A)(this, "_leftLine", void 0);
150318
150334
  (0,defineProperty/* default */.A)(this, "_rightLine", void 0);
150335
+ (0,defineProperty/* default */.A)(this, "backColor", void 0);
150319
150336
  //实现接口部分
150320
150337
  (0,defineProperty/* default */.A)(this, "_node", void 0);
150321
150338
  (0,defineProperty/* default */.A)(this, "_discriminator", void 0);
@@ -150323,86 +150340,52 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150323
150340
  // this._crossShape = null;
150324
150341
  this._backImg = new createjs.Shape();
150325
150342
  this._backImg.name = "backImg";
150343
+ this.backColor = new createjs.Shape();
150344
+ this.backColor.name = "backColor";
150326
150345
  this._topLine = new createjs.Shape();
150327
150346
  this._bottomLine = new createjs.Shape();
150328
150347
  this._leftLine = new createjs.Shape();
150329
150348
  this._rightLine = new createjs.Shape();
150330
150349
  this._touchArea = new createjs.Shape();
150331
- // this._pageIndex = pageIndex;
150332
- // this._dPage = dPage;
150333
150350
  this._node = cellNode;
150334
150351
  this._cell = cellNode;
150335
150352
  this._startDline = startLine;
150336
150353
  this._endDline = startLine;
150337
150354
  this._dWidth = dWidth;
150338
150355
  this._maxHeight = dMaxHeight;
150339
- // ((this as unknown) as DrawInfos).dWidth = dWidth;
150340
150356
  this._dHeight = dHeight;
150341
- // ((this as unknown) as DrawInfos).dHeight = dWidth;
150342
150357
  this._discriminator = IDrawInfos/* gDrawIntfID */.c;
150343
- //this._marker = new createjs.Shape();
150344
- // this._topBorder = new createjs.Rectangle(dLeft, dTop, dWidth, 2);
150345
- // this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
150346
- // this._rightBorder = new createjs.Rectangle(
150347
- // dLeft + dWidth - 2,
150348
- // dTop,canjustRowHeight
150349
- // 2,
150350
- // dHeight
150351
- // );
150352
- // this._bottomBorder = new createjs.Rectangle(
150353
- // dLeft,
150354
- // dTop + dHeight - 2,
150355
- // dWidth,
150356
- // 2
150357
- // );
150358
150358
  let innerTop = 0;
150359
+ const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
150359
150360
  if (this._cell.drawCell.drawPageCells.length == 0) {
150360
- innerTop = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
150361
+ innerTop = hoEditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
150362
+ }
150363
+ if (paintImidiate === undefined || paintImidiate) {
150364
+ this.paintArea(this._cell.drawCell.drawLines, startLine, innerTop);
150361
150365
  }
150362
- if (paintImidiate === undefined || paintImidiate) this.paintArea(this._cell.drawCell.drawLines, startLine, innerTop);
150363
150366
  const rowIndex = this._cell.table.rows.indexOf(this._cell.row);
150364
150367
  const colIndex = this._cell.row.indexOf(this._cell);
150365
150368
  this._valignTop = innerTop;
150366
- // let maxWidth = 0;
150367
- // let maxHeight = 0;
150368
- // if (colIndex + this._cell.colSpan - 1 === this._cell.table.colCount - 1) {
150369
- // maxWidth = -1;
150370
- // } else {
150371
- // maxWidth =
150372
- // this._dWidth +
150373
- // this._cell.table.colInfos[colIndex + this._cell.colSpan - 1].colWidth -
150374
- // 10;
150375
- // }
150376
- // if (rowIndex + this._cell.rowSpan - 1 === this._cell.table.rowCount - 1) {
150377
- // maxHeight = -1;
150378
- // } else {
150379
- // maxHeight =
150380
- // this._dHeight +
150381
- // this._cell.table.rowInfos[rowIndex + this._cell.rowSpan - 1].rowHeight -
150382
- // gLineHeight;
150383
- // }
150384
150369
  /**
150385
150370
  * 表格较多时此处占用内存较大 待优化
150386
150371
  */
150387
- const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
150388
- if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.ak.psEdit && (this.cell.table.tableProperty.canAdjustRowHeight || this.cell.table.tableProperty.canAdjustRowWidth) || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.ak.psDesign) {
150372
+ const {
150373
+ canAdjustRowHeight,
150374
+ canAdjustRowWidth
150375
+ } = this._cell.table.tableProperty;
150376
+ const paintStatus = hoEditorFactory.drawTree.paintStatus;
150377
+ if (paintStatus === DrawTree/* PaintState */.ak.psEdit && (canAdjustRowHeight || canAdjustRowWidth) || paintStatus === DrawTree/* PaintState */.ak.psDesign) {
150389
150378
  this._ResizeObj = new ResizeDrawTableObj(this._hoEditorFactoryID, this._cell, this._touchArea, rowIndex, colIndex);
150390
150379
  }
150391
150380
  // this.paintBackground();
150392
150381
  // this.paintFrontGround();
150393
150382
  }
150394
- // public get restHeight() {
150395
- // return this._maxHeight - this._docHeight;
150396
- // }
150397
150383
  get dWidth() {
150398
150384
  return this._dWidth;
150399
150385
  }
150400
150386
  set dWidth(value) {
150401
150387
  if (value !== this._dWidth) {
150402
150388
  this._dWidth = value;
150403
- // this._topBorder.width = value;
150404
- // this._bottomBorder.width = value;
150405
- // this._rightBorder.x = this._dLeft + this._dWidth - 2;
150406
150389
  }
150407
150390
  }
150408
150391
  get dHeight() {
@@ -150411,25 +150394,12 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150411
150394
  set dHeight(value) {
150412
150395
  if (value !== this._dHeight) {
150413
150396
  this._dHeight = value;
150414
- // this._leftBorder.height = value;
150415
- // this._rightBorder.height = value;
150416
- // this._bottomBorder.y = this._dTop + this._dHeight - 2;
150417
150397
  }
150418
150398
  }
150419
150399
  updateCrossShap() {
150420
150400
  if (this._cell.cellProperty.obliqueSplitLine === TableProperty/* ObliqueSplitLine */.ST.None) {
150421
- // if (this._crossShape && this.contains(this._crossShape)) {
150422
- // this.removeChild(this._crossShape);
150423
- // }
150424
- // this._crossShape = null;
150425
150401
  return;
150426
150402
  } else {
150427
- // if (!this._crossShape) {
150428
- // this._crossShape = new createjs.Shape();
150429
- // }
150430
- // this._crossShape.graphics.clear();
150431
- // this._crossShape.x = 0;
150432
- // this._crossShape.y = 0;
150433
150403
  this._backImg.graphics.clear().setStrokeStyle(1);
150434
150404
  this._backImg.graphics.beginStroke("#000000");
150435
150405
  /*表格边框与边编码,角的编码是0、1、2、3 边的编码是ABCD
@@ -150497,36 +150467,17 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150497
150467
  }
150498
150468
  this._backImg.graphics.endStroke();
150499
150469
  }
150500
- // if (this._crossShape && !this.contains(this._crossShape)) {
150501
- // this.addChildAt(this._crossShape, 1);
150502
- // }
150503
150470
  }
150504
150471
  isFinishedPaint() {
150505
150472
  let ret = false;
150506
150473
  const index = this._endDline;
150507
- // if (this._drawLines.length === 0) {
150508
- // return true;
150509
- // }
150510
150474
  if (this._startDline >= this.cell.drawCell.drawLines.length || index == -1) {
150511
150475
  return true;
150512
150476
  }
150513
- // if (this._lastDrawLine instanceof DrawPageTable) {
150514
- // index = this._cell.drawCell.drawLines.indexOf(
150515
- // (this._lastDrawLine as DrawPageTable).table.drawTable
150516
- // );
150517
- // } else {
150518
- // index = this._cell.drawCell.drawLines.indexOf(
150519
- // this._lastDrawLine as DrawLine
150520
- // );
150521
- // }
150522
150477
  if (index == this._cell.drawCell.drawLines.length - 1) {
150523
150478
  const endDline = this._cell.drawCell.drawLines[index];
150524
150479
  if (endDline instanceof DrawPageTable/* DrawPageTable */.Yt) {
150525
150480
  ret = endDline.isEndRowFinished();
150526
- // (this
150527
- // ._lastDrawLine as DrawPageTable).table.drawTable.isFinishedPaint(
150528
- // this.drawPageTable.pageIndex
150529
- // );
150530
150481
  } else {
150531
150482
  ret = true;
150532
150483
  }
@@ -150596,11 +150547,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150596
150547
  }
150597
150548
  }
150598
150549
  startPaintBackGround() {
150599
- //this._backImg.uncache();
150600
150550
  this._backImg.graphics.clear();
150601
150551
  }
150602
150552
  endPaintBackGround(newHeight) {
150603
- //this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
150604
150553
  this._backImg.graphics.endStroke();
150605
150554
  }
150606
150555
  paintMarker(color) {
@@ -150648,7 +150597,10 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150648
150597
  const printGridLines = this._cell.cellProperty.printGridLines;
150649
150598
  const gridLineDisplay = this._cell.cellProperty.gridLineDisplay;
150650
150599
  const gridLinesColor = this._cell.cellProperty.gridLinesColor;
150651
- if (printGridLines || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150600
+ const gridLinesStyle = this._cell.cellProperty.gridLinesStyle;
150601
+ const paintStatus = hoEditorFactory.drawTree.paintStatus;
150602
+ let isDash = printGridLines && gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && paintStatus !== DrawTree/* PaintState */.ak.psPreview && paintStatus !== DrawTree/* PaintState */.ak.psPrint;
150603
+ if (printGridLines || !printGridLines && paintStatus !== DrawTree/* PaintState */.ak.psPreview && paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150652
150604
  if (gridLineDisplay[0]) {
150653
150605
  //上边框
150654
150606
  let topCell = null;
@@ -150658,7 +150610,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150658
150610
  if (r == 0 || this.dTop == 0 || r > 0 && topCell && !topCell.cellProperty.gridLineDisplay[1]) {
150659
150611
  this._topLine.name = "topLine";
150660
150612
  this._topLine.graphics.beginStroke(gridLinesColor[0]);
150661
- if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150613
+ if (isDash) {
150662
150614
  this._topLine.graphics.setStrokeDash([2, 2]);
150663
150615
  } else {
150664
150616
  this._topLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
@@ -150666,7 +150618,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150666
150618
  this._topLine.graphics.moveTo(x, y).lineTo(x + dWidth, y);
150667
150619
  this._topLine.graphics.endStroke();
150668
150620
  if (!this.children.includes(this._topLine)) {
150669
- this.addChild(this._topLine);
150621
+ this.addChildAt(this._topLine, this.children.length - 1);
150670
150622
  }
150671
150623
  }
150672
150624
  } else {
@@ -150695,7 +150647,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150695
150647
  //下边框
150696
150648
  this._bottomLine.name = "bottomLine";
150697
150649
  this._bottomLine.graphics.beginStroke(gridLinesColor[1]);
150698
- if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150650
+ if (isDash) {
150699
150651
  this._bottomLine.graphics.setStrokeDash([2, 2]);
150700
150652
  } else {
150701
150653
  this._bottomLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
@@ -150703,7 +150655,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150703
150655
  this._bottomLine.graphics.moveTo(x, y + height).lineTo(x + dWidth, y + height);
150704
150656
  this._bottomLine.graphics.endStroke();
150705
150657
  if (!this.children.includes(this._bottomLine)) {
150706
- this.addChild(this._bottomLine);
150658
+ this.addChildAt(this._bottomLine, this.children.length - 1);
150707
150659
  }
150708
150660
  } else {
150709
150661
  if (r < this.cell.table.rowCount - 1) {
@@ -150736,7 +150688,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150736
150688
  if (c == 0 || c > 0 && leftCell && !leftCell.cellProperty.gridLineDisplay[3]) {
150737
150689
  this._leftLine.name = "leftLine";
150738
150690
  this._leftLine.graphics.beginStroke(gridLinesColor[2]);
150739
- if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150691
+ if (isDash) {
150740
150692
  this._leftLine.graphics.setStrokeDash([2, 2]);
150741
150693
  } else {
150742
150694
  this._leftLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
@@ -150744,7 +150696,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150744
150696
  this._leftLine.graphics.moveTo(x, y).lineTo(x, y + height);
150745
150697
  this._leftLine.graphics.endStroke();
150746
150698
  if (!this.children.includes(this._leftLine)) {
150747
- this.addChild(this._leftLine);
150699
+ this.addChildAt(this._leftLine, this.children.length - 1);
150748
150700
  }
150749
150701
  }
150750
150702
  } else {
@@ -150776,7 +150728,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150776
150728
  //右边框
150777
150729
  this._rightLine.name = "rightLine";
150778
150730
  this._rightLine.graphics.beginStroke(gridLinesColor[3]);
150779
- if (printGridLines && this.cell.cellProperty.gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
150731
+ if (isDash) {
150780
150732
  this._rightLine.graphics.setStrokeDash([2, 2]);
150781
150733
  } else {
150782
150734
  this._rightLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
@@ -150784,7 +150736,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150784
150736
  this._rightLine.graphics.moveTo(x + dWidth, y).lineTo(x + dWidth, y + height);
150785
150737
  this._rightLine.graphics.endStroke();
150786
150738
  if (!this.children.includes(this._rightLine)) {
150787
- this.addChild(this._rightLine);
150739
+ this.addChildAt(this._rightLine, this.children.length - 1);
150788
150740
  }
150789
150741
  } else {
150790
150742
  if (c < this.cell.table.colCount - 1 && c > 0) {
@@ -150813,6 +150765,20 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150813
150765
  }
150814
150766
  }
150815
150767
  }
150768
+ // this.paintBackColor(true)
150769
+ }
150770
+ paintBackColor(draw) {
150771
+ const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryID);
150772
+ this.backColor.graphics.clear();
150773
+ this.backColor.alpha = 0.5;
150774
+ if (draw && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState */.ak.psPrint && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState */.ak.psPreview) {
150775
+ this.backColor.graphics.beginFill('#f00').drawRect(0, 0, this._dWidth, this._dHeight);
150776
+ if (this.children.includes(this.backColor)) {
150777
+ this.setChildIndex(this.backColor, 0);
150778
+ } else {
150779
+ this.addChildAt(this.backColor, 0);
150780
+ }
150781
+ }
150816
150782
  }
150817
150783
  paintCellBackground(newHeight, r, c) {
150818
150784
  this._backImg.x = 0;
@@ -150828,32 +150794,32 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150828
150794
  this.setChildIndex(this._backImg, 0);
150829
150795
  }
150830
150796
  this.paintCellBorders(newHeight, r, c);
150831
- if (this._cell.needPaintLineGrid()) this.paintLineGrid();
150797
+ if (this._cell.needPaintLineGrid()) {
150798
+ this.paintLineGrid();
150799
+ }
150832
150800
  this.setBounds(0, 0, this._dWidth, newHeight);
150833
- // this._backImg.cache(0, 0, this._dWidth, newHeight);
150834
150801
  }
150835
150802
  paintLineGrid() {
150836
- if (this._cell.drawCell.drawLines.length == 0) {
150803
+ const drawLines = this._cell.drawCell.drawLines;
150804
+ if (drawLines.length == 0) {
150837
150805
  return;
150838
150806
  }
150839
- let dHeight = this._cell.drawCell.drawLines[0].dHeight;
150840
- if (this._cell.drawCell.drawLines.length == 1 && this._cell.drawCell.drawLines[0] instanceof DrawLine/* DrawLine */.D && this._cell.drawCell.drawLines[0].drawItems.length == 0) {
150841
- dHeight = this._cell.drawCell.drawLines[0].adjustDHeight(dHeight) + this._cell.drawCell.drawLines[0].paragraphNode.combineParagraph.topMarginPixes;
150807
+ let dHeight = drawLines[0].dHeight;
150808
+ if (drawLines.length == 1 && drawLines[0] instanceof DrawLine/* DrawLine */.D && drawLines[0].drawItems.length == 0) {
150809
+ dHeight = drawLines[0].adjustDHeight(dHeight) + drawLines[0].paragraphNode.combineParagraph.topMarginPixes;
150842
150810
  }
150843
- dHeight += this._cell.drawCell.drawLines[0].paragraphNode.combineParagraph.lineSpace;
150811
+ dHeight += drawLines[0].paragraphNode.combineParagraph.lineSpace;
150844
150812
  const halfHeight = Math.ceil(dHeight / 2);
150845
150813
  let totalHeight = 0;
150846
150814
  for (let i = this.startDline; i < this._endDline; i++) {
150847
- const dline = this._cell.drawCell.drawLines[i];
150815
+ const dline = drawLines[i];
150848
150816
  let count = 1;
150849
150817
  if (dline instanceof DrawLine/* DrawLine */.D) {
150850
150818
  if (dline.dHeight > dHeight) {
150851
150819
  count = Math.ceil(dline.dHeight / dHeight);
150852
150820
  }
150853
150821
  totalHeight += count * dHeight;
150854
- if (this.dHeight - totalHeight > halfHeight) this._backImg.graphics.beginStroke("#000").setStrokeStyle(1)
150855
- //.drawRect(0,Math.ceil(totalHeight) - 0.5,this._dWidth,1)
150856
- .moveTo(0, Math.ceil(totalHeight) - 0.5).lineTo(this._dWidth, Math.ceil(totalHeight) - 0.5);
150822
+ if (this.dHeight - totalHeight > halfHeight) this._backImg.graphics.beginStroke("#000").setStrokeStyle(1).moveTo(0, Math.ceil(totalHeight) - 0.5).lineTo(this._dWidth, Math.ceil(totalHeight) - 0.5);
150857
150823
  }
150858
150824
  }
150859
150825
  while (totalHeight < this.dHeight + dHeight) {
@@ -150896,21 +150862,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150896
150862
  } else if (this._cell.cellProperty.align == TableProperty/* VAlign */.gy.vabottom) {
150897
150863
  const [newValignTop, rowHeightArr] = this.calcValignTop(newHeight);
150898
150864
  if (rowHeightArr) {
150899
- // const getPlace=(dTop:number,dPageCellIndex: number,dHeight:number):[number,number]=>{
150900
- // let index=0;
150901
- // let newTop=dTop;
150902
- // let rowHeight=0;
150903
- // for (let i=0;i<topArr.length;i++ ){
150904
- // if (dTop+dHeight<topArr[i]){
150905
- // index=i;
150906
- // break;
150907
- // }
150908
- // else {
150909
- // newTop-=topArr[i]
150910
- // }
150911
- // }
150912
- // return [index,newTop]
150913
- // }
150914
150865
  if (newValignTop != this._valignTop) {
150915
150866
  this._valignTop = newValignTop;
150916
150867
  const childCount = this._cell.drawCell.drawLines.length;
@@ -150933,7 +150884,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150933
150884
  dObj.y = cellrestHeight - dObj.dHeight - dObj.paragraphNode.combineParagraph.lineSpace;
150934
150885
  cellrestHeight = dObj.y;
150935
150886
  dPageCell.addChild(dObj);
150936
- // const [pageCellIndex,newTop]=getPlace(dTop,index,dObj.dHeight);
150937
150887
  }
150938
150888
  }
150939
150889
  }
@@ -150941,17 +150891,18 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150941
150891
  }
150942
150892
  }
150943
150893
  getPagePaintPosition() {
150944
- const paraNode = this._cell.childNodes[0].combineParagraph;
150945
- const dleft = paraNode.leftMarginPixes;
150946
- const dTop = paraNode.topMarginPixes;
150947
150894
  const dPage = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID).drawPageTree.getDrawPageByDNode(this._drawPageTable);
150948
150895
  if (!dPage) {
150949
150896
  throw new Error("表格绘制还未准备好");
150950
150897
  }
150898
+ const paraNode = this._cell.childNodes[0].combineParagraph;
150899
+ const dleft = paraNode.leftMarginPixes;
150900
+ const dTop = paraNode.topMarginPixes;
150951
150901
  return new PagePaintPosition/* PagePaintPosition */.z(this._hoEditorFactoryID, dPage.pageIndex, dleft, dTop);
150952
150902
  }
150953
150903
  calcValignTop(restHeight) {
150954
150904
  const index = this.cell.drawCell.drawPageCells.indexOf(this);
150905
+ const drawCell = this._cell.drawCell;
150955
150906
  let innerTop = 0;
150956
150907
  let toparr = new Array();
150957
150908
  let pageHeight = 0;
@@ -150965,9 +150916,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150965
150916
  valignTop = innerTop;
150966
150917
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign */.gy.vacenter) {
150967
150918
  [drawTreeHeight, pageHeight, toparr] = this.calcCellHeight(restHeight);
150968
- //2024-01-02改
150969
- if (pageHeight > this._cell.drawCell.docHeight && this.dHeight - this._cell.drawCell.docHeight > 2) {
150970
- valignTop = (pageHeight - (this._cell.drawCell.docHeight + 2)) / 2;
150919
+ //2024-01-02改
150920
+ if (pageHeight > drawCell.docHeight && this.dHeight - drawCell.docHeight > 2) {
150921
+ valignTop = (pageHeight - (drawCell.docHeight + 2)) / 2;
150971
150922
  }
150972
150923
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign */.gy.vabottom) {
150973
150924
  [drawTreeHeight, pageHeight, toparr] = this.calcCellHeight(restHeight);
@@ -150981,12 +150932,12 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150981
150932
  for (let r = 0; r < pageTableIndex; r++) {
150982
150933
  prevDocHeight += toparr[r][1];
150983
150934
  }
150984
- if (drawTreeHeight > this._cell.drawCell.docHeight) {
150985
- //valignTop = pageHeight - Math.max(0, (this._cell.drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight));
150986
- if (this._cell.drawCell.docHeight <= 13) {
150987
- valignTop = pageHeight - Math.max(0, this._cell.drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight) - 5;
150935
+ if (drawTreeHeight > drawCell.docHeight) {
150936
+ //valignTop = pageHeight - Math.max(0, (drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight));
150937
+ if (drawCell.docHeight <= 13) {
150938
+ valignTop = pageHeight - Math.max(0, drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight) - 5;
150988
150939
  } else {
150989
- valignTop = pageHeight - Math.max(0, this._cell.drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight);
150940
+ valignTop = pageHeight - Math.max(0, drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight);
150990
150941
  }
150991
150942
  }
150992
150943
  }
@@ -150998,13 +150949,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
150998
150949
  valignTop = this.calcValignTop(restHeight)[0];
150999
150950
  this._valignTop = valignTop;
151000
150951
  }
151001
- // if (startIndex === 0) {
151002
- // valignTop=this.calcValignTop();
151003
- // this._valignTop=valignTop;
151004
- // }
151005
150952
  this._startDline = startIndex < -1 ? 0 : startIndex;
151006
150953
  const ret = super.update(prevDrawArea, dlines, this._startDline, valignTop, restHeight);
151007
- this._docHeight = Math.max(0, this._docHeight - valignTop);
150954
+ this.docHeight = Math.max(0, this.docHeight - valignTop);
151008
150955
  this.updateDHeight();
151009
150956
  return ret;
151010
150957
  // this.updateTouchArea(this._dHeight);
@@ -151019,7 +150966,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
151019
150966
  calcCellHeight(restHeight) {
151020
150967
  const [row, c] = this._cell.table.getCellInfos(this._cell);
151021
150968
  let ret = 0;
151022
- const hoeditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID);
150969
+ // const hoeditorFactory = HOEditorFactorys.instance().getFactory(this._cell.hoEditorFactoryID);
151023
150970
  let dTopArr = new Array();
151024
150971
  let pageHeight = 0;
151025
150972
  if (this._cell.cellProperty.align == TableProperty/* VAlign */.gy.vabottom) {
@@ -151036,11 +150983,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
151036
150983
  dTopArr.push([0, 0]);
151037
150984
  for (let r = row, count = this._cell.rowSpan + row - 1; r <= count; r++) {
151038
150985
  const dTable = this._cell.table.drawTable.drawPageTables[i];
151039
- //if (dTable.parent&&dTable.parent.contains(dTable) ){
151040
150986
  const rowInfos = dTable.partRowHeights.get(r);
151041
150987
  if (rowInfos) {
151042
150988
  dTopArr[index][0] += rowInfos.rowHeight;
151043
- // }
151044
150989
  }
151045
150990
  const partCell = this._cell.drawCell.getDrawPageCell(dTable);
151046
150991
  if (partCell) {
@@ -151520,7 +151465,7 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
151520
151465
  }
151521
151466
  const partCell = cell.drawCell.getDrawPageCell(this);
151522
151467
  if (partCell) {
151523
- const oldHeight = partCell.dHeight;
151468
+ // const oldHeight = partCell.dHeight;
151524
151469
  partCell.dHeight = newHeight;
151525
151470
  partCell.afterHeightChanged(newHeight);
151526
151471
  if (partCell.cell.rowSpan > 1) {
@@ -151531,7 +151476,9 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
151531
151476
  this.updatePartCell(partCell.cell.drawCell.drawPageCells[i], dPrevPartCell, relR, relC, startChildIndex);
151532
151477
  dPrevPartCell = partCell.cell.drawCell.drawPageCells[i];
151533
151478
  startChildIndex = dPrevPartCell.endDline;
151534
- if (dPrevPartCell.isEndLineFinished()) startChildIndex = dPrevPartCell.endDline + 1;
151479
+ if (dPrevPartCell.isEndLineFinished()) {
151480
+ startChildIndex = dPrevPartCell.endDline + 1;
151481
+ }
151535
151482
  }
151536
151483
  }
151537
151484
  this.paintCellBorder(partCell, relR, relC, newHeight);
@@ -151562,84 +151509,12 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
151562
151509
  } else {
151563
151510
  cell = mainCell;
151564
151511
  }
151565
- // if (
151566
- // (mr <= r && mr + mainCell.rowSpan - 1 >= r && mc === j) ||
151567
- // r === this._endRow
151568
- // ) {
151569
- // cell = mainCell;
151570
- // for (let row = mr + mainCell.rowSpan - 1; row >= Math.max(this.startRow, mr); row--) {
151571
- // if (row == r) continue;
151572
- // const preRowHeight = this._partRowHeights.get(row);
151573
- // if (preRowHeight) {
151574
- // newHeight += preRowHeight.rowHeight;
151575
- // }
151576
- // }
151577
- // }
151578
151512
  }
151579
151513
  if (cell) {
151580
151514
  this.updatePartCellHeight(cell, relR, relC, r, aHeight, false);
151581
151515
  }
151582
151516
  }
151583
151517
  }
151584
- // if (cell) {
151585
- // endj = relC + cell.colSpan;
151586
- // const partCell = cell.drawCell.getDrawPageCell(this);
151587
- // // if (!partCell) {
151588
- // // const dPartTable = this._table.drawTable.getDrawTableByParentArea(
151589
- // // pageIndex
151590
- // // );
151591
- // // if (dPartTable) {
151592
- // // const [aleft, awidth] = cell.getLeftWidth();
151593
- // // const dTop = cell.table.drawTable.getParentHeadHeight();
151594
- // // const maxHeight =
151595
- // // cell.table.hoEditorFactory.drawPageTree.getMainDoc(pageIndex)
151596
- // // .maxHeight - dTop;
151597
- // // let startLine = 0;
151598
- // // const prevCell = cell.drawCell.getDrawPageCellByPageIndex(
151599
- // // pageIndex - 1
151600
- // // );
151601
- // // if (prevCell) {
151602
- // // if (prevCell.lastDrawLine instanceof DrawPageTable) {
151603
- // // startLine = prevCell.cell.drawCell.drawLines.indexOf(
151604
- // // prevCell.lastDrawLine._table.drawTable
151605
- // // );
151606
- // // } else {
151607
- // // startLine = prevCell.cell.drawCell.drawLines.indexOf(
151608
- // // prevCell.lastDrawLine
151609
- // // );
151610
- // // }
151611
- // // if (prevCell.isEndLineFinished()) startLine += 1;
151612
- // // }
151613
- // // partCell = new DrawPageCell(
151614
- // // this._table.hoEditorFactory,
151615
- // // dPartTable,
151616
- // // cell,
151617
- // // aleft,
151618
- // // dTop,
151619
- // // awidth,
151620
- // // newHeight,
151621
- // // pageIndex,
151622
- // // startLine,
151623
- // // maxHeight
151624
- // // );
151625
- // // }
151626
- // // }
151627
- // if (partCell) {
151628
- // partCell.dHeight = newHeight;
151629
- // if (partCell.cell.rowSpan > 1) {
151630
- // let index = partCell.cell.drawCell.drawPageCells.indexOf(partCell) - 1;
151631
- // let dPrevPartCell: DrawPageCell | null = null;
151632
- // let startChildIndex = 0;
151633
- // for (let i = 0; i <= index; i++) {
151634
- // this.updatePartCell(partCell.cell.drawCell.drawPageCells[i], dPrevPartCell, relR, relC, startChildIndex);
151635
- // dPrevPartCell = partCell.cell.drawCell.drawPageCells[i];
151636
- // startChildIndex = dPrevPartCell.endDline;
151637
- // if (dPrevPartCell.isEndLineFinished())
151638
- // startChildIndex = dPrevPartCell.endDline + 1;
151639
- // }
151640
- // }
151641
- // this.paintCellBorder(partCell, relR, relC, newHeight);
151642
- // } this.updatePartCellHeight(cell,relR,relC,r,aHeight,false);
151643
151518
  paintCellBorder(partCell, r, c, newHeight) {
151644
151519
  partCell.startPaintBackGround();
151645
151520
  const colInfo = this._table.colInfos[c];
@@ -152215,21 +152090,8 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
152215
152090
  //同一行的合并列只绘制一次
152216
152091
  if (cell && mc === c && (mr === r || r === this.startRow)) {
152217
152092
  if (cell.rowSpan > 1) {
152218
- // for (let j = mr + 1; j < mr + cell.rowSpan; j++) {
152219
- // cellRestHeight += this._table.rowInfos[j].rowHeight;
152220
- // }
152221
152093
  cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
152222
152094
  }
152223
- const destCell = cell.drawCell.copyPaintCell(this, r, aTop);
152224
- // if (destCell) {
152225
- // destCell.paintCellBackground(destCell.dHeight, mr, mc);
152226
- // // destCell.updateTouchArea(newHeight);}
152227
- // }
152228
- // if (this.stage){
152229
- // const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
152230
- // if (dPage){}
152231
- // }
152232
- // cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
152233
152095
  }
152234
152096
  }
152235
152097
  aTop += this._table.drawTable.drawPageTables[0].getPartRowHeight(r);
@@ -152258,9 +152120,6 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
152258
152120
  */
152259
152121
  drawUpdate(prevdPageTable, dRestHeight) {
152260
152122
  const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this.table.hoEditorFactoryID);
152261
- // if (this.table.tableProperty.fixedOnePage) {
152262
- // dRestHeight = Infinity;
152263
- // }
152264
152123
  let pageRestHeight = dRestHeight;
152265
152124
  let rowTop = 0;
152266
152125
  const index = this._table.drawTable.drawPageTables.indexOf(this);
@@ -152280,7 +152139,9 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
152280
152139
  let startRow = this._startRow;
152281
152140
  let bStartRowFinished = true;
152282
152141
  if (prevdPageTable) {
152283
- if (prevdPageTable.isEndRowFinished()) startRow = prevdPageTable._endRow + 1;else {
152142
+ if (prevdPageTable.isEndRowFinished()) {
152143
+ startRow = prevdPageTable._endRow + 1;
152144
+ } else {
152284
152145
  startRow = prevdPageTable._endRow;
152285
152146
  bStartRowFinished = false;
152286
152147
  }
@@ -152288,7 +152149,6 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
152288
152149
  }
152289
152150
  this._startRow = startRow;
152290
152151
  let rowRestHeight = 0;
152291
- const oldEndRow = this._endRow;
152292
152152
  let bRowHeightChanged = false;
152293
152153
  let rowHeight = 0;
152294
152154
  this._endRow = this._startRow;
@@ -152303,7 +152163,7 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
152303
152163
  this.removeDrawCellAfterRow(r);
152304
152164
  break;
152305
152165
  }
152306
- if (pageRestHeight < this._table.drawTable.getRowStartLineMaxHeight(r)) {
152166
+ if (pageRestHeight <= this._table.drawTable.getRowStartLineMaxHeight(r)) {
152307
152167
  this.removeDrawCellAfterRow(r);
152308
152168
  break;
152309
152169
  }
@@ -154105,8 +153965,11 @@ class DrawTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_10__/* .DrawRect */ .
154105
153965
  let rowTop = 0;
154106
153966
  let isEndRowFinished = false;
154107
153967
  if (dPageTable) {
154108
- // }
154109
- if (bNewTable) dPageTable.paint(dTop, dParent, dRestHeight);else dPageTable.drawUpdate(prevdPageTable, dRestHeight);
153968
+ if (bNewTable) {
153969
+ dPageTable.paint(dTop, dParent, dRestHeight);
153970
+ } else {
153971
+ dPageTable.drawUpdate(prevdPageTable, dRestHeight);
153972
+ }
154110
153973
  isEndRowFinished = dPageTable.isEndRowFinished();
154111
153974
  if (dPageTable.endRow === this._table.rowCount - 1 && isEndRowFinished) {
154112
153975
  const index = this.drawPageTables.indexOf(dPageTable);
@@ -154241,40 +154104,17 @@ class DrawTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_10__/* .DrawRect */ .
154241
154104
  paintTable(dParent, dTop, restHeight, startRow) {
154242
154105
  const dHeight = 0;
154243
154106
  this._table.getLeftWidth();
154244
- if (this.getHeadHeight() + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).defaultLineHeight > restHeight) {
154107
+ const headHeight = this.getHeadHeight();
154108
+ const defaultLineHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).defaultLineHeight;
154109
+ if (headHeight + defaultLineHeight > restHeight) {
154245
154110
  return null;
154246
154111
  }
154247
- // if (this._drawPageTables.size > 0) {
154248
- // const prevDPageTable = this.getDrawTableByParentArea(drawPage.pageIndex - 1);
154249
- // if (prevDPageTable) {
154250
- // if (prevDPageTable.isEndRowFinished()) {
154251
- // startRow = prevDPageTable.endRow + 1;
154252
- // } else {
154253
- // startRow = prevDPageTable.endRow;
154254
- // }
154255
- // }
154256
- // }
154257
154112
  const aWidth = this.dWidth;
154258
- // if (this._drawPageTables.size>0){
154259
- // const prevPageTable=this.getDrawTableByParentArea(pageIndex-1);
154260
- // if (prevPageTable){
154261
- // if (prevPageTable.isEndRowFinished())
154262
- // startRow= prevPageTable.endRow+1
154263
- // else startRow= prevPageTable.endRow;
154264
- // }
154265
- // }
154266
- // -
154267
- // this._paragraphNode.combineParagraph.leftMarginPixes -
154268
- // this._paragraphNode.combineParagraph.rightMarginPixes;
154269
154113
  const dPageTable = new _DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt(this._rootPath, this._table, dParent, this._drawPageTables.length, dTop, aWidth, restHeight, this._paragraphNode);
154270
154114
  dPageTable.startRow = startRow;
154271
154115
  this._drawPageTables.push(dPageTable);
154272
154116
  dPageTable.paint(0, dParent, restHeight);
154273
154117
  return dPageTable;
154274
- // if (dPageTable.endRow < this._table.rowCount || !dPageTable.isEndRowFinished()) {
154275
- // return this.paintPage(dParent, pageIndex + 1, 0, dParent.maxHeight)
154276
- // }
154277
- // return dTop + dPageTable.dHeight;
154278
154118
  }
154279
154119
  getCellRowHeight(cell, r) {
154280
154120
  if (r > this._table.rowCount - 1 || r < 0) {
@@ -154607,7 +154447,6 @@ class DrawTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_10__/* .DrawRect */ .
154607
154447
  if (headCount < 0) {
154608
154448
  startRow = 0;
154609
154449
  }
154610
- // console.log('----', this.table.rowCount, headCount, headHeight, restHeight, startRow, this.getRowStartLineMaxHeight(startRow))
154611
154450
  if (this.table.rowCount > headCount && headHeight + this.getRowStartLineMaxHeight(startRow) > restHeight) {
154612
154451
  return false;
154613
154452
  }
@@ -154686,29 +154525,33 @@ class DrawTableFormular extends DrawSimpleNode {
154686
154525
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
154687
154526
  /* harmony export */ t: function() { return /* binding */ DrawTableFormularChart; }
154688
154527
  /* harmony export */ });
154689
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32356);
154690
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44114);
154691
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
154692
- /* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13609);
154693
- /* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_2__);
154694
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27495);
154695
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
154696
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25440);
154697
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
154698
- /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(98992);
154699
- /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__);
154700
- /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54520);
154701
- /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_6__);
154702
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3949);
154703
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_7__);
154704
- /* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81454);
154705
- /* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_8__);
154706
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62953);
154707
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_9__);
154708
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56419);
154709
- /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_10__);
154710
- /* harmony import */ var _types_EditorType__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(27195);
154711
- /* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(10431);
154528
+ /* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21902);
154529
+ /* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(40233);
154530
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32356);
154531
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44114);
154532
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
154533
+ /* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13609);
154534
+ /* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3__);
154535
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27495);
154536
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
154537
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25440);
154538
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__);
154539
+ /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98992);
154540
+ /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6__);
154541
+ /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54520);
154542
+ /* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7__);
154543
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3949);
154544
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
154545
+ /* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81454);
154546
+ /* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9__);
154547
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62953);
154548
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__);
154549
+ /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56419);
154550
+ /* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_11__);
154551
+ /* harmony import */ var _types_EditorType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27195);
154552
+ /* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(10431);
154553
+
154554
+
154712
154555
 
154713
154556
 
154714
154557
 
@@ -154722,15 +154565,15 @@ class DrawTableFormular extends DrawSimpleNode {
154722
154565
 
154723
154566
 
154724
154567
 
154725
- class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_12__/* .DrawCombineNode */ .A {
154568
+ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_13__/* .DrawCombineNode */ .A {
154726
154569
  constructor(hoEditfactoryId, rootPath, node) {
154727
154570
  super(hoEditfactoryId, rootPath, node, 0);
154728
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "dNode", void 0);
154729
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "hoEditfactoryId", void 0);
154730
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "formularProperty", null);
154571
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "dNode", void 0);
154572
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "hoEditfactoryId", void 0);
154573
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "formularProperty", null);
154731
154574
  this.dNode = node;
154732
154575
  this.hoEditfactoryId = hoEditfactoryId;
154733
- if (node.formularType == _types_EditorType__WEBPACK_IMPORTED_MODULE_11__/* .FormularType */ .Dd.ftCurveChart) {
154576
+ if (node.formularType == _types_EditorType__WEBPACK_IMPORTED_MODULE_12__/* .FormularType */ .Dd.ftCurveChart) {
154734
154577
  var _node$formularPropert;
154735
154578
  this.dWidth = Number((_node$formularPropert = node.formularProperty) === null || _node$formularPropert === void 0 ? void 0 : _node$formularPropert.width) || 100;
154736
154579
  // this.dHeight = Number(node.formularProperty?.height) || 100;
@@ -154751,10 +154594,26 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154751
154594
  const cell = table.rows[r][c];
154752
154595
  if (cell) {
154753
154596
  notAllowEdit = cell.cellProperty.notAllowEdit || false;
154754
- const text = cell.getCellText() || '';
154597
+ let text = cell.getCellText();
154755
154598
  if (notAllowEdit) {
154756
154599
  list.push(text);
154757
154600
  } else {
154601
+ if (this.formularProperty && text) {
154602
+ if (text > this.formularProperty.max) {
154603
+ var _cell$drawCell$drawPa;
154604
+ text = '';
154605
+ (_cell$drawCell$drawPa = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa === void 0 || _cell$drawCell$drawPa.paintBackColor(true);
154606
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.error(`曲线图设置的最大值为${this.formularProperty.max}`);
154607
+ } else if (text < this.formularProperty.min) {
154608
+ var _cell$drawCell$drawPa2;
154609
+ text = '';
154610
+ (_cell$drawCell$drawPa2 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa2 === void 0 || _cell$drawCell$drawPa2.paintBackColor(true);
154611
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.error(`曲线图设置的最小值为${this.formularProperty.min}`);
154612
+ } else {
154613
+ var _cell$drawCell$drawPa3;
154614
+ (_cell$drawCell$drawPa3 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa3 === void 0 || _cell$drawCell$drawPa3.paintBackColor(false);
154615
+ }
154616
+ }
154758
154617
  list.push(text.replace(/\+|-/g, ''));
154759
154618
  }
154760
154619
  }
@@ -154779,6 +154638,7 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154779
154638
  this.dWidth = currentCell.drawCell.dWidth - 30;
154780
154639
  const xInfo = this.getCell(currentCell.table, xArr);
154781
154640
  const yInfo = this.getCell(currentCell.table, yArr);
154641
+ // currentCell.table.update();
154782
154642
  let xAxis = [];
154783
154643
  let yAxis = [];
154784
154644
  let valueList = [];
@@ -156643,7 +156503,7 @@ class EditorController {
156643
156503
  if (!e || !e.clipboardData) {
156644
156504
  return;
156645
156505
  }
156646
- const result = hoeditorfactory.editController.canIsEdit(hoeditorfactory);
156506
+ const result = hoeditorfactory.editController.canIsEdit(hoeditorfactory, 'paste');
156647
156507
  if (result) {
156648
156508
  hoeditorfactory.editController.editKeyPaste(e.clipboardData);
156649
156509
  }
@@ -167736,7 +167596,7 @@ var map = {
167736
167596
  "./printstyle/PrintLineStyle.vue": 27705,
167737
167597
  "./qrCode/QrCode.vue": 13633,
167738
167598
  "./radioCheckBox/RadioCheckbox.vue": 97008,
167739
- "./selectDialog/SelectDialog.vue": 91934,
167599
+ "./selectDialog/SelectDialog.vue": 68738,
167740
167600
  "./sign/Sign.vue": 69914,
167741
167601
  "./slider/Slider.vue": 46839,
167742
167602
  "./specialChars/HoSpecialChars.vue": 33336,
@@ -167746,7 +167606,7 @@ var map = {
167746
167606
  "./table/TableColProperty.vue": 81078,
167747
167607
  "./table/TableForm.vue": 35121,
167748
167608
  "./table/TableFormTree.vue": 75295,
167749
- "./table/TableFormula.vue": 68707,
167609
+ "./table/TableFormula.vue": 95044,
167750
167610
  "./table/TableProperty.vue": 65356,
167751
167611
  "./table/TableRowProperty.vue": 51653,
167752
167612
  "./textDialog/TextBorderDialog.vue": 80713,
@@ -223234,7 +223094,7 @@ var entry_lib_TextNode = __webpack_require__(32083);
223234
223094
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
223235
223095
  var entry_lib_ParagraphNode = __webpack_require__(40504);
223236
223096
  ;// ./src/components/version.ts
223237
- /* harmony default export */ var entry_lib_version = ('3.1.207');
223097
+ /* harmony default export */ var entry_lib_version = ('3.1.209');
223238
223098
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
223239
223099
  var entry_lib_PoperTipText = __webpack_require__(89316);
223240
223100
  ;// ./src/components/controls/poperTipText/index.ts
@@ -224564,21 +224424,21 @@ class entry_lib_DrawPageTree {
224564
224424
  const aline = dRoots[startLine];
224565
224425
  let dLine;
224566
224426
  let dTop = 0;
224567
- let mainDTop = 0;
224568
- //if (!hoEditorFactory.isUseDrawingOptimization) {
224569
224427
  if (aline instanceof entry_lib_DrawTable/* DrawTable */.n) {
224570
224428
  //表格在绘制时,只取最后一个分页表格,
224571
224429
  if (aline.drawPageTables.length > 0) {
224572
224430
  dLine = aline.drawPageTables[aline.drawPageTables.length - 1];
224573
224431
  } else {
224574
- //表格还未开始绘制,无起始行
224432
+ //表格还未开始绘制,无起始行
224575
224433
  dLine = null;
224576
224434
  if (startLine > 0) {
224577
224435
  const prevLine = dRoots[startLine - 1];
224578
224436
  let prevDObj;
224579
224437
  if (prevLine instanceof entry_lib_DrawTable/* DrawTable */.n) {
224580
224438
  prevDObj = prevLine.drawPageTables[prevLine.drawPageTables.length - 1];
224581
- } else prevDObj = prevLine;
224439
+ } else {
224440
+ prevDObj = prevLine;
224441
+ }
224582
224442
  const prevArea = this.getMainRootArea(prevDObj);
224583
224443
  if (prevArea === drawArea) {
224584
224444
  dTop = prevDObj.y + prevDObj.dHeight + prevDObj.paragraphNode.combineParagraph.lineSpace;
@@ -224586,23 +224446,16 @@ class entry_lib_DrawPageTree {
224586
224446
  dTop -= prevDObj.paragraphNode.combineParagraph.lineSpace;
224587
224447
  }
224588
224448
  }
224589
- // } else {
224590
- // dTop =
224591
- // prevLine.y +
224592
- // prevLine.dHeight +
224593
- // prevLine.paragraphNode.combineParagraph.lineSpace;
224594
- // if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224595
- // }
224596
224449
  }
224597
224450
  }
224598
224451
  } else {
224599
224452
  dLine = aline;
224600
224453
  dTop = aline.y;
224601
224454
  }
224602
- //}
224603
224455
  //----------------结束定位绘制起始行,绘制起始位置--------------------------
224604
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224605
- // let drawArea = this.getMainRootArea(dLine);
224456
+ if (drawArea.allowAcrossPage) {
224457
+ restHeight = drawArea.maxHeight - dTop;
224458
+ }
224606
224459
  if (!drawArea) {
224607
224460
  return;
224608
224461
  }
@@ -224610,18 +224463,8 @@ class entry_lib_DrawPageTree {
224610
224463
  if (!mainArea) {
224611
224464
  return;
224612
224465
  }
224613
- /*绘制优化
224614
- if (hoEditorFactory.isUseDrawingOptimization
224615
- && drawArea instanceof DrawPageMainDoc
224616
- && dRoots.length > 1) {
224617
- startLine = this.calcStartLine(drawArea);
224618
- endLine = dRoots.length - 1;
224619
- startUpdateLine = endLine;
224620
- drawArea.removeAllChildren();
224621
- }
224622
- */
224623
224466
  let nextLine = startLine;
224624
- //用于判断是否页已经満页的map
224467
+ //用于判断是否页已经満页的map
224625
224468
  let pageIsFull = new Map();
224626
224469
  try {
224627
224470
  this._startNeedUpdatePage = -1;
@@ -224635,7 +224478,7 @@ class entry_lib_DrawPageTree {
224635
224478
  nextLine += 1;
224636
224479
  continue;
224637
224480
  }
224638
- //如果需要新起一页,则新起一页
224481
+ // 需要新起一页
224639
224482
  if (dline.paragraphNode.printAsSinglePage && dline.paragraphNode.drawlines[0] === dline && dTop > 0 && drawArea instanceof entry_lib_DrawPageMainDoc/* DrawPageMainDoc */.L) {
224640
224483
  this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
224641
224484
  this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
@@ -224648,8 +224491,11 @@ class entry_lib_DrawPageTree {
224648
224491
  }
224649
224492
  drawArea = this.getNextDrawArea(drawArea, true)[0];
224650
224493
  dTop = 0;
224651
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224494
+ if (drawArea.allowAcrossPage) {
224495
+ restHeight = drawArea.maxHeight - dTop;
224496
+ }
224652
224497
  }
224498
+ // 需要更新页眉
224653
224499
  if (dline.paragraphNode.forceChangeHeader && dline.paragraphNode.drawlines[0] === dline && dTop > 0 && drawArea instanceof entry_lib_DrawPageMainDoc/* DrawPageMainDoc */.L) {
224654
224500
  this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
224655
224501
  this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
@@ -224664,7 +224510,9 @@ class entry_lib_DrawPageTree {
224664
224510
  hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex, dline.paragraphNode.docId);
224665
224511
  }
224666
224512
  }
224667
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224513
+ if (drawArea.allowAcrossPage) {
224514
+ restHeight = drawArea.maxHeight - dTop;
224515
+ }
224668
224516
  }
224669
224517
  // 判断是否已经满页
224670
224518
  if (dline instanceof entry_lib_DrawTable/* DrawTable */.n && (restHeight < hoEditorFactory.defaultLineHeight || !dline.isFirstRowCanFit(restHeight)) || dline instanceof entry_lib_DrawLine/* DrawLine */.D && restHeight < dline.dHeight && dTop > 0) {
@@ -224715,7 +224563,9 @@ class entry_lib_DrawPageTree {
224715
224563
  }
224716
224564
  dTop = 0;
224717
224565
  }
224718
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224566
+ if (drawArea.allowAcrossPage) {
224567
+ restHeight = drawArea.maxHeight - dTop;
224568
+ }
224719
224569
  if (restHeight < entry_lib_TableNode/* gDefaultRowHeight */.ip && drawArea instanceof entry_lib_DrawPageMainDoc/* DrawPageMainDoc */.L) {
224720
224570
  drawArea.endDline = nextLine - 1;
224721
224571
  this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
@@ -224733,7 +224583,11 @@ class entry_lib_DrawPageTree {
224733
224583
  drawArea.topDline = dPageTable;
224734
224584
  }
224735
224585
  dTop = dPageTable.y + dPageTable.dHeight;
224736
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;else mainArea.docHeight = dTop;
224586
+ if (drawArea.allowAcrossPage) {
224587
+ restHeight = drawArea.maxHeight - dTop;
224588
+ } else {
224589
+ mainArea.docHeight = dTop;
224590
+ }
224737
224591
  }
224738
224592
  bFinishedPaint = dobj.isFinishedPaint();
224739
224593
  if (!bFinishedPaint) {
@@ -224781,7 +224635,9 @@ class entry_lib_DrawPageTree {
224781
224635
  //修改下一行的绘制起始位置
224782
224636
  dTop = dobj.y + dobj.dHeight + dobj.paragraphNode.combineParagraph.lineSpace;
224783
224637
  mainArea.docHeight = dTop;
224784
- if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
224638
+ if (drawArea.allowAcrossPage) {
224639
+ restHeight = drawArea.maxHeight - dTop;
224640
+ }
224785
224641
  }
224786
224642
  if (nextLine >= endLine) break;else nextLine += 1;
224787
224643
  }
@@ -224824,12 +224680,14 @@ class entry_lib_DrawPageTree {
224824
224680
  const dPageTable = dobj.getDrawTableByPageIndex(mainArea.index);
224825
224681
  if (dPageTable) {
224826
224682
  startDrawLine = dPageTable;
224827
- } else startDrawLine = dobj.drawPageTables[0];
224683
+ } else {
224684
+ startDrawLine = dobj.drawPageTables[0];
224685
+ }
224828
224686
  } else {
224829
224687
  startDrawLine = dobj;
224830
224688
  }
224831
224689
  let drawTop = startDrawLine.y;
224832
- if (startDrawLine instanceof entry_lib_DrawPageTable/* DrawPageTable */.Yt && !mainArea.contains(startDrawLine) && startDrawLine instanceof entry_lib_DrawPageTable/* DrawPageTable */.Yt && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
224690
+ if (startDrawLine instanceof entry_lib_DrawPageTable/* DrawPageTable */.Yt && !mainArea.contains(startDrawLine) && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
224833
224691
  drawTop = 0;
224834
224692
  }
224835
224693
  //对于新插入的内容绘制完成后(一直到最后一个插入的段落结束),后续的段落需要进行移动位置,则调用update
@@ -225112,14 +224970,6 @@ class entry_lib_DrawPageTree {
225112
224970
  let headerIndex = hoEditorFactory.subDocManger.getHeaderIndexByRoots(headerNodes);
225113
224971
  let footerIndex = hoEditorFactory.subDocManger.getFooterIndexByRoots(footerNodes);
225114
224972
  ;
225115
- // if (singlePage) {
225116
- // if (this._drawHeaders.length > index && this._drawHeaders[headerIndex]) {
225117
- // headerIndex = index
225118
- // }
225119
- // if (this._drawFooters.length > index && this._drawFooters[footerIndex]) {
225120
- // footerIndex = index
225121
- // }
225122
- // }
225123
224973
  const dHeader = this._drawHeaders[headerIndex];
225124
224974
  const headerActualHeight = dHeader ? dHeader.actualHeight + hoEditorFactory.pageProperty.headerYPixes : 0;
225125
224975
  const dFooter = this._drawFooters[footerIndex];
@@ -225130,38 +224980,12 @@ class entry_lib_DrawPageTree {
225130
224980
  }
225131
224981
  const dhheight = Math.max(hoEditorFactory.pageProperty.topMarginPixes, headerActualHeight);
225132
224982
  const dfheight = Math.max(hoEditorFactory.pageProperty.bottomMarginPixes, footerActualHeight);
225133
- // console.log(dhheight);
225134
- // if (path.startsWith('header') || path.startsWith('footer')) {
225135
224983
  //根据页眉,页脚高度重新设置正文位置和高度
225136
224984
  dMainDoc.x = hoEditorFactory.pageProperty.leftMarginPixes;
225137
224985
  dMainDoc.y = dhheight;
225138
224986
  dMainDoc.maxHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
225139
224987
  dMainDoc.dHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
225140
224988
  //TODO:正文重新绘制,还可能创建新的页面,等其他操作 this._domLevel.drawMainDoc.paintArea();
225141
- // }
225142
- // if (path.startsWith('footer')) {
225143
- // this._drawFooter.dTop =
225144
- // hoEditorFactory.pageProperty.heightPixes - dfheight;
225145
- // this._drawFooter.y = this._drawFooter.dTop;
225146
- // this._drawHeader.paintMask(
225147
- // Math.max(
225148
- // Math.min(
225149
- // this._drawHeader.docHeight,
225150
- // this._drawHeader.maxHeight
225151
- // ),
225152
- // this._drawHeader.dHeight
225153
- // )
225154
- // );
225155
- // this._drawFooter.paintMask(
225156
- // Math.max(
225157
- // Math.min(
225158
- // this._drawFooter.docHeight,
225159
- // this._drawFooter.maxHeight
225160
- // ),
225161
- // this._drawFooter.dHeight
225162
- // )
225163
- // );
225164
- // }
225165
224989
  }
225166
224990
  getMainRootArea(dobj) {
225167
224991
  let pNode = dobj;
@@ -225186,7 +225010,9 @@ class entry_lib_DrawPageTree {
225186
225010
  } else {
225187
225011
  const arr = path.split("/");
225188
225012
  let index = 0;
225189
- if (arr.length > 1 && !isNaN(parseInt(arr[1]))) index = parseInt(arr[1]);
225013
+ if (arr.length > 1 && !isNaN(parseInt(arr[1]))) {
225014
+ index = parseInt(arr[1]);
225015
+ }
225190
225016
  if (path.startsWith("header")) {
225191
225017
  return this._drawHeaders[index];
225192
225018
  } else if (path.startsWith("footer")) {
@@ -225291,34 +225117,22 @@ class entry_lib_DrawPageTree {
225291
225117
  updatePageWidthHeight() {
225292
225118
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
225293
225119
  const widthPixes = hoEditorFactory.pageProperty.widthPixes;
225294
- // if (hoEditorFactory.pageProperty.printDirection === PrintDirection.vertical)
225295
- // widthPixes = hoEditorFactory.pageProperty.heightPixes;
225296
225120
  const docWidth = widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
225297
225121
  for (let i = 0; i < this._drawHeaders.length; i++) {
225298
225122
  const area = this._drawHeaders[i];
225299
- // area.dWidth = widthPixes;
225300
- // area.maxWidth = widthPixes;
225301
225123
  if (area) area.docWidth = docWidth;
225302
225124
  }
225303
225125
  for (let i = 0; i < this.drawFooters.length; i++) {
225304
225126
  const area = this.drawFooters[i];
225305
- // area.dWidth = widthPixes;
225306
- //area.maxWidth = widthPixes;
225307
225127
  if (area) area.docWidth = docWidth;
225308
225128
  }
225309
225129
  for (let i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
225310
225130
  const dPage = hoEditorFactory.drawTree.drawPages[i];
225311
- // dPage.storeDrawFooter.dWidth = widthPixes;
225312
- // dPage.storeDrawFooter.maxWidth = widthPixes;
225313
225131
  dPage.storeDrawFooter.docWidth = docWidth;
225314
- // dPage.storeDrawHeader.dWidth = widthPixes;
225315
- // dPage.storeDrawHeader.maxWidth = widthPixes;
225316
225132
  dPage.storeDrawHeader.docWidth = docWidth;
225317
225133
  }
225318
225134
  for (let i = 0; i < this._drawMainDocs.length; i++) {
225319
225135
  const area = this._drawMainDocs[i];
225320
- // area.dWidth = widthPixes;
225321
- // area.maxWidth = widthPixes;
225322
225136
  if (area) area.docWidth = docWidth;
225323
225137
  }
225324
225138
  }
@@ -234972,7 +234786,7 @@ class entry_lib_VueController {
234972
234786
  maxWidth = scell.drawCell.dWidth - 10;
234973
234787
  const rowInfos = scell.table.rowInfos[scell.table.rows.indexOf(scell.row)];
234974
234788
  if (rowInfos.rowProperty.isSpecifyHeight) {
234975
- maxHeight = rowInfos.rowHeight - 20;
234789
+ maxHeight = rowInfos.rowHeight - 10;
234976
234790
  }
234977
234791
  }
234978
234792
  const dLine = hoEditorFactory.drawTree.getDrawLineByDNode(npStart.node.drawNodes[0]);
@@ -237163,18 +236977,20 @@ class entry_lib_VueController {
237163
236977
  notReplaceElement: node.notReplaceElement,
237164
236978
  keyValue: '',
237165
236979
  value: '',
237166
- verifyTipList: []
236980
+ verifyValueTip: [],
236981
+ verifyKeywordTip: []
237167
236982
  };
237168
236983
  if (!(node instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
237169
236984
  elementObj.controlType = node.type;
237170
236985
  } else {
237171
- let verifyTipList = [];
236986
+ let verifyValueTip = [];
236987
+ let verifyKeywordTip = [];
237172
236988
  let includesKeyword = node.includesKeyword ? JSON.parse(node.includesKeyword) : [];
237173
236989
  let valueArea = node.valueArea ? JSON.parse(node.valueArea) : [];
237174
236990
  if (includesKeyword.length > 0) {
237175
236991
  includesKeyword.forEach(keyword => {
237176
236992
  if (node.text.includes(keyword.text)) {
237177
- verifyTipList.push(keyword.tip);
236993
+ verifyKeywordTip.push(keyword.tip);
237178
236994
  }
237179
236995
  });
237180
236996
  }
@@ -237186,23 +237002,24 @@ class entry_lib_VueController {
237186
237002
  if (!isNaN(nodeValue)) {
237187
237003
  if (!isNaN(min) && !isNaN(max)) {
237188
237004
  if (nodeValue >= min && nodeValue <= max) {
237189
- verifyTipList.push(value.tip);
237005
+ verifyValueTip.push(value.tip);
237190
237006
  }
237191
237007
  }
237192
237008
  if (!isNaN(min) && isNaN(max)) {
237193
237009
  if (nodeValue < min) {
237194
- verifyTipList.push(value.tip);
237010
+ verifyValueTip.push(value.tip);
237195
237011
  }
237196
237012
  }
237197
237013
  if (isNaN(min) && !isNaN(max)) {
237198
237014
  if (nodeValue > max) {
237199
- verifyTipList.push(value.tip);
237015
+ verifyValueTip.push(value.tip);
237200
237016
  }
237201
237017
  }
237202
237018
  }
237203
237019
  });
237204
237020
  }
237205
- elementObj.verifyTipList = verifyTipList;
237021
+ elementObj.verifyKeywordTip = verifyKeywordTip;
237022
+ elementObj.verifyValueTip = verifyValueTip;
237206
237023
  }
237207
237024
  if (node instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM && node.inputFieldType == 1 || node instanceof entry_lib_DownListNode/* DownListNode */.dS) {
237208
237025
  elementObj.keyValue = node.keyValue;
@@ -240127,7 +239944,7 @@ class entry_lib_VueController {
240127
239944
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
240128
239945
  const firstPageMainDoc = hoEditorFactory.drawTree.drawPages[0].drawMainDoc;
240129
239946
  let mathWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
240130
- let mathHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.pageProperty.topMarginPixes - hoEditorFactory.pageProperty.bottomMarginPixes - 20;
239947
+ let mathHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.pageProperty.topMarginPixes - hoEditorFactory.pageProperty.bottomMarginPixes - 30;
240131
239948
  const curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
240132
239949
  const npStart = curDomRange.npStart;
240133
239950
  if (npStart && npStart.node) {
@@ -240136,7 +239953,10 @@ class entry_lib_VueController {
240136
239953
  mathWidth = scell.drawCell.dWidth - 10;
240137
239954
  const rowInfos = scell.table.rowInfos[scell.table.rows.indexOf(scell.row)];
240138
239955
  if (rowInfos.rowProperty.isSpecifyHeight) {
240139
- mathHeight = rowInfos.rowHeight - 20;
239956
+ let height = rowInfos.rowHeight - 10;
239957
+ if (mathHeight > height) {
239958
+ mathHeight = height;
239959
+ }
240140
239960
  }
240141
239961
  const colInfos = scell.table.colInfos[scell.row.indexOf(scell)];
240142
239962
  if (colInfos.colProperty.isSpecifyWidth) {
@@ -241874,10 +241694,32 @@ class entry_lib_EditController {
241874
241694
  }
241875
241695
  hoEditorFactory.docController.parseNodeData(nodes);
241876
241696
  }
241697
+ isEdit(hoEditorFactory, node, curDomRange) {
241698
+ var _node$parentNode, _node$parentNode2;
241699
+ let result = true;
241700
+ if ((node === null || node === void 0 ? void 0 : node.parentNode) == null) {
241701
+ result = false;
241702
+ } else if (node && node.nodeType == 0 && !((node === null || node === void 0 ? void 0 : node.parentNode) instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
241703
+ result = false;
241704
+ } else if (node instanceof entry_lib_MarkNode/* MarkNode */.y && node.MarkNodeType == 2 && (((_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) == null || ((_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode) instanceof entry_lib_CellNode/* CellNode */.H)) {
241705
+ result = false;
241706
+ }
241707
+ if (!hoEditorFactory.allowEditCellInForm && node) {
241708
+ const parentNode = hoEditorFactory.vueController.getParentCellNode(node);
241709
+ if (node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || node instanceof entry_lib_SignNode/* SignNode */.u || node instanceof entry_lib_DownListNode/* DownListNode */.dS || node instanceof entry_lib_FigureNode) {
241710
+ if (curDomRange.startPath == curDomRange.endPath) {
241711
+ result = false;
241712
+ }
241713
+ } else if (parentNode instanceof entry_lib_CellNode/* CellNode */.H && !(node instanceof entry_lib_SignNode/* SignNode */.u || node.parentNode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
241714
+ result = false;
241715
+ }
241716
+ }
241717
+ return result;
241718
+ }
241877
241719
  /**
241878
241720
  * @returns 表单模式下只可修改元素内容,或者插入签名,判断当前操作是否可以执行 true可以插入 false不可插入
241879
241721
  */
241880
- canIsEdit(hoEditorFactory) {
241722
+ canIsEdit(hoEditorFactory, source) {
241881
241723
  let result = true;
241882
241724
  if (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psDesign) {
241883
241725
  return result;
@@ -241909,33 +241751,14 @@ class entry_lib_EditController {
241909
241751
  return false;
241910
241752
  }
241911
241753
  }
241912
- if (hoEditorFactory.isUseForm && enode) {
241913
- var _enode$parentNode, _enode$parentNode2;
241914
- //const endPath = _curDomRange.normalize().endPath;
241915
- //const node = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
241916
- if ((snode === null || snode === void 0 ? void 0 : snode.parentNode) == null || (snode === null || snode === void 0 ? void 0 : snode.parentNode) == null) {
241917
- result = false;
241918
- }
241919
- if (enode && enode.nodeType == 0 && !((enode === null || enode === void 0 ? void 0 : enode.parentNode) instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
241920
- result = false;
241921
- }
241922
- if (enode instanceof entry_lib_MarkNode/* MarkNode */.y && enode.MarkNodeType == 2 && (((_enode$parentNode = enode.parentNode) === null || _enode$parentNode === void 0 ? void 0 : _enode$parentNode.parentNode) == null || ((_enode$parentNode2 = enode.parentNode) === null || _enode$parentNode2 === void 0 ? void 0 : _enode$parentNode2.parentNode) instanceof entry_lib_CellNode/* CellNode */.H)) {
241923
- result = false;
241924
- }
241925
- // if(curDomRange.startPath == curDomRange.endPath) {
241926
- // if (enode instanceof TextNode && !(enode?.parentNode instanceof TextInputFieldNode)) {
241927
- // result = false;
241928
- // }
241929
- // }
241930
- if (!hoEditorFactory.allowEditCellInForm) {
241931
- const parentNode = hoEditorFactory.vueController.getParentCellNode(enode);
241932
- if (enode instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || enode instanceof entry_lib_DownListNode/* DownListNode */.dS || enode instanceof entry_lib_FigureNode) {
241933
- if (curDomRange.startPath == curDomRange.endPath) {
241934
- result = false;
241935
- }
241936
- } else if (parentNode instanceof entry_lib_CellNode/* CellNode */.H && !(enode instanceof entry_lib_SignNode/* SignNode */.u || enode.parentNode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
241937
- result = false;
241938
- }
241754
+ if (hoEditorFactory.isUseForm) {
241755
+ // 无选区 只判断结束节点 有选区需要判断首尾节点
241756
+ if (curDomRange.startPath == curDomRange.endPath) {
241757
+ result = this.isEdit(hoEditorFactory, enode, curDomRange);
241758
+ } else {
241759
+ let sResult = this.isEdit(hoEditorFactory, snode, curDomRange);
241760
+ let eResult = this.isEdit(hoEditorFactory, enode, curDomRange);
241761
+ result = sResult && eResult;
241939
241762
  }
241940
241763
  }
241941
241764
  if (result) {
@@ -251167,7 +250990,7 @@ var entry_lib_DocController = __webpack_require__(5011);
251167
250990
 
251168
250991
 
251169
250992
  class entry_lib_HOEditorFactory {
251170
- // 点击元素是否触发click事件
250993
+ // 修复表格图片卡死问题
251171
250994
  /**
251172
250995
  * Getter hoLocalStorage
251173
250996
  * @return {HoLocalStorage}
@@ -251414,6 +251237,8 @@ class entry_lib_HOEditorFactory {
251414
251237
  (0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableInTextInput", false);
251415
251238
  // 修复新增页在文本域中插入的表格问题
251416
251239
  (0,entry_lib_esm_defineProperty/* default */.A)(this, "emitClickEvent", false);
251240
+ // 点击元素是否触发click事件
251241
+ (0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableImage", false);
251417
251242
  this._hoEditorFactoryId = id;
251418
251243
  }
251419
251244
  get defaultLineHeight() {