question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: mapped grids don't behave as described

See original GitHub issue

I’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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
israelidannycommented, Jul 29, 2022

You’re a legend @flauwekeul

0reactions
flauwekeulcommented, Jul 28, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found