You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am encountering an issue when initializing a grid from JSON using the fromJSON method. The problem arises when I use a hexFactory to map custom properties to the hexes in the grid. This results in the hexes having unusual property values. I am working in JavaScript and have adapted your examples to this language.
To Reproduce
I have omitted honeycomb-grid imports for brevity.
Environment (please complete the following information):
Honeycomb@latest version [e.g. 4.1.2]
vite@latest
react project
Expected behavior vs Actual result
Normally, when I do not attempt to customize the hex, everything functions correctly. However, when I try to customize it, many of the Hex property values become corrupted, leading to the grid not rendering properly.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am encountering an issue when initializing a grid from JSON using the fromJSON method. The problem arises when I use a hexFactory to map custom properties to the hexes in the grid. This results in the hexes having unusual property values. I am working in JavaScript and have adapted your examples to this language.
To Reproduce
I have omitted
honeycomb-grid
imports for brevity.map.json
test.js
Additional context
The data in map.json were obtained from the following code, with the _key property added subsequently.
original.js
Environment (please complete the following information):
Expected behavior vs Actual result
Normally, when I do not attempt to customize the hex, everything functions correctly. However, when I try to customize it, many of the Hex property values become corrupted, leading to the grid not rendering properly.
The text was updated successfully, but these errors were encountered: