bug: mapped grids don't behave as described
See original GitHub issueI’m using 4.0.0-alpha.5
I tried this simple code snippet: https://github.com/flauwekeul/honeycomb/tree/next#controlling-how-hexes-are-created
It doesn’t seem to work, as demonstrated here: https://stackblitz.com/edit/js-xjvkfz?devToolsHeight=33&file=index.js
What happens is that instead of the following:
// ...
grid.getHex([1, 2]) // Hex {q: 1, r: 2}
mappedGrid.getHex([1, 2]) // Hex {q: 1, r: 2, custom: 'custom'}
We get this:
// ...
grid.getHex([1, 2]) // Hex {q: 1, r: 2}
mappedGrid.getHex([1, 2]) // Hex {q: 1, r: 2}
Since it clearly deviates from the stated behaviour I’d imagine it’s a bug? If not, it’d be nice to understand what the behaviour should actually be.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ANYbotics/grid_map: Universal grid map library for ... - GitHub
Universal grid map library for mobile robotic mapping - GitHub - ANYbotics/grid_map: Universal ... depend on packages described below in Packages Overview.
Read more >Using Grids in Interface Designs - Nielsen Norman Group
Grids help designers create cohesive layouts, allowing end users to easily scan and use interfaces. A good grid adapts to various screen ...
Read more >Fix data when it appears in the wrong place - Learn ArcGIS
In this lesson, you determined that a layer was drawing in the wrong location because it had no coordinate system defined. You researched...
Read more >ESMF_regrid
Description. This function regrids data from a source grid to a destination grid, and creates a weights file in the interim. The source...
Read more >Guide to the MUI grid system - LogRocket Blog
npm install @mui/material @emotion/react @emotion/styled. Material Design uses Roboto as the default font, so don't forget to add it as well ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re a legend @flauwekeul
Great 😀 I just pushed another example that happens to showcase (nearly complete) A* path finding using Honeycomb.
I’ll close this issue then.
P.S. Please let me know if you find any more issues or think things are counter intuitive or if you need certain features. Thanks!