fix(anatomy): V1-2.2 refuse markers too small on the phone preview

Owner decision 2026-11-01: the scale bypass (viewBox blown up, drawing
scaled back) is closed by the visible size, 4 CSS px on the editor at
320 x 568 (equine junctions 4.97 px), verdict marker_too_small. A frame
is usable only where browsers draw it faithfully: edges within 2^20,
span from 1 unit, aspect 100, offset 256 spans; measured in 3 engines.
This commit is contained in:
bchanot committed 2026-11-01 01:28:48 +01:00
1 parent 9c606aa567
commit 96b99784b5
17 files changed
+944 -37

No files matched your search

@@ -0,0 +1,21 @@
# V1-2.2 decisions (2026-11-01): throwaway proof tools
Not part of any suite. Run from a worktree of the branch, Playwright engines from the user cache.
- `iso_probe_generator.rs.txt`: copy to `crates/core/tests/zz_probe_iso.rs`, run
`ISO_OUT=<empty dir> cargo test -p faunosteo-core --test zz_probe_iso -- --nocapture`, delete it.
Writes the equine main view (canvas and PDF forms) with a full-frame opaque magenta rectangle,
last child of the drawing, carrying each candidate style; plus the positive control (the
rectangle after the layer).
- `iso.mjs <worktree> <dir> chromium,firefox,webkit`: magenta pixel count and point hits per file.
- `measure.mjs <worktree>`: needs Vite on 127.0.0.1:5197 (`VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY=
node_modules/.bin/vite --host 127.0.0.1 --port 5197 --strictPort` in apps/app); the editor's SVG box,
scale and visible disc sizes at 320, 360, 375, 390 and 1280 px, main view and head detail.
- `frame_probe_generator.rs.txt`: copy to `crates/core/tests/zz_frame_probe.rs`, run
`FRAME_OUT=<empty dir> cargo test -p faunosteo-core --test zz_frame_probe`, delete it. Writes one JSON per
limit case: the composed canvas, the preview box, the core's f64 expectation of each disc and hitbox, the
core's verdict on the frame (refused frames are written with their raw `viewBox`).
- `frame-probe.mjs <worktree> <dir> chromium,firefox,webkit`: the browser's layout of each hitbox against the
core (relative size gap, centre gap in px).
- `span-pixels.mjs <worktree> chromium,firefox,webkit`: painted pixels of one disc for spans 1 000 to 2^-20
(area and centroid gaps): where each engine stops drawing faithfully.