-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
I assume the Layout.origin should be used, but I can't seem to figure out the correct units to set it to. I currently have
const [hexagons, setHexagons] = useState(GridGenerator.hexagon(3));
...
<HexGrid width={windowWidth} height={windowHeight}>
<Layout
size={{ x: hexSize, y: hexSize }}
flat={true}
origin={{ x: -10, y: 0 }}
>
{hexagons.map((hex, i) => (
<Hexagon key={i} q={hex.q} r={hex.r} s={hex.s} fill={'black'} />
))}
</Layout>
</HexGrid>Any help would be appreciated!
Metadata
Metadata
Assignees
Labels
No labels