mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
* feat(area): expose active interactive command to canvas * feat(area): shade temporary AREA preview and add tests * fix(area): skip ambiguous self-intersecting preview fills Reject overlapping or touching nonadjacent polygon edges before triangulation, preserving the AREA measurement and outline. Add bowtie and degenerate-boundary regression coverage with documented behavior. * fix(area): preserve fill when cursor repeats last selected point Strip only the redundant cursor vertex from the temporary AREA preview before polygon validation; keep genuine duplicate selected points invalid. Add two regression tests for stationary cursor and duplicate selected clicks. * fix(area): keep preview fill when cursor revisits any selected point Drop only the final temporary cursor vertex when it duplicates a selected vertex. Preserve rejection of actual duplicate selections and add closure/interior-cursor regression tests. * perf(area): cache selected-edge validation while keeping cursor checks live * perf(area): keep preview validation cache in canvas state * style(area): clean preview formatting and let-else layout after review * style(area): apply rustfmt per maintainer review --------- Co-authored-by: mrepzzz <204005041+mrepzzz@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>