@silurus/ooxml 0.14.1 → 0.15.1
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/README.md +107 -101
- package/dist/{docx-Q9meJO2G.js → docx-C_zG3e0V.js} +3 -2
- package/dist/{docx-DOf7BLnj.cjs → docx-DKPVLT6O.cjs} +1 -1
- package/dist/docx.cjs +1 -1
- package/dist/docx.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{pptx-DVyrqUyw.js → pptx-B76oTVMe.js} +3 -1
- package/dist/{pptx-BMJO4Oqg.cjs → pptx-BiUBfZZA.cjs} +1 -1
- package/dist/pptx.cjs +1 -1
- package/dist/pptx.mjs +1 -1
- package/dist/types/docx.d.ts +3 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/pptx.d.ts +2 -0
- package/dist/types/xlsx.d.ts +2 -0
- package/dist/{xlsx-DHjDLAqt.js → xlsx-B3-MeECM.js} +56 -32
- package/dist/{xlsx-59JnO368.cjs → xlsx-CWkWdRpm.cjs} +2 -2
- package/dist/xlsx.cjs +1 -1
- package/dist/xlsx.mjs +1 -1
- package/package.json +15 -15
package/dist/docx.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./autoResize-ggn4hzd8.cjs`),t=require(`./docx-
|
|
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
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-BiUBfZZA.cjs`),t=require(`./xlsx-CWkWdRpm.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-
|
|
2
|
-
import { t } from "./xlsx-
|
|
3
|
-
import { t as n } from "./docx-
|
|
1
|
+
import { t as e } from "./pptx-B76oTVMe.js";
|
|
2
|
+
import { t } from "./xlsx-B3-MeECM.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
|
|
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() {
|