webglimpse
Version:
Webglimpse is a data visualization library for the web.
27 lines (26 loc) • 1.37 kB
TypeScript
import { Color } from '../color';
import { Drawable, Painter } from '../core';
import { TimeAxis1D } from './time_axis';
import { Axis1D } from '../plot/axis';
import { TimelineModel, TimelineRowModel } from './timeline_model';
import { TimelineUi } from './timeline_ui';
import { EdgeAxisPainterOptions } from '../plot/edge_axis_painter';
import { TimelineRowPaneFactory } from './timeline_row';
export interface TimelineTimeseriesPainterOptions {
timelineFont: string;
timelineFgColor: Color;
timelineThickness: number;
rowTopPadding: number;
rowBottomPadding: number;
}
export declare type TimelineTimeseriesPainterFactory = (drawable: Drawable, timeAxis: TimeAxis1D, dataAxis: Axis1D, model: TimelineModel, rowModel: TimelineRowModel, ui: TimelineUi, options: TimelineTimeseriesPainterOptions) => Painter;
export interface TimelineTimeseriesRowPaneOptions {
rowHeight?: number;
rowTopPadding?: number;
rowBottomPadding?: number;
axisOptions?: EdgeAxisPainterOptions;
axisWidth?: number;
painterFactories?: TimelineTimeseriesPainterFactory[];
}
export declare function newTimeseriesRowPaneFactory(rowOptions?: TimelineTimeseriesRowPaneOptions): TimelineRowPaneFactory;
export declare function newTimeseriesPainterFactory(options?: TimelineTimeseriesPainterOptions): TimelineTimeseriesPainterFactory;