IOption
interface IOption {
allowRotation?: boolean;
border?: number;
exclusiveTag?: boolean;
logic?: PACKING_LOGIC;
pot?: boolean;
smart?: boolean;
square?: boolean;
tag?: boolean;
}
allowRotation?: boolean;
border?: number;
exclusiveTag?: boolean;
logic?: PACKING_LOGIC;
pot?: boolean;
smart?: boolean;
square?: boolean;
tag?: boolean;
}
Index
Properties
Properties
Optionalallow Rotation
allowRotation?: boolean
allow rotation packing (default is false)
Optionalborder
border?: number
atlas edge spacing (default is 0)
Optionalexclusive Tag
exclusiveTag?: boolean
tagged rects will have dependent bin, if set to false, packer will try to put tag rects into the same bin (default is true)
Optionallogic
MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)
Optionalpot
pot?: boolean
use power of 2 sizing (default is true)
Optionalsmart
smart?: boolean
Smart sizing packer (default is true)
Optionalsquare
square?: boolean
use square size (default is false)
Optionaltag
tag?: boolean
allow auto grouping based on rect.tag (default is false)
Options for MaxRect Packer