feat(domain): per-view minimum point radius in preview state

PreviewState.min_point_radius maps a view id to the smallest point
hitbox radius that passes TooSmall on the smallest preview, so the
sheet editor can mark it on a size slider. Twin constants named in
layer.rs; frame.rs shares one first-view drawing lookup.
This commit is contained in:
bchanot committed 2026-11-17 16:33:40 +01:00
1 parent 56c75b12ef
commit 5ca2b7e3ad
8 files changed
+202 -9

No files matched your search

+1
View File
@@ -3953,6 +3953,7 @@ trapping test stub (`apps/app/tests/helpers/core.ts`) lists the two new glue mem
| Measure | Value |
|---|---|
| shipped module | 1 513 522 B raw, 559 360 B gzip -9 (script), 569 181 B by Node's gzip in `size.test.ts` (final, finalisation §12.8; 568 696 B at f1ef6a4, the debug `name` section dropped since §12.7); budget 600 000 (D-R13); 596 671 B at ca31b78, 531 715 B before V1-2.2 (RUST.md §11.22) |
| shipped module, V1-2.6 U2 (`PreviewState.min_point_radius`) | 1 580 788 B raw, 585 951 B gzip -9 (script), 595 331 B by Node's gzip in `size.test.ts`; before: 1 569 864 B, 583 126 B, 592 143 B (+3 188 B by the test's measure, +2 825 B by the script); margin under the 600 000 budget 4 669 B |
| verdict at every cap, native | 107 ms release, 493 ms debug (document 1 165 850 bytes) |
| `clean_svg`, shipped module | 45 hostile inputs and floods, slowest 0.4 ms |