Search
Preparing search index...
The search index is not available
maxrects-packer - v2.7.0
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"maxrects-bin"
MaxRectsBin
Class MaxRectsBin<T>
Type parameters
T
:
IRectangle
Hierarchy
Bin
<
T
>
MaxRectsBin
Implements
IBin
Index
Constructors
constructor
Properties
_dirty
data
free
Rects
height
max
Height
max
Width
padding
rects
tag
width
Accessors
dirty
Methods
add
clone
repack
reset
set
Dirty
Object literals
options
Constructors
constructor
new
Max
Rects
Bin
(
maxWidth
?:
number
, maxHeight
?:
number
, padding
?:
number
, options
?:
IOption
)
:
MaxRectsBin
Parameters
Default value
maxWidth:
number
= EDGE_MAX_VALUE
Default value
maxHeight:
number
= EDGE_MAX_VALUE
Default value
padding:
number
= 0
Default value
options:
IOption
= {}
Returns
MaxRectsBin
Properties
Protected
_dirty
_dirty
:
number
= 0
Optional
data
data
:
any
free
Rects
free
Rects
:
Rectangle
[]
= []
height
height
:
number
max
Height
max
Height
:
number
max
Width
max
Width
:
number
padding
padding
:
number
rects
rects
:
T
[]
= []
Optional
tag
tag
:
undefined
|
string
width
width
:
number
Accessors
dirty
get
dirty
(
)
:
boolean
Returns
boolean
Methods
add
add
(
rect
:
T
)
:
T
|
undefined
add
(
width
:
number
, height
:
number
, data
:
any
)
:
T
|
undefined
Parameters
rect:
T
Returns
T
|
undefined
Parameters
width:
number
height:
number
data:
any
Returns
T
|
undefined
clone
clone
(
)
:
MaxRectsBin
<
T
>
Returns
MaxRectsBin
<
T
>
repack
repack
(
)
:
T
[]
|
undefined
Returns
T
[]
|
undefined
reset
reset
(
deepReset
?:
boolean
, resetOption
?:
boolean
)
:
void
Parameters
Default value
deepReset:
boolean
= false
Default value
resetOption:
boolean
= false
Returns
void
set
Dirty
set
Dirty
(
value
?:
boolean
)
:
void
Set bin dirty status
memberof
Bin
Parameters
Default value
value:
boolean
= true
Returns
void
Object literals
options
options
:
object
allow
Rotation
allow
Rotation
:
false
= false
border
border
:
number
= 0
exclusive
Tag
exclusive
Tag
:
true
= true
logic
logic
:
MAX_EDGE
= PACKING_LOGIC.MAX_EDGE
pot
pot
:
true
= true
smart
smart
:
true
= true
square
square
:
true
= true
tag
tag
:
false
= false
Globals
"abstract-
bin"
"geom/
Rectangle"
"index"
"maxrects-
bin"
"maxrects-
packer"
"oversized-
element-
bin"
Max
Rects
Bin
constructor
_dirty
data
free
Rects
height
max
Height
max
Width
padding
rects
tag
width
dirty
add
clone
repack
reset
set
Dirty
options
Generated using
TypeDoc
Set bin dirty status
Bin