useElementByPoint

Reactive elementByPoint

Usage

const { const element: HTMLElement | nullelement } = useElementByPoint<false>(options: useElementByPointOptions<false>): UseElementByPointReturn<false>useElementByPoint({
  x: numberx: 
const mouse: {
    x: number;
    y: number;
}
mouse
.x: numberx,
y: numbery:
const mouse: {
    x: number;
    y: number;
}
mouse
.y: numbery,
multiple?: false | undefinedmultiple: false, immediate?: boolean | undefinedimmediate: 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 | nullelement: function (type parameter) M in type UseElementByPointReturn<M extends boolean = false>M extends true ? HTMLElement[] : HTMLElement | null start: () => voidstart: () => void stop: () => voidstop: () => void isActive: booleanisActive: boolean }