flauwekeul / honeycomb

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

Re-render grid on window resize #78

Closed daniel-codrea-p4b closed 2 years ago

daniel-codrea-p4b commented 2 years ago

Hi. Is there a way to re-render the grid on the window resize event?

I was looking through the API documentation and nothing seemed to actually achieve this.

daniel-codrea-p4b commented 2 years ago

Nevermind. I found out that the issue was that the grid was being drawn each time on resizing, and I wasn't creating the container class. A simple innerHTML clear fixed my problem.