Class: Bounds โ
Implements โ
Table of contents โ
Constructors โ
Properties โ
Accessors โ
Methods โ
- set
- get
- clone
- move
- scale
- scaleOf
- toOuterOf
- toInnerOf
- getFitMatrix
- spread
- shrink
- ceil
- unsign
- float
- add
- addList
- setList
- addListWithFn
- setListWithFn
- setPoint
- setPoints
- addPoint
- getPoints
- hitPoint
- hitRadiusPoint
- hit
- includes
- intersect
- getIntersect
- isSame
- isEmpty
- reset
Constructors โ
constructor โ
โข new Bounds(x?
, y?
, width?
, height?
)
Parameters โ
Name | Type |
---|---|
x? | number | IBoundsData |
y? | number |
width? | number |
height? | number |
Defined in โ
leafer/packages/math/src/Bounds.ts:17
Properties โ
x โ
โข x: number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:7
y โ
โข y: number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:8
width โ
โข width: number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:9
height โ
โข height: number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:10
Accessors โ
minX โ
โข get
minX(): number
Returns โ
number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:12
minY โ
โข get
minY(): number
Returns โ
number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:13
maxX โ
โข get
maxX(): number
Returns โ
number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:14
maxY โ
โข get
maxY(): number
Returns โ
number
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:15
Methods โ
set โ
โธ set(x?
, y?
, width?
, height?
): IBounds
Parameters โ
Name | Type |
---|---|
x? | number | IBoundsData |
y? | number |
width? | number |
height? | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:21
get โ
โธ get(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:26
clone โ
โธ clone(): IBounds
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:31
move โ
โธ move(x
, y
): IBounds
Parameters โ
Name | Type |
---|---|
x | number |
y | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:36
scale โ
โธ scale(scaleX
, scaleY?
): IBounds
Parameters โ
Name | Type |
---|---|
scaleX | number |
scaleY? | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:41
scaleOf โ
โธ scaleOf(origin
, scaleX
, scaleY?
): IBounds
Parameters โ
Name | Type |
---|---|
origin | IPointData |
scaleX | number |
scaleY? | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:46
toOuterOf โ
โธ toOuterOf(matrix
, to?
): IBounds
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
to? | IBoundsData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:51
toInnerOf โ
โธ toInnerOf(matrix
, to?
): IBounds
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
to? | IBoundsData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:56
getFitMatrix โ
โธ getFitMatrix(put
, baseScale?
): IMatrix
Parameters โ
Name | Type |
---|---|
put | IBoundsData |
baseScale? | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:61
spread โ
โธ spread(fourNumber
, side?
): IBounds
Parameters โ
Name | Type |
---|---|
fourNumber | IFourNumber |
side? | ISide |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:65
shrink โ
โธ shrink(fourNumber
, side?
): IBounds
Parameters โ
Name | Type |
---|---|
fourNumber | IFourNumber |
side? | ISide |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:70
ceil โ
โธ ceil(): IBounds
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:75
unsign โ
โธ unsign(): IBounds
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:80
float โ
โธ float(maxLength?
): IBounds
Parameters โ
Name | Type |
---|---|
maxLength? | number |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:85
add โ
โธ add(bounds
): IBounds
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:91
addList โ
โธ addList(boundsList
): IBounds
Parameters โ
Name | Type |
---|---|
boundsList | IBoundsData [] |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:96
setList โ
โธ setList(boundsList
): IBounds
Parameters โ
Name | Type |
---|---|
boundsList | IBoundsData [] |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:101
addListWithFn โ
โธ addListWithFn(list
, boundsDataFn
): IBounds
Parameters โ
Name | Type |
---|---|
list | IObject [] |
boundsDataFn | IBoundsDataFn |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:106
setListWithFn โ
โธ setListWithFn(list
, boundsDataFn
): IBounds
Parameters โ
Name | Type |
---|---|
list | IObject [] |
boundsDataFn | IBoundsDataFn |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:111
setPoint โ
โธ setPoint(point
): IBounds
Parameters โ
Name | Type |
---|---|
point | IPointData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:117
setPoints โ
โธ setPoints(points
): IBounds
Parameters โ
Name | Type |
---|---|
points | IPointData [] |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:122
addPoint โ
โธ addPoint(point
): IBounds
Parameters โ
Name | Type |
---|---|
point | IPointData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:127
getPoints โ
โธ getPoints(): IPointData
[]
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:132
hitPoint โ
โธ hitPoint(point
, pointMatrix?
): boolean
Parameters โ
Name | Type |
---|---|
point | IPointData |
pointMatrix? | IMatrixData |
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:138
hitRadiusPoint โ
โธ hitRadiusPoint(point
, pointMatrix?
): boolean
Parameters โ
Name | Type |
---|---|
point | IRadiusPointData |
pointMatrix? | IMatrixWithLayoutData |
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:142
hit โ
โธ hit(bounds
, boundsMatrix?
): boolean
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:146
includes โ
โธ includes(bounds
, boundsMatrix?
): boolean
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:150
intersect โ
โธ intersect(bounds
, boundsMatrix?
): IBounds
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:155
getIntersect โ
โธ getIntersect(bounds
, boundsMatrix?
): IBounds
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:160
isSame โ
โธ isSame(bounds
): boolean
Parameters โ
Name | Type |
---|---|
bounds | IBoundsData |
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:165
isEmpty โ
โธ isEmpty(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
leafer/packages/math/src/Bounds.ts:169
reset โ
โธ reset(): void
Returns โ
void