import { Domain } from "../../../utils/types"; export type Link = { regionA: Domain; regionB: Domain; score: number; }; export type ClickedLink = { link: Link; anchor: Domain; } export type LinkTrackProps = { data: Link[]; width: number; height: number; id?: string; transform?: string; color?: string; arcOpacity?: number; domain: Domain; scoreThreshold?: number; colorMax?: number; onAnchorClick?: (link: ClickedLink) => void; onAnchorMouseOver?: (link: ClickedLink) => void; onAnchorMouseOut?: (link: ClickedLink) => void; onLinkClick?: (link: Link) => void; onLinkMouseOver?: (link: Link) => void; onLinkMouseOut?: (link: Link) => void; }; export type Rect = { start: number; end: number; fill: string; }; export type FilledPath = { d: string; fill: string; stroke?: string; };