export type ScatterPlotTone = "category1" | "category2" | "category3" | "category4" | "category5" | "category6" | "category7" | "category8"; export type ScatterPlotDatum = { x: number; y: number; label?: string; tone?: ScatterPlotTone; /** * Per-datum radius, clamped to a sane maximum (32). Non-finite or * negative ⇒ falls back to the global `radius`. */ r?: number; }; /** Cluster centroid marker (ring + cross), drawn above the data points. */ export type ScatterPlotCentroid = { x: number; y: number; tone?: ScatterPlotTone; label?: string; }; import { type ChartAnnotation } from "./chartAnnotations.js"; import { type DataLabelsProp } from "./chartDataLabels.js"; type ScatterPlotProps = { data: ScatterPlotDatum[]; width?: number; height?: number; xLabel?: string; yLabel?: string; radius?: number; /** * Cluster centroid markers (ring + cross), drawn above the points. Their * coordinates are folded into the axis domain. Non-finite x/y are skipped. */ centroids?: ScatterPlotCentroid[]; /** * Annotation overlay in DATA space (points, labels, axis lines, regions, * polygons). Both axes are continuous (linear). Additive: absent ⇒ unchanged. */ annotations?: ChartAnnotation[]; /** * Per-point value labels. `false`/absent → none. `true` → each point's value * (the datum `label` wins when present). Object → `format`/`position`. * Default position `top`. Labels are `aria-hidden`. */ dataLabels?: DataLabelsProp; /** * CONTROLLED synchronised hover key (FR-3). A point's key is its `label` when * present, otherwise `"x,y"`. Absent (`undefined`) keeps the uncontrolled * behaviour. */ hoverKey?: string | null; /** Emitted on hover (the key) / leave (`null`); fired even while controlled. */ onHoverKeyChange?: (key: string | null) => void; /** FR-5 — roving-tabindex keyboard navigation of the data points. */ keyboardNav?: boolean; /** Emitted on Enter/Space select (the key) / Escape (`null`); enables nav. */ onSelectKey?: (key: string | null) => void; label: string; class?: string; }; declare const ScatterPlot: import("svelte").Component; type ScatterPlot = ReturnType; export default ScatterPlot; //# sourceMappingURL=ScatterPlot.svelte.d.ts.map