UNPKG

chart.js

Version:

Simple HTML5 charts using the canvas element.

18 lines (15 loc) 493 B
import { AnyObject } from './basic'; import { Point } from './geometric'; export interface Element<T = AnyObject, O = AnyObject> { readonly x: number; readonly y: number; readonly active: boolean; readonly options: O; tooltipPosition(useFinalPosition?: boolean): Point; hasValue(): boolean; getProps<P extends (keyof T)[]>(props: P, final?: boolean): Pick<T, P[number]>; } export const Element: { prototype: Element; new <T = AnyObject, O = AnyObject>(): Element<T, O>; };