Interface: IBounds
Hierarchy
↳
IBounds
Implemented by
Table of contents
Properties
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
Properties
x
• x: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:5
y
• y: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:6
width
• width: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:63
height
• height: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:64
minX
• minX: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:128
minY
• minY: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:129
maxX
• maxX: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:130
maxY
• maxY: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:131
Methods
set
▸ set(x?
, y?
, width?
, height?
): IBounds
Parameters
Name | Type |
---|---|
x? | number | IBoundsData |
y? | number |
width? | number |
height? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:86
get
▸ get(): IBoundsData
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:87
clone
▸ clone(): IBounds
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:88
move
▸ move(x
, y
): IBounds
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:90
scale
▸ scale(scaleX
, scaleY?
): IBounds
Parameters
Name | Type |
---|---|
scaleX | number |
scaleY? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:91
scaleOf
▸ scaleOf(origin
, scaleX
, scaleY?
): IBounds
Parameters
Name | Type |
---|---|
origin | IPointData |
scaleX | number |
scaleY? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:92
toOuterOf
▸ toOuterOf(matrix
, to?
): IBounds
Parameters
Name | Type |
---|---|
matrix | IMatrixData |
to? | IBoundsData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:93
toInnerOf
▸ toInnerOf(matrix
, to?
): IBounds
Parameters
Name | Type |
---|---|
matrix | IMatrixData |
to? | IBoundsData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:94
getFitMatrix
▸ getFitMatrix(put
, baseScale?
): IMatrix
Parameters
Name | Type |
---|---|
put | IBoundsData |
baseScale? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:95
spread
▸ spread(fourNumber
, side?
): IBounds
Parameters
Name | Type |
---|---|
fourNumber | IFourNumber |
side? | ISide |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:97
shrink
▸ shrink(fourNumber
, side?
): IBounds
Parameters
Name | Type |
---|---|
fourNumber | IFourNumber |
side? | ISide |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:98
ceil
▸ ceil(): IBounds
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:99
unsign
▸ unsign(): IBounds
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:100
float
▸ float(maxLength?
): IBounds
Parameters
Name | Type |
---|---|
maxLength? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:101
add
▸ add(bounds
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:103
addList
▸ addList(boundsList
): IBounds
Parameters
Name | Type |
---|---|
boundsList | IBoundsData [] |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:104
setList
▸ setList(boundsList
): IBounds
Parameters
Name | Type |
---|---|
boundsList | IBoundsData [] |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:105
addListWithFn
▸ addListWithFn(list
, boundsDataHandle
): IBounds
Parameters
Name | Type |
---|---|
list | IObject [] |
boundsDataHandle | IBoundsDataFn |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:106
setListWithFn
▸ setListWithFn(list
, boundsDataHandle
): IBounds
Parameters
Name | Type |
---|---|
list | IObject [] |
boundsDataHandle | IBoundsDataFn |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:107
setPoint
▸ setPoint(point
): IBounds
Parameters
Name | Type |
---|---|
point | IPointData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:109
setPoints
▸ setPoints(points
): IBounds
Parameters
Name | Type |
---|---|
points | IPointData [] |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:110
addPoint
▸ addPoint(point
): IBounds
Parameters
Name | Type |
---|---|
point | IPointData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:111
getPoints
▸ getPoints(): IPointData
[]
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:112
hitPoint
▸ hitPoint(point
, pointMatrix?
): boolean
Parameters
Name | Type |
---|---|
point | IPointData |
pointMatrix? | IMatrixData |
Returns
boolean
Defined in
leafer/packages/interface/src/math/IMath.ts:114
hitRadiusPoint
▸ hitRadiusPoint(point
, pointMatrix?
): boolean
Parameters
Name | Type |
---|---|
point | IRadiusPointData |
pointMatrix? | IMatrixWithLayoutData |
Returns
boolean
Defined in
leafer/packages/interface/src/math/IMath.ts:115
hit
▸ hit(bounds
, boundsMatrix?
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
boolean
Defined in
leafer/packages/interface/src/math/IMath.ts:116
includes
▸ includes(bounds
, boundsMatrix?
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
boolean
Defined in
leafer/packages/interface/src/math/IMath.ts:117
intersect
▸ intersect(bounds
, boundsMatrix?
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:119
getIntersect
▸ getIntersect(bounds
, boundsMatrix?
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:120
isSame
▸ isSame(bounds
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
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