@silurus/ooxml 0.14.1 → 0.15.0

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.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./autoResize-ggn4hzd8.cjs`),t=require(`./docx-DOf7BLnj.cjs`);exports.DocxDocument=t.r,exports.DocxViewer=t.n,exports.autoResize=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./autoResize-ggn4hzd8.cjs`),t=require(`./docx-DKPVLT6O.cjs`);exports.DocxDocument=t.r,exports.DocxViewer=t.n,exports.autoResize=e.t;
package/dist/docx.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "./autoResize-U2-IRmNE.js";
2
- import { n as t, r as n } from "./docx-Q9meJO2G.js";
2
+ import { n as t, r as n } from "./docx-C_zG3e0V.js";
3
3
  export { n as DocxDocument, t as DocxViewer, e as autoResize };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-BMJO4Oqg.cjs`),t=require(`./xlsx-59JnO368.cjs`),n=require(`./docx-DOf7BLnj.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return e.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return t.t}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-BiUBfZZA.cjs`),t=require(`./xlsx-59JnO368.cjs`),n=require(`./docx-DKPVLT6O.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return e.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return t.t}});
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./pptx-DVyrqUyw.js";
1
+ import { t as e } from "./pptx-B76oTVMe.js";
2
2
  import { t } from "./xlsx-DHjDLAqt.js";
3
- import { t as n } from "./docx-Q9meJO2G.js";
3
+ import { t as n } from "./docx-C_zG3e0V.js";
4
4
  export { n as docx, e as pptx, t as xlsx };
@@ -23221,6 +23221,7 @@ function V(e, t, n, r, i, a, o, s = null, c = 0, l = !1, u = !1, d = "#000000",
23221
23221
  w: s,
23222
23222
  h: l,
23223
23223
  fontSize: t.sizePx,
23224
+ font: t.font,
23224
23225
  shapeX: n,
23225
23226
  shapeY: r,
23226
23227
  shapeW: i,
@@ -23243,6 +23244,7 @@ function V(e, t, n, r, i, a, o, s = null, c = 0, l = !1, u = !1, d = "#000000",
23243
23244
  w: o,
23244
23245
  h: l,
23245
23246
  fontSize: t.sizePx,
23247
+ font: t.font,
23246
23248
  shapeX: n,
23247
23249
  shapeY: r,
23248
23250
  shapeW: i,
@@ -23835,7 +23837,7 @@ var $ = class e {
23835
23837
  }), r.appendChild(a);
23836
23838
  }
23837
23839
  let a = i.get(n), o = document.createElement("span");
23838
- o.textContent = t.text, o.style.cssText = `position:absolute;left:${t.inShapeX}px;top:${t.inShapeY}px;font-size:${t.fontSize}px;line-height:${t.h}px;white-space:pre;color:transparent;cursor:text;`, a.div.appendChild(o);
23840
+ o.textContent = t.text, o.style.cssText = `position:absolute;left:${t.inShapeX}px;top:${t.inShapeY}px;font:${t.font};line-height:${t.h}px;letter-spacing:0;white-space:pre;color:transparent;cursor:text;`, a.div.appendChild(o);
23839
23841
  }
23840
23842
  }
23841
23843
  destroy() {