Background
The vendored fig-extract engine keeps a scale-2.2 full-page canvas on every detected EngineFigure, and the viewer additionally creates preview image data. A figure-heavy paper can therefore retain hundreds of MB. In-flight scans also continue after the document changes.
Acceptance criteria
Blocker
The documented upstream is https://github.com/onetwothr1/PDFViewer-Figure-Extract. The current GitHub account and local workspace cannot access it (gh repo view and git ls-remote both report that the repository was not found). Access to that source repository, or a new upstream engine release/commit from its owner, is required before changing the vendored file. AI-assisted.
Background
The vendored fig-extract engine keeps a scale-2.2 full-page canvas on every detected
EngineFigure, and the viewer additionally creates preview image data. A figure-heavy paper can therefore retain hundreds of MB. In-flight scans also continue after the document changes.Acceptance criteria
figure-preview-testsource first, then vendored byte-identically with a version bumpnpm run typecheck,npm test, andnpm run buildpassBlocker
The documented upstream is
https://github.com/onetwothr1/PDFViewer-Figure-Extract. The current GitHub account and local workspace cannot access it (gh repo viewandgit ls-remoteboth report that the repository was not found). Access to that source repository, or a new upstream engine release/commit from its owner, is required before changing the vendored file. AI-assisted.