mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 16:32:56 +00:00
We were computing margin by lsn range, but this will cause problems for layer maps with large overlapping LSN range. Now we compute x, y margin separately to avoid this issue. ## Summary of changes before: <img width="1651" alt="image" src="https://github.com/neondatabase/neon/assets/4198311/3bfb50cb-960b-4d8f-9bbe-a55c89d82a28"> we have a lot of rectangles of negative width, and they disappear in the layer map. after: <img width="1320" alt="image" src="https://github.com/neondatabase/neon/assets/4198311/550f0f96-849f-4bdc-a852-b977499f04f4"> Signed-off-by: Alex Chi Z <chi@neon.tech>