963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
1.0 KiB
1.0 KiB
category
| category |
|---|
| Sensors |
useElementByPoint
Reactive element by point.
Usage
import { useElementByPoint, useMouse } from '@vueuse/core';
const { x, y } = useMouse({ type: 'client' });
const { element } = useElementByPoint({ x, y });
Type Declarations
export interface UseElementByPointOptions<
Multiple extends boolean = false,
> extends ConfigurableDocument {
x: MaybeRefOrGetter<number>;
y: MaybeRefOrGetter<number>;
multiple?: MaybeRefOrGetter<Multiple>;
immediate?: boolean;
interval?: 'requestAnimationFrame' | number;
}
export interface UseElementByPointReturn<Multiple extends boolean = false> extends Pausable {
isSupported: ComputedRef<boolean>;
element: ShallowRef<Multiple extends true ? HTMLElement[] : HTMLElement | null>;
}
/**
* Reactive element by point.
*
* @see https://vueuse.org/useElementByPoint
* @param options - UseElementByPointOptions
*/
export declare function useElementByPoint<M extends boolean = false>(
options: UseElementByPointOptions<M>,
): UseElementByPointReturn<M>;