mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-02 16:29:34 -06:00
* M8: an arc's spread shadow gets room for its mitred corners Rectangles, frames and ellipses grow by exactly their spread, so their layers only make room for the spread itself; other shapes make room for the mitre at sharp corners (up to four times the spread). An ellipse with arc data (a pie slice, or a ring cut short) counted as an ellipse, but its ends meet its sides in sharp corners: a spread of 25 on a slice of 0.3 rad cut its shadow off at the layer's edge (up to 255 levels). Only an ellipse that goes all the way round now grows by exactly its spread. `figcraft_geom::full_sweep` is what `ellipse` already used to tell a whole ellipse or ring from an arc, so the two agree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M8: an arc's mitred stroke gets room for its corners too Review: `outline_reach` counted every ellipse as an outline whose stroke mitres end on the grown box, the same mistake as the spread. A thin slice with a 20-unit mitred stroke and a spread of 10 still had its shadow cut off (255 levels). It now asks `grows_by_exactly_its_spread`, which picks the same shapes and leaves arcs out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>