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)

graph LR getCursorPosition["getCursorPosition"] applyZoomEffect["applyZoomEffect"] applyZoomEffect -->|uses| getCursorPosition style getCursorPosition fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getCursorPosition "18c6e5f4ac827d5c.html" click applyZoomEffect "252fd536336c2277.html"
SourceType
applyZoomEffect uses