Constructors
constructor
- new MultiBinPacker(maxWidth: number, maxHeight: number, padding?: number): MultiBinPacker
-
Parameters
-
maxWidth: number
-
maxHeight: number
-
Optional
padding: number
Properties
Readonly
maxHeight
maxHeight: number
Readonly
maxWidth
maxWidth: number
Readonly
oversizedElements
oversized
Elements
: ISize[] = []
Optional
Readonly
padding
padding?: number
Methods
add
- add(data: ISize): void
-
Returns void
addArray
- addArray(rects: ISize[]): void
-
Returns void