flauwekeul / honeycomb

Create hex grids easily, in node or the browser.
https://abbekeultjes.nl/honeycomb
MIT License
631 stars 57 forks source link

How to move a grid with updating coordinates in pointToHex? #49

Closed arnokay closed 4 years ago

arnokay commented 4 years ago

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.

arnokay commented 4 years ago

My mistake, I did not change the center property when creating Hex. Writing code at 6am does not lead to anything good.