@zphhhhh/docx-preview 0.4.20 → 0.4.22

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.
@@ -3789,8 +3789,8 @@ class values {
3789
3789
  return globalXmlParser.lengthAttr(c, "w");
3790
3790
  }
3791
3791
  static valueOfBorder(c) {
3792
- let type = globalXmlParser.attr(c, "val");
3793
- if (type == "nil") {
3792
+ let type = values.parseBorderType(globalXmlParser.attr(c, "val"));
3793
+ if (type == "none") {
3794
3794
  return "none";
3795
3795
  }
3796
3796
  let color = xmlUtil.colorAttr(c, "color");
@@ -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);