@grafana/ui
Version:
Grafana Components Library
24 lines (23 loc) • 1.09 kB
TypeScript
import { type FieldDisplay } from '@grafana/data';
import { type RadialShape, type RadialGaugeDimensions, type GradientStop } from './types';
interface RadialArcPathPropsBase {
arcLengthDeg: number;
barEndcaps?: boolean;
dimensions: RadialGaugeDimensions;
fieldDisplay: FieldDisplay;
roundedBars?: boolean;
shape: RadialShape;
endpointMarker?: 'point' | 'glow';
startAngle: number;
glowFilter?: string;
endpointMarkerGlowFilter?: string;
}
interface RadialArcPathPropsWithColor extends RadialArcPathPropsBase {
color: string;
}
interface RadialArcPathPropsWithGradient extends RadialArcPathPropsBase {
gradient: GradientStop[];
}
type RadialArcPathProps = RadialArcPathPropsWithColor | RadialArcPathPropsWithGradient;
export declare const RadialArcPath: import("react").MemoExoticComponent<({ arcLengthDeg, dimensions, fieldDisplay, roundedBars, shape, endpointMarker, barEndcaps, startAngle: angle, glowFilter: rawGlowFilter, endpointMarkerGlowFilter, ...rest }: RadialArcPathProps) => import("react/jsx-runtime").JSX.Element>;
export {};