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