mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
The canvas pans by moving the view's center, which leaves rounding error in the view's translation (for example -13680.000000000002). Flooring the raster's left or top edge then put the origin one pixel lower, the width or height grew by a pixel, the scale changed, and the whole object was filtered again. The origin is now rounded to 2^-20 device pixels, ties to even, before it is floored, as the sizes already were. pans_of_a_centered_view_draw_the_whole_object_raster_again now pans across and down in turn at scales 56, 72, 96 and 120, with centers on whole points too.