analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
19 lines • 795 B
TypeScript
/**
* Extracts a CSS variable from a Tailwind bg- class for SVG fill/stroke usage.
* E.g., "bg-success-800" → "var(--color-success-800)"
*/
export declare const bgClassToCssVar: (bgClass: string) => string;
/**
* Converts polar coordinates to Cartesian for SVG arc path calculations.
* Angles are in degrees, with 0° at the top (12 o'clock position).
*/
export declare const polarToCartesian: (cx: number, cy: number, r: number, angleDeg: number) => {
x: number;
y: number;
};
/**
* Generates an SVG filled arc (pie slice) path string.
* Draws from the center outward, covering startAngle → endAngle (degrees).
*/
export declare const describeArc: (cx: number, cy: number, r: number, startAngle: number, endAngle: number) => string;
//# sourceMappingURL=chartUtils.d.ts.map