hoeditor-web 3.1.206 → 3.1.207

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.
@@ -130732,11 +130732,14 @@ class DrawImageNode extends DrawCombineNode/* DrawCombineNode */.A {
130732
130732
  }
130733
130733
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
130734
130734
  var BaseNode = __webpack_require__(29269);
130735
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
130736
+ var CellNode = __webpack_require__(90900);
130735
130737
  ;// ./src/editor/dom/treeNode/ImageNode.ts
130736
130738
 
130737
130739
 
130738
130740
 
130739
130741
 
130742
+
130740
130743
  class ImageNode extends BaseNode/* BaseNode */.Yp {
130741
130744
  // 内部标识符
130742
130745
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, id, imageDataBase64String, width, height,
@@ -130771,8 +130774,6 @@ class ImageNode extends BaseNode/* BaseNode */.Yp {
130771
130774
  (0,defineProperty/* default */.A)(this, "_innerIdentifier", void 0);
130772
130775
  this._id = id;
130773
130776
  this._dataId = id;
130774
- this._width = width;
130775
- this._height = height;
130776
130777
  this._imageDataBase64String = imageDataBase64String;
130777
130778
  this._remark = "";
130778
130779
  this._isFormula = options !== null && options !== void 0 && options.isFormula ? options.isFormula : false;
@@ -130782,6 +130783,17 @@ class ImageNode extends BaseNode/* BaseNode */.Yp {
130782
130783
  this.innerIdentifier = (options === null || options === void 0 ? void 0 : options.innerIdentifier) || '';
130783
130784
  //this._scaleX = scaleX ? scaleX : 1;
130784
130785
  //this._scaleY = scaleY ? scaleY : 1;
130786
+ if (this.parentNode && this.parentNode instanceof CellNode/* CellNode */.H) {
130787
+ const rowInfos = this.parentNode.table.rowInfos[this.parentNode.table.rows.indexOf(this.parentNode.row)];
130788
+ if (rowInfos.rowProperty.isSpecifyHeight) {
130789
+ let rowHeight = rowInfos.rowHeight - 10;
130790
+ if (height > rowHeight) {
130791
+ height = rowHeight;
130792
+ }
130793
+ }
130794
+ }
130795
+ this._width = width;
130796
+ this._height = height;
130785
130797
  this.node2DrawNodeRange(0, 0);
130786
130798
  }
130787
130799
  get hoEditorFactoryID() {
@@ -223222,7 +223234,7 @@ var entry_lib_TextNode = __webpack_require__(32083);
223222
223234
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
223223
223235
  var entry_lib_ParagraphNode = __webpack_require__(40504);
223224
223236
  ;// ./src/components/version.ts
223225
- /* harmony default export */ var entry_lib_version = ('3.1.206');
223237
+ /* harmony default export */ var entry_lib_version = ('3.1.207');
223226
223238
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
223227
223239
  var entry_lib_PoperTipText = __webpack_require__(89316);
223228
223240
  ;// ./src/components/controls/poperTipText/index.ts
@@ -234958,6 +234970,10 @@ class entry_lib_VueController {
234958
234970
  maxHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.drawTree.caret.Y - hoEditorFactory.pageProperty.bottomMarginPixes - 30;
234959
234971
  if (isInTable && scell) {
234960
234972
  maxWidth = scell.drawCell.dWidth - 10;
234973
+ const rowInfos = scell.table.rowInfos[scell.table.rows.indexOf(scell.row)];
234974
+ if (rowInfos.rowProperty.isSpecifyHeight) {
234975
+ maxHeight = rowInfos.rowHeight - 20;
234976
+ }
234961
234977
  }
234962
234978
  const dLine = hoEditorFactory.drawTree.getDrawLineByDNode(npStart.node.drawNodes[0]);
234963
234979
  if (dLine.children && dLine.children.length > 0) {
@@ -240110,8 +240126,24 @@ class entry_lib_VueController {
240110
240126
  };
240111
240127
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
240112
240128
  const firstPageMainDoc = hoEditorFactory.drawTree.drawPages[0].drawMainDoc;
240113
- const mathWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
240114
- const mathHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.pageProperty.topMarginPixes - hoEditorFactory.pageProperty.bottomMarginPixes - 20;
240129
+ let mathWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
240130
+ let mathHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.pageProperty.topMarginPixes - hoEditorFactory.pageProperty.bottomMarginPixes - 20;
240131
+ const curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
240132
+ const npStart = curDomRange.npStart;
240133
+ if (npStart && npStart.node) {
240134
+ const [isInTable, table, scell, ecell] = curDomRange.inSameTableCell();
240135
+ if (isInTable && scell) {
240136
+ mathWidth = scell.drawCell.dWidth - 10;
240137
+ const rowInfos = scell.table.rowInfos[scell.table.rows.indexOf(scell.row)];
240138
+ if (rowInfos.rowProperty.isSpecifyHeight) {
240139
+ mathHeight = rowInfos.rowHeight - 20;
240140
+ }
240141
+ const colInfos = scell.table.colInfos[scell.row.indexOf(scell)];
240142
+ if (colInfos.colProperty.isSpecifyWidth) {
240143
+ mathWidth = colInfos.colWidth - 10;
240144
+ }
240145
+ }
240146
+ }
240115
240147
  bounds = {
240116
240148
  width: Math.max(mathWidth, firstPageMainDoc.docWidth),
240117
240149
  height: Math.min(firstPageMainDoc.dHeight, mathHeight),