import type { AxisGroupDefinition, AxisGroupRenderContext, AxisTickMarkRenderContext, AxisTickRenderContext, BaseAxisProps as CoreBaseAxisProps } from '@primeui/chart-types'; import type { VNode } from 'vue'; export interface ChartXAxisProps extends SharedAxisProps { id?: string; position?: 'top' | 'bottom'; } export interface ChartYAxisProps extends SharedAxisProps { id?: string; position?: 'left' | 'right'; } /** All props shared between ChartXAxis and ChartYAxis. */ export interface SharedAxisProps extends CoreBaseAxisProps { /** Shared between XAxis ('top'|'bottom') and YAxis ('left'|'right') */ position?: string; /** * Custom tick-label renderer. **SVG mode:** return a `VNode`. **Canvas mode:** `context.ctx` * is a `CanvasRenderingContext2D` — draw imperatively and return nothing (`void`); the return * value is ignored. (Returning a `VNode` on canvas renders nothing.) */ render?: (context: AxisTickRenderContext) => VNode | null | void; /** Custom tick-mark renderer. Same dual SVG-VNode / canvas-`ctx` contract as `render`. */ renderTick?: (context: AxisTickMarkRenderContext) => VNode | null | void; } export interface ChartAxisGroupProps extends Omit { /** Custom render function for the group label area */ render?: (context: AxisGroupRenderContext) => VNode | null; }