hoeditor-web 3.2.4 → 3.2.6

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.
@@ -14759,17 +14759,7 @@ class DrawPageHeaderFooter extends DrawArea {
14759
14759
  // }
14760
14760
  // }
14761
14761
  constructor(o, n, a, s, c, d, u, f, p, g) {
14762
- super(
14763
- o,
14764
- a,
14765
- s,
14766
- c,
14767
- d,
14768
- u,
14769
- f,
14770
- p,
14771
- g
14772
- );
14762
+ super(o, a, s, c, d, u, f, p, g);
14773
14763
  // protected _drawPageMarks: Array<DrawPageMarkNode>;
14774
14764
  _(this, "_hftType");
14775
14765
  _(this, "_displayHeight");
@@ -14785,22 +14775,10 @@ class DrawPageHeaderFooter extends DrawArea {
14785
14775
  return this._hftType;
14786
14776
  }
14787
14777
  update(o, n, a, s, c) {
14788
- const d = super.update(
14789
- o,
14790
- n,
14791
- a,
14792
- s,
14793
- c
14794
- ), u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), f = u.drawTree.drawPages[this._index];
14795
- this._displayHeight, f && f.reFreshBounds();
14778
+ const d = super.update(o, n, a, s, c), u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), f = u.drawTree.drawPages[this._index];
14779
+ f && f.reFreshBounds();
14796
14780
  let p = 0;
14797
- return this._hftType == 0 ? (p = u.pageProperty.headerYPixes, this._displayHeight = Math.max(
14798
- u.pageProperty.topMarginPixes,
14799
- this.actualHeight + p
14800
- )) : (this._displayHeight = Math.max(
14801
- u.pageProperty.bottomMarginPixes,
14802
- this.actualHeight + p
14803
- ), p = u.pageProperty.footerYPixes), d;
14781
+ return this._hftType == 0 ? (p = u.pageProperty.headerYPixes, this._displayHeight = Math.max(u.pageProperty.topMarginPixes, this.actualHeight + p)) : (this._displayHeight = Math.max(u.pageProperty.bottomMarginPixes, this.actualHeight + p), p = u.pageProperty.footerYPixes), d;
14804
14782
  }
14805
14783
  }
14806
14784
  class DrawHeader extends DrawPageHeaderFooter {
@@ -14848,21 +14826,8 @@ class DrawFooter extends DrawPageHeaderFooter {
14848
14826
  // private __hoEditorFactoryID: string;
14849
14827
  // private _pages: Array<DrawPage>;
14850
14828
  constructor(r, o, n) {
14851
- const a = HOEditorFactorys.instance().getFactory(r), s = a.pageProperty.heightPixes - a.pageProperty.bottomMarginPixes, c = a.pageProperty.leftMarginPixes, d = a.pageProperty.widthPixes - c - a.pageProperty.rightMarginPixes, u = a.pageProperty.bottomMarginPixes - a.pageProperty.footerYPixes, f = Math.floor(
14852
- (a.pageProperty.heightPixes - a.pageProperty.footerYPixes) / 2 - a.pageProperty.heightPixes / 5
14853
- ), p = d;
14854
- super(
14855
- r,
14856
- HeaderFooterType.hftFoot,
14857
- o,
14858
- n,
14859
- c,
14860
- s,
14861
- d,
14862
- u,
14863
- p,
14864
- f
14865
- ), this._hoEditorFactoryID = r, this._allowAcrossPage = !1, this._displayHeight = a.pageProperty.bottomMarginPixes;
14829
+ const a = HOEditorFactorys.instance().getFactory(r), s = a.pageProperty.heightPixes - a.pageProperty.bottomMarginPixes, c = a.pageProperty.leftMarginPixes, d = a.pageProperty.widthPixes - c - a.pageProperty.rightMarginPixes, u = a.pageProperty.bottomMarginPixes - a.pageProperty.footerYPixes, f = Math.floor((a.pageProperty.heightPixes - a.pageProperty.footerYPixes) / 2 - a.pageProperty.heightPixes / 5), p = d;
14830
+ super(r, HeaderFooterType.hftFoot, o, n, c, s, d, u, p, f), this._hoEditorFactoryID = r, this._allowAcrossPage = !1, this._displayHeight = a.pageProperty.bottomMarginPixes;
14866
14831
  }
14867
14832
  get actualHeight() {
14868
14833
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -14972,10 +14937,7 @@ class SubDocManger {
14972
14937
  }
14973
14938
  }
14974
14939
  bindEvent() {
14975
- HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.addEventListener(
14976
- PageAreaChangedEvent.eventName,
14977
- (r) => this.onPageAreaChanged(r)
14978
- );
14940
+ HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.addEventListener(PageAreaChangedEvent.eventName, (r) => this.onPageAreaChanged(r));
14979
14941
  }
14980
14942
  // public newSubDocCopyAreas(type: HeaderFooterType, path: string): DrawArea {
14981
14943
  // if (type === HeaderFooterType.hftFoot) {
@@ -15081,22 +15043,12 @@ class SubDocManger {
15081
15043
  if (o === 0) {
15082
15044
  const n = new SubDocTree(r, "");
15083
15045
  this._headerDocTree.push(n);
15084
- const a = new ParagraphNode(
15085
- this._hoEditorFactoryID,
15086
- n.subDocNodes,
15087
- null,
15088
- 0
15089
- );
15046
+ const a = new ParagraphNode(this._hoEditorFactoryID, n.subDocNodes, null, 0);
15090
15047
  n.subDocNodes.push(a);
15091
15048
  } else {
15092
15049
  const n = new SubDocTree(r, "");
15093
15050
  this._footerDocTree.push(n);
15094
- const a = new ParagraphNode(
15095
- this._hoEditorFactoryID,
15096
- n.subDocNodes,
15097
- null,
15098
- 0
15099
- );
15051
+ const a = new ParagraphNode(this._hoEditorFactoryID, n.subDocNodes, null, 0);
15100
15052
  n.subDocNodes.push(a);
15101
15053
  }
15102
15054
  }
@@ -15167,11 +15119,7 @@ class SubDocManger {
15167
15119
  */
15168
15120
  updateAllSameSubDoc(r, o, n, a) {
15169
15121
  var v;
15170
- const [s, c] = this.getAllSameSubDocPageRange(
15171
- r,
15172
- o,
15173
- n
15174
- );
15122
+ const [s, c] = this.getAllSameSubDocPageRange(r, o, n);
15175
15123
  let d = 0;
15176
15124
  const u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
15177
15125
  let f = null;
@@ -15179,7 +15127,8 @@ class SubDocManger {
15179
15127
  if (s > 0) {
15180
15128
  const C = u.drawPageTree.drawMainDocs[s - 1];
15181
15129
  C.isEndLineFinished() ? d = C.endDline + 1 : d = C.endDline;
15182
- } else d = 0;
15130
+ } else
15131
+ d = 0;
15183
15132
  const p = this.getSubDocCopyDrawArea(r, o);
15184
15133
  let g = 0, y = 0;
15185
15134
  p && (g = p.displayHeight);
@@ -15188,17 +15137,11 @@ class SubDocManger {
15188
15137
  y = m.displayHeight;
15189
15138
  for (let C = s; C <= c; C++) {
15190
15139
  const w = this.copySubDocToPages(m, C, o), b = (v = u.drawTree.drawPages[C].drawDomLevel) == null ? void 0 : v.stage;
15191
- w && b && g === y ? u.drawPageTree.updateDrawPage(C) : (u.drawPageTree.calcMainDocPosition(C), u.drawTree.drawPages[C].reFreshBounds());
15140
+ w && b && g === y ? (u.drawTree.drawPages[C].reFreshBounds(), u.drawPageTree.updateDrawPage(C)) : (u.drawPageTree.calcMainDocPosition(C), u.drawTree.drawPages[C].reFreshBounds());
15192
15141
  }
15193
15142
  if (f && g !== y && !a) {
15194
15143
  let C = f.topDline.y;
15195
- f.contains(f.topDline) && f.topDline instanceof DrawPageTable && f.topDline.table.drawTable.drawPageTables.indexOf(f.topDline) > 0 && (C = 0), u.drawPageTree.update(
15196
- f,
15197
- u.drawTree.mainDNodes,
15198
- C,
15199
- d,
15200
- u.drawTree.mainDNodes.length - 1
15201
- );
15144
+ f.contains(f.topDline) && f.topDline instanceof DrawPageTable && f.topDline.table.drawTable.drawPageTables.indexOf(f.topDline) > 0 && (C = 0), u.drawPageTree.update(f, u.drawTree.mainDNodes, C, d, u.drawTree.mainDNodes.length - 1);
15202
15145
  }
15203
15146
  }
15204
15147
  }
@@ -15207,7 +15150,7 @@ class SubDocManger {
15207
15150
  * @param pageIndex 查找起始页
15208
15151
  * @param type 页类型
15209
15152
  * @param onlyAfter 是否只更新pageIndex的后续页
15210
- * @returns
15153
+ * @returns
15211
15154
  */
15212
15155
  getAllSameSubDocPageRange(r, o, n) {
15213
15156
  let a = r, s = r;
@@ -15220,12 +15163,7 @@ class SubDocManger {
15220
15163
  onPageAreaChanged(r) {
15221
15164
  const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
15222
15165
  if (r.oldActiveArea instanceof DrawHeader) {
15223
- r.oldActiveArea.changed && this.updateAllSameSubDoc(
15224
- r.oldPageIndex,
15225
- 0,
15226
- !1,
15227
- !1
15228
- ), r.oldActiveArea.changed = !1;
15166
+ r.oldActiveArea.changed && this.updateAllSameSubDoc(r.oldPageIndex, 0, !1, !1), r.oldActiveArea.changed = !1;
15229
15167
  const n = this.getSubDocCopyDrawArea(
15230
15168
  r.oldPageIndex,
15231
15169
  0
@@ -15233,12 +15171,7 @@ class SubDocManger {
15233
15171
  ), a = o.drawTree.drawPages[r.oldPageIndex];
15234
15172
  a && (a.drawDocContainer.removeChild(r.oldActiveArea), a.drawDocContainer.addChild(n), n.y = o.pageProperty.headerYPixes, n.x = o.pageProperty.leftMarginPixes, a.drawHeader = n, o.drawPageTree.updateDrawPage(a.pageIndex));
15235
15173
  } else if (r.oldActiveArea instanceof DrawFooter) {
15236
- r.oldActiveArea.changed && this.updateAllSameSubDoc(
15237
- r.oldPageIndex,
15238
- 1,
15239
- !1,
15240
- !1
15241
- ), r.oldActiveArea.changed = !1;
15174
+ r.oldActiveArea.changed && this.updateAllSameSubDoc(r.oldPageIndex, 1, !1, !1), r.oldActiveArea.changed = !1;
15242
15175
  const n = this.getSubDocCopyDrawArea(
15243
15176
  r.oldPageIndex,
15244
15177
  1
@@ -15292,23 +15225,16 @@ class SubDocManger {
15292
15225
  r.drawNodes[0].updatePaint();
15293
15226
  }
15294
15227
  clearPageMarkNode(r, o) {
15295
- const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(
15296
- n
15297
- );
15228
+ const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(n);
15298
15229
  for (let s = a.length - 1; s >= 0; s--) {
15299
15230
  const c = a[s];
15300
15231
  c.drawNodes[0].removePageMarkDrawNode(c, r);
15301
15232
  }
15302
15233
  }
15303
15234
  repaintPageMarkNodes(r, o) {
15304
- const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(
15305
- n
15306
- );
15235
+ const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(n);
15307
15236
  for (let s = a.length - 1; s >= 0; s--)
15308
- a[s].drawNodes[0].repaintPageMarkNodes(
15309
- r,
15310
- o
15311
- );
15237
+ a[s].drawNodes[0].repaintPageMarkNodes(r, o);
15312
15238
  }
15313
15239
  }
15314
15240
  var module = { exports: {} }, exports = module.exports;
@@ -16128,10 +16054,10 @@ class DrawSignNode extends DrawCombineNode {
16128
16054
  }
16129
16055
  }
16130
16056
  }
16131
- const version$1 = "3.2.4";
16057
+ const version$1 = "3.2.6";
16132
16058
  var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
16133
16059
  class SignNode extends BaseNode {
16134
- constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp) {
16060
+ constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
16135
16061
  super(hoEditorFactoryID, rootNodes, pNode, nodeType);
16136
16062
  _(this, "_dataId", "");
16137
16063
  //dataId
@@ -16182,6 +16108,7 @@ class SignNode extends BaseNode {
16182
16108
  _(this, "_associatedElement", "");
16183
16109
  //关联元素的dataid
16184
16110
  _(this, "isTemp", !1);
16111
+ _(this, "innerIdentifier", "");
16185
16112
  const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
16186
16113
  this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.imgSrc = imgSrc, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
16187
16114
  const assignvalue = (target, source) => {
@@ -16189,7 +16116,7 @@ class SignNode extends BaseNode {
16189
16116
  typeof target[value] == "object" ? Object.prototype.toString.call(source[value]) === "[object Object]" ? assignvalue(target[value], source[value]) : source[value] !== "" && source[value] !== null && assignvalue(target[value], eval("(" + source[value] + ")")) : target[value] = source[value];
16190
16117
  });
16191
16118
  };
16192
- customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), this.node2DrawNodeRange(0, 0);
16119
+ customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), innerIdentifier ? this.innerIdentifier = innerIdentifier : this.innerIdentifier || (this.attribute == 1 ? this.innerIdentifier = "sign_doctor_" + Math.random().toString(36).substring(2) : this.innerIdentifier = "sign_patient_" + Math.random().toString(36).substring(2)), this.node2DrawNodeRange(0, 0);
16193
16120
  }
16194
16121
  // get id(): string {
16195
16122
  // return this._id;
@@ -16430,7 +16357,8 @@ class SignNode extends BaseNode {
16430
16357
  fingerPosition: a ? 0 : this.fingerPosition,
16431
16358
  attribute: this.attribute,
16432
16359
  connectChar: this.connectChar,
16433
- otherProperties: this.otherProperties
16360
+ otherProperties: this.otherProperties,
16361
+ innerIdentifier: this.innerIdentifier
16434
16362
  };
16435
16363
  return s.imgSrc.substring(0, 4) == "http" && (s.imgSrc = s.imgSrc.replace(`?_=${version$1}`, "")), this.associatedElement && (s.associatedElement = this.associatedElement), o ? s : {
16436
16364
  SignNode: s
@@ -16470,7 +16398,8 @@ class SignNode extends BaseNode {
16470
16398
  o.otherProperties,
16471
16399
  o.dataId,
16472
16400
  o.associatedElement,
16473
- m
16401
+ m,
16402
+ o.innerIdentifier
16474
16403
  );
16475
16404
  return Array.isArray(d.superiorSigns) && d.superiorSigns.includes(b.customProperty.bce01) && b.imgSrc ? d.structureConvert._superiorSign[0] = b : d.vueController.setLastSignNode(b), b;
16476
16405
  }
@@ -40021,12 +39950,7 @@ class DrawPageTree {
40021
39950
  if (n < this._drawMainDocs.length - 1)
40022
39951
  o = this._drawMainDocs[n + 1];
40023
39952
  else {
40024
- const a = new DrawPageMainDoc(
40025
- this._hoEditorFactoryID,
40026
- "main",
40027
- 0,
40028
- 0
40029
- );
39953
+ const a = new DrawPageMainDoc(this._hoEditorFactoryID, "main", 0, 0);
40030
39954
  this._drawMainDocs.push(a), this.calcMainDocPosition(n + 1), o = a;
40031
39955
  }
40032
39956
  }
@@ -40040,12 +39964,7 @@ class DrawPageTree {
40040
39964
  if (c < this._drawMainDocs.length - 1)
40041
39965
  a = this._drawMainDocs[c + 1];
40042
39966
  else {
40043
- const d = new DrawPageMainDoc(
40044
- this._hoEditorFactoryID,
40045
- "main",
40046
- c + 1,
40047
- 0
40048
- );
39967
+ const d = new DrawPageMainDoc(this._hoEditorFactoryID, "main", c + 1, 0);
40049
39968
  for (s = !0, this._drawMainDocs.push(d), this.calcMainDocPosition(c + 1, o); n.drawTree.drawPages.length < this._drawMainDocs.length; )
40050
39969
  n.drawTree.addPage(), n.drawTree.drawPageCount.count = n.drawTree.drawPages.length;
40051
39970
  a = d;
@@ -40206,33 +40125,21 @@ class DrawPageTree {
40206
40125
  const q = H.drawPageTables[H.drawPageTables.length - 1];
40207
40126
  q.isEndRowFinished() ? Y = q.endRow + 1 : Y = q.endRow;
40208
40127
  }
40209
- const U = H.paintTable(
40210
- d,
40211
- y,
40212
- C,
40213
- Y
40214
- );
40128
+ const U = H.paintTable(d, y, C, Y);
40215
40129
  U && (d.numChildren == 1 && (d.topDline = U), y = U.y + U.dHeight, d.allowAcrossPage && m.allowAcrossPage && (C = d.maxHeight - y)), W = H.isFinishedPaint();
40216
40130
  }
40217
40131
  y += B.lineSpace, C -= B.lineSpace;
40218
40132
  }
40219
40133
  } else {
40220
40134
  if (H.dHeight > C && y > 0) {
40221
- const W = u.drawTree.getParentDrawArea(
40222
- d
40223
- );
40135
+ const W = u.drawTree.getParentDrawArea(d);
40224
40136
  if (!W)
40225
40137
  throw new Error("无法绘制表格,找不到当前表格的父区域");
40226
40138
  const Y = d.drawPageTable, U = Y.table.drawTable.drawPageTables.indexOf(Y);
40227
40139
  let q = null;
40228
40140
  U > 0 && (q = Y.table.drawTable.drawPageTables[U - 1]);
40229
40141
  let G = Y.getMainRestHeight();
40230
- d.drawPageTable.table.drawTable.drawUpdate(
40231
- W,
40232
- q,
40233
- Y.y,
40234
- G
40235
- );
40142
+ d.drawPageTable.table.drawTable.drawUpdate(W, q, Y.y, G);
40236
40143
  break;
40237
40144
  }
40238
40145
  (b > n || b === n && !d.contains(H)) && (d.addChild(H), H.y = y), y = H.y + H.dHeight + H.paragraphNode.combineParagraph.lineSpace, d.allowAcrossPage && m.allowAcrossPage && (C = d.maxHeight - y);
@@ -46445,7 +46352,9 @@ class StructureConvert {
46445
46352
  return null;
46446
46353
  }
46447
46354
  replaceNodesName(r) {
46448
- const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), n = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|TextBorderNode|RareCharNode|JumpButtonNode|PopQScoreNode/g);
46355
+ const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), n = new RegExp(
46356
+ /\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|TextBorderNode|RareCharNode|JumpButtonNode|PopQScoreNode/g
46357
+ );
46449
46358
  return r = r.replace(n, "node"), r = o.unitConvert.replaceAll(r, "<TableFormula>", "<node>"), r = o.unitConvert.replaceAll(r, "</TableFormula>", "</node>"), r = o.unitConvert.replaceAll(r, "<End>", "<node>"), r = o.unitConvert.replaceAll(r, "</End>", "</node>"), r = o.unitConvert.replaceAll(r, "<PupilMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PupilMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<LightLocationMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</LightLocationMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<MenstrualHistoryNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</MenstrualHistoryNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<FetalHeartMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</FetalHeartMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<PermanentTeethMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PermanentTeethMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<PrimaryTeethMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PrimaryTeethMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<SliderNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</SliderNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<FigureNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</FigureNode>", "</node>"), r;
46450
46359
  }
46451
46360
  /**
@@ -46509,33 +46418,21 @@ class StructureConvert {
46509
46418
  const s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), c = new X2JS({ stripWhitespaces: !1, arrayAccessForm: "property" });
46510
46419
  if (r === "docProperty") {
46511
46420
  const u = s.docTree.docProperty;
46512
- return JSON.parse(
46513
- JSON.stringify(u, DocProperty.whiteList())
46514
- );
46421
+ return JSON.parse(JSON.stringify(u, DocProperty.whiteList()));
46515
46422
  }
46516
46423
  if (r === "pageSettings") {
46517
46424
  const u = s.pageProperty;
46518
- return JSON.parse(
46519
- JSON.stringify(u, PageProperty.whiteList())
46520
- );
46425
+ return JSON.parse(JSON.stringify(u, PageProperty.whiteList()));
46521
46426
  }
46522
46427
  if (r === "styles") {
46523
- const u = [], f = s.docTree.styles, p = f[0].combineStyle, g = JSON.parse(
46524
- JSON.stringify(p, CombineStyle.whiteList())
46525
- );
46428
+ const u = [], f = s.docTree.styles, p = f[0].combineStyle, g = JSON.parse(JSON.stringify(p, CombineStyle.whiteList()));
46526
46429
  for (let w = 1; w < f.length; w++) {
46527
- const b = f[w], N = b.combineStyle, E = JSON.parse(
46528
- JSON.stringify(N, CombineStyle.whiteList())
46529
- );
46430
+ const b = f[w], N = b.combineStyle, E = JSON.parse(JSON.stringify(N, CombineStyle.whiteList()));
46530
46431
  (b.size === void 0 || b.size === p.size) && delete E.size, (b.font === void 0 || b.font === p.font) && delete E.font, (b.color === void 0 || b.color === p.color) && delete E.color, (b.backColor === void 0 || b.backColor === p.backColor) && delete E.backColor, (b.bold === void 0 || b.bold === p.bold) && delete E.bold, (b.italic === void 0 || b.italic === p.italic) && delete E.italic, (b.underline === void 0 || b.underline === p.underline) && delete E.underline, (b.strikeout === void 0 || b.strikeout === p.strikeout) && delete E.strikeout, (b.script === void 0 || b.script === p.script) && delete E.script, (b.deleterIndex === -1 || b.deleterIndex === void 0 || b.deleterIndex === p.deleterIndex) && delete E.deleterIndex, (b.creatorIndex === -1 || b.creatorIndex === void 0 || b.creatorIndex === p.creatorIndex) && delete E.creatorIndex, (b.modifierIndex === -1 || b.modifierIndex === void 0 || b.modifierIndex === p.modifierIndex) && delete E.modifierIndex, a && b.commentID !== "0" && b.commentID !== void 0 && (b.commentID = "0"), (b.commentID === "0" || b.commentID === void 0 || b.commentID === p.commentID) && delete E.commentID, u.push(E);
46531
46432
  }
46532
- const y = [], m = s.docTree.paragraphs, v = m[0].combineStyle, C = JSON.parse(
46533
- JSON.stringify(v, CombineParagraph.whiteList())
46534
- );
46433
+ const y = [], m = s.docTree.paragraphs, v = m[0].combineStyle, C = JSON.parse(JSON.stringify(v, CombineParagraph.whiteList()));
46535
46434
  for (let w = 1; w < m.length; w++) {
46536
- const b = m[w], N = b.combineStyle, E = JSON.parse(
46537
- JSON.stringify(N, CombineParagraph.whiteList())
46538
- );
46435
+ const b = m[w], N = b.combineStyle, E = JSON.parse(JSON.stringify(N, CombineParagraph.whiteList()));
46539
46436
  (b.charSpace === void 0 || b.charSpace === v.charSpace) && delete E.charSpace, (b.lineSpace === void 0 || b.lineSpace === v.lineSpace) && delete E.lineSpace, (b.leftMargin === void 0 || b.leftMargin === v.leftMarginMm) && delete E.leftMarginMm, (b.rightMargin === void 0 || b.rightMargin === v.rightMarginMm) && delete E.rightMarginMm, (b.topMargin === void 0 || b.topMargin === v.topMarginMm) && delete E.topMarginMm, (b.bottomMargin === void 0 || b.bottomMargin === v.bottomMarginMm) && delete E.bottomMarginMm, (b.align === void 0 || b.align === v.align) && delete E.align, y.push(E);
46540
46437
  }
46541
46438
  return {
@@ -46548,18 +46445,14 @@ class StructureConvert {
46548
46445
  if (r === "comments") {
46549
46446
  const u = [];
46550
46447
  return a || s.drawTree.commentsMap.forEach((p) => {
46551
- const g = JSON.parse(
46552
- JSON.stringify(p, Comment.whiteList())
46553
- );
46448
+ const g = JSON.parse(JSON.stringify(p, Comment.whiteList()));
46554
46449
  g.customProperty = p.customProperty, u.push(g);
46555
46450
  }), { comment: u };
46556
46451
  }
46557
46452
  if (r === "userHistories") {
46558
46453
  const u = [], f = s.docTree.userHistories;
46559
46454
  for (let p = 0; p < f.length; p++) {
46560
- const g = f[p], y = JSON.parse(
46561
- JSON.stringify(g, UserHistory.whiteList())
46562
- );
46455
+ const g = f[p], y = JSON.parse(JSON.stringify(g, UserHistory.whiteList()));
46563
46456
  u.push(y);
46564
46457
  }
46565
46458
  return { userHistory: u };
@@ -46645,10 +46538,7 @@ class StructureConvert {
46645
46538
  let u = r.userHistories.userHistory;
46646
46539
  u.length == null && (u = Array(u));
46647
46540
  for (let D = 0; D < u.length; D++) {
46648
- const A = u[D], R = new UserHistory(
46649
- this._hoEditorFactoryID,
46650
- HistoryEditType.hetCreate
46651
- );
46541
+ const A = u[D], R = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate);
46652
46542
  Object.assign(R, A), R.permissionLevel = Number(A.permissionLevel), n.docTree.userHistories.push(R);
46653
46543
  }
46654
46544
  const f = r.styles;
@@ -46680,14 +46570,7 @@ class StructureConvert {
46680
46570
  const H = A.subDocNodes[L];
46681
46571
  if (!H)
46682
46572
  continue;
46683
- const B = n.structureConvert.convertNode(
46684
- H,
46685
- R.subDocNodes,
46686
- null,
46687
- O.subDocNodes,
46688
- void 0,
46689
- o
46690
- );
46573
+ const B = n.structureConvert.convertNode(H, R.subDocNodes, null, O.subDocNodes, void 0, o);
46691
46574
  if (B && (B.rootPath = "header/" + D.toString(), O.subDocNodes.push(B), D > 0 && L === 0 && B instanceof ParagraphNode)) {
46692
46575
  const W = new Array();
46693
46576
  W.push(B), R.subDocNodes = W;
@@ -46707,14 +46590,7 @@ class StructureConvert {
46707
46590
  const H = R.subDocNodes[L];
46708
46591
  if (!H)
46709
46592
  continue;
46710
- const B = n.structureConvert.convertNode(
46711
- H,
46712
- A.subDocNodes,
46713
- null,
46714
- O.subDocNodes,
46715
- void 0,
46716
- o
46717
- );
46593
+ const B = n.structureConvert.convertNode(H, A.subDocNodes, null, O.subDocNodes, void 0, o);
46718
46594
  if (B && (B.rootPath = "footer/" + D.toString(), O.subDocNodes.push(B), D > 0 && L === 0 && B instanceof ParagraphNode)) {
46719
46595
  const W = new Array();
46720
46596
  W.push(B), A.subDocNodes = W;
@@ -46728,14 +46604,7 @@ class StructureConvert {
46728
46604
  const A = N[D];
46729
46605
  if (!A || A.delete && A.delete == "1")
46730
46606
  continue;
46731
- const R = n.structureConvert.convertNode(
46732
- A,
46733
- n.docTree.mainNodes,
46734
- null,
46735
- E,
46736
- void 0,
46737
- o
46738
- );
46607
+ const R = n.structureConvert.convertNode(A, n.docTree.mainNodes, null, E, void 0, o);
46739
46608
  R && E.push(R);
46740
46609
  }
46741
46610
  const F = /* @__PURE__ */ new Map();
@@ -46766,237 +46635,72 @@ class StructureConvert {
46766
46635
  message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.425", null, "不允许将表格粘贴到文本域"));
46767
46636
  return;
46768
46637
  }
46769
- return TableNode.json2Node(
46770
- this._hoEditorFactoryID,
46771
- r,
46772
- o,
46773
- n,
46774
- s,
46775
- c,
46776
- d
46777
- );
46638
+ return TableNode.json2Node(this._hoEditorFactoryID, r, o, n, s, c, d);
46778
46639
  } else {
46779
46640
  if (r.nodeType == NodeType$1.ntParagraph)
46780
- return ParagraphNode.json2Node(
46781
- this._hoEditorFactoryID,
46782
- r,
46783
- o,
46784
- n
46785
- );
46641
+ return ParagraphNode.json2Node(this._hoEditorFactoryID, r, o, n);
46786
46642
  if (r.nodeType == NodeType$1.ntText)
46787
- return TextNode.json2Node(
46788
- this._hoEditorFactoryID,
46789
- r,
46790
- o,
46791
- n
46792
- );
46643
+ return TextNode.json2Node(this._hoEditorFactoryID, r, o, n);
46793
46644
  if (r.nodeType == NodeType$1.ntMedicalExpression) {
46794
46645
  if (r.expressType == "PupilMap")
46795
- return PupilMapNode.json2Node(
46796
- this._hoEditorFactoryID,
46797
- r,
46798
- o,
46799
- n
46800
- );
46646
+ return PupilMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46801
46647
  if (r.expressType == "LightLocationMap")
46802
- return LightLocationMapNode.json2Node(
46803
- this._hoEditorFactoryID,
46804
- r,
46805
- o,
46806
- n
46807
- );
46648
+ return LightLocationMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46808
46649
  if (r.expressType == "MenstrualHistory")
46809
- return MenstrualHistoryNode.json2Node(
46810
- this._hoEditorFactoryID,
46811
- r,
46812
- o,
46813
- n
46814
- );
46650
+ return MenstrualHistoryNode.json2Node(this._hoEditorFactoryID, r, o, n);
46815
46651
  if (r.expressType == "FetalHeartMap")
46816
- return FetalHeartMapNode.json2Node(
46817
- this._hoEditorFactoryID,
46818
- r,
46819
- o,
46820
- n
46821
- );
46652
+ return FetalHeartMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46822
46653
  if (r.expressType == "PermanentTeethMap")
46823
- return PermanentTeethMapNode.json2Node(
46824
- this._hoEditorFactoryID,
46825
- r,
46826
- o,
46827
- n
46828
- );
46654
+ return PermanentTeethMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46829
46655
  if (r.expressType == "PrimaryTeethMap")
46830
- return PrimaryTeethMapNode.json2Node(
46831
- this._hoEditorFactoryID,
46832
- r,
46833
- o,
46834
- n
46835
- );
46656
+ return PrimaryTeethMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46836
46657
  if (r.expressType == "PopQScore")
46837
- return PopQScoreNode.json2Node(
46838
- this._hoEditorFactoryID,
46839
- r,
46840
- o,
46841
- n
46842
- );
46658
+ return PopQScoreNode.json2Node(this._hoEditorFactoryID, r, o, n);
46843
46659
  } else if (r.nodeType == NodeType$1.ntImage) {
46844
46660
  if (r.imageType == "Image")
46845
- return ImageNode.json2Node(
46846
- this._hoEditorFactoryID,
46847
- r,
46848
- o,
46849
- n
46850
- );
46661
+ return ImageNode.json2Node(this._hoEditorFactoryID, r, o, n);
46851
46662
  if (r.imageType == "Barcode")
46852
- return BarcodeNode.json2Node(
46853
- this._hoEditorFactoryID,
46854
- r,
46855
- o,
46856
- n
46857
- );
46663
+ return BarcodeNode.json2Node(this._hoEditorFactoryID, r, o, n);
46858
46664
  if (r.imageType == "Qrcode")
46859
- return QrcodeNode.json2Node(
46860
- this._hoEditorFactoryID,
46861
- r,
46862
- o,
46863
- n
46864
- );
46665
+ return QrcodeNode.json2Node(this._hoEditorFactoryID, r, o, n);
46865
46666
  } else if (r.nodeType == NodeType$1.ntControl) {
46866
46667
  if (r.type == "ctDateTime")
46867
- return DateTimeNode.json2Node(
46868
- this._hoEditorFactoryID,
46869
- r,
46870
- o,
46871
- n,
46872
- s
46873
- );
46668
+ return DateTimeNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46874
46669
  if (r.type == "ctDownList")
46875
- return DownListNode.json2Node(
46876
- this._hoEditorFactoryID,
46877
- r,
46878
- o,
46879
- n,
46880
- s
46881
- );
46670
+ return DownListNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46882
46671
  if (r.type == "ctRadioAndCheckBox")
46883
- return RadioAndCheckBoxNode.json2Node(
46884
- this._hoEditorFactoryID,
46885
- r,
46886
- o,
46887
- n,
46888
- s
46889
- );
46672
+ return RadioAndCheckBoxNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46890
46673
  } else {
46891
46674
  if (r.nodeType == NodeType$1.ntField)
46892
- return TextInputFieldNode.json2Node(
46893
- this._hoEditorFactoryID,
46894
- r,
46895
- o,
46896
- n,
46897
- s,
46898
- c
46899
- );
46675
+ return TextInputFieldNode.json2Node(this._hoEditorFactoryID, r, o, n, s, c);
46900
46676
  if (r.nodeType == NodeType$1.ntSpecialChar)
46901
- return SpecialCharsNode.json2Node(
46902
- this._hoEditorFactoryID,
46903
- r,
46904
- o,
46905
- n
46906
- );
46677
+ return SpecialCharsNode.json2Node(this._hoEditorFactoryID, r, o, n);
46907
46678
  if (r.nodeType == NodeType$1.ntMark)
46908
- return MarkNode.json2Node(
46909
- this._hoEditorFactoryID,
46910
- r,
46911
- o,
46912
- n
46913
- );
46679
+ return MarkNode.json2Node(this._hoEditorFactoryID, r, o, n);
46914
46680
  if (r.nodeType == NodeType$1.ntPageCount)
46915
- return PageCountNode.json2Node(
46916
- this._hoEditorFactoryID,
46917
- r,
46918
- o,
46919
- n
46920
- );
46681
+ return PageCountNode.json2Node(this._hoEditorFactoryID, r, o, n);
46921
46682
  if (r.nodeType == NodeType$1.ntPageNum)
46922
- return PageNumNode.json2Node(
46923
- this._hoEditorFactoryID,
46924
- r,
46925
- o,
46926
- n
46927
- );
46683
+ return PageNumNode.json2Node(this._hoEditorFactoryID, r, o, n);
46928
46684
  if (r.nodeType == NodeType$1.ntTableFormula)
46929
- return TableFormula$1.json2Node(
46930
- this._hoEditorFactoryID,
46931
- r,
46932
- o,
46933
- n
46934
- );
46685
+ return TableFormula$1.json2Node(this._hoEditorFactoryID, r, o, n);
46935
46686
  if (r.nodeType == NodeType$1.ntSeparateChar)
46936
- return SeparateCharNode.json2Node(
46937
- this._hoEditorFactoryID,
46938
- r,
46939
- o,
46940
- n
46941
- );
46687
+ return SeparateCharNode.json2Node(this._hoEditorFactoryID, r, o, n);
46942
46688
  if (r.nodeType == NodeType$1.ntLabel)
46943
- return LabelNode.json2Node(
46944
- this._hoEditorFactoryID,
46945
- r,
46946
- o,
46947
- n
46948
- );
46689
+ return LabelNode.json2Node(this._hoEditorFactoryID, r, o, n);
46949
46690
  if (r.nodeType == NodeType$1.ntTextBorder)
46950
- return TextBorderNode.json2Node(
46951
- this._hoEditorFactoryID,
46952
- r,
46953
- o,
46954
- n
46955
- );
46691
+ return TextBorderNode.json2Node(this._hoEditorFactoryID, r, o, n);
46956
46692
  if (r.nodeType == NodeType$1.ntSign)
46957
- return SignNode.json2Node(
46958
- this._hoEditorFactoryID,
46959
- r,
46960
- o,
46961
- n,
46962
- c,
46963
- s
46964
- );
46693
+ return SignNode.json2Node(this._hoEditorFactoryID, r, o, n, c, s);
46965
46694
  if (r.nodeType == NodeType$1.ntGestation)
46966
- return GestationNode.json2Node(
46967
- this._hoEditorFactoryID,
46968
- r,
46969
- o,
46970
- n
46971
- );
46695
+ return GestationNode.json2Node(this._hoEditorFactoryID, r, o, n);
46972
46696
  if (r.nodeType == NodeType$1.ntRareChar)
46973
- return RareCharNode.json2Node(
46974
- this._hoEditorFactoryID,
46975
- r,
46976
- o,
46977
- n
46978
- );
46697
+ return RareCharNode.json2Node(this._hoEditorFactoryID, r, o, n);
46979
46698
  if (r.nodeType == NodeType$1.ntJumpButton)
46980
- return JumpButtonNode.json2Node(
46981
- this._hoEditorFactoryID,
46982
- r,
46983
- o,
46984
- n
46985
- );
46699
+ return JumpButtonNode.json2Node(this._hoEditorFactoryID, r, o, n);
46986
46700
  if (r.nodeType == NodeType$1.ntSlider)
46987
- return SliderNode.json2Node(
46988
- this._hoEditorFactoryID,
46989
- r,
46990
- o,
46991
- n
46992
- );
46701
+ return SliderNode.json2Node(this._hoEditorFactoryID, r, o, n);
46993
46702
  if (r.nodeType == NodeType$1.ntFigure)
46994
- return FigureNode.json2Node(
46995
- this._hoEditorFactoryID,
46996
- r,
46997
- o,
46998
- n
46999
- );
46703
+ return FigureNode.json2Node(this._hoEditorFactoryID, r, o, n);
47000
46704
  }
47001
46705
  }
47002
46706
  }
@@ -47074,9 +46778,7 @@ class StructureConvert {
47074
46778
  const W = A[L + 1], Y = new ParagraphNode(this._hoEditorFactoryID, H.rootNodes, null, 0);
47075
46779
  W instanceof ParagraphNode && W.printAsSinglePage || !(W instanceof ParagraphNode) ? (a.docTree.insertNodeAfterPath(B, Y), R = Y) : (a.docTree.insertNodeAfterPath(B, W), R = W, L = L + 1), a.docTree.insertNodeAfterPath(B, H);
47076
46780
  } else
47077
- B = a.docTree.getNodeLastPath(
47078
- R
47079
- ), a.docTree.insertNodeAfterPath(B, H), R = H;
46781
+ B = a.docTree.getNodeLastPath(R), a.docTree.insertNodeAfterPath(B, H), R = H;
47080
46782
  H instanceof MarkNode && this._markNodes.push(H), H instanceof TextNode && H.errorIndex != null && this._errTextNodes.push(H);
47081
46783
  }
47082
46784
  }, c = r.get("header");
@@ -47089,20 +46791,8 @@ class StructureConvert {
47089
46791
  }
47090
46792
  const O = a.subDocManger.headerDocTree[A], L = O.subDocNodes[0];
47091
46793
  s(R.subDocNodes, L);
47092
- const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(
47093
- O.subDocNodes[H]
47094
- ), W = new NodeChangeEvent(
47095
- this._hoEditorFactoryID,
47096
- DocAction.daInsert,
47097
- "header/" + A.toString() + "/0",
47098
- B
47099
- );
47100
- W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(
47101
- A,
47102
- HeaderFooterType.hftHead,
47103
- !0,
47104
- !0
47105
- );
46794
+ const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(O.subDocNodes[H]), W = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "header/" + A.toString() + "/0", B);
46795
+ W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(A, HeaderFooterType.hftHead, !0, !0);
47106
46796
  }
47107
46797
  const d = r.get("footer");
47108
46798
  if (d)
@@ -47114,26 +46804,12 @@ class StructureConvert {
47114
46804
  }
47115
46805
  const O = a.subDocManger.footerDocTree[A], L = O.subDocNodes[0];
47116
46806
  s(R.subDocNodes, L);
47117
- const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(
47118
- O.subDocNodes[H]
47119
- ), W = new NodeChangeEvent(
47120
- this._hoEditorFactoryID,
47121
- DocAction.daInsert,
47122
- "footer/" + A.toString() + "/0",
47123
- B
47124
- );
47125
- W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(
47126
- A,
47127
- HeaderFooterType.hftFoot,
47128
- !0,
47129
- !0
47130
- );
46807
+ const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(O.subDocNodes[H]), W = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "footer/" + A.toString() + "/0", B);
46808
+ W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(A, HeaderFooterType.hftFoot, !0, !0);
47131
46809
  }
47132
46810
  const u = r.get("main"), f = a.docTree.mainNodes[0];
47133
46811
  n && u.length > 1 && u[u.length - 1] instanceof ParagraphNode && !(u[u.length - 2] instanceof TableNode) && u.splice(u.length - 1, 1), s(u, f);
47134
- const p = a.docTree.mainNodes.length - 1, g = a.docTree.getNodeLastPath(
47135
- a.docTree.mainNodes[p]
47136
- ), y = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "main/0", g);
46812
+ const p = a.docTree.mainNodes.length - 1, g = a.docTree.getNodeLastPath(a.docTree.mainNodes[p]), y = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "main/0", g);
47137
46813
  a.docTree.change(y);
47138
46814
  let m = [];
47139
46815
  if (this._comments.length === void 0 ? m = Array(this._comments) : m = this._comments, this._markNodes.length > 0)
@@ -50084,11 +49760,7 @@ class VueController {
50084
49760
  let a = 0, s = 0;
50085
49761
  if (n && n.node) {
50086
49762
  const [c, d, u, f] = o.inSameTableCell();
50087
- if (a = r.pageProperty.widthPixes - r.pageProperty.leftMarginPixes - r.pageProperty.rightMarginPixes - 20, s = r.pageProperty.heightPixes - r.drawTree.caret.Y - r.pageProperty.bottomMarginPixes - 30, c && u) {
50088
- a = u.drawCell.dWidth - 10;
50089
- const p = u.table.rowInfos[u.table.rows.indexOf(u.row)];
50090
- p.rowProperty.isSpecifyHeight && (s = p.rowHeight - 10);
50091
- }
49763
+ a = r.pageProperty.widthPixes - r.pageProperty.leftMarginPixes - r.pageProperty.rightMarginPixes - 20, s = r.pageProperty.heightPixes - r.drawTree.caret.Y - r.pageProperty.bottomMarginPixes - 30, c && u && (a = u.drawCell.dWidth - 10, u.table.rowInfos[u.table.rows.indexOf(u.row)].rowProperty.isSpecifyHeight);
50092
49764
  }
50093
49765
  return {
50094
49766
  maxWidth: a,
@@ -50100,11 +49772,7 @@ class VueController {
50100
49772
  let c = 0, d = 0, u = [];
50101
49773
  if (n.length && s && s.node) {
50102
49774
  const [y, m, v, C] = a.inSameTableCell();
50103
- if (c = o.pageProperty.widthPixes - o.pageProperty.leftMarginPixes - o.pageProperty.rightMarginPixes - 20, d = o.pageProperty.heightPixes - o.drawTree.caret.Y - o.pageProperty.bottomMarginPixes - 30, y && v) {
50104
- c = v.drawCell.dWidth - 10;
50105
- const b = v.table.rowInfos[v.table.rows.indexOf(v.row)];
50106
- b.rowProperty.isSpecifyHeight && (d = b.rowHeight - 10);
50107
- }
49775
+ c = o.pageProperty.widthPixes - o.pageProperty.leftMarginPixes - o.pageProperty.rightMarginPixes - 20, d = o.pageProperty.heightPixes - o.drawTree.caret.Y - o.pageProperty.bottomMarginPixes - 30, y && v && (c = v.drawCell.dWidth - 10, v.table.rowInfos[v.table.rows.indexOf(v.row)].rowProperty.isSpecifyHeight);
50108
49776
  const w = o.drawTree.getDrawLineByDNode(s.node.drawNodes[0]);
50109
49777
  if (w.children && w.children.length > 0) {
50110
49778
  const b = new TextNode(this._hoEditorFactoryID, s.roots, s.node.parentNode, NodeType$1.ntText, `
@@ -53354,12 +53022,7 @@ class VueController {
53354
53022
  if (p && p.node) {
53355
53023
  const [g, y, m, v] = f.inSameTableCell();
53356
53024
  if (g && m) {
53357
- d = m.drawCell.dWidth - 10;
53358
- const C = m.table.rowInfos[m.table.rows.indexOf(m.row)];
53359
- if (C.rowProperty.isSpecifyHeight) {
53360
- let b = C.rowHeight - 10;
53361
- u > b && (u = b);
53362
- }
53025
+ d = m.drawCell.dWidth - 10, m.table.rowInfos[m.table.rows.indexOf(m.row)].rowProperty.isSpecifyHeight;
53363
53026
  const w = m.table.colInfos[m.row.indexOf(m)];
53364
53027
  w.colProperty.isSpecifyWidth && (d = w.colWidth - 10);
53365
53028
  }
@@ -65900,7 +65563,7 @@ WebPDecoder.prototype.getData = function() {
65900
65563
  (function(l) {
65901
65564
  function r() {
65902
65565
  return function() {
65903
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B2bOlI8M.mjs");
65566
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DHgZmRse.mjs");
65904
65567
  }().catch(function(o) {
65905
65568
  return Promise.reject(new Error("Could not load canvg: " + o));
65906
65569
  }).then(function(o) {
@@ -87301,7 +86964,7 @@ var _sfc_render$3 = function l() {
87301
86964
  var r = this, o = r._self._c;
87302
86965
  return r._self._setupProxy, o("div", { ref: "hoEmrToolBarBox", staticClass: "ho-emr-toolbar-box ho-toolbar-box" }, [o("div", { ref: "hoEmrToolLeft", staticClass: "ho-emr-tool-left" }, [r._t("HoToolLeft")], 2), o("div", { staticClass: "ho-emr-tool-list ho-emr-tool-center" }, [r._l(r.toolList, function(n, a) {
87303
86966
  return [o("HoToolItem", { attrs: { tool: n, fontInfo: r.fontInfo, vueController: r.vueController } })];
87304
- }), o("div", { staticClass: "ho-emr-tool-item" }, [o("a-dropdown", { attrs: { trigger: ["click"], placement: "bottomRight" }, model: { value: r.moreVisible, callback: function(n) {
86967
+ }), o("div", { staticClass: "ho-emr-tool-item" }, [o("a-dropdown", { attrs: { trigger: ["click"], overlayClassName: "ho-emr-tool-more-dropdown", placement: "bottomCenter", arrow: "" }, model: { value: r.moreVisible, callback: function(n) {
87305
86968
  r.moreVisible = n;
87306
86969
  }, expression: "moreVisible" } }, [o("a", { staticClass: "ant-dropdown-link", on: { click: (n) => n.preventDefault() } }, [o("a-icon", { attrs: { type: "ellipsis" } })], 1), o("div", { staticClass: "ho-emr-tool-more", attrs: { slot: "overlay" }, slot: "overlay" }, [o("div", { staticClass: "ho-emr-tool-list" }, [r._l(r.moreList, function(n, a) {
87307
86970
  return [o("HoToolItem", { attrs: { tool: n, fontInfo: r.fontInfo, vueController: r.vueController } })];