hoeditor-web 3.1.163 → 3.1.165
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.
- package/lib/hoeditor.umd.js +46 -85
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -64163,12 +64163,11 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64163
64163
|
cell = _this$getMainCell14[0],
|
|
64164
64164
|
mr = _this$getMainCell14[1],
|
|
64165
64165
|
mc = _this$getMainCell14[2];
|
|
64166
|
-
if (cell &&
|
|
64167
|
-
newMaxR = cell.rowSpan - 1;
|
|
64166
|
+
if (cell && mr + cell.rowSpan - 1 > newMaxR) {
|
|
64167
|
+
newMaxR = mr + cell.rowSpan - 1;
|
|
64168
64168
|
}
|
|
64169
64169
|
}
|
|
64170
64170
|
}
|
|
64171
|
-
// maxR = this.getSelectMaxR(maxR);
|
|
64172
64171
|
for (var _j3 = 0; _j3 <= maxR; _j3++) {
|
|
64173
64172
|
headerRowHeight += this.drawTable.drawPageTables[0].getPartRowHeight(_j3);
|
|
64174
64173
|
}
|
|
@@ -65190,20 +65189,12 @@ var es_regexp_to_string = __webpack_require__(39714);
|
|
|
65190
65189
|
var es_array_slice = __webpack_require__(47042);
|
|
65191
65190
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
65192
65191
|
var es_json_stringify = __webpack_require__(38862);
|
|
65193
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
65194
|
-
var es_regexp_exec = __webpack_require__(74916);
|
|
65195
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
65196
|
-
var es_string_replace = __webpack_require__(15306);
|
|
65197
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
65198
|
-
var es_array_includes = __webpack_require__(26699);
|
|
65199
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
65200
|
-
var es_string_includes = __webpack_require__(32023);
|
|
65201
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
65202
|
-
var es_array_push = __webpack_require__(57658);
|
|
65203
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
65204
|
-
var es_array_join = __webpack_require__(69600);
|
|
65205
65192
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
65206
65193
|
var es_array_splice = __webpack_require__(40561);
|
|
65194
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
65195
|
+
var es_array_join = __webpack_require__(69600);
|
|
65196
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
65197
|
+
var es_array_push = __webpack_require__(57658);
|
|
65207
65198
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
65208
65199
|
var es_object_assign = __webpack_require__(19601);
|
|
65209
65200
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
@@ -65212,6 +65203,10 @@ var es_array_concat = __webpack_require__(92222);
|
|
|
65212
65203
|
var es_number_constructor = __webpack_require__(9653);
|
|
65213
65204
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
65214
65205
|
var es_error_cause = __webpack_require__(21703);
|
|
65206
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
65207
|
+
var es_array_includes = __webpack_require__(26699);
|
|
65208
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
65209
|
+
var es_string_includes = __webpack_require__(32023);
|
|
65215
65210
|
// EXTERNAL MODULE: ./src/editor/draw/DrawLine.ts + 1 modules
|
|
65216
65211
|
var DrawLine = __webpack_require__(96635);
|
|
65217
65212
|
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
@@ -67003,8 +66998,6 @@ var PopQScoreNode = __webpack_require__(12790);
|
|
|
67003
66998
|
|
|
67004
66999
|
|
|
67005
67000
|
|
|
67006
|
-
|
|
67007
|
-
|
|
67008
67001
|
|
|
67009
67002
|
|
|
67010
67003
|
|
|
@@ -68227,40 +68220,39 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68227
68220
|
}
|
|
68228
68221
|
});
|
|
68229
68222
|
};
|
|
68230
|
-
if (this.inputFieldType === InputFieldType.dropDownList) {
|
|
68231
|
-
|
|
68232
|
-
|
|
68233
|
-
|
|
68234
|
-
|
|
68235
|
-
|
|
68236
|
-
|
|
68237
|
-
|
|
68238
|
-
|
|
68239
|
-
|
|
68240
|
-
|
|
68241
|
-
|
|
68242
|
-
|
|
68243
|
-
|
|
68244
|
-
|
|
68245
|
-
|
|
68246
|
-
|
|
68247
|
-
|
|
68248
|
-
|
|
68249
|
-
|
|
68250
|
-
|
|
68251
|
-
|
|
68252
|
-
|
|
68253
|
-
|
|
68254
|
-
|
|
68255
|
-
|
|
68256
|
-
|
|
68257
|
-
|
|
68258
|
-
|
|
68259
|
-
|
|
68260
|
-
|
|
68261
|
-
|
|
68262
|
-
|
|
68263
|
-
}
|
|
68223
|
+
// if (this.inputFieldType === InputFieldType.dropDownList) {
|
|
68224
|
+
// text = "";
|
|
68225
|
+
// loopChildNodes(this);
|
|
68226
|
+
// if (text.replace(/\n/g, '') != this.text.replace(/\n/g, '') && isNeed && !this.text.includes("<span>") && !this.downListProperty.listItems?.includes("<元素>") && this.readType != 1) {
|
|
68227
|
+
// this.value = "";
|
|
68228
|
+
// if (this.text == '' && !this.keyValue) {
|
|
68229
|
+
// this.keyValue = "";
|
|
68230
|
+
// }
|
|
68231
|
+
// return text;
|
|
68232
|
+
// } else {
|
|
68233
|
+
// text = "";
|
|
68234
|
+
// }
|
|
68235
|
+
// const downListProperty = this.downListProperty;
|
|
68236
|
+
// if (downListProperty.listItems) {
|
|
68237
|
+
// let listItems = JSON.parse(downListProperty.listItems);
|
|
68238
|
+
// if (listItems.length === undefined) {
|
|
68239
|
+
// listItems = Array(JSON.parse(downListProperty.listItems));
|
|
68240
|
+
// }
|
|
68241
|
+
// let value: string[] = [];
|
|
68242
|
+
// const keyValue: string[] = this.keyValue.split(',');
|
|
68243
|
+
// for (let i = 0; i < listItems.length; i++) {
|
|
68244
|
+
// const listItem = listItems[i];
|
|
68245
|
+
// if (keyValue.includes(listItem.id.toString())) {
|
|
68246
|
+
// const index = listItem.text.indexOf('<元素>');
|
|
68247
|
+
// text += index === -1 ? listItem.text : listItem.text.substring(0, index);
|
|
68248
|
+
// text += this.downListProperty.splitCharacter;
|
|
68249
|
+
// String(listItem.value) && value.push(listItem.value);
|
|
68250
|
+
// }
|
|
68251
|
+
// }
|
|
68252
|
+
// text = text.substring(0, text.length - 1).replace('\r', '');
|
|
68253
|
+
// this.value = value.join(',');
|
|
68254
|
+
// }
|
|
68255
|
+
// }
|
|
68264
68256
|
if (text === '') {
|
|
68265
68257
|
loopChildNodes(this);
|
|
68266
68258
|
}
|
|
@@ -74165,7 +74157,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
74165
74157
|
var aHeight = this._cell.drawCell.calcCellHeight();
|
|
74166
74158
|
var cellMaxHeigth = Math.min(maxHeight, aHeight);
|
|
74167
74159
|
if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vatop) {
|
|
74168
|
-
valignTop =
|
|
74160
|
+
valignTop = 1;
|
|
74169
74161
|
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vacenter && cellMaxHeigth > this._cell.drawCell.docHeight) {
|
|
74170
74162
|
valignTop = (cellMaxHeigth - this._cell.drawCell.docHeight) / 2;
|
|
74171
74163
|
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_15__/* .VAlign */ .TR.vabottom && aHeight > this._cell.drawCell.docHeight) {
|
|
@@ -78609,7 +78601,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78609
78601
|
}
|
|
78610
78602
|
}
|
|
78611
78603
|
}
|
|
78612
|
-
//this._partRowHeights.get(r)?.rowHeight
|
|
78613
78604
|
if (aHeight && rowHeight) {
|
|
78614
78605
|
if (y >= top && y <= top + rowHeight) {
|
|
78615
78606
|
row = r;
|
|
@@ -78631,7 +78622,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78631
78622
|
}
|
|
78632
78623
|
}
|
|
78633
78624
|
throw new Error("\u627E\u4E0D\u5230\u5728\u5750\u6807x:".concat(x, " y:").concat(y, "\u7684\u5355\u5143\u683C"));
|
|
78634
|
-
// if(((dItem as unknown) as DrawInfos).x+
|
|
78635
78625
|
}
|
|
78636
78626
|
// public update(
|
|
78637
78627
|
// dArea: DrawArea,
|
|
@@ -78867,7 +78857,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78867
78857
|
if (_mc3 > 0) {
|
|
78868
78858
|
dPartCell.x = aleft;
|
|
78869
78859
|
}
|
|
78870
|
-
//this.drawItems.push(dPartCell);
|
|
78871
78860
|
this.addChild(dPartCell);
|
|
78872
78861
|
var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
78873
78862
|
dPartCell.y = cellRowTop;
|
|
@@ -78900,19 +78889,8 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78900
78889
|
}
|
|
78901
78890
|
}
|
|
78902
78891
|
}
|
|
78903
|
-
// cell.drawCell.update(
|
|
78904
|
-
// aPageIndex,
|
|
78905
|
-
// dPageTable,
|
|
78906
|
-
// 0,
|
|
78907
|
-
// cell.drawCell.drawLines.length - 1,
|
|
78908
|
-
// adTop,
|
|
78909
|
-
// aRestHeight
|
|
78910
|
-
// );
|
|
78911
|
-
// }
|
|
78912
78892
|
}
|
|
78913
|
-
//const oldHeight = this._partRowHeights.get(r)?.rowHeight;
|
|
78914
78893
|
rowHeight = Math.min(this.getAndUpdatePartRowHeight(r), pageRestHeight);
|
|
78915
|
-
// if (oldHeight !== rowHeight)
|
|
78916
78894
|
this._endRow = r;
|
|
78917
78895
|
if (bRowHeightChanged) this.updateRowPartCellHeight(r, rowHeight);
|
|
78918
78896
|
rowTop = rowTop + rowHeight + emptyRowHeight;
|
|
@@ -78925,9 +78903,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78925
78903
|
break;
|
|
78926
78904
|
}
|
|
78927
78905
|
}
|
|
78928
|
-
// if (!bRowHeightChanged) {
|
|
78929
|
-
// this.updateRowPartCellHeight(this._endRow, rowHeight)
|
|
78930
|
-
// }
|
|
78931
78906
|
//绘制最后一行的单元格存在结束行非当前页时,需要特殊处理
|
|
78932
78907
|
this.updateLastLineMergeCrossCell(prevdPageTable, this._endRow, rowHeight, tableRestHeight);
|
|
78933
78908
|
var aHeight = 0;
|
|
@@ -79617,20 +79592,6 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
79617
79592
|
}
|
|
79618
79593
|
this._borderShape.graphics.drawRect(0, this._dHeight, this._dWidth, 1);
|
|
79619
79594
|
}
|
|
79620
|
-
// /**
|
|
79621
|
-
// * @author xyl
|
|
79622
|
-
// * @param startPath 起始绘制点
|
|
79623
|
-
// * @param endPath 结束绘制点
|
|
79624
|
-
// * @returns 迭代绘制范围
|
|
79625
|
-
// */
|
|
79626
|
-
// public *listDrawLineByPathRange(startLine: number, endLine: number) {
|
|
79627
|
-
// if (startLine === -1) {
|
|
79628
|
-
// return;
|
|
79629
|
-
// }
|
|
79630
|
-
// for (let i = startLine; i <= endLine; i++) {
|
|
79631
|
-
// yield i;
|
|
79632
|
-
// }
|
|
79633
|
-
// }
|
|
79634
79595
|
}, {
|
|
79635
79596
|
key: "clearDrawAfterDline",
|
|
79636
79597
|
value: function clearDrawAfterDline(aline) {
|
|
@@ -80137,7 +80098,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
80137
80098
|
if (node.parentNode instanceof _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_9__/* .CellNode */ .D) {
|
|
80138
80099
|
var cellWidth = node.parentNode.drawCell.dWidth;
|
|
80139
80100
|
if (width > cellWidth - 5) {
|
|
80140
|
-
drawNode.dHeight = (cellWidth - 5) * drawNode.dHeight / width;
|
|
80101
|
+
drawNode.dHeight = (cellWidth - 5) * drawNode.dHeight / width - 2;
|
|
80141
80102
|
scale = (cellWidth - 5) / width * scale;
|
|
80142
80103
|
width = cellWidth - 5;
|
|
80143
80104
|
}
|
|
@@ -210515,7 +210476,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210515
210476
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210516
210477
|
var ParagraphNode = __webpack_require__(67945);
|
|
210517
210478
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210518
|
-
/* harmony default export */ var version = ('3.1.
|
|
210479
|
+
/* harmony default export */ var version = ('3.1.165');
|
|
210519
210480
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210520
210481
|
var PoperTipText = __webpack_require__(84531);
|
|
210521
210482
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|