import { CompleteTheme } from '@dfnivo/core'; import { ScaleValue, AnyScale, TicksSpec } from '@dfnivo/scales'; import { AxisLegendPosition, CanvasAxisProps, ValueFormatter } from './types'; import { CanvasLine, CanvasRenderable, CanvasRenderableProps } from '@dfnivo/canvas'; export type GetCanvasAxisProps = { axis: 'x' | 'y'; scale: AnyScale; x?: number; y?: number; length: number; ticksPosition: 'before' | 'after'; tickValues?: TicksSpec; tickSize?: number; tickPadding?: number; tickRotation?: number; format?: string | ValueFormatter; legend?: string; legendPosition?: AxisLegendPosition; legendOffset?: number; theme: CompleteTheme; }; export declare const getCanvasAxis: ({ axis, scale, x, y, length, ticksPosition, tickValues, tickSize, tickPadding, tickRotation, format: _format, legend, legendPosition, legendOffset, theme, }: GetCanvasAxisProps) => CanvasRenderable[]; export declare const renderAxisToCanvas: (ctx: CanvasRenderingContext2D, props: GetCanvasAxisProps) => void; export type GetCanvasAxesProps = { xScale: AnyScale; yScale: AnyScale; width: number; height: number; top?: CanvasAxisProps | null; right?: CanvasAxisProps | null; bottom?: CanvasAxisProps | null; left?: CanvasAxisProps | null; theme: CompleteTheme; }; export declare const getCanvasAxes: ({ xScale, yScale, width, height, top, right, bottom, left, theme, }: GetCanvasAxesProps) => CanvasRenderable[]; export declare const useCanvasAxes: ({ xScale, yScale, width, height, top, right, bottom, left, theme, }: GetCanvasAxesProps) => CanvasRenderable[]; export declare const renderAxesToCanvas: (ctx: CanvasRenderingContext2D, props: GetCanvasAxesProps) => void; export type CanvasGridLineProps = { width: number; height: number; scale: AnyScale; axis: 'x' | 'y'; values?: TicksSpec; theme: CompleteTheme; }; export declare const getCanvasGridLines: ({ width, height, scale, axis, values, theme, }: CanvasGridLineProps) => CanvasLine[]; export declare const useCanvasGridLines: ({ enable, width, height, scale, axis, values, theme, }: CanvasGridLineProps & { enable?: boolean | undefined; }) => CanvasLine[]; export declare const renderGridLinesToCanvas: (ctx: CanvasRenderingContext2D, props: CanvasGridLineProps) => void; //# sourceMappingURL=canvas.d.ts.map