east Function – makeAtlas
const makeAtlas: (
width: number,
height: number,
maxWidth?: number,
maxHeight?: number,
snap?: number,
) => Atlas
Tight 2D packing texture atlas.
*
- For optimal performance, feed items that are sorted large to small, e.g. by area.
- Will still produce high quality packing otherwise, but performance will degrade significantly.
Source
packages / core / src / atlas.ts