Replies: 1 comment
-
@clauderic thanks for the work on this lib Thanks :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to implement something like this
A grid where a tile can be place every where with a 1x1 default size.
All tile can be resize for a 2x1 or 1x2 or 2x2 (or other size)
When a tile is resize I need to push all adjacent tile to the right or to the bottom and repeat this in cascade
I can create a tile on every cell available.
I have difficult to implement this with dnd-kit, I don't know if it's possible, can someone help me with that ?
There are my actual version of collision: https://dnd-tile.vercel.app
you can clic on the screen to create a tile, and interact with it to change his size or drag it.
There are the code:
https://github.com/Horsty80/dnd-tile/blob/main/src/App.tsx
You can test, if you expand a tile, other tile are move but not as expected.
If you move the expanded tile, the collision isn't working :(
Beta Was this translation helpful? Give feedback.
All reactions