UNPKG
@guruhotel/aura-hooks
Version:
latest (2.0.0)
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
🪝 Hooks library designed by the Guruhotel team for Aura UI
gitlab.com/guruhotel/aura-hooks
@guruhotel/aura-hooks
/
types
/
use-scroll-into-view
/
utils
/
get-relative-position.d.ts
9 lines
(8 loc)
•
282 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
const
getRelativePosition
:
(
{ axis, target, parent, alignment, offset, isList, }: { axis:
"x"
|
"y"
; target: HTMLElement |
null
; parent: HTMLElement |
null
; alignment:
"start"
|
"center"
|
"end"
; offset:
number
; isList:
boolean
; }
) =>
number
;