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

Serialization #64

Closed
Biont opened this issue Jul 27, 2013 · 1 comment
Closed

Serialization #64

Biont opened this issue Jul 27, 2013 · 1 comment

Comments

@Biont
Copy link

Biont commented Jul 27, 2013

Is it possible to receive an array with rows and columns from shapeshift? I haven't seen a way to save layouts nor have I found any discussion regarding this on the issues list. Did I miss something?

I guess it wouldn't be too hard to get my data with external JS, but I figured it would be nice if this was built right into the plugin.

Anyway, thanks for making this!

@AshesOfOwls
Copy link
Owner

Since Shapeshift is dynamic to the window size it becomes difficult to save a list of columns/rows because the layout can change dynamically.

The way I went around this was to make the index position the key to saving the positions of each element. This way as long as those index positions are maintained then no matter what size the window is the elements will receive the same amount of "importance". The best part about this is that if you are saving the positions to a database you really only need to store one number instead of storing the column position and the row position.

Thanks for the support, let me know if you need any more help.

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

2 participants