/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. * * The hover cursor (#609) — DIRECT DOM writes, zero renders. * * The hairline + ruler chip are display-only chrome, driven the way the landing * band is driven: `move` sets ONE CSS variable on the body — every row's * hairline positions from `--plan-cursor-x` and shows only under * `[data-plan-cursor]` — and writes the chip's label and position directly. * Routing this through state committed the ENTIRE canvas once per pointermove; * now a pointermove renders nothing at all. * * The hovered BUCKET is published to subscribers (#743) — each chart row's * crosshair readout — only when it changes, so a pointer gliding across one * bucket costs them nothing, and they too write the DOM directly. * * @packageDocumentation */ import { type RefObject } from "react"; import type { PlanCursor } from "../context.js"; import type { PlanScale } from "../scale.js"; /** * The canvas's cursor controller. * * @param bodyRef - The canvas body (carries the CSS variable) * @param chipRef - The ruler's cursor chip * @param scale - The shared scale (the chip names the hovered bucket) * @returns The controller rows report pointer moves to */ export declare function usePlanCursorController(bodyRef: RefObject, chipRef: RefObject, scale: PlanScale | undefined): PlanCursor; //# sourceMappingURL=cursor.d.ts.map