Hellenic / react-hexgrid

Build interactive hexagon grids with React
https://hellenic.github.io/react-hexgrid/examples/
MIT License
314 stars 128 forks source link

Path not working in rectangle layout #111

Open lveillard opened 1 year ago

lveillard commented 1 year ago

image_178

Will do a PR if i ever find how this works 😂

The three problems I could identify:

A dirty example of workaround (just working for my particular case)

svg path {
...
 transform: rotate(-30deg) scale(0.4);
 }
cyremur commented 1 year ago

I believe <Path /> needs to be a child of <Layout> cause it will get the grid config from its context.