mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 17:30:37 +01:00
The previous commit made PathData::bounds hold the point of a subpath of one anchor. Node::visual_bounds measures a path from that box, so a lone anchor that draws nothing (an open one, or a closed one under a butt cap or with no stroke) widened the visual box by the stroke's reach. The renderer draws a lone anchor only as the dot of a round or projecting cap on a closed subpath (point_dots in crates/effects/src/stroke.rs). - PathData::drawn_bounds measures the segments, and the lone anchors of closed subpaths when a cap draws dots. Node::visual_bounds measures paths and compound paths from it, falling back to the geometric box when nothing is drawn. Geometric bounds still hold every lone anchor. - The .ai envelope import's box of what type's outlines paint relied on PathData::bounds leaving lone anchors out. It now removes contours of zero length from the baked pieces before measuring them, so a_contour_of_zero_length_paints_nothing passes unchanged.