mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-30 02:04:54 +01:00
Import tail (docs/gaps.md Gap 1), as FigCraft-side passes over the mapped REST JSON in crates/format/src/fig/map.rs (the craft-fig mapper is pinned and unchanged): - A connector label without a saved snapshot gets a white, fully rounded stand-in pill centred under it, padded by the font size, within the layer budget (labels past it stay bare under the mapper's original note). - TABLE cells are put back on the table's grid from their own geometry: offsets within 2 px share a track, a sizeless or misaligned cell takes its row and column, and no two cells overlap. Fills, strokes and text are kept. Rotated, non-finite, colliding or oversized tables keep their saved bounds with a warning. No row or column fields of the file are read. - The new import notes are counted like the mapper's (`note (×n)`) and have English keys in crates/ui-egui/locales/en.toml. - Vector-region style and variable links were already resolved with a fall-back to the region's own paint; no change. Fidelity harness (Gap 3), no new dependencies: - fig::fidelity: compare_documents (layer counts, box L-infinity error, text/fill/stroke/opacity match rates, warnings) and compare_rgba (SSD, RMSE, PSNR, luminance SSIM, channels past a tolerance), with JSON and Markdown scorecards. - fidelity_tests: metric properties, a built-in corpus that round-trips through .fig with every layer matched and no new warnings, and an ignored FIGCRAFT_FIG_CORPUS runner for local real files. - render: a multi-layer scene drawn before and after a .fig round trip is compared with compare_rgba (SSIM > 0.99; measured identical). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>