import { FunctionComponent } from 'react'; import { SpringValue } from '@react-spring/web'; import { PropertyAccessor, BoxAnchor } from '@nivo/core'; import { InheritedColorConfig } from '@nivo/colors'; import { TextAlign, TextBaseline } from '@nivo/theming'; import { NodeWithRect, AnchorWithRect, NodeWithRectAndColor } from '../types'; export interface RectLabelProps extends RectComputedLabel { style: { x: SpringValue; y: SpringValue; rotation: SpringValue; progress: SpringValue; align: TextAlign; baseline: TextBaseline; }; testId?: string; } export type RectLabelComponent = FunctionComponent>; export interface RectLabelsProps { uid: PropertyAccessor, string>; label: PropertyAccessor, string>; labelBoxAnchor: BoxAnchor; labelIsOutside: boolean; labelPaddingX: number; labelPaddingY: number; labelAlign: TextAlign | 'auto'; labelBaseline: TextBaseline | 'auto'; labelRotation: number; labelSkipWidth: number; labelSkipHeight: number; labelOffsetX: number; labelOffsetY: number; labelTextColor: InheritedColorConfig>; labelComponent: RectLabelComponent; } export interface RectComputedLabel extends AnchorWithRect { node: Omit; label: string; color: string; rotation: number; } //# sourceMappingURL=types.d.ts.map