maxrects-packer
maxrects-packer copied to clipboard
alphabetical grouping
Wondering if there's a way to do this? don't want to spend time digging into the source code if not needed, but if this isn't possible I'll implement it myself- anything insightful that'll help me implement this if I need to dig in?
@visgotti Can you describe the meaning of alphabetical grouping? I cannot get it. Currently, you can group your bins by the tag system.
Check this out: https://github.com/soimy/maxrects-packer/blob/0eeb7d14c9402caa5b29e50aecb6c7db368b5b8b/test/maxrects-packer.spec.js#L51-L71
so I have sprites.. like walk_frame_1, walk_frame_2 etc. I want these to be binned together, but I also want them one after another in the sprite sheet.
That's not packer's job, you feed the data with width/height/tag and packer return the bins with position data. Try isolate the filename as the tag, and sort the returning bin data in the program which calling maxrect-packer's API.