Skip to content

Placed

A place from ShelfPacker.alloc.

x: number

Left, pixels.

Rect.x


y: number

Top, pixels.

Rect.y


w: number

Width, pixels.

Rect.w


h: number

Height, pixels.

Rect.h


optional slot?: Rect

In a freed slot: the whole slot, padding included. The item takes its top left only, so the pixels of what was there before are still around it until they are cleared.