@antv/f6-plugin
Version:
F6 plugin
34 lines (33 loc) • 1 kB
TypeScript
import { ShapeStyle } from '@antv/f6-core';
import { TimeBarData } from './time-bar';
export interface TimeBarTickOption {
readonly width?: number;
readonly padding?: number | string;
readonly tickBoxHeight?: number;
readonly selectedTickStyle?: ShapeStyle;
readonly unSelectedTickStyle?: ShapeStyle;
readonly tooltipBackgroundColor?: string;
readonly tickLabelStyle?: ShapeStyle;
readonly tickLineStyle?: ShapeStyle;
readonly start?: number;
readonly end?: number;
readonly tickLabelFormatter?: (d: any) => string | boolean;
readonly tooltipFomatter?: (d: any) => string;
}
export interface TimeBarTickContext {
data: TimeBarData[];
width: number;
padding: string | number;
selectedFill: string;
unSelectFill: string;
gap: number;
tickBoxHeight: number;
lineStyle: ShapeStyle;
textStyle: ShapeStyle;
tickWidth: number;
count: number;
start: number;
end: number;
selects: any[];
tickBoxs: any;
}