Skip to content

Class: AutoBounds

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AutoBounds(top?, right?, bottom?, left?, width?, height?): AutoBounds

Parameters

NameType
top?number | IAutoBoundsData
right?number
bottom?number
left?number
width?number
height?number

Returns

AutoBounds

Defined in

leafer/packages/math/src/AutoBounds.ts:15

Properties

top

top: number

Implementation of

IAutoBounds.top

Defined in

leafer/packages/math/src/AutoBounds.ts:7


right: number

Implementation of

IAutoBounds.right

Defined in

leafer/packages/math/src/AutoBounds.ts:8


bottom

bottom: number

Implementation of

IAutoBounds.bottom

Defined in

leafer/packages/math/src/AutoBounds.ts:9


left

left: number

Implementation of

IAutoBounds.left

Defined in

leafer/packages/math/src/AutoBounds.ts:10


width

width: number

Implementation of

IAutoBounds.width

Defined in

leafer/packages/math/src/AutoBounds.ts:12


height

height: number

Implementation of

IAutoBounds.height

Defined in

leafer/packages/math/src/AutoBounds.ts:13

Methods

set

set(top?, right?, bottom?, left?, width?, height?): void

Parameters

NameTypeDefault value
topnumber0
rightnumber0
bottomnumber0
leftnumber0
widthnumber0
heightnumber0

Returns

void

Implementation of

IAutoBounds.set

Defined in

leafer/packages/math/src/AutoBounds.ts:19


copy

copy(autoSize): void

Parameters

NameType
autoSizeIAutoBoundsData

Returns

void

Implementation of

IAutoBounds.copy

Defined in

leafer/packages/math/src/AutoBounds.ts:28


getBoundsFrom

getBoundsFrom(parent): IBounds

Parameters

NameType
parentISizeData

Returns

IBounds

Implementation of

IAutoBounds.getBoundsFrom

Defined in

leafer/packages/math/src/AutoBounds.ts:33

Released under the MIT License.