@silurus/ooxml 0.62.0 → 0.64.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 +9 -2
- package/dist/docx-bm_nejFi.js +2196 -0
- package/dist/docx.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/pptx-BMkeLNP-.js +2035 -0
- package/dist/pptx.mjs +2 -2
- package/dist/render-worker-host-4w5qj_dW.js +27 -0
- package/dist/render-worker-host-CpdJg0Em.js +27 -0
- package/dist/render-worker-host-j-N9SY-5.js +27 -0
- package/dist/{src-D377dlK7.js → src-DaB2HHXH.js} +596 -292
- package/dist/types/docx.d.ts +35 -1
- package/dist/types/index.d.ts +197 -20
- package/dist/types/pptx.d.ts +98 -9
- package/dist/types/xlsx.d.ts +65 -11
- package/dist/xlsx-D8CS3kbR.js +3987 -0
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
- package/dist/docx-T14vhkTM.js +0 -2140
- package/dist/pptx-D26eLmSN.js +0 -1894
- package/dist/render-worker-host-5ujZbyy-.js +0 -27
- package/dist/render-worker-host-BbPdLKW3.js +0 -27
- package/dist/render-worker-host-hySSiyes.js +0 -27
- package/dist/xlsx-CCGJYt-x.js +0 -3915
package/README.md
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
<img src="docs/images/icon.png" alt="office-open-xml-viewer" width="160" height="160">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Office Open XML Viewer
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@silurus/ooxml)
|
|
10
10
|
[](https://www.npmjs.com/package/@silurus/ooxml)
|
|
11
|
+
[](https://marketplace.visualstudio.com/items?itemName=silurus.office-open-xml-viewer)
|
|
11
12
|
[](./LICENSE)
|
|
12
13
|
|
|
13
14
|
**[Live demo](https://ooxml.silurus.dev)**
|
|
@@ -438,7 +439,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
438
439
|
| | Hyperlinks | ✅ |
|
|
439
440
|
| | Superscript / subscript (`w:vertAlign`) | ✅ |
|
|
440
441
|
| | Ruby annotations / furigana (`w:ruby`) | ✅ |
|
|
441
|
-
| **Formatting** | Paragraph alignment (left/center/right/justify) | ✅ |
|
|
442
|
+
| **Formatting** | Paragraph alignment (left / center / right / justify / distribute — CJK `both`/`distribute` spread by inter-character pitch, §17.18.44) | ✅ |
|
|
442
443
|
| | Line spacing (auto / atLeast / exact) | ✅ |
|
|
443
444
|
| | Line grid (`w:docGrid`, §17.6.5) | ✅ |
|
|
444
445
|
| | Margin collapsing between paragraphs | ✅ |
|
|
@@ -456,6 +457,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
456
457
|
| | Right-to-left table column order (`w:bidiVisual`, §17.4.1) | ✅ |
|
|
457
458
|
| | Math equations (OMML `m:oMath` / `m:oMathPara`, rendered via MathJax — opt-in `@silurus/ooxml/math`) | ✅ |
|
|
458
459
|
| | Images (inline and anchored, with text wrap) | ✅ |
|
|
460
|
+
| | SVG images (`asvg:svgBlip` MS-2016 extension — vector drawn from the embedded `.svg`, raster fallback) | ✅ |
|
|
459
461
|
| | Text boxes / drawing shapes (`wps:txbx`, `a:prstGeom` — 186 preset geometries via the shared engine; connector arrow heads `headEnd` / `tailEnd` (§20.1.8.3) and `prstDash` dash patterns (§20.1.8.48)) | ✅ |
|
|
460
462
|
| | WMF / EMF metafile images (legacy vector) | ❌ Not planned |
|
|
461
463
|
| **Advanced** | Footnotes — reference markers + bottom-of-page bodies with separator rule, numbered (`w:footnoteReference` / `w:footnoteRef`, §17.11) | ✅ |
|
|
@@ -487,6 +489,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
487
489
|
| | Diagonal borders (`diagonalUp` / `diagonalDown`, single + double) | ✅ |
|
|
488
490
|
| | Horizontal / vertical alignment | ✅ |
|
|
489
491
|
| | Text wrapping | ✅ |
|
|
492
|
+
| | Japanese kinsoku line breaking in wrapped cells (行頭/行末禁則, shared core engine) | ✅ |
|
|
490
493
|
| | Number formats (`0.00`, `%`, `#,##0`, custom date/time) | ✅ |
|
|
491
494
|
| **Structure** | Merged cells | ✅ |
|
|
492
495
|
| | Right-to-left sheets (`sheetView rightToLeft`, §18.3.1.87 — mirrored grid, headers, selection, scroll) | ✅ |
|
|
@@ -494,6 +497,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
494
497
|
| | Row / column sizing (custom widths and heights) | ✅ |
|
|
495
498
|
| | Hidden rows / columns | ✅ |
|
|
496
499
|
| **Elements** | Images (`<xdr:twoCellAnchor>`) | ✅ |
|
|
500
|
+
| | SVG images (`asvg:svgBlip` MS-2016 extension — vector drawn from the embedded `.svg`, raster fallback) | ✅ |
|
|
497
501
|
| | Drawing shapes / text boxes (`xdr:sp`, `xdr:txBody` — 186 preset geometries via the shared engine, with `avLst` adjust handles) | ✅ |
|
|
498
502
|
| | Math equations in shapes (OMML `m:oMath` / `m:oMathPara` in `xdr:txBody`, incl. `a14:m` / `mc:AlternateContent`; rendered via MathJax — opt-in `@silurus/ooxml/math`) | ✅ |
|
|
499
503
|
| | Charts (bar, line, area, pie, doughnut, radar, scatter / bubble) | ✅ |
|
|
@@ -529,6 +533,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
529
533
|
| | Animations / transitions | ❌ Not planned |
|
|
530
534
|
| **Element types** | Shapes (`sp`) | ✅ |
|
|
531
535
|
| | Pictures (`pic`) | ✅ |
|
|
536
|
+
| | SVG images (`asvg:svgBlip` MS-2016 extension — vector drawn from the embedded `.svg`, PNG fallback) | ✅ |
|
|
532
537
|
| | Groups (`grpSp`) with nested transforms | ✅ |
|
|
533
538
|
| | Connectors (`cxnSp`) | ✅ |
|
|
534
539
|
| | Tables (`tbl` in `graphicFrame`) | ✅ |
|
|
@@ -574,6 +579,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
574
579
|
| | Hyperlinks (`hlinkClick` — theme `hlink` colour + auto underline) | ✅ |
|
|
575
580
|
| | Text shadow (`rPr > effectLst > outerShdw`) | ✅ |
|
|
576
581
|
| | Text outline (`rPr > a:ln`) | ✅ |
|
|
582
|
+
| | Text highlight / marker (`a:highlight` — §21.1.2.3.4) | ✅ |
|
|
577
583
|
| | Math equations (OMML `m:oMath` / `m:oMathPara`, incl. `a14:m` / `mc:AlternateContent`; STIX Two Math via MathJax — opt-in `@silurus/ooxml/math`) | ✅ |
|
|
578
584
|
| **Text — paragraphs** | Horizontal alignment (left / center / right / justify) | ✅ |
|
|
579
585
|
| | Vertical anchor (top / center / bottom) | ✅ |
|
|
@@ -588,6 +594,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
588
594
|
| | normAutoFit (shrink to fit) | ✅ |
|
|
589
595
|
| | spAutoFit (expand box; suppresses wrap when text fits in one line) | ✅ |
|
|
590
596
|
| | Word wrap / no wrap | ✅ |
|
|
597
|
+
| | Japanese kinsoku line breaking (`a:pPr@eaLnBrk`, §21.1.2.2.7 — 行頭/行末禁則, shared core engine) | ✅ |
|
|
591
598
|
| | Multi-column text body (`numCol` / `spcCol` — balanced flow) | ✅ |
|
|
592
599
|
| | Theme object-default inheritance (`<a:objectDefaults><a:txDef\|spDef>` bodyPr fallback) | ✅ |
|
|
593
600
|
| **Tables** | Cells, rows, columns | ✅ |
|