refactor(pdf): R4.8 the TypeScript PDF engine leaves: packages/pdf, pdf-lib, the TS CLI and import path, the oracle generators deleted; test read-back on an own reader of the writer's files (pdfFile.ts), view goldens from the session's SVGs, import helper on the module's reader, N-1 scanner exported by core-wasm/n-1; app no longer depends on @faunosteo/domain; r4.census suite

This commit is contained in:
bchanot committed 2026-10-19 12:17:01 +02:00
1 parent 77e11a53e4
commit 0dc1ba27c7
96 files changed
+743 -15769

No files matched your search

@@ -28,7 +28,7 @@ type SizeName = keyof typeof SIZES
const NAMES = Object.keys(SIZES) as SizeName[]
const EXPECTED_VIEWS: Record<SizeName, number> = { L: 120, CAP: 1000 }
/** `PAGE_CAPS` of packages/pdf/src/export.ts at the freeze: the engine does not export it. */
/** `PAGE_CAPS` of the engine at the freeze (now `crates/core/src/pdf/write/input.rs`). */
const PAGE_CAPS = { observations: 500, viewsPerObservation: 8 } as const
/** The zones a demo observation holds on one view, with the findings of their finding zones. */
@@ -96,7 +96,7 @@ function syntheticReport(
}
}
/** Per observation, the views the engine rasterises (packages/pdf observationViewIds). */
/** Per observation, the views the engine rasterises (`observationViewIds` at the freeze; the core's `views.rs`). */
function rasterisedViews(report: Report, snapshotViews: Set<string>): number[] {
return report.observations.map(
(o) =>