Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patterns and images do not inherit proper sizing from hexagons #37

Open
maxheld83 opened this issue Nov 11, 2019 · 0 comments
Open

patterns and images do not inherit proper sizing from hexagons #37

maxheld83 opened this issue Nov 11, 2019 · 0 comments

Comments

@maxheld83
Copy link

It appears that the sizing of patterns and images always defaults to this:

<pattern id="1,2,-3" patternUnits="objectBoundingBox" x="0" y="0" width="10" height="10">
  <image xlink:href="http://lorempixel.com/400/400/cats/1/" x="0" y="0" width="20" height="20"></image>
</pattern>

even when the hexagons in question have, say, size 8 8, as is the case in the drag and drop example (tiles) from which I took this code: http://karkk.ai//nen/react-hexgrid/examples/drag-and-drop/

If you look carefully at the above example, you can see that the cats are actually masked differently in the tiles than in the game hexgrid, which I think is counter to expectations.

I think there might be two issues / concerns here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant