import * as React from 'react'; import { TimeGraphAxis } from 'timeline-chart/lib/layer/time-graph-axis'; import { TimeGraphAxisCursors } from 'timeline-chart/lib/layer/time-graph-axis-cursors'; import { ReactTimeGraphContainer } from './timegraph-container-component'; import { TimeGraphUnitController } from 'timeline-chart/lib/time-graph-unit-controller'; interface TimeAxisProps { unitController: TimeGraphUnitController; style: { width: number; chartBackgroundColor: number; cursorColor: number; lineColor: number; verticalAlign: string; }; addWidgetResizeHandler: (handler: () => void) => void; removeWidgetResizeHandler: (handler: () => void) => void; } export class TimeAxisComponent extends React.Component { render(): JSX.Element { return ( ); } protected getAxisLayer(): TimeGraphAxis { const timeAxisLayer = new TimeGraphAxis('timeGraphAxis', { color: this.props.style.chartBackgroundColor, lineColor: this.props.style.lineColor, verticalAlign: this.props.style.verticalAlign }); return timeAxisLayer; } protected getAxisCursors(): TimeGraphAxisCursors { return new TimeGraphAxisCursors('timeGraphAxisCursors', { color: this.props.style.cursorColor }); } }