@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 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 first page/slide
315
- width to the container width and re-fits on resize; a `0`-width container defers
316
- layout until it has width. Call `destroy()` to tear down (a self-loaded engine is
317
- destroyed with it; a borrowed one is not see below).
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. Pass `enableZoom: false` to disable.
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