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 ​
src/leafer/packages/math/src/AutoBounds.ts:17
Properties ​
top ​
• top: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:9
right ​
• right: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:10
bottom ​
• bottom: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:11
left ​
• left: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:12
width ​
• width: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:14
height ​
• height: number
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:15
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 ​
src/leafer/packages/math/src/AutoBounds.ts:21
copy ​
â–¸ copy(autoSize): void
Parameters ​
| Name | Type |
|---|---|
autoSize | IAutoBoundsData |
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/math/src/AutoBounds.ts:30
getBoundsFrom ​
â–¸ getBoundsFrom(parent): IBounds
Parameters ​
| Name | Type |
|---|---|
parent | ISizeData |