How to move a grid with updating coordinates in pointToHex?
arnokay opened this issue · comments
Maxim Arnokay commented
After moving the hexagonal grid using the SVG viewBox, translate, etc. pointToHex remained unchanged and continues give me the coordinates before the changes. I need to move it, because when creating the hexagonal grid, only a quarter of it is visible.
Maxim Arnokay commented
My mistake, I did not change the center
property when creating Hex
. Writing code at 6am does not lead to anything good.