Properties
Optional allowRotation
allowRotation: undefined | false | true
Optional border
border: undefined | number
Optional exclusiveTag
exclusiveTag: undefined | false | true
Optional pot
pot: undefined | false | true
Optional smart
smart: undefined | false | true
Optional square
square: undefined | false | true
Optional tag
tag: undefined | false | true
Options for MaxRect Packer
{boolean} options.smart Smart sizing packer (default is true)
{boolean} options.pot use power of 2 sizing (default is true)
{boolean} options.square use square size (default is false)
{boolean} options.allowRotation allow rotation packing (default is false)
{boolean} options.tag allow auto grouping based on
rect.tag
(default is false){boolean} options.exclusiveTag tagged rects will have dependent bin, if set to
false
, packer will try to put tag rects into the same bin (default is true){boolean} options.border atlas edge spacing (default is 0)
{PACKING_LOGIC} options.logic MAX_AREA or MAX_EDGE based sorting logic (default is MAX_EDGE)
Option