/** @jsxImportSource react */ import { BoundedObject, BoundedObjectConfig, BoundedObjectInstance } from "../svg/BoundedObject"; import { RenderingContext, CxChild } from "../ui/RenderingContext"; import { NumberProp, StyleProp } from "../ui/Prop"; import type { ChartRenderingContext } from "./Chart"; export interface SwimlanesConfig extends BoundedObjectConfig { /** * Name of the horizontal axis. The value should match one of the horizontal axes set * in the `axes` configuration of the parent `Chart` component. Default value is `x`. * Set to `false` to hide the grid lines in x direction. */ xAxis?: string | boolean; /** * Name of the vertical axis. The value should match one of the vertical axes set * in the `axes` configuration if the parent `Chart` component. Default value is `y`. * Set to `false` to hide the grid lines in y direction. */ yAxis?: string | boolean; /** Base CSS class to be applied to the element. Defaults to `swimlanes`. */ baseClass?: string; /** Represents a swimlane size. */ size?: NumberProp; /** * Represents a swimlane step. Define a step on which a swimlane will be rendered. (eg. step 2 will render * every second swimlane in the chart.) */ step?: NumberProp; /** Switch to vertical swimlanes. */ vertical?: boolean; /** The laneOffset property adjusts the positioning of lane elements, enhancing their alignment and readability. */ laneOffset?: NumberProp; /** Style object applied to the swimlanes. */ laneStyle?: StyleProp; } export interface SwimlanesInstance extends BoundedObjectInstance { xAxis?: any; yAxis?: any; } export declare class Swimlanes extends BoundedObject { xAxis: string; yAxis: string; anchors: string; baseClass: string; size: number; laneOffset: number; step: number; vertical: boolean; styled: boolean; laneStyle: any; CSS: any; constructor(config?: SwimlanesConfig); init(): void; declareData(...args: any[]): void; explore(context: ChartRenderingContext, instance: SwimlanesInstance): void; prepare(context: RenderingContext, instance: SwimlanesInstance): void; render(context: RenderingContext, instance: SwimlanesInstance, key: string): CxChild; } //# sourceMappingURL=Swimlanes.d.ts.map