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
Optional
allow Rotation
allowRotation?: boolean
allow rotation packing (default is false)
Optional
border
border?: number
atlas edge spacing (default is 0)
Optional
exclusive 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)
Optional
logic
MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)
Optional
pot
pot?: boolean
use power of 2 sizing (default is true)
Optional
smart
smart?: boolean
Smart sizing packer (default is true)
Optional
square
square?: boolean
use square size (default is false)
Optional
tag
tag?: boolean
allow auto grouping based on rect.tag
(default is false)
Options for MaxRect Packer