@extend-ai/react-docx 0.7.0-alpha.7 → 0.7.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 +8 -1
- package/dist/index.cjs +1115 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +1115 -98
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -174,6 +174,11 @@ export function ThumbnailExample() {
|
|
|
174
174
|
maxWidthPx: 160,
|
|
175
175
|
maxHeightPx: 220,
|
|
176
176
|
pixelRatio: 2,
|
|
177
|
+
minRasterIntervalMs: 40,
|
|
178
|
+
renderWindow: {
|
|
179
|
+
visiblePageIndexes: [0, 1, 2],
|
|
180
|
+
prefetchPageIndexes: [3, 4, 5],
|
|
181
|
+
},
|
|
177
182
|
});
|
|
178
183
|
|
|
179
184
|
return (
|
|
@@ -203,8 +208,10 @@ export function ThumbnailExample() {
|
|
|
203
208
|
Notes:
|
|
204
209
|
|
|
205
210
|
- Thumbnail canvases can stay attached in a virtualized sidebar; only canvases you mount request paint work.
|
|
211
|
+
- Use `renderWindow.visiblePageIndexes` for thumbnails currently visible in your sidebar, and `renderWindow.prefetchPageIndexes` to warm nearby pages after visible work.
|
|
212
|
+
- `minRasterIntervalMs` controls repeat renders for the same canvas. Lower values are useful when the consumer already limits thumbnail work to a small visible window.
|
|
206
213
|
- Thumbnail sizing is bounded by `maxWidthPx` and `maxHeightPx`, so downstream UIs can bias toward portrait thumbnail rails.
|
|
207
|
-
-
|
|
214
|
+
- Thumbnails use a direct layout/model canvas renderer first; if a page has no usable snapshot, the hook falls back to an isolated offscreen page surface.
|
|
208
215
|
|
|
209
216
|
## Useful Hooks
|
|
210
217
|
|