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

[Question] Group items together #417

Open
sploders101 opened this issue Aug 22, 2020 · 4 comments
Open

[Question] Group items together #417

sploders101 opened this issue Aug 22, 2020 · 4 comments
Labels

Comments

@sploders101
Copy link

Is there a way to group multiple Muuri items together and have them move accordingly?

Use case:
I would like to use this for programming stage lights in my application. A DMX universe is 512 channels, with lights using any number of them. I would like to be able to drag lights onto a grid of 512 squares as a method of assigning IDs to them, to increase visibility and understanding of their usage of a limited address space. Is this possible with Muuri or will I have to develop my own solution?

Thanks!

@sploders101
Copy link
Author

This is not urgent. I figured out a (really quite simple) way to do this using the native HTML5 dragging events, but given the fluid motion of Muuri items while dragging, I still think it would be a pretty great addition, and would love to use Muuri for the project if this is ever added.

@niklasramo
Copy link
Collaborator

@sploders101 Do you mean like dragging multiple items as a group? If so then that kind of feature is not yet built into Muuri, but I'm currently exploring how change the API to make that kind of stuff easy to do.

@sploders101
Copy link
Author

Yes, that is what I was referring to. Each light can use a variable number of channels. I'm letting users drag the lights onto a grid of 512 blocks, and the channel blocks within the fixture need to stay together, since that's how they're configured. The address you plug into a light is an offset, and they use x number of channels from that offset.

It's not a high priority for me, because though it's not nearly as fluid as muuri, I was able to make a solution for it. It just doesn't show up until you hover over a block, at which point the block changes its information, rather than just being a slot to drop it into.

However, I do think it would be nice to be able to handle those edge cases, even if you don't implement it yourself.

Thanks!

@niklasramo
Copy link
Collaborator

I created a feature issue for this one: #418. If you have any input for that please do share 🙂

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

No branches or pull requests

2 participants