import { MainAxis, XYPoint } from '@graphysdk/react'; import { Box } from '../../utils/read-boxplot'; /** A box in the `[0, 1]` view box, from its top left, y growing downward. */ export interface ViewBoxRect { x: number; y: number; width: number; height: number; } /** A straight line in the `[0, 1]` view box. */ export interface ViewBoxSegment { from: XYPoint; to: XYPoint; } /** One whisker: the stem from the box to its reach, and the cap across its end. */ export interface Whisker { side: 'lower' | 'upper'; stem: ViewBoxSegment; cap: ViewBoxSegment; } /** The box from the first quartile to the third, across its share of the band. */ export declare const readBoxRect: (box: Box, mainAxis: MainAxis) => ViewBoxRect; /** * A notched box's outline, clockwise from the first quartile: each side pinches in to the median across the * notch. A notch reaching past a quartile is drawn as it falls, folding over the box's end, as ggplot2 draws * it: the median's interval is wider than the box, which is worth seeing. `null` for a box with no notch. */ export declare const readNotchedOutline: (box: Box, mainAxis: MainAxis) => XYPoint[] | null; /** The median line, across the box's width at the median: its full width, or the notch's waist. */ export declare const readMedianSegment: (box: Box, mainAxis: MainAxis) => ViewBoxSegment; /** Where the mean marker sits, on the box's centre line; `null` for a box that shows no mean. */ export declare const readMeanPoint: (box: Box, mainAxis: MainAxis) => XYPoint | null; /** The whiskers that reach past the box; one that ends on its quartile draws nothing. */ export declare const readWhiskers: (box: Box, mainAxis: MainAxis) => Whisker[];