Skip to content

maxrects-packer / IOption

Interface: IOption ​

Defined in: types.ts:22

Options for MaxRect Packer

Properties ​

allowRotation? ​

optional allowRotation?: boolean

Defined in: types.ts:26

allow rotation packing (default is false)


border? ​

optional border?: number

Defined in: types.ts:29

atlas edge spacing (default is 0)


exclusiveTag? ​

optional exclusiveTag?: 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? ​

optional logic?: PACKING_LOGIC

Defined in: types.ts:30

MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)


pot? ​

optional pot?: boolean

Defined in: types.ts:24

use power of 2 sizing (default is true)


smart? ​

optional smart?: boolean

Defined in: types.ts:23

Smart sizing packer (default is true)


square? ​

optional square?: boolean

Defined in: types.ts:25

use square size (default is false)


tag? ​

optional tag?: boolean

Defined in: types.ts:27

allow auto grouping based on rect.tag (default is false)