sprite sheet maker
Give a Sprite Inspector Separate View and Pixel Zoom Tests
Zoom controls in an atlas inspector need to preserve alignment between the artwork and its editor handles. A preview might move the handle and drawing in the right direction while presenting the original-sized raster. Measuring only a Canvas coordinate will not expose that problem.
Test three things on the same pose
Start with a 4 × 2 asymmetric test pose. Record the stored crop, the displayed bounding box, and one corner handle. At three-times preview zoom, expect a 12 × 6 display rectangle and a handle on its matching edge. Revert to one-times zoom, then export the atlas and compare the original crop to the baseline. The export must remain 4 × 2 even if the displayed bitmap was temporarily recreated.
The technical guide and test fixture shows why scaling a Tk Canvas item changes coordinates without changing the photo raster. Treat display zoom as derived state and invalidate the scaled photo when its source changes. A fractional zoom control can use its own expected rounding rule. Keep the integer test because each source pixel then has a clear expected footprint.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.