| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(pdf-layout): use standard ONNX WASM runtime | 2 个月前 | |
fix(pdf): take the page origin from the visible page box in EmbedPDF PDFium sizes, renders and reports text relative to the visible page box (CropBox ∩ MediaBox), but EmbedPDF 2.14.4's getPageOrigin returns the CropBox origin alone. When the CropBox is the larger box, every annotation rect is converted against the wrong origin. Springer LNCS pages put a 430×660 MediaBox at (82.5, 90) under an A4 CropBox, so all links land 82.5 pt right of and 90 pt above their text (some off the page): nothing under the text shows a hand cursor or reacts to hover and click. Exported annotations are written back with the same offset. Use the intersection's lower-left corner as the origin, in both the direct and the worker engine bundles. Pages whose CropBox is the inner box, or whose boxes coincide, are unchanged. Submitted upstream as embedpdf/embed-pdf-viewer#845. | 14 天前 | |
fix(pdf): reuse dual-pane tiles and spread translation text measurement Dual-pane scrolling rasterized the same tile on both panes and pushed a scroller update on every frame. Share tile bitmaps, skip scroller setState while the mounted window is unchanged, drop the translation pane's whole-page base coat, and spread paragraph measurement across frames. Fix #769 | 4 天前 | |
fix(pdf): reuse dual-pane tiles and spread translation text measurement Dual-pane scrolling rasterized the same tile on both panes and pushed a scroller update on every frame. Share tile bitmaps, skip scroller setState while the mounted window is unchanged, drop the translation pane's whole-page base coat, and spread paragraph measurement across frames. Fix #769 | 4 天前 | |
fix(deps): stop the TOC observer rebuild on every scroll event @platejs/toc bumped a status state from its scroll listener and had it in the heading observer's effect deps, so every scroll event disconnected and rebuilt the observer and re-ran NodeApi.get + toDOMNode + observe for every heading. On macOS a scrollbar thumb drag is driven on the main thread, so that cost landed directly on the thumb. Patched in-repo: the observer is long lived and a scroll only re-attaches headings whose DOM node was actually remounted, coalesced to one rAF. The per-scroll React state update is gone. Not excluded from Vite dep optimization: @platejs/toc imports the CommonJS-only react-compiler-runtime by name, and only the prebundle step performs the CJS interop that resolves it. | 3 天前 |