getCursorPosition function exported
Last updated: 2026-03-05T11:38:55.014Z
Metrics
LOC: 4
Complexity: 2
Params: 0
Signature
getCursorPosition(): : { x: number; y: number } | null
Summary
Returns the current viewport centre of the synthetic cursor, or null if not injected.
Source Code
export function getCursorPosition(): { x: number; y: number } | null {
if (!cursorEl) return null;
return { x: currentX + CURSOR_SIZE / 2, y: currentY + CURSOR_SIZE / 2 };
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| applyZoomEffect | uses |