react-hexgrid
react-hexgrid copied to clipboard
Path not working in rectangle layout

Will do a PR if i ever find how this works 😂
The three problems I could identify:
- if flat = false, it still does the path as if flat === true
- does not adapt to the size
- does not adapt to the position of the origin if this is moved
A dirty example of workaround (just working for my particular case)
svg path {
...
transform: rotate(-30deg) scale(0.4);
}
I believe <Path /> needs to be a child of <Layout> cause it will get the grid config from its context.