Files
photocraft/crates/engine
PanPDXandClaude Opus 5.5 da1764082e fix(type): refuse area paths over 4096 anchors as too many anchor points
type.fillPath accepted up to 100,000 anchors, but each curved segment
flattens to 16 edges against a 65,536-edge cap, so a big curved path
failed with the misleading "the path encloses no area".

The anchor limit now lives in photocraft_text::area as MAX_AREA_KNOTS
(4096, the Type tool's existing click cap) and the edge cap is derived
from it (4096 x 17), so every path within the limit fits even with every
segment curved, and a bigger one gets "the path has too many anchor
points". The Type tool's click cap now names the same constant, so a
path it offers as an area target can always be filled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 08:52:38 -07:00
..