import type { Point } from '../../core/types/point.js'; import type { SankeyLayoutEdge, SankeyLayoutModel, SankeyLayoutNode } from '../types/sankey-internal.js'; import type { SankeyShape } from '../types/sankey-shape.js'; export declare function isPointInNode(node: SankeyLayoutNode, point: Point, tolerance?: number, minHitHeight?: number): boolean; export declare function isPointInEdgeRibbon(edge: SankeyLayoutEdge, point: Point, tolerance?: number): boolean; /** * Finds the sankey shape under `point`, if any. * * Nodes are tested first, then drop-offs, then edges: node rects are small, * deliberate targets that the wider ribbons converging on them would otherwise * swallow, and a drop-off ribbon sticks out of its node over the edges. Nodes * shorter than `MIN_NODE_HIT_HEIGHT` get an enlarged hit area; among * overlapping nodes the one nearest to the point wins (a point inside a node's * real bounds has distance 0), ties go to layout order. Among edges, the first * match in layout order wins. */ export declare function findHoveredShape(layout: SankeyLayoutModel, point: Point): SankeyShape | undefined; //# sourceMappingURL=find-hovered-shape.d.ts.map