Complete converted ebook contracts and random reader eligibility
vomebook
60df0e0
fix: accept fractional SVG preview sizes and requeue visible PDF pages
vomebook
eb47f31
The pipeline records math.ceil() of a vector preview's intrinsic size while
browsers round naturalWidth, so A4 (595.3pt) and 16:9 slide SVGs failed the
exact-size check with PDF_V3_PREVIEW_GEOMETRY_MISMATCH. The first page showed
"page load failed, retrying" until PDF.js replaced it. SVG previews now allow
a 1px rounding difference; raster previews and the aspect check are unchanged.
Visible pages whose speculative render was cancelled are requeued on slot
release and scroll, and PDF page reads enter the render queue before getPage.
Preview cancellation no longer writes a page failure state.
refactor: organize project layout and Reader responsibilities