maxrects-packer / IOption
Interface: IOption
Defined in: types.ts:22
Options for MaxRect Packer
Properties
allowRotation?
optionalallowRotation?:boolean
Defined in: types.ts:26
allow rotation packing (default is false)
border?
optionalborder?:number
Defined in: types.ts:29
atlas edge spacing (default is 0)
exclusiveTag?
optionalexclusiveTag?:boolean
Defined in: types.ts:28
keep each tag in its own labelled bins; if false, groups may share bins and no bin tag is assigned automatically (default is true)
logic?
optionallogic?:PACKING_LOGIC
Defined in: types.ts:30
MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)
pot?
optionalpot?:boolean
Defined in: types.ts:24
use power of 2 sizing (default is true)
smart?
optionalsmart?:boolean
Defined in: types.ts:23
Smart sizing packer (default is true)
square?
optionalsquare?:boolean
Defined in: types.ts:25
use square size (default is false)
tag?
optionaltag?:boolean
Defined in: types.ts:27
allow auto grouping based on rect.tag (default is false)