mapbox / potpack

A tiny rectangle packing JavaScript library (for sprite layouts)

Home Page:https://mapbox.github.io/potpack/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rectangles final positioning X,Y

caiusCitiriga opened this issue · comments

Is it possible to get somehow the final position on the near square result of each box with X,Y coordinates?

The final positions (x and y) get added to the original input objects, as described in the readme: https://github.com/mapbox/potpack#example-usage

Unless I'm misunderstanding the question?

@mourner No, sorry, me dumb. Didn't see that part. Thank you very much ❤️