@silurus/ooxml 0.89.8 → 0.89.10
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 -3
- package/dist/assets/{render-worker-DJiGqgi0.js → render-worker-Coh33rbW.js} +11 -11
- package/dist/assets/{render-worker-hPLJ82d2.js → render-worker-jGsxSIGb.js} +23 -23
- package/dist/{comment-overlay-controller-B7AoyoDK.js → comment-overlay-controller-b3tKmzMa.js} +11 -7
- package/dist/{comment-ui-runtime-C5eWtZSW.js → comment-ui-runtime-BkpFlPT0.js} +3 -3
- package/dist/{comment-ui-runtime-CV0I9faV.js → comment-ui-runtime-Bp37ytDC.js} +2 -2
- package/dist/{document-model-source-90ext13g.js → document-model-source-Ca2fk_Fc.js} +4 -4
- package/dist/{document-pull-client-DSYpUET2.js → document-pull-client-CTGM4i1m.js} +2447 -2406
- package/dist/{docx-DCCDnwrG.js → docx-B-47Ff78.js} +5 -5
- package/dist/{docx-G7pt7ajR.js → docx-DwdB7I59.js} +3 -3
- package/dist/{docx-model-source-Beon3BD5.js → docx-model-source-CWuvf9jk.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{host-layout-measure-Z2fIsmDw.js → host-layout-measure-IFLllYwV.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{pptx-Ci1Y9SS_.js → pptx-DbjWegUB.js} +27 -12
- package/dist/pptx.mjs +1 -1
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-3N7xLtmI.js → presentation-model-source-DLNioq7T.js} +2 -2
- package/dist/{render-worker-host-BZoh-wqR.js → render-worker-host-80mSndWp.js} +1 -1
- package/dist/{render-worker-host-BmVeB_mR.js → render-worker-host-pKls3F_t.js} +1 -1
- package/dist/{renderer-CCA_bQB8.js → renderer-DuYC3xXi.js} +1029 -917
- package/dist/types/docx.d.ts +3 -3
- package/dist/types/index.d.ts +7 -5
- package/dist/types/node.d.ts +2 -2
- package/dist/types/pptx.d.ts +3 -1
- package/dist/types/xlsx.d.ts +1 -1
- package/dist/{workbook-model-source-BHR8shXr.js → workbook-model-source-D1dmkDMP.js} +3 -3
- package/dist/{xlsx-7aY3Pbvh.js → xlsx-DA0uR1B1.js} +1 -1
- package/dist/{xlsx-DTtDjzFq.js → xlsx-DBhYlJKp.js} +652 -640
- package/dist/{xlsx-model-source-DXKvb90T.js → xlsx-model-source-zemVDAfl.js} +2 -2
- package/dist/xlsx.mjs +1 -1
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -551,7 +551,11 @@ For a large DOCX file, set `progressiveLayout: true` to resolve `load()` when th
|
|
|
551
551
|
opening pages are paintable while the same paginator continues in the background.
|
|
552
552
|
It is available on `DocxViewer`, `DocxScrollViewer`, and `DocxDocument.load()` in
|
|
553
553
|
both render modes. Pair it with `mode: 'worker'` when the remaining layout and
|
|
554
|
-
paint work should also stay off the UI thread.
|
|
554
|
+
paint work should also stay off the UI thread. Pages shown before layout
|
|
555
|
+
completes are provisional: page breaks may move and content can occasionally
|
|
556
|
+
overlap. `DocxViewer` and `DocxScrollViewer` redraw every page once layout
|
|
557
|
+
completes; code that calls `DocxDocument.renderPage()` directly must render its
|
|
558
|
+
pages again after `waitUntilLayoutComplete()`.
|
|
555
559
|
|
|
556
560
|
```typescript
|
|
557
561
|
import { DocxScrollViewer } from '@silurus/ooxml/docx';
|
|
@@ -580,8 +584,10 @@ While `layoutComplete` is false, `pageCount` and the callback's `total` argument
|
|
|
580
584
|
mean pages available so far, not the final total. The page callbacks fire again
|
|
581
585
|
when that count grows, even if the visible page does not change. Await
|
|
582
586
|
`waitUntilLayoutComplete()` before printing, exporting, or snapshotting a final count.
|
|
583
|
-
|
|
584
|
-
|
|
587
|
+
`DocxViewer` and `DocxScrollViewer` repaint provisional pages, including
|
|
588
|
+
in-document `NUMPAGES` fields, with their authoritative layout after pagination
|
|
589
|
+
converges. Code that calls `DocxDocument.renderPage()` directly owns its canvases
|
|
590
|
+
and must render those pages again after `waitUntilLayoutComplete()`. See the [progressive layout guide](https://ooxml.silurus.dev/docx#progressive-layout)
|
|
585
591
|
and [DOCX API reference](https://ooxml.silurus.dev/api/docx).
|
|
586
592
|
|
|
587
593
|
### Progressive PPTX layout
|