@silurus/ooxml 0.85.0 → 0.85.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 +8 -5
- package/dist/assets/{render-worker-DnU-PxZ1.js → render-worker-CtLMFj9r.js} +1 -1
- package/dist/{canvas-viewer-mechanics-C-yTGbFC.js → canvas-viewer-mechanics-CfRzOhz5.js} +2 -2
- package/dist/{document-pull-client-BdYrjAep.js → document-pull-client-BkHHIdR4.js} +3 -3
- package/dist/{docx-qK0Qmyey.js → docx-_uelcAui.js} +27 -8
- package/dist/docx.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/node.mjs +1 -1
- package/dist/{pptx-DxZwhOWr.js → pptx-WpBbS0mq.js} +7 -3
- package/dist/pptx.mjs +2 -2
- package/dist/{render-worker-host-GZ7ez-l3.js → render-worker-host-CBVe8aeD.js} +1 -1
- package/dist/types/docx.d.ts +4 -2
- package/dist/types/index.d.ts +7 -4
- package/dist/types/pptx.d.ts +3 -2
- package/dist/types/xlsx.d.ts +2 -2
- package/dist/{xlsx-57OZsbD9.js → xlsx-Bd16V4Xx.js} +1 -1
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -311,10 +311,11 @@ await viewer.load('/deck.pptx');
|
|
|
311
311
|
```
|
|
312
312
|
|
|
313
313
|
The container must have a bounded height (e.g. `height: 100vh` or a flex child)
|
|
314
|
-
so the viewer can size its scroll host to it. Base zoom fits the
|
|
315
|
-
width to the container
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
so the viewer can size its scroll host to it. Base zoom fits the widest available
|
|
315
|
+
DOCX page, or the PPTX slide width, to the container and re-fits on resize. A
|
|
316
|
+
progressively loaded DOCX re-fits if a wider page appears; a `0`-width container
|
|
317
|
+
defers layout until it has width. Call `destroy()` to tear down (a self-loaded
|
|
318
|
+
engine is destroyed with it; a borrowed one is not — see below).
|
|
318
319
|
|
|
319
320
|
Pass `refitOnResize: false` when the viewport must not determine the document's
|
|
320
321
|
physical display size. An explicit pre-load `setScale(1)` then keeps the same
|
|
@@ -343,7 +344,9 @@ sheet sits inside a uniform desk margin; pass `0` for a flush edge.
|
|
|
343
344
|
bare-wheel still scrolls natively. Zoom is flicker-free — a rapid gesture shows a
|
|
344
345
|
CSS preview and settles into a crisp re-render when it pauses. Bounds are the
|
|
345
346
|
absolute scale factors `zoomMin` / `zoomMax` (default `0.1` / `4`), and
|
|
346
|
-
`setScale(scale)` sets it programmatically.
|
|
347
|
+
`setScale(scale)` sets it programmatically. When fitting needs a scale below
|
|
348
|
+
`zoomMin`, that fitted scale becomes the effective minimum so users can zoom in
|
|
349
|
+
and still return to the original fit. Pass `enableZoom: false` to disable.
|
|
347
350
|
|
|
348
351
|
**Text selection and find.** Pass `enableTextSelection: true` to overlay a
|
|
349
352
|
transparent, selectable text layer per page/slide for native copy. It works in
|