UNPKG

webglimpse

Version:

Webglimpse is a data visualization library for the web.

29 lines (28 loc) 1.08 kB
import { Color } from '../color'; import { TimeAxis1D } from './time_axis'; import { Side } from '../misc'; import { Painter } from '../core'; export declare class FormatOptions { tickFormat: string; prefixFormat: string; constructor(tick: string, prefix: string); } export interface TimeAxisFormatOptions { hour?: FormatOptions; day?: FormatOptions; month?: FormatOptions; year?: FormatOptions; } export interface TimeAxisPainterOptions { tickSpacing?: number; font?: string; textColor?: Color; tickColor?: Color; tickSize?: number; labelAlign?: number; referenceDate?: string; timeAxisFormat?: TimeAxisFormatOptions; isFuturePositive?: boolean; } export declare function newTimeAxisPainter(timeAxis: TimeAxis1D, labelSide: Side, displayTimeZone: string, tickTimeZone: string, options?: TimeAxisPainterOptions): Painter; export declare function getTickTimes_PMILLIS(timeAxis: TimeAxis1D, sizePixels: number, tickSpacing: number, timeZone: string, referenceDate_PMILLIS: number): number[];