hoeditor-web 3.1.201 → 3.1.203

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.
@@ -117626,11 +117626,14 @@ class DocController {
117626
117626
  let curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
117627
117627
  const curParaNo = hoEditorFactory.docTree.curParaNo;
117628
117628
  let curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
117629
- curStyleIndex = curTextStyle.changeStyleString('fontFormat', "himalaya");
117629
+ if (curTextStyle.combineStyle.font != "himalaya") {
117630
+ curStyleIndex = curTextStyle.changeStyleString('fontFormat', "himalaya");
117631
+ }
117630
117632
  curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
117631
117633
  const nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_23__/* .TextStyle */ .xJ(this._hoEditorFactoryID);
117632
117634
  nodeStyle.copyProperty(curTextStyle, nodeStyle);
117633
- if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psTrace) {
117635
+ const paintStatus = hoEditorFactory.drawTree.paintStatus;
117636
+ if (paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview || paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psTrace) {
117634
117637
  const newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_50__/* .UserHistory */ .i(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_50__/* .HistoryEditType */ .t.hetCreate);
117635
117638
  const historyIndex = newHistory.userCompare();
117636
117639
  nodeStyle.creatorIndex = historyIndex;
@@ -117646,16 +117649,14 @@ class DocController {
117646
117649
  nodeStyle.combineStyle.size = 24;
117647
117650
  nodeStyle.size = 24;
117648
117651
  let pNode = node.parentNode;
117649
- if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .IM && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview) {
117652
+ if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .IM && pNode.childNodes.indexOf(node) === 0 && paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview) {
117650
117653
  curStyleIndex = node.styleIndex;
117651
117654
  hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
117652
117655
  }
117653
- let slibs = nodePosition.roots;
117654
117656
  if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .IM && node == pNode.last()) {
117655
- slibs = pNode.getParentNodes();
117656
117657
  pNode = pNode.parentNode;
117657
117658
  }
117658
- if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psTrace) {
117659
+ if (paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psReview || paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_81__/* .PaintState */ .ak.psTrace) {
117659
117660
  if (curTextStyle.strikeout) {
117660
117661
  const nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_23__/* .TextStyle */ .xJ(this._hoEditorFactoryID);
117661
117662
  nodeStyle.copyProperty(curTextStyle, nodeStyle);
@@ -117667,15 +117668,6 @@ class DocController {
117667
117668
  curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
117668
117669
  }
117669
117670
  }
117670
- let canModifyContent = true;
117671
- if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .IM) {
117672
- canModifyContent = pNode.canModifyContent;
117673
- }
117674
- const insertParagraph = aPath => {
117675
- const paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_20__/* .ParagraphNode */ .f(this._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
117676
- this.insertNodeByPath(aPath, paragraphNode);
117677
- return hoEditorFactory.docTree.curDomRange.startPath;
117678
- };
117679
117671
  curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
117680
117672
  let aPromise = new Promise((resolve, reject) => {
117681
117673
  resolve(strPath);
@@ -117684,20 +117676,16 @@ class DocController {
117684
117676
  aPromise = aPromise.then(res => {
117685
117677
  strPath = res;
117686
117678
  return new Promise((resolve, reject) => {
117687
- if (text === '' && index < lines.length - 1) {
117688
- strPath = insertParagraph(strPath);
117689
- resolve(strPath);
117690
- } else {
117691
- strPath = this.insertZWALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, keydownIsUnidentified);
117692
- }
117679
+ strPath = this.insertZWALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, true);
117680
+ // insertZWALine最后一个参数 keydownIsUnidentified 默认传true 处理非m键盘输入的组合音符问题
117693
117681
  });
117694
117682
  });
117695
117683
  });
117696
- setTimeout(() => {
117697
- if (text) {
117684
+ if (text) {
117685
+ setTimeout(() => {
117698
117686
  hoEditorFactory.vueController.getCaretPositionNode();
117699
- }
117700
- }, 0);
117687
+ }, 0);
117688
+ }
117701
117689
  return;
117702
117690
  }
117703
117691
  }
@@ -144627,13 +144615,11 @@ class TextNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Y
144627
144615
  if (combination) {
144628
144616
  this.combination = combination || [];
144629
144617
  }
144630
- // this._text=text;
144631
144618
  this._styleIndex = styleIndex;
144632
144619
  if (errorIndex != undefined) {
144633
144620
  this._errorIndex = errorIndex;
144634
144621
  }
144635
144622
  this.node2DrawNodeRange(0, this._text.length - 1);
144636
- // this.drawItems=new Array<DrawNode>();
144637
144623
  }
144638
144624
  /**
144639
144625
  * @author xyl
@@ -154728,9 +154714,10 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154728
154714
  this.dNode = node;
154729
154715
  this.hoEditfactoryId = hoEditfactoryId;
154730
154716
  if (node.formularType == _types_EditorType__WEBPACK_IMPORTED_MODULE_11__/* .FormularType */ .Dd.ftCurveChart) {
154731
- var _node$formularPropert, _node$formularPropert2;
154717
+ var _node$formularPropert;
154732
154718
  this.dWidth = Number((_node$formularPropert = node.formularProperty) === null || _node$formularPropert === void 0 ? void 0 : _node$formularPropert.width) || 100;
154733
- this.dHeight = Number((_node$formularPropert2 = node.formularProperty) === null || _node$formularPropert2 === void 0 ? void 0 : _node$formularPropert2.height) || 100;
154719
+ // this.dHeight = Number(node.formularProperty?.height) || 100;
154720
+ // console.log(node.formularProperty?.height, node.formularProperty?.width);
154734
154721
  this.formularProperty = node.formularProperty;
154735
154722
  this.drawCurveChart();
154736
154723
  }
@@ -154778,19 +154765,28 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154778
154765
  let xAxis = [];
154779
154766
  let yAxis = [];
154780
154767
  let valueList = [];
154768
+ const formularChartContainer = new createjs.Container();
154781
154769
  if (this.formularProperty.lockX) {
154770
+ var _this$formularPropert;
154782
154771
  xAxis = xInfo.list;
154783
154772
  valueList = yInfo.list;
154784
- let maxValue = Math.max(...yInfo.list.filter(item => item !== '').map(Number));
154785
- maxValue = Math.ceil(maxValue * 10) / 10; // 向上取整到最近的 0.1
154786
- for (let i = 0; i <= maxValue / Number(this.formularProperty.step); i++) {
154787
- yAxis.push((i * Number(this.formularProperty.step)).toFixed(1));
154773
+ const list = yInfo.list.filter(item => item !== '').map(Number);
154774
+ let maxValue = Math.max(...list);
154775
+ if (list.length == 0) {
154776
+ this.dHeight = 50;
154777
+ this.addChild(formularChartContainer);
154778
+ return;
154788
154779
  }
154789
- if ((maxValue * 10).toString().split('.').length == 2) {
154790
- yAxis.push(maxValue.toFixed(1));
154780
+ this.dHeight = Number((_this$formularPropert = this.formularProperty) === null || _this$formularPropert === void 0 ? void 0 : _this$formularPropert.height) || 100;
154781
+ // maxValue = Math.ceil(maxValue * 10) / 10; // 向上取整到最近的 0.1
154782
+ let step = Math.ceil(maxValue / Number(this.formularProperty.step));
154783
+ if (step < 5) {
154784
+ step = 5;
154785
+ }
154786
+ for (let i = 0; i <= step; i++) {
154787
+ yAxis.push((i * Number(this.formularProperty.step)).toFixed(1));
154791
154788
  }
154792
154789
  }
154793
- const formularChartContainer = new createjs.Container();
154794
154790
  const baseChild = this.createGraduation(xAxis, yAxis, valueList);
154795
154791
  formularChartContainer.addChild(...baseChild);
154796
154792
  this.addChild(formularChartContainer);
@@ -154800,17 +154796,19 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154800
154796
  }
154801
154797
  }
154802
154798
  createGraduation(xAxis, yAxis, valueList) {
154803
- var _this$formularPropert, _this$formularPropert2;
154799
+ var _this$formularPropert2, _this$formularPropert3;
154804
154800
  const baseChild = [];
154805
- const baseColor = ((_this$formularPropert = this.formularProperty) === null || _this$formularPropert === void 0 ? void 0 : _this$formularPropert.baseColor) || '#000000';
154806
- const lineColor = ((_this$formularPropert2 = this.formularProperty) === null || _this$formularPropert2 === void 0 ? void 0 : _this$formularPropert2.lineColor) || '#000000';
154801
+ const baseColor = ((_this$formularPropert2 = this.formularProperty) === null || _this$formularPropert2 === void 0 ? void 0 : _this$formularPropert2.baseColor) || '#000000';
154802
+ const lineColor = ((_this$formularPropert3 = this.formularProperty) === null || _this$formularPropert3 === void 0 ? void 0 : _this$formularPropert3.lineColor) || '#000000';
154807
154803
  const circleRadius = 4; // 坐标点半径
154808
154804
  if (this.formularProperty) {
154809
154805
  const line = new createjs.Shape();
154810
154806
  xAxis.unshift("0");
154811
154807
  valueList.unshift("");
154812
- const xScale = Math.floor(this.dWidth / xAxis.length);
154813
- const yScale = Math.floor(this.dHeight / yAxis.length);
154808
+ let marginY = 30;
154809
+ let dHeight = this.dHeight - marginY;
154810
+ const xScale = this.dWidth / xAxis.length;
154811
+ const yScale = dHeight / yAxis.length;
154814
154812
  line.graphics.beginStroke(baseColor);
154815
154813
  let valuePoint = [];
154816
154814
  // 基本坐标系
@@ -154819,11 +154817,11 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154819
154817
  if (xIndex > 0) {
154820
154818
  const xT = new createjs.Text(xText, '12px Arial', baseColor);
154821
154819
  xT.x = x - xScale * 0.4;
154822
- xT.y = -yScale * 0.7;
154820
+ xT.y = -marginY * 0.7;
154823
154821
  baseChild.push(xT);
154824
154822
  }
154825
154823
  yAxis.forEach((yText, yIndex) => {
154826
- let y = -yIndex * yScale - yScale;
154824
+ let y = Math.floor(-yIndex * yScale - marginY);
154827
154825
  if (xIndex == 0) {
154828
154826
  const yT = new createjs.Text(yText, '12px Arial', baseColor);
154829
154827
  yT.x = 10;
@@ -154831,13 +154829,13 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154831
154829
  baseChild.push(yT);
154832
154830
  }
154833
154831
  if (xIndex == 0 && yIndex == 0) {
154834
- line.graphics.setStrokeStyle(2).moveTo(xScale, -yScale).lineTo(xScale, -this.dHeight);
154835
154832
  line.graphics.setStrokeStyle(2).moveTo(xScale, y).lineTo(this.dWidth, y);
154836
154833
  } else if (xIndex == xAxis.length - 1 && yIndex == yAxis.length - 1) {
154837
- line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(x, -yScale).lineTo(x, y);
154834
+ line.graphics.setStrokeStyle(2).setStrokeDash([0, 0]).moveTo(xScale, -marginY).lineTo(xScale, y);
154835
+ line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(x, -marginY).lineTo(x, y);
154838
154836
  line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(xScale, y).lineTo(x, y);
154839
154837
  } else if (xIndex > 0 && yIndex == yAxis.length - 1) {
154840
- line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(x, -yScale).lineTo(x, y);
154838
+ line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(x, -marginY).lineTo(x, y);
154841
154839
  } else if (xIndex == xAxis.length - 1 && yIndex > 0) {
154842
154840
  line.graphics.setStrokeStyle(1).setStrokeDash([6, 2]).moveTo(xScale, y).lineTo(x, y);
154843
154841
  }
@@ -154845,18 +154843,18 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
154845
154843
  if (valueList[xIndex] !== '' && Number(valueList[xIndex]) > 0) {
154846
154844
  valuePoint.push({
154847
154845
  x: x,
154848
- y: -Number(valueList[xIndex]) / Number(yAxis[yAxis.length - 1]) * this.dHeight
154846
+ y: -Number(valueList[xIndex]) / Number(yAxis[yAxis.length - 1]) * (yScale * (yAxis.length - 1)) - marginY
154849
154847
  });
154850
154848
  }
154851
154849
  });
154852
154850
  baseChild.push(line);
154853
154851
  valuePoint.forEach((point, index) => {
154854
154852
  const circle = new createjs.Shape();
154855
- circle.graphics.beginFill(lineColor).drawCircle(point.x, point.y + circleRadius, 4);
154853
+ circle.graphics.beginFill(lineColor).drawCircle(point.x, point.y, circleRadius);
154856
154854
  if (index > 0) {
154857
154855
  const prevPoint = valuePoint[index - 1];
154858
154856
  const line = new createjs.Shape();
154859
- line.graphics.beginStroke(lineColor).moveTo(prevPoint.x, prevPoint.y + circleRadius).lineTo(point.x, point.y + circleRadius);
154857
+ line.graphics.beginStroke(lineColor).moveTo(prevPoint.x, prevPoint.y).lineTo(point.x, point.y);
154860
154858
  baseChild.push(line);
154861
154859
  }
154862
154860
  baseChild.push(circle);
@@ -157713,7 +157711,7 @@ var PaintState;
157713
157711
  PaintState[PaintState["psPrint"] = 3] = "psPrint";
157714
157712
  PaintState[PaintState["psReview"] = 4] = "psReview";
157715
157713
  PaintState[PaintState["psReadOnly"] = 5] = "psReadOnly";
157716
- PaintState[PaintState["psTrace"] = 6] = "psTrace"; // 留痕模式
157714
+ PaintState[PaintState["psTrace"] = 6] = "psTrace";
157717
157715
  })(PaintState || (PaintState = {}));
157718
157716
  class RedrawPosition {
157719
157717
  constructor() {
@@ -157841,9 +157839,9 @@ class DrawTree {
157841
157839
  }
157842
157840
  }
157843
157841
  /**
157844
- * Getter formularNodes
157845
- * @return {Map<string, TableFormula>}
157846
- */
157842
+ * Getter formularNodes
157843
+ * @return {Map<string, TableFormula>}
157844
+ */
157847
157845
  get formularNodes() {
157848
157846
  return this._formularNodes;
157849
157847
  }
@@ -158200,7 +158198,7 @@ class DrawTree {
158200
158198
  */
158201
158199
  getHeaderDNodes(pageNo) {
158202
158200
  let droots = null;
158203
- let path = "";
158201
+ let path = '';
158204
158202
  const iend = Math.min(pageNo, this._headerChildNodes.length - 1);
158205
158203
  if (iend >= 0) {
158206
158204
  for (let i = iend; i >= 0; i--) {
@@ -158342,7 +158340,7 @@ class DrawTree {
158342
158340
  } else {
158343
158341
  //放置时不包含第一个节点
158344
158342
  if (dline instanceof DrawTable/* DrawTable */.n) {
158345
- throw new Error("错误的文档结构,表格后面需要放置一个段落节点");
158343
+ throw new Error('错误的文档结构,表格后面需要放置一个段落节点');
158346
158344
  } else {
158347
158345
  if (!(hoeditorFactory.drawTree.paintStatus != PaintState.psDesign && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true)) {
158348
158346
  dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, startChildIndex, node.getLength() - 1, aEndPath);
@@ -158471,7 +158469,7 @@ class DrawTree {
158471
158469
  } else {
158472
158470
  //放置时不包含第一个节点
158473
158471
  if (dline instanceof DrawTable/* DrawTable */.n) {
158474
- throw new Error("错误的文档结构,表格前面需要放置一个段落节点");
158472
+ throw new Error('错误的文档结构,表格前面需要放置一个段落节点');
158475
158473
  } else {
158476
158474
  if (!(hoEditorFactory.drawTree.paintStatus != PaintState.psDesign && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true)) {
158477
158475
  dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, 0, node.getLength() - 1, aEndPath);
@@ -158797,7 +158795,9 @@ class DrawTree {
158797
158795
  }
158798
158796
  if (e.repaintImmediate) {
158799
158797
  let mainArea = dArea;
158800
- if (dline.parent) mainArea = hoEditorFactory.drawPageTree.getMainRootArea(startUpdateLine);else if (dArea) {
158798
+ if (dline.parent) {
158799
+ mainArea = hoEditorFactory.drawPageTree.getMainRootArea(startUpdateLine);
158800
+ } else if (dArea) {
158801
158801
  mainArea = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
158802
158802
  }
158803
158803
  if (mainArea) {
@@ -158979,7 +158979,7 @@ class DrawTree {
158979
158979
  }
158980
158980
  onSelectChanged(e) {
158981
158981
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
158982
- if (e.newRange.startPath === "" || e.newRange.endPath === "") {
158982
+ if (e.newRange.startPath === '' || e.newRange.endPath === '') {
158983
158983
  return false;
158984
158984
  }
158985
158985
  const endNp = hoEditorFactory.docTree.findNodePositionByPath(e.newRange.endPath);
@@ -159037,19 +159037,19 @@ class DrawTree {
159037
159037
  }
159038
159038
  // console.log(aNode); 互斥
159039
159039
  const groupName = aNode.groupName;
159040
- if (aNode.controlStyle === "CheckBox" && !aNode.isMutualExclusion) {
159040
+ if (aNode.controlStyle === 'CheckBox' && !aNode.isMutualExclusion) {
159041
159041
  if (aNode.isSelected) {
159042
159042
  aNode.isSelected = false;
159043
159043
  } else {
159044
159044
  aNode.isSelected = true;
159045
159045
  }
159046
159046
  }
159047
- if (aNode.controlStyle === "RadioBox" || aNode.controlStyle === "CheckBox" && aNode.isMutualExclusion) {
159047
+ if (aNode.controlStyle === 'RadioBox' || aNode.controlStyle === 'CheckBox' && aNode.isMutualExclusion) {
159048
159048
  if (groupName.length > 0) {
159049
159049
  if (aNode.isSelected) {
159050
159050
  if (hoEditorFactory.allowUncheckRadio) {
159051
159051
  aNode.isSelected = false;
159052
- } else if (aNode.controlStyle === "CheckBox" && aNode.isMutualExclusion) {
159052
+ } else if (aNode.controlStyle === 'CheckBox' && aNode.isMutualExclusion) {
159053
159053
  aNode.isSelected = false;
159054
159054
  } else {
159055
159055
  return true;
@@ -159059,7 +159059,7 @@ class DrawTree {
159059
159059
  let selectedGroupList = [];
159060
159060
  let isGroupList = [];
159061
159061
  radioAndCheckBoxs.forEach((value, key) => {
159062
- if (value.controlStyle === aNode.controlStyle && value.controlStyle === "CheckBox" && value.groupName === groupName) {
159062
+ if (value.controlStyle === aNode.controlStyle && value.controlStyle === 'CheckBox' && value.groupName === groupName) {
159063
159063
  if (!isGroupList.includes(value.groupType)) {
159064
159064
  isGroupList.push(value.groupType);
159065
159065
  }
@@ -159067,14 +159067,14 @@ class DrawTree {
159067
159067
  });
159068
159068
  radioAndCheckBoxs.forEach((value, key) => {
159069
159069
  if (value.controlStyle === aNode.controlStyle && value.groupName === groupName && value.isSelected) {
159070
- if (value.controlStyle === "CheckBox" && value.isMutualExclusion && isGroupList.length > 1) {
159070
+ if (value.controlStyle === 'CheckBox' && value.isMutualExclusion && isGroupList.length > 1) {
159071
159071
  selectedGroupList.push(value.groupType);
159072
159072
  } else {
159073
159073
  value.isSelected = false;
159074
159074
  const nodePath = value.getNodePath();
159075
159075
  const newDomRange = new DomRange/* DomRange */.g(this._hoEditorFactoryID, nodePath, nodePath);
159076
159076
  const nodeObjectTemp = JSON.stringify(value.radioAndCheckBoxInstance);
159077
- hoEditorFactory.docController.insertRadioAndCheckBox("update", newDomRange, nodeObjectTemp, value.styleIndex);
159077
+ hoEditorFactory.docController.insertRadioAndCheckBox('update', newDomRange, nodeObjectTemp, value.styleIndex);
159078
159078
  }
159079
159079
  }
159080
159080
  });
@@ -159110,10 +159110,10 @@ class DrawTree {
159110
159110
  nodeStyle.color = color;
159111
159111
  styleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
159112
159112
  }
159113
- hoEditorFactory.docController.insertRadioAndCheckBox("update", newDomRangeCur, nodeObjectStr, styleIndex);
159113
+ hoEditorFactory.docController.insertRadioAndCheckBox('update', newDomRangeCur, nodeObjectStr, styleIndex);
159114
159114
  //单复选关联元素必填标记
159115
159115
  if (e.node.associatedElement) {
159116
- const node = hoEditorFactory.vueController.getNodeByDataID("main", e.node.associatedElement);
159116
+ const node = hoEditorFactory.vueController.getNodeByDataID('main', e.node.associatedElement);
159117
159117
  if (node && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM) {
159118
159118
  if (e.node.isSelected) {
159119
159119
  node.customProperty.must = true;
@@ -159124,10 +159124,10 @@ class DrawTree {
159124
159124
  }
159125
159125
  }
159126
159126
  } else {
159127
- if ((e.node.controlStyle === "RadioBox" || e.node.controlStyle === "CheckBox" && e.node.isMutualExclusion) && e.node.isSelected) {
159127
+ if ((e.node.controlStyle === 'RadioBox' || e.node.controlStyle === 'CheckBox' && e.node.isMutualExclusion) && e.node.isSelected) {
159128
159128
  for (let value of hoEditorFactory.docTree.radioAndCheckBoxsMap.values()) {
159129
- if (value.associatedElement && value.controlStyle === e.node.controlStyle && value.groupName === groupName && groupName !== "") {
159130
- const node = hoEditorFactory.vueController.getNodeByDataID("main", value.associatedElement);
159129
+ if (value.associatedElement && value.controlStyle === e.node.controlStyle && value.groupName === groupName && groupName !== '') {
159130
+ const node = hoEditorFactory.vueController.getNodeByDataID('main', value.associatedElement);
159131
159131
  if (node && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM) {
159132
159132
  node.customProperty.must = false;
159133
159133
  node.update(0);
@@ -159140,10 +159140,10 @@ class DrawTree {
159140
159140
  //单复选带出关联元素
159141
159141
  const deleteAssociatedEle = (node, tPath) => {
159142
159142
  const oldEndPath = hoEditorFactory.docTree.getNodeLastPath(node);
159143
- const changeEvent = new NodeChangeEvent/* NodeChangeEvent */.b(this._hoEditorFactoryID, DocTree/* DocAction */.LC.daDelete, tPath, "");
159143
+ const changeEvent = new NodeChangeEvent/* NodeChangeEvent */.b(this._hoEditorFactoryID, DocTree/* DocAction */.LC.daDelete, tPath, '');
159144
159144
  changeEvent.oldEndPath = oldEndPath;
159145
159145
  changeEvent.oldDrawTreeLines = new SelectRange/* SelectRange */.u(this._hoEditorFactoryID).getRangeDrawTreeLines(nodePathCur, oldEndPath);
159146
- hoEditorFactory.docTree.deleteNode(node, "update");
159146
+ hoEditorFactory.docTree.deleteNode(node, 'update');
159147
159147
  changeEvent.afterChangePath = nodePathCur;
159148
159148
  hoEditorFactory.docTree.change(changeEvent);
159149
159149
  };
@@ -159155,17 +159155,17 @@ class DrawTree {
159155
159155
  newpath = res;
159156
159156
  });
159157
159157
  } else {
159158
- const node = hoEditorFactory.vueController.getNodeByID("main", e.node.associatedId);
159158
+ const node = hoEditorFactory.vueController.getNodeByID('main', e.node.associatedId);
159159
159159
  if (node) {
159160
159160
  deleteAssociatedEle(node, newpath);
159161
159161
  }
159162
159162
  }
159163
159163
  }
159164
159164
  } else {
159165
- if ((e.node.controlStyle === "RadioBox" || e.node.controlStyle === "CheckBox" && e.node.isMutualExclusion) && e.node.isSelected) {
159165
+ if ((e.node.controlStyle === 'RadioBox' || e.node.controlStyle === 'CheckBox' && e.node.isMutualExclusion) && e.node.isSelected) {
159166
159166
  for (let val of hoEditorFactory.docTree.radioAndCheckBoxsMap.values()) {
159167
- if (val.associatedId && val.controlStyle === e.node.controlStyle && val.groupName === groupName && groupName !== "") {
159168
- const node = hoEditorFactory.vueController.getNodeByID("main", val.associatedId);
159167
+ if (val.associatedId && val.controlStyle === e.node.controlStyle && val.groupName === groupName && groupName !== '') {
159168
+ const node = hoEditorFactory.vueController.getNodeByID('main', val.associatedId);
159169
159169
  if (node) {
159170
159170
  const bpath = val.getNodePath();
159171
159171
  deleteAssociatedEle(node, bpath);
@@ -159186,7 +159186,7 @@ class DrawTree {
159186
159186
  */
159187
159187
  getFooterDNodes(pageNo) {
159188
159188
  let droots = null;
159189
- let path = "";
159189
+ let path = '';
159190
159190
  const iend = Math.min(pageNo, this._footerChildNodes.length - 1);
159191
159191
  if (iend >= 0) {
159192
159192
  for (let i = iend; i >= 0; i--) {
@@ -159220,13 +159220,13 @@ class DrawTree {
159220
159220
  return null;
159221
159221
  }
159222
159222
  getDNodePath(dPage, dLine, x, y) {
159223
- let selectStart = "";
159223
+ let selectStart = '';
159224
159224
  if (!dPage.drawDomLevel) {
159225
- return "";
159225
+ return '';
159226
159226
  }
159227
159227
  const lineIndex = dLine.paragraphNode.drawlines.indexOf(dLine);
159228
159228
  if (lineIndex == -1) {
159229
- return "";
159229
+ return '';
159230
159230
  }
159231
159231
  const index = dLine.getChildByPos(x, y)[0];
159232
159232
  if (index === -1) {
@@ -159303,7 +159303,7 @@ class DrawTree {
159303
159303
  const pos = dline.localToLocal(dright, 0, dPage.drawDocContainer);
159304
159304
  this._caret.height = dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
159305
159305
  if (dPage && dPage.drawSelectLevel) {
159306
- if (this.selectRange.isEmpty || hoEditorFactory.docController.findContent !== "") {
159306
+ if (this.selectRange.isEmpty || hoEditorFactory.docController.findContent !== '') {
159307
159307
  this._editor.moveTo(dPage.pageIndex, pos.x, pos.y);
159308
159308
  }
159309
159309
  if (dNode instanceof DrawSignNode/* DrawSignNode */._) {
@@ -159353,7 +159353,7 @@ class DrawTree {
159353
159353
  }
159354
159354
  moveEditTo(pageIndex, x, y) {
159355
159355
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
159356
- if (this.selectRange.beginRangeSelect === undefined || this.selectRange.isEmpty || hoEditorFactory.docController.findContent !== "") {
159356
+ if (this.selectRange.beginRangeSelect === undefined || this.selectRange.isEmpty || hoEditorFactory.docController.findContent !== '') {
159357
159357
  this._editor.moveTo(pageIndex, x, y);
159358
159358
  }
159359
159359
  }
@@ -159540,7 +159540,7 @@ class DrawTree {
159540
159540
  */
159541
159541
  getDrawRootsByPath(strPath) {
159542
159542
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
159543
- const arr = strPath.split("/");
159543
+ const arr = strPath.split('/');
159544
159544
  const istart = 1;
159545
159545
  let dArea = null;
159546
159546
  let dlines = null;
@@ -159607,19 +159607,19 @@ class DrawTree {
159607
159607
  getDTreePathByNodePath(nodePath) {
159608
159608
  const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
159609
159609
  const np = hoEditorFactory.docTree.findNodePositionByPath(nodePath);
159610
- let ret = "";
159610
+ let ret = '';
159611
159611
  if (np && np.node) {
159612
159612
  if (np.childIndex >= 0 && np.node.drawNodes.length > np.childIndex) {
159613
159613
  let dnode = np.node.drawNodes[np.childIndex];
159614
159614
  let dParent = dnode.parent;
159615
159615
  while (dParent && dParent instanceof DrawContainer/* DrawContainer */.g) {
159616
159616
  const index = dParent.drawItems.indexOf(dnode);
159617
- ret = index.toString() + "/" + ret;
159617
+ ret = index.toString() + '/' + ret;
159618
159618
  dnode = dParent;
159619
159619
  dParent = dnode.parent;
159620
159620
  }
159621
- if (ret !== "") {
159622
- ret = hoEditorFactory.docTree.getPathRoots(nodePath) + "/" + ret.substr(0, ret.length - 1);
159621
+ if (ret !== '') {
159622
+ ret = hoEditorFactory.docTree.getPathRoots(nodePath) + '/' + ret.substr(0, ret.length - 1);
159623
159623
  }
159624
159624
  }
159625
159625
  }
@@ -159675,7 +159675,7 @@ class DrawTree {
159675
159675
  return ditem;
159676
159676
  }
159677
159677
  getNodePathByDPath(dPath) {
159678
- let ret = "";
159678
+ let ret = '';
159679
159679
  const dnode = this.getDNodeByPath(dPath);
159680
159680
  //组合节点
159681
159681
  if (dnode instanceof DrawCombineNode/* DrawCombineNode */.A) {
@@ -159685,7 +159685,7 @@ class DrawTree {
159685
159685
  ret = dnode.parent.node.getNodePath();
159686
159686
  const index = dnode.parent.node.drawNodes.indexOf(dnode);
159687
159687
  if (index >= 0 && index < dnode.parent.node.drawNodes.length) {
159688
- ret += "/" + index;
159688
+ ret += '/' + index;
159689
159689
  }
159690
159690
  }
159691
159691
  return ret;
@@ -159743,7 +159743,7 @@ class DrawTree {
159743
159743
  const hoeditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
159744
159744
  const prevPara = hoeditorFactory.docTree.getSameRectPrevParanode(paraNode);
159745
159745
  let dTop = 0;
159746
- if (!prevPara || hoeditorFactory.drawTree.paintStatus != PaintState.psDesign && prevPara.customProperty && prevPara.customProperty.hidden == "true") {
159746
+ if (!prevPara || hoeditorFactory.drawTree.paintStatus != PaintState.psDesign && prevPara.customProperty && prevPara.customProperty.hidden == 'true') {
159747
159747
  dTop = paraNode.combineParagraph.topMarginPixes;
159748
159748
  } else {
159749
159749
  //存在上一个同区域段落节点
@@ -159775,7 +159775,7 @@ class DrawTree {
159775
159775
  if (pageCell) {
159776
159776
  return pageCell.getPagePaintPosition();
159777
159777
  } else {
159778
- throw new Error("表格结点还未准备好绘制");
159778
+ throw new Error('表格结点还未准备好绘制');
159779
159779
  }
159780
159780
  } else {
159781
159781
  //页的起始段茖
@@ -159863,7 +159863,7 @@ class DrawTree {
159863
159863
  if (dnextDline === aRange.spStart.dline && aRange.spStart.index >= 0) {
159864
159864
  const ditem = dnextDline.drawItems[aRange.spStart.index];
159865
159865
  if (ditem instanceof DrawTextNode/* DrawTextNode */.w && ditem.node instanceof TextNode/* TextNode */.E) {
159866
- const arr = aRange.spStart.path.split("/");
159866
+ const arr = aRange.spStart.path.split('/');
159867
159867
  const iindex = parseInt(arr[arr.length - 1]);
159868
159868
  if (!isNaN(iindex)) left = ditem.x + ditem.dText.getWidthByIndex(iindex);
159869
159869
  } else {
@@ -159875,7 +159875,7 @@ class DrawTree {
159875
159875
  if (aRange.spEnd.index >= 0) {
159876
159876
  const ditem = dnextDline.drawItems[aRange.spEnd.index];
159877
159877
  if (ditem instanceof DrawTextNode/* DrawTextNode */.w && ditem.node instanceof TextNode/* TextNode */.E) {
159878
- const arr = aRange.spEnd.path.split("/");
159878
+ const arr = aRange.spEnd.path.split('/');
159879
159879
  const iindex = parseInt(arr[arr.length - 1]);
159880
159880
  if (!isNaN(iindex)) right = ditem.x + ditem.dText.getWidthByIndex(iindex);
159881
159881
  } else {
@@ -159891,8 +159891,8 @@ class DrawTree {
159891
159891
  }
159892
159892
  }
159893
159893
  if (dPage && dPage.selectContainer) {
159894
- const shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "blue");
159895
- shape.name = "select";
159894
+ const shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, 'blue');
159895
+ shape.name = 'select';
159896
159896
  shape.alpha = 0.5;
159897
159897
  dPage.selectContainer.addChild(shape);
159898
159898
  if (dPages.indexOf(dPage) < 0) {
@@ -159948,7 +159948,7 @@ class DrawTree {
159948
159948
  if (dnextDline === aRange.spStart.dline && aRange.spStart.index >= 0) {
159949
159949
  const ditem = dnextDline.drawItems[aRange.spStart.index];
159950
159950
  if (ditem instanceof DrawTextNode/* DrawTextNode */.w && ditem.node instanceof TextNode/* TextNode */.E) {
159951
- arr = aRange.spStart.path.split("/");
159951
+ arr = aRange.spStart.path.split('/');
159952
159952
  iindex = parseInt(arr[arr.length - 1]);
159953
159953
  if (!isNaN(iindex)) {
159954
159954
  if (iindex == 0) {
@@ -159966,7 +159966,7 @@ class DrawTree {
159966
159966
  if (aRange.spEnd.index >= 0) {
159967
159967
  const ditem = dnextDline.drawItems[aRange.spEnd.index];
159968
159968
  if (ditem instanceof DrawTextNode/* DrawTextNode */.w && ditem.node instanceof TextNode/* TextNode */.E) {
159969
- arr = aRange.spEnd.path.split("/");
159969
+ arr = aRange.spEnd.path.split('/');
159970
159970
  iindex = parseInt(arr[arr.length - 1]);
159971
159971
  if (!isNaN(iindex)) right = ditem.x + ditem.dText.getWidthByIndex(iindex);
159972
159972
  } else {
@@ -160153,7 +160153,7 @@ class DrawTree {
160153
160153
  cgEvent.needUpdateParaStyle = needUpdateParaStyle;
160154
160154
  cgEvent.oldDrawLines = new SelectRange/* SelectRange */.u(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true, true);
160155
160155
  await hoEditorFactory.docTree.change(cgEvent);
160156
- if (hoEditorFactory.docTree.curDomRange.startPath != "") {
160156
+ if (hoEditorFactory.docTree.curDomRange.startPath != '') {
160157
160157
  if (moveCaret) {
160158
160158
  this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);
160159
160159
  }
@@ -160173,7 +160173,7 @@ class DrawTree {
160173
160173
  this.drawPages[0].storeDrawHeader.visible = true;
160174
160174
  this.drawPages[0].storeDrawFooter.visible = true;
160175
160175
  }
160176
- if (area === "header") {
160176
+ if (area === 'header') {
160177
160177
  const headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
160178
160178
  for (let i = 0; i < headerDocTree.length; i++) {
160179
160179
  const nodes = headerDocTree[i].subDocNodes;
@@ -160195,7 +160195,7 @@ class DrawTree {
160195
160195
  }
160196
160196
  }
160197
160197
  }
160198
- if (area === "footer") {
160198
+ if (area === 'footer') {
160199
160199
  const footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
160200
160200
  for (let j = 0; j < footerDocTree.length; j++) {
160201
160201
  const nodes = footerDocTree[j].subDocNodes;
@@ -160217,7 +160217,7 @@ class DrawTree {
160217
160217
  }
160218
160218
  }
160219
160219
  }
160220
- if (area === "main") {
160220
+ if (area === 'main') {
160221
160221
  const nodes = hoEditorFactory.docTree.mainNodes;
160222
160222
  if (this._mainChildNodes.length > 0) {
160223
160223
  const dline = this._mainChildNodes[0];
@@ -160230,7 +160230,7 @@ class DrawTree {
160230
160230
  cgEvent.needUpdateParaStyle = needUpdateParaStyle;
160231
160231
  cgEvent.oldDrawLines = new SelectRange/* SelectRange */.u(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true, true);
160232
160232
  await hoEditorFactory.docTree.change(cgEvent);
160233
- if (hoEditorFactory.docTree.curDomRange.startPath != "") this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);else {
160233
+ if (hoEditorFactory.docTree.curDomRange.startPath != '') this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);else {
160234
160234
  const lastPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[hoEditorFactory.docTree.mainNodes.length - 1]);
160235
160235
  const selChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.h(hoEditorFactory.docTree.curDomRange, new DomRange/* DomRange */.g(this._hoEditorFactoryID, lastPath, lastPath));
160236
160236
  hoEditorFactory.docTree.selectChange(selChangeEvent);
@@ -160243,7 +160243,7 @@ class DrawTree {
160243
160243
  this.pageCountNodes.forEach((value, key) => {
160244
160244
  value.drawNodes[0].updatePaint();
160245
160245
  const dArea = hoeditfactory.drawPageTree.getMainRootArea(value.drawNodes[0]);
160246
- if (dArea && value.rootPath.indexOf("main") < 0) {
160246
+ if (dArea && value.rootPath.indexOf('main') < 0) {
160247
160247
  if (dArea.index < this.drawPages.length) {
160248
160248
  hoeditfactory.subDocManger.updateAllSameSubDoc(dArea.index, dArea.hftType, false, false);
160249
160249
  }
@@ -160339,7 +160339,7 @@ class DrawTree {
160339
160339
  aline = dParent;
160340
160340
  dParent = dParent.parent;
160341
160341
  }
160342
- if (aline instanceof DrawLine/* DrawLine */.D || aline instanceof DrawPageTable/* DrawPageTable */.Yt) return aline;else throw new Error("首行未放置于页上无法定位到更新起始点");
160342
+ if (aline instanceof DrawLine/* DrawLine */.D || aline instanceof DrawPageTable/* DrawPageTable */.Yt) return aline;else throw new Error('首行未放置于页上无法定位到更新起始点');
160343
160343
  }
160344
160344
  updateTablesdHeight(tables) {
160345
160345
  for (let i = 0; i < tables.length; i++) {
@@ -220046,7 +220046,7 @@ entry_lib_Input.install = function (Vue) {
220046
220046
 
220047
220047
 
220048
220048
  /* harmony default export */ var entry_lib_antd = ([entry_lib_es_button, entry_lib_input, entry_lib_input_number, entry_lib_es_checkbox, entry_lib_date_picker, entry_lib_time_picker, entry_lib_es_radio, entry_lib_es_select, entry_lib_es_tabs, entry_lib_es_dropdown, entry_lib_es_menu, entry_lib_es_upload, entry_lib_tooltip, entry_lib_table, entry_lib_popover, entry_lib_es_icon/* default */.A, entry_lib_config_provider]);
220049
- ;// ./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/HoDocs.vue?vue&type=template&id=de9e9654
220049
+ ;// ./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/HoDocs.vue?vue&type=template&id=39c010d8
220050
220050
  var entry_lib_render = function render() {
220051
220051
  var _vm = this,
220052
220052
  _c = _vm._self._c;
@@ -220168,9 +220168,9 @@ var entry_lib_web_dom_collections_iterator = __webpack_require__(62953);
220168
220168
  var build_entry_lib_objectSpread2 = __webpack_require__(33217);
220169
220169
  // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
220170
220170
  var entry_lib_i18n = __webpack_require__(49850);
220171
- ;// ./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/HoDoc.vue?vue&type=template&id=2154845a
220171
+ ;// ./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/HoDoc.vue?vue&type=template&id=030c30c6
220172
220172
 
220173
- var entry_lib_HoDocvue_type_template_id_2154845a_render = function render() {
220173
+ var entry_lib_HoDocvue_type_template_id_030c30c6_render = function render() {
220174
220174
  var _vm = this,
220175
220175
  _c = _vm._self._c;
220176
220176
  return _c('div', {
@@ -220369,9 +220369,9 @@ var entry_lib_HoDocvue_type_template_id_2154845a_render = function render() {
220369
220369
  }
220370
220370
  }, [_vm._v("v " + _vm._s(_vm.version))])])], 2)], 1);
220371
220371
  };
220372
- var entry_lib_HoDocvue_type_template_id_2154845a_staticRenderFns = [];
220372
+ var entry_lib_HoDocvue_type_template_id_030c30c6_staticRenderFns = [];
220373
220373
 
220374
- ;// ./src/components/HoDoc.vue?vue&type=template&id=2154845a
220374
+ ;// ./src/components/HoDoc.vue?vue&type=template&id=030c30c6
220375
220375
 
220376
220376
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
220377
220377
  var entry_lib_es_array_sort = __webpack_require__(26910);
@@ -223217,7 +223217,7 @@ var entry_lib_TextNode = __webpack_require__(32083);
223217
223217
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
223218
223218
  var entry_lib_ParagraphNode = __webpack_require__(40504);
223219
223219
  ;// ./src/components/version.ts
223220
- /* harmony default export */ var entry_lib_version = ('3.1.201');
223220
+ /* harmony default export */ var entry_lib_version = ('3.1.203');
223221
223221
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
223222
223222
  var entry_lib_PoperTipText = __webpack_require__(89316);
223223
223223
  ;// ./src/components/controls/poperTipText/index.ts
@@ -223385,7 +223385,8 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
223385
223385
  nextCellButton: false,
223386
223386
  isAutoPoper: false,
223387
223387
  // 自动打开的弹窗
223388
- selectMarkStyle: {}
223388
+ selectMarkStyle: {},
223389
+ currentElement: ''
223389
223390
  };
223390
223391
  },
223391
223392
  computed: {
@@ -223644,18 +223645,41 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
223644
223645
  if (paintStatus == entry_lib_DrawTree/* PaintState */.ak.psEdit && hoEditorFactory.emitClickEvent) {
223645
223646
  const parentNode = node.parentNode;
223646
223647
  if (parentNode && parentNode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM && parentNode.canModifyContent) {
223647
- this.$emit("clickEvents", {
223648
- name: parentNode.name,
223649
- id: parentNode.id,
223650
- dataId: parentNode.dataId,
223651
- pageIndex: pageIndex,
223652
- innerIdentifier: parentNode.innerIdentifier,
223653
- x: hoEditorFactory.drawTree.caret.X,
223654
- y: hoEditorFactory.drawTree.caret.Y,
223655
- height: hoEditorFactory.drawTree.caret.height,
223656
- parentName: "edit-container",
223657
- caretId: "ho_caret"
223658
- });
223648
+ let currentElement = `${parentNode.id}-${parentNode.name}-${parentNode.dataId}-${parentNode.innerIdentifier}`;
223649
+ if (this.currentElement != currentElement) {
223650
+ this.currentElement = currentElement;
223651
+ this.$emit("clickEvents", {
223652
+ id: parentNode.id,
223653
+ name: parentNode.name,
223654
+ dataId: parentNode.dataId,
223655
+ innerIdentifier: parentNode.innerIdentifier,
223656
+ pageIndex: pageIndex,
223657
+ x: hoEditorFactory.drawTree.caret.X,
223658
+ y: hoEditorFactory.drawTree.caret.Y,
223659
+ height: hoEditorFactory.drawTree.caret.height,
223660
+ caretId: "ho_caret",
223661
+ parentName: "edit-container",
223662
+ isInElement: true
223663
+ });
223664
+ }
223665
+ } else {
223666
+ let currentElement = "";
223667
+ if (this.currentElement != currentElement) {
223668
+ this.currentElement = currentElement;
223669
+ this.$emit("clickEvents", {
223670
+ id: '',
223671
+ name: '',
223672
+ dataId: '',
223673
+ innerIdentifier: '',
223674
+ pageIndex: pageIndex,
223675
+ x: hoEditorFactory.drawTree.caret.X,
223676
+ y: hoEditorFactory.drawTree.caret.Y,
223677
+ height: hoEditorFactory.drawTree.caret.height,
223678
+ caretId: "ho_caret",
223679
+ parentName: "edit-container",
223680
+ isInElement: false
223681
+ });
223682
+ }
223659
223683
  }
223660
223684
  }
223661
223685
  } else if (e.clickType === 'rightClick') {
@@ -224270,10 +224294,10 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
224270
224294
 
224271
224295
  /* harmony default export */ var entry_lib_components_HoDocvue_type_script_lang_js = (entry_lib_HoDocvue_type_script_lang_js);
224272
224296
 
224273
- ;// ./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/HoDoc.vue?vue&type=style&index=0&id=2154845a&prod&lang=less
224297
+ ;// ./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/HoDoc.vue?vue&type=style&index=0&id=030c30c6&prod&lang=less
224274
224298
  // extracted by mini-css-extract-plugin
224275
224299
 
224276
- ;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=2154845a&prod&lang=less
224300
+ ;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=030c30c6&prod&lang=less
224277
224301
 
224278
224302
  ;// ./src/components/HoDoc.vue
224279
224303
 
@@ -224286,8 +224310,8 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
224286
224310
 
224287
224311
  var entry_lib_HoDoc_component = (0,entry_lib_componentNormalizer/* default */.A)(
224288
224312
  entry_lib_components_HoDocvue_type_script_lang_js,
224289
- entry_lib_HoDocvue_type_template_id_2154845a_render,
224290
- entry_lib_HoDocvue_type_template_id_2154845a_staticRenderFns,
224313
+ entry_lib_HoDocvue_type_template_id_030c30c6_render,
224314
+ entry_lib_HoDocvue_type_template_id_030c30c6_staticRenderFns,
224291
224315
  false,
224292
224316
  null,
224293
224317
  null,
@@ -225195,11 +225219,10 @@ class entry_lib_DrawPageTree {
225195
225219
  afterAreaFinishPaint(drawArea) {
225196
225220
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
225197
225221
  // 2023-05-23注释 25临时放开
225198
- if (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReview || (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psEdit || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReadOnly) && !hoEditorFactory.isHideComments) {
225199
- drawArea.drawComments();
225200
- }
225201
225222
  let isDisplayComments = false;
225202
- if (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReview || (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psEdit || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReadOnly) && !hoEditorFactory.isHideComments) {
225223
+ const paintStatus = hoEditorFactory.drawTree.paintStatus;
225224
+ if (paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReview || paintStatus === entry_lib_DrawTree/* PaintState */.ak.psTrace || (paintStatus === entry_lib_DrawTree/* PaintState */.ak.psEdit || paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReadOnly) && !hoEditorFactory.isHideComments) {
225225
+ drawArea.drawComments();
225203
225226
  isDisplayComments = true;
225204
225227
  }
225205
225228
  this.dispalyComments(isDisplayComments, drawArea);
@@ -240043,7 +240066,7 @@ class entry_lib_VueController {
240043
240066
  }
240044
240067
  }
240045
240068
  if (nodes.length > 0) {
240046
- hoEditorFactory.docController.parseNodeData(nodes, true);
240069
+ hoEditorFactory.docController.parseNodeData(nodes);
240047
240070
  }
240048
240071
  }
240049
240072
  }
@@ -252716,7 +252739,7 @@ var entry_lib_commondata = __webpack_require__(92611);
252716
252739
 
252717
252740
  // 是否是元素类型;
252718
252741
  nodeInfoes.isElement = false;
252719
- nodeInfoes.canShowComment = hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psEdit || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReview || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReadOnly;
252742
+ nodeInfoes.canShowComment = hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psEdit || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psTrace || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReview || hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psReadOnly;
252720
252743
  nodeInfoes.isHideComments = hoEditorFactory.isHideComments;
252721
252744
  nodeInfoes.activePageIndex = this.activePageIndex;
252722
252745
  nodeInfoes.paintStatus = hoEditorFactory.drawTree.paintStatus;
@@ -253199,10 +253222,10 @@ var entry_lib_commondata = __webpack_require__(92611);
253199
253222
 
253200
253223
  /* harmony default export */ var entry_lib_components_HoDocsvue_type_script_lang_js = (entry_lib_HoDocsvue_type_script_lang_js);
253201
253224
 
253202
- ;// ./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/HoDocs.vue?vue&type=style&index=0&id=de9e9654&prod&lang=less&media=print
253225
+ ;// ./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/HoDocs.vue?vue&type=style&index=0&id=39c010d8&prod&lang=less&media=print
253203
253226
  // extracted by mini-css-extract-plugin
253204
253227
 
253205
- ;// ./src/components/HoDocs.vue?vue&type=style&index=0&id=de9e9654&prod&lang=less&media=print
253228
+ ;// ./src/components/HoDocs.vue?vue&type=style&index=0&id=39c010d8&prod&lang=less&media=print
253206
253229
 
253207
253230
  ;// ./src/components/HoDocs.vue
253208
253231