@zphhhhh/docx-preview 0.4.21 → 0.4.23
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/dist/docx-preview.esm.js +7 -5
- package/dist/docx-preview.esm.js.map +1 -1
- package/dist/docx-preview.esm.min.js +1 -1
- package/dist/docx-preview.esm.min.js.map +1 -1
- package/dist/docx-preview.js +7 -5
- package/dist/docx-preview.js.map +1 -1
- package/dist/docx-preview.min.js +1 -1
- package/dist/docx-preview.min.js.map +1 -1
- package/package.json +1 -1
package/dist/docx-preview.esm.js
CHANGED
|
@@ -3479,8 +3479,8 @@ class DocumentParser {
|
|
|
3479
3479
|
style["vertical-align"] = values.valueOfTextAlignment(c);
|
|
3480
3480
|
break;
|
|
3481
3481
|
case "tcW":
|
|
3482
|
-
if (this.options.ignoreWidth)
|
|
3483
|
-
|
|
3482
|
+
if (this.options.ignoreWidth)
|
|
3483
|
+
break;
|
|
3484
3484
|
case "tblW":
|
|
3485
3485
|
style["width"] = values.valueOfSize(c, "w");
|
|
3486
3486
|
break;
|
|
@@ -6572,6 +6572,9 @@ class HtmlRendererSync {
|
|
|
6572
6572
|
this.tableVerticalMerges.push(this.currentVerticalMerge);
|
|
6573
6573
|
this.currentVerticalMerge = {};
|
|
6574
6574
|
this.currentCellPosition = { col: 0, row: 0 };
|
|
6575
|
+
if (elem.columns) {
|
|
6576
|
+
this.renderTableColumns(elem.columns, oTable);
|
|
6577
|
+
}
|
|
6575
6578
|
this.renderClass(elem, oTable);
|
|
6576
6579
|
this.renderStyleValues(elem.cssStyle, oTable);
|
|
6577
6580
|
let is_overflow;
|
|
@@ -6580,9 +6583,6 @@ class HtmlRendererSync {
|
|
|
6580
6583
|
oTable.dataset.overflow = Overflow.SELF;
|
|
6581
6584
|
return oTable;
|
|
6582
6585
|
}
|
|
6583
|
-
if (elem.columns) {
|
|
6584
|
-
this.renderTableColumns(elem.columns, oTable);
|
|
6585
|
-
}
|
|
6586
6586
|
oTable.dataset.overflow = yield this.renderChildren(elem, oTable);
|
|
6587
6587
|
this.currentVerticalMerge = this.tableVerticalMerges.pop();
|
|
6588
6588
|
this.currentCellPosition = this.tableCellPositions.pop();
|
|
@@ -6675,6 +6675,8 @@ class HtmlRendererSync {
|
|
|
6675
6675
|
renderDrawing(elem, parent) {
|
|
6676
6676
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6677
6677
|
const oDrawing = createElement('span');
|
|
6678
|
+
oDrawing.style.display = 'inline-block';
|
|
6679
|
+
oDrawing.style.position = 'relative';
|
|
6678
6680
|
oDrawing.style.textIndent = '0px';
|
|
6679
6681
|
oDrawing.dataset.wrap = elem === null || elem === void 0 ? void 0 : elem.props.wrapType;
|
|
6680
6682
|
this.renderStyleValues(elem.cssStyle, oDrawing);
|