Use the rotated dimension value when testing different item pivots.
Use the rotated dimension value when testing different item pivots.

Without using the rotated value, it’s not a like comparison. (E.g. comparing X and Y positions)
olragon/binpackingjs