viser
Version:
viser is a toolkit fit for data vis engineer.
40 lines (39 loc) • 1.02 kB
TypeScript
import IFilter from './IFilter';
declare type eventFunc = (ev: any, chart: any) => void;
interface IBackground {
stroke?: string;
strokeOpacity?: number;
lineWidth?: number;
fill?: string;
fillOpactiy?: number;
radius?: number;
}
export interface IChart {
id?: any;
container?: any;
height?: number;
width?: number;
animate?: boolean | object;
forceFit?: boolean;
background?: IBackground;
plotBackground?: IBackground;
padding?: number | object | number[] | string;
theme?: string;
renderer?: string;
filter?: IFilter;
onMouseDown?: eventFunc;
onMouseMove?: eventFunc;
onMouseLeave?: eventFunc;
onMouseUp?: eventFunc;
onClick?: eventFunc;
onDblClick?: eventFunc;
onTouchStart?: eventFunc;
onTouchMove?: eventFunc;
onTouchEnd?: eventFunc;
onPlotEnter?: eventFunc;
onPlotMove?: eventFunc;
onPlotLeave?: eventFunc;
onPlotClick?: eventFunc;
onPlotDbClick?: eventFunc;
}
export default IChart;