Chart.js/types/element.d.ts
Jukka Kurkela 2988a6c6dc
Fix type linting and indent errors (#9843)
* Fix type linting and indent errors
* Properly indent comments too
2021-11-11 15:00:52 -05:00

18 lines
493 B
TypeScript

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>;
};