Class: Options
Options class for atlasify and maxrects-packer
implements
{IOption}
Implements
IOption
Constructors
constructor
• new Options(name?
, width?
, height?
, padding?
, type?
)
Creates an instance of Options.
memberof
Options
Parameters
Name | Type | Default value |
---|---|---|
name | string | 'sprite' |
width | number | 2048 |
height | number | 2048 |
padding | number | 0 |
type | string | "JsonHash" |
Defined in
Properties
allowRotation
• allowRotation: boolean
= false
Allow 90-degree rotation while packing
memberof
Options
Implementation of
IOption.allowRotation
Defined in
alphaTolerence
• alphaTolerence: number
= 0
Trim alpha with tolerence value
memberof
Options
Defined in
border
• border: number
= 0
Controlling packer border to edge
memberof
Options
Implementation of
IOption.border
Defined in
debug
• debug: boolean
= false
Draw debug info onto atlas
memberof
Options
Defined in
exclusiveTag
• Optional
exclusiveTag: boolean
Implementation of
IOption.exclusiveTag
Defined in
extrude
• extrude: number
= 0
Extrude amount of edge pixels, will automaticly trimAlpha
first.
memberof
Options
Defined in
groupFolder
• groupFolder: boolean
= false
Group sheets packing based on folder
memberof
Options
Defined in
height
• height: number
= 2048
instant
• instant: boolean
= false
Instant mode will skip sorting and pack using given array order
memberof
Options
Defined in
name
• name: string
= 'sprite'
padding
• padding: number
= 0
pot
• pot: boolean
= true
Atlas size shall be power of 2
memberof
Options
Implementation of
IOption.pot
Defined in
searchDummy
• searchDummy: boolean
= false
Search duplicated dummy sprites to reduce atlas element
memberof
Options
Defined in
seperateFolder
• seperateFolder: boolean
= false
Seperate sheets packing based on folder
memberof
Options
Defined in
smart
• smart: boolean
= true
Atlas will automaticly shrink to the smallest possible square
memberof
Options
Implementation of
IOption.smart
Defined in
square
• square: boolean
= false
Atlas size shall be square
memberof
Options
Implementation of
IOption.square
Defined in
tag
• Optional
tag: boolean
Implementation of
IOption.tag
Defined in
trimAlpha
• trimAlpha: boolean
= false
Remove surrounding transparent pixels
memberof
Options
Defined in
type
• type: string
= "JsonHash"
width
• width: number
= 2048