UNPKG

@gpa-gemstone/react-graph

Version:
17 lines (16 loc) 737 B
import { AxisIdentifier } from './GraphContext'; import { IProps as ICircleProps } from './Circle'; interface IAggregationFunctions { XTransformation: (x: number) => number; YTransformation: (y: number, a: AxisIdentifier) => number; XInverseTransformation: (p: number) => number; YInverseTransformation: (p: number, a: AxisIdentifier) => number; } export interface IProps { canAggregate: (d1: ICircleProps, d2: ICircleProps, fxn: IAggregationFunctions) => boolean; onAggregation: (data: ICircleProps[], fxn: IAggregationFunctions) => ICircleProps; data: ICircleProps[]; useSingleAggregation?: boolean; } declare const AggregatingCircles: (props: IProps) => JSX.Element; export default AggregatingCircles;