react-hexgrid icon indicating copy to clipboard operation
react-hexgrid copied to clipboard

Path not working in rectangle layout

Open lveillard opened this issue 3 years ago • 1 comments

image_178

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);
 }

lveillard avatar Dec 08 '22 23:12 lveillard

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

cyremur avatar Jul 14 '23 11:07 cyremur