@silurus/ooxml 0.80.2 → 0.81.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/README.md +57 -77
- package/dist/assets/render-worker-C2ACcLes.js +11 -0
- package/dist/assets/render-worker-Cx5uR77k.js +10 -0
- package/dist/assets/render-worker-DtU8oQZ7.js +24 -0
- package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CqxKRGCp.js} +1 -1
- package/dist/chart-ex.mjs +1017 -0
- package/dist/{document-pull-client-Cukkyojh.js → document-pull-client-Ux4a_ax8.js} +4540 -4412
- package/dist/{docx-BlELeDNF.js → docx-SEyQ4gS-.js} +79 -75
- package/dist/docx.mjs +5 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-BBGvvwLt.js} +17 -16
- package/dist/{line-metrics-DdEJYxjx.js → line-metrics-Baz31mML.js} +663 -7488
- package/dist/math.mjs +29 -24
- package/dist/node.mjs +248 -247
- package/dist/plot-area-frame-Dg1VIpUU.js +3669 -0
- package/dist/{pptx-JBkXh6Cy.js → pptx-5lQrMvMR.js} +236 -232
- package/dist/pptx.mjs +6 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +102 -97
- package/dist/{render-CoqMHcbF.js → render-DEHjijQD.js} +1 -1
- package/dist/{render-worker-host-CM1JXVqg.js → render-worker-host-B1nbV_k7.js} +1 -1
- package/dist/{render-worker-host-DFtd9Z-J.js → render-worker-host-Bze5M6k5.js} +1 -1
- package/dist/{render-worker-host-Br7ZDyGE.js → render-worker-host-Dg_74V64.js} +1 -1
- package/dist/renderer-DuopJE1K.js +5855 -0
- package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-0bO_5SC0.js} +4 -3
- package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-DRLp4nFt.js} +12 -11
- package/dist/{session-DkPblDiq.js → session-CNVc3VJ4.js} +8 -8
- package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CzutXnGc.js} +888 -1082
- package/dist/three-d-BYiWCNlz.js +1345 -0
- package/dist/three-d.mjs +1238 -798
- package/dist/types/chart-ex.d.ts +949 -0
- package/dist/types/docx.d.ts +325 -18
- package/dist/types/index.d.ts +325 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +303 -14
- package/dist/types/pptx.d.ts +314 -22
- package/dist/types/region-map.d.ts +318 -6
- package/dist/types/three-d.d.ts +318 -6
- package/dist/types/xlsx.d.ts +317 -18
- package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-Cxj3Ej0s.js} +19 -19
- package/dist/{xlsx-dhsUXUpX.js → xlsx-Bl3TIEVu.js} +1313 -1279
- package/dist/xlsx.mjs +6 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +7 -1
- package/dist/assets/render-worker-BD1_LaFD.js +0 -9
- package/dist/assets/render-worker-BIqMQFkZ.js +0 -8
- package/dist/assets/render-worker-DuvX4_li.js +0 -22
- package/dist/chart-number-format-qLhnk6hj.js +0 -475
- package/dist/three-d-C28kqDym.js +0 -1086
- /package/dist/{highlight-rect-BuX5rWP4.js → highlight-rect-BqcZMHUE.js} +0 -0
- /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DJa-Q93p.js} +0 -0
- /package/dist/{transfer-CKZ79zFw.js → transfer-D0U6Uhn4.js} +0 -0
- /package/dist/{visible-index-BjesVGhg.js → visible-index-DbDuGMCE.js} +0 -0
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./docx-
|
|
2
|
-
import { t } from "./xlsx-
|
|
3
|
-
import { t as n } from "./pptx-
|
|
1
|
+
import { t as e } from "./docx-SEyQ4gS-.js";
|
|
2
|
+
import { t } from "./xlsx-Bl3TIEVu.js";
|
|
3
|
+
import { t as n } from "./pptx-5lQrMvMR.js";
|
|
4
4
|
export { e as docx, n as pptx, t as xlsx };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nt as e, b as t, w as n, x as r } from "./line-metrics-Baz31mML.js";
|
|
2
|
+
import { _ as i } from "./plot-area-frame-Dg1VIpUU.js";
|
|
2
3
|
//#region packages/core/src/fonts/symbol-font.ts
|
|
3
4
|
var a = {
|
|
4
5
|
167: "♣",
|
|
@@ -912,10 +913,10 @@ function I(e, t, n) {
|
|
|
912
913
|
y: e.y + i * o
|
|
913
914
|
};
|
|
914
915
|
}
|
|
915
|
-
function L(e, n, r,
|
|
916
|
+
function L(e, t, n, r, a, o, s, c) {
|
|
916
917
|
if (a.type === "none") return;
|
|
917
|
-
let { lw: l, halfW: u, len: d } = M(a, o, s), f = c ??
|
|
918
|
-
switch (e.save(), e.translate(
|
|
918
|
+
let { lw: l, halfW: u, len: d } = M(a, o, s), f = c ?? i(o.color);
|
|
919
|
+
switch (e.save(), e.translate(t, n), e.rotate(r), e.fillStyle = f, e.strokeStyle = f, e.lineWidth = l, e.setLineDash([]), e.beginPath(), a.type) {
|
|
919
920
|
case "triangle":
|
|
920
921
|
case "stealth":
|
|
921
922
|
e.moveTo(0, 0), e.lineTo(-d, -u), e.lineTo(-d, u), e.closePath(), e.fill();
|
|
@@ -935,9 +936,9 @@ function L(e, n, r, i, a, o, s, c) {
|
|
|
935
936
|
//#endregion
|
|
936
937
|
//#region packages/core/src/text/line-distribute.ts
|
|
937
938
|
var R = (e) => e === 32 || e === 12288;
|
|
938
|
-
function z(e,
|
|
939
|
-
if (Math.abs(
|
|
940
|
-
let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? e.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ??
|
|
939
|
+
function z(e, i, a = {}) {
|
|
940
|
+
if (Math.abs(i) <= .5) return null;
|
|
941
|
+
let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? e.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ?? n, u = a.isWhitespace ?? R, d = a.seaClusterGaps ?? !1, f = [];
|
|
941
942
|
for (let t = o; t < e.length; t++) {
|
|
942
943
|
let n = e[t];
|
|
943
944
|
if (n === void 0) continue;
|
|
@@ -965,20 +966,20 @@ function z(e, t, a = {}) {
|
|
|
965
966
|
if (p === -1 || p === m) return null;
|
|
966
967
|
let h = Array(f.length).fill(!1), g = 0;
|
|
967
968
|
for (let e = p; e < m; e++) {
|
|
968
|
-
let
|
|
969
|
-
if (
|
|
970
|
-
if (
|
|
969
|
+
let n = f[e];
|
|
970
|
+
if (n.si === s) continue;
|
|
971
|
+
if (n.ws) {
|
|
971
972
|
h[e] = !0, g++;
|
|
972
973
|
continue;
|
|
973
974
|
}
|
|
974
|
-
let
|
|
975
|
-
if (
|
|
976
|
-
let a =
|
|
977
|
-
(a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 &&
|
|
975
|
+
let i = f[e + 1];
|
|
976
|
+
if (i.ws) continue;
|
|
977
|
+
let a = n.cp, o = i.cp;
|
|
978
|
+
(a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 && r(a) && r(o) && !t(o)) && (h[e] = !0, g++);
|
|
978
979
|
}
|
|
979
980
|
if (g === 0) return null;
|
|
980
|
-
let _ =
|
|
981
|
-
|
|
981
|
+
let _ = i / g;
|
|
982
|
+
i < 0 && _ < c && (_ = c);
|
|
982
983
|
let v = /* @__PURE__ */ new Map();
|
|
983
984
|
for (let e of f) e.cp !== void 0 && v.set(e.si, (v.get(e.si) ?? 0) + 1);
|
|
984
985
|
let y = /* @__PURE__ */ new Map();
|