UNPKG

webglimpse

Version:

Webglimpse is a data visualization library for the web.

24 lines (23 loc) 869 B
import { Side } from '../misc'; import { Axis1D } from './axis'; import { Color } from '../color'; import { Gradient } from '../gradient'; import { Painter } from '../core'; export declare function edgeMarks_VERTSHADER(labelSide: Side): string; export declare let gradient_FRAGSHADER: string; export declare type TickLabeler = (value: number, axis: Axis1D, tickInterval: number) => string; export interface EdgeAxisPainterOptions { tickSpacing?: number; label?: string; units?: string; shortenLabels?: boolean; font?: string; textColor?: Color; tickColor?: Color; tickSize?: number; showLabel?: boolean; showBorder?: boolean; gradientFill?: Gradient; tickLabeler?: TickLabeler; } export declare function newEdgeAxisPainter(axis: Axis1D, labelSide: Side, options?: EdgeAxisPainterOptions): Painter;