Reactive elementByPoint
const { const element: HTMLElement | null
element } = useElementByPoint<false>(options: useElementByPointOptions<false>): UseElementByPointReturn<false>
useElementByPoint({
x: number
x: const mouse: {
x: number;
y: number;
}
mouse.x: number
x,
y: number
y: const mouse: {
x: number;
y: number;
}
mouse.y: number
y,
multiple?: false | undefined
multiple: false,
immediate?: boolean | undefined
immediate: true,
})
type type UseElementByPointReturn<M extends boolean = false> = {
element: M extends true ? HTMLElement[] : HTMLElement | null;
start: () => void;
stop: () => void;
isActive: boolean;
}
UseElementByPointReturn<function (type parameter) M in type UseElementByPointReturn<M extends boolean = false>
M extends boolean = false> = {
element: M extends true ? HTMLElement[] : HTMLElement | null
element: function (type parameter) M in type UseElementByPointReturn<M extends boolean = false>
M extends true ? HTMLElement[] : HTMLElement | null
start: () => void
start: () => void
stop: () => void
stop: () => void
isActive: boolean
isActive: boolean
}