Search


Search something to see results

IOption

Options for MaxRect Packer

interface IOption {
    allowRotation?: boolean;
    border?: number;
    exclusiveTag?: boolean;
    logic?: PACKING_LOGIC;
    pot?: boolean;
    smart?: boolean;
    square?: boolean;
    tag?: boolean;
}

Index

Properties

Properties

allowRotation?: boolean

allow rotation packing (default is false)

border?: number

atlas edge spacing (default is 0)

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)

MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)

pot?: boolean

use power of 2 sizing (default is true)

smart?: boolean

Smart sizing packer (default is true)

square?: boolean

use square size (default is false)

tag?: boolean

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