Skip to content

Interface: IBounds

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

x

x: number

Inherited from

IBoundsData.x

Defined in

leafer/packages/interface/src/math/IMath.ts:5


y

y: number

Inherited from

IBoundsData.y

Defined in

leafer/packages/interface/src/math/IMath.ts:6


width

width: number

Inherited from

IBoundsData.width

Defined in

leafer/packages/interface/src/math/IMath.ts:63


height

height: number

Inherited from

IBoundsData.height

Defined in

leafer/packages/interface/src/math/IMath.ts:64


minX

minX: number

Inherited from

ITwoPointBoundsData.minX

Defined in

leafer/packages/interface/src/math/IMath.ts:128


minY

minY: number

Inherited from

ITwoPointBoundsData.minY

Defined in

leafer/packages/interface/src/math/IMath.ts:129


maxX

maxX: number

Inherited from

ITwoPointBoundsData.maxX

Defined in

leafer/packages/interface/src/math/IMath.ts:130


maxY

maxY: number

Inherited from

ITwoPointBoundsData.maxY

Defined in

leafer/packages/interface/src/math/IMath.ts:131

Methods

set

set(x?, y?, width?, height?): IBounds

Parameters

NameType
x?number | IBoundsData
y?number
width?number
height?number

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:86


get

get(): IBoundsData

Returns

IBoundsData

Defined in

leafer/packages/interface/src/math/IMath.ts:87


clone

clone(): IBounds

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:88


move

move(x, y): IBounds

Parameters

NameType
xnumber
ynumber

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:90


scale

scale(scaleX, scaleY?): IBounds

Parameters

NameType
scaleXnumber
scaleY?number

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:91


scaleOf

scaleOf(origin, scaleX, scaleY?): IBounds

Parameters

NameType
originIPointData
scaleXnumber
scaleY?number

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:92


toOuterOf

toOuterOf(matrix, to?): IBounds

Parameters

NameType
matrixIMatrixData
to?IBoundsData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:93


toInnerOf

toInnerOf(matrix, to?): IBounds

Parameters

NameType
matrixIMatrixData
to?IBoundsData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:94


getFitMatrix

getFitMatrix(put, baseScale?): IMatrix

Parameters

NameType
putIBoundsData
baseScale?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:95


spread

spread(fourNumber, side?): IBounds

Parameters

NameType
fourNumberIFourNumber
side?ISide

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:97


shrink

shrink(fourNumber, side?): IBounds

Parameters

NameType
fourNumberIFourNumber
side?ISide

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:98


ceil

ceil(): IBounds

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:99


unsign

unsign(): IBounds

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:100


float

float(maxLength?): IBounds

Parameters

NameType
maxLength?number

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:101


add

add(bounds): IBounds

Parameters

NameType
boundsIBoundsData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:103


addList

addList(boundsList): IBounds

Parameters

NameType
boundsListIBoundsData[]

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:104


setList

setList(boundsList): IBounds

Parameters

NameType
boundsListIBoundsData[]

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:105


addListWithFn

addListWithFn(list, boundsDataHandle): IBounds

Parameters

NameType
listIObject[]
boundsDataHandleIBoundsDataFn

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:106


setListWithFn

setListWithFn(list, boundsDataHandle): IBounds

Parameters

NameType
listIObject[]
boundsDataHandleIBoundsDataFn

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:107


setPoint

setPoint(point): IBounds

Parameters

NameType
pointIPointData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:109


setPoints

setPoints(points): IBounds

Parameters

NameType
pointsIPointData[]

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:110


addPoint

addPoint(point): IBounds

Parameters

NameType
pointIPointData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:111


getPoints

getPoints(): IPointData[]

Returns

IPointData[]

Defined in

leafer/packages/interface/src/math/IMath.ts:112


hitPoint

hitPoint(point, pointMatrix?): boolean

Parameters

NameType
pointIPointData
pointMatrix?IMatrixData

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:114


hitRadiusPoint

hitRadiusPoint(point, pointMatrix?): boolean

Parameters

NameType
pointIRadiusPointData
pointMatrix?IMatrixWithLayoutData

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:115


hit

hit(bounds, boundsMatrix?): boolean

Parameters

NameType
boundsIBoundsData
boundsMatrix?IMatrixData

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:116


includes

includes(bounds, boundsMatrix?): boolean

Parameters

NameType
boundsIBoundsData
boundsMatrix?IMatrixData

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:117


intersect

intersect(bounds, boundsMatrix?): IBounds

Parameters

NameType
boundsIBoundsData
boundsMatrix?IMatrixData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:119


getIntersect

getIntersect(bounds, boundsMatrix?): IBounds

Parameters

NameType
boundsIBoundsData
boundsMatrix?IMatrixData

Returns

IBounds

Defined in

leafer/packages/interface/src/math/IMath.ts:120


isSame

isSame(bounds): boolean

Parameters

NameType
boundsIBoundsData

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:122


isEmpty

isEmpty(): boolean

Returns

boolean

Defined in

leafer/packages/interface/src/math/IMath.ts:123


reset

reset(): void

Returns

void

Defined in

leafer/packages/interface/src/math/IMath.ts:124

Released under the MIT License.