Class: AutoBounds
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AutoBounds(top?
, right?
, bottom?
, left?
, width?
, height?
): AutoBounds
Parameters
Name | Type |
---|---|
top? | number | IAutoBoundsData |
right? | number |
bottom? | number |
left? | number |
width? | number |
height? | number |
Returns
Defined in
leafer/packages/math/src/AutoBounds.ts:15
Properties
top
• top: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:7
right
• right: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:8
bottom
• bottom: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:9
left
• left: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:10
width
• width: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:12
height
• height: number
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:13
Methods
set
▸ set(top?
, right?
, bottom?
, left?
, width?
, height?
): void
Parameters
Name | Type | Default value |
---|---|---|
top | number | 0 |
right | number | 0 |
bottom | number | 0 |
left | number | 0 |
width | number | 0 |
height | number | 0 |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:19
copy
▸ copy(autoSize
): void
Parameters
Name | Type |
---|---|
autoSize | IAutoBoundsData |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/AutoBounds.ts:28
getBoundsFrom
▸ getBoundsFrom(parent
): IBounds
Parameters
Name | Type |
---|---|
parent | ISizeData |