@silurus/ooxml 0.75.5 → 0.76.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 +66 -28
- package/dist/bounded-raw-part-cache-C6ro6Ezf.js +254 -0
- package/dist/{find-cursor-Dc5iM6s7.js → canvas-viewer-mechanics-CwVSOYke.js} +192 -64
- package/dist/{document-pull-client-BcNYhoAG.js → document-pull-client-DQNen8c4.js} +3620 -3597
- package/dist/docx-DYRguRRi.js +1301 -0
- package/dist/docx.mjs +4 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-B8sqT8kC.js → line-distribute-C1r2zvji.js} +141 -141
- package/dist/{line-metrics-D9gqQWHl.js → line-metrics-BdCACYlq.js} +4026 -1170
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +779 -465
- package/dist/pptx-B-EJp83T.js +1735 -0
- package/dist/pptx.mjs +5 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-CalC7GX4.js → render-CLcpSi0m.js} +11 -18
- package/dist/render-worker-host-Bkf1jUcW.js +27 -0
- package/dist/render-worker-host-CKOmXdyr.js +27 -0
- package/dist/render-worker-host-DWLyqwI3.js +27 -0
- package/dist/resource-measurement-E_S_iau4.js +119 -0
- package/dist/session-B4Y54cbT.js +730 -0
- package/dist/{renderer-B9R6F_QY.js → slide-pull-client-WCuYCjio.js} +973 -820
- package/dist/types/docx.d.ts +1181 -3994
- package/dist/types/index.d.ts +2733 -8171
- package/dist/types/math.d.ts +8 -33
- package/dist/types/node.d.ts +1852 -4433
- package/dist/types/pptx.d.ts +1030 -3678
- package/dist/types/xlsx.d.ts +1291 -3262
- package/dist/worksheet-pull-client-YzjJMOns.js +455 -0
- package/dist/xlsx-BBmmZNQn.js +6362 -0
- package/dist/xlsx.mjs +5 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +14 -7
- package/dist/bounded-raw-part-cache-BTfZD_Sz.js +0 -1248
- package/dist/docx-DjF8FgoP.js +0 -1274
- package/dist/duotone-bitmap-by-path-CWsSJkJu.js +0 -28
- package/dist/hyperlink-D85FexTa.js +0 -27
- package/dist/pptx-C17xP8AV.js +0 -1705
- package/dist/pptx-Dl8tOSmP.js +0 -822
- package/dist/preload-BEouWnlI.js +0 -132
- package/dist/render-worker-host-BG3a7brz.js +0 -27
- package/dist/render-worker-host-CsB-dPJv.js +0 -27
- package/dist/render-worker-host-Cyv5Hkbh.js +0 -27
- package/dist/resource-measurement-6aReN3K0.js +0 -93
- package/dist/slide-pull-client-D_T0AIoX.js +0 -175
- package/dist/svg-image-by-path-C1M3N2pT.js +0 -1623
- package/dist/worksheet-pull-worker-DCei8u-4.js +0 -347
- package/dist/xlsx-BaH9irS0.js +0 -5515
- /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-CAkCWJ37.js} +0 -0
- /package/dist/{mathjax-Dqo857oC.js → mathjax-CMjda8Ip.js} +0 -0
- /package/dist/{transfer-3QEJrsJa.js → transfer-DCu4c2BL.js} +0 -0
- /package/dist/{visible-index-CKvgpUrf.js → visible-index-CgyJLAS_.js} +0 -0
package/dist/types/math.d.ts
CHANGED
|
@@ -1,41 +1,16 @@
|
|
|
1
|
-
//#region dist/.types-work/mathjax-
|
|
2
|
-
//#region packages/core/src/math/mathjax.d.ts
|
|
1
|
+
//#region dist/.types-work/mathjax-CKU2W8zq.d.ts
|
|
3
2
|
interface MathSvg {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ascentEm: number;
|
|
9
|
-
descentEm: number;
|
|
3
|
+
svg: string;
|
|
4
|
+
widthEm: number;
|
|
5
|
+
ascentEm: number;
|
|
6
|
+
descentEm: number;
|
|
10
7
|
}
|
|
11
|
-
/**
|
|
12
|
-
* The math engine contract a viewer needs to render equations. Satisfied by the
|
|
13
|
-
* `math` named export of the separate `@silurus/ooxml/math` entry point, which
|
|
14
|
-
* the consumer opts into:
|
|
15
|
-
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { DocxViewer } from '@silurus/ooxml/docx';
|
|
18
|
-
* import { math } from '@silurus/ooxml/math';
|
|
19
|
-
* new DocxViewer(canvas, { math });
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* Omit it and the equation engine (MathJax + STIX Two Math, ~3 MB) is never
|
|
23
|
-
* imported, so a bundler drops it entirely.
|
|
24
|
-
*/
|
|
25
8
|
interface MathRenderer {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/** MathML string → standalone SVG + baseline-relative em extents. */
|
|
29
|
-
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
9
|
+
loadMathJax(): Promise<void>;
|
|
10
|
+
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
30
11
|
}
|
|
31
12
|
//#endregion
|
|
32
13
|
//#region dist/.types-work/math.d.ts
|
|
33
|
-
//#region src/math.d.ts
|
|
34
|
-
/**
|
|
35
|
-
* The OMML equation engine (MathJax + STIX Two Math). Pass it to a viewer's
|
|
36
|
-
* `math` option to enable equation rendering. Self-contained: no network, no
|
|
37
|
-
* cross-origin requests.
|
|
38
|
-
*/
|
|
39
14
|
declare const math: MathRenderer;
|
|
40
15
|
//#endregion
|
|
41
|
-
export { type MathRenderer, type MathSvg, math };
|
|
16
|
+
export { type MathRenderer, type MathSvg, math };
|