webglimpse
Version:
Webglimpse is a data visualization library for the web.
23 lines (22 loc) • 1.09 kB
TypeScript
import { Layout, Drawable, Pane, Painter } from './core';
import { Color } from './color';
export interface VerticalScrollLayout extends Layout {
jOffset: number;
hContent: number;
hVisible: number;
}
export declare function newVerticalScrollLayout(): VerticalScrollLayout;
export interface ScrollbarOptions {
fgColor?: Color;
bgColor?: Color;
borderColor?: Color;
borderThickness?: number;
borderTop?: boolean;
borderLeft?: boolean;
borderRight?: boolean;
borderBottom?: boolean;
}
export declare function newVerticalScrollbar(scrollLayout: VerticalScrollLayout, drawable: Drawable, options?: ScrollbarOptions): Pane;
export declare function newVerticalScrollbarPainter(scrollLayout: VerticalScrollLayout, options?: ScrollbarOptions): Painter;
export declare function attachTimelineVerticalScrollMouseListeners(pane: Pane, scrollLayout: VerticalScrollLayout, drawable: Drawable): void;
export declare function attachVerticalScrollMouseListeners(scrollbar: Pane, scrollLayout: VerticalScrollLayout, drawable: Drawable): void;