@carbon/charts
Version:
Carbon charting components
206 lines (205 loc) • 6.07 kB
TypeScript
import { TextAnchor, DominantBaseline } from '../interfaces/enums';
export interface Point {
x: number;
y: number;
}
export declare type Angle = number;
interface LabelAlignment {
textAnchor: TextAnchor;
dominantBaseline: DominantBaseline;
}
export declare function radialLabelPlacement(angleRadians: Angle): LabelAlignment;
export declare namespace radialLabelPlacement {
var displayName: string;
var __docgenInfo: {
"description": string;
"displayName": string;
"props": {
"toString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toFixed": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toExponential": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toPrecision": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"valueOf": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toLocaleString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
};
};
}
export declare function radToDeg(rad: Angle): Angle;
export declare namespace radToDeg {
var displayName: string;
var __docgenInfo: {
"description": string;
"displayName": string;
"props": {
"toString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toFixed": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toExponential": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toPrecision": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"valueOf": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toLocaleString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
};
};
}
export declare function degToRad(deg: Angle): Angle;
export declare namespace degToRad {
var displayName: string;
var __docgenInfo: {
"description": string;
"displayName": string;
"props": {
"toString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toFixed": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toExponential": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toPrecision": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"valueOf": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"toLocaleString": {
"defaultValue": any;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
};
};
}
export declare function polarToCartesianCoords(a: Angle, r: number, t?: Point): Point;
export declare function distanceBetweenPointOnCircAndVerticalDiameter(a: Angle, r: number): number;
export {};