sprite ai
Keep Invisible Vector Overhang from Enlarging a Sprite Collision Shape
A generated SVG stripe can extend outside its viewBox while appearing cleanly cropped in the editor. The hidden geometry still matters to tools that derive a collision shape or allocation from path bounds. A screenshot compares visible pixels and cannot prove where the unrendered path stops.
Send one witness through both consumers
Use a rectangular viewport and a known shape whose path extends beyond its left and right edges. Record the visible pixel bounds in the expected render. Separately inspect the explicit path bounds that a geometry reader receives. For a clipped delivery, require those paths to stay within the intended viewBox. Use an outside probe in the collision test too, since the final collision may be computed by a component with its own coordinate policy.
Keep any intentional overdraw in the editable master. If some runtime effect needs it, give that artifact a distinct geometry contract and test its overflow explicitly.
FrameSprite's technical guide and test fixture demonstrates why normalization can preserve overhang and how clipping changes the measured geometry. It supports an independent acceptance test for a path-based receiver.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.