import { TernaryData, TernaryOptions, CartesianPoint } from './types'; /** * Convert ternary coordinates (a, b, c) to Cartesian (x, y) * * The triangle is positioned with: * - A (top vertex) at (0.5, sqrt(3)/2) * - B (bottom-left) at (0, 0) * - C (bottom-right) at (1, 0) * * Formula: * x = c + b/2 * y = b * sqrt(3)/2 */ export declare function ternaryToCartesian(a: number, b: number, c: number): CartesianPoint; /** * Convert arrays of ternary coordinates to Cartesian */ export declare function convertTernaryData(data: TernaryData): CartesianPoint[]; /** * Draw ternary grid lines */ export declare function drawTernaryGrid(ctx: CanvasRenderingContext2D, centerX: number, centerY: number, size: number, divisions?: number, gridColor?: string, gridWidth?: number): void; /** * Draw ternary triangle outline */ export declare function drawTernaryOutline(ctx: CanvasRenderingContext2D, centerX: number, centerY: number, size: number, color?: string, lineWidth?: number): void; /** * Draw ternary component labels */ export declare function drawTernaryLabels(ctx: CanvasRenderingContext2D, centerX: number, centerY: number, size: number, labelA?: string, labelB?: string, labelC?: string, fontSize?: number, color?: string): void; /** * Render ternary scatter points */ export declare function renderTernaryPoints(ctx: CanvasRenderingContext2D, data: TernaryData, centerX: number, centerY: number, size: number, pointSize?: number, color?: string): void; /** * Complete ternary plot renderer */ export declare function renderTernaryPlot(ctx: CanvasRenderingContext2D, data: TernaryData, options?: TernaryOptions): void;