bin-packing-grid icon indicating copy to clipboard operation
bin-packing-grid copied to clipboard

Drag and Drop Suggestion

Open eggers opened this issue 9 years ago • 1 comments

Great demo, very cool.

I was just thinking that it would be interesting to do a drag and drop feature. Where you grab one block and can decide where to place it. The others would flip away to make space, and then find their own space when you dropped the block.

eggers avatar Jun 04 '15 03:06 eggers

That would be cool, but the problem is that this module is about using the bin-packing algorithm to reorder the elements to leave the minimum amount of gaps.

So, while is true that it uses the initial order of the dom elements as start, the end position of each element is determined by the algorithm and not by the actual order of the elements, and therefore the user cannot alter the end position.

chris-l avatar Jun 04 '15 04:06 chris-l