çŽä˝ä¸ć
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?
): Bounds
Parameters â
Name | Type |
---|---|
x? | number | IBoundsData |
y? | number |
width? | number |
height? | number |
Returns â
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