@carbon/charts
Version:
Carbon Charts component library
16 lines (15 loc) • 648 B
TypeScript
import { TextAnchor, DominantBaseline } from '../interfaces/enums';
export interface Point {
x: number;
y: number;
}
export type Angle = number;
export interface LabelAlignment {
textAnchor: TextAnchor;
dominantBaseline: DominantBaseline;
}
export declare function radialLabelPlacement(angleRadians: Angle): LabelAlignment;
export declare function radToDeg(rad: Angle): Angle;
export declare function degToRad(deg: Angle): Angle;
export declare function polarToCartesianCoords(a: Angle, r: number, t?: Point): Point;
export declare function distanceBetweenPointOnCircAndVerticalDiameter(a: Angle, r: number): number;