2021-07-09 13:03:11 +02:00
|
|
|
import { AnyObject } from './basic';
|
2020-12-19 20:56:11 +01:00
|
|
|
import { Point } from './geometric';
|
|
|
|
|
2021-07-09 13:03:11 +02:00
|
|
|
export interface Element<T = AnyObject, O = AnyObject> {
|
2021-11-11 21:00:52 +01:00
|
|
|
readonly x: number;
|
|
|
|
readonly y: number;
|
|
|
|
readonly active: boolean;
|
|
|
|
readonly options: O;
|
2020-12-19 20:56:11 +01:00
|
|
|
|
2021-11-11 21:00:52 +01:00
|
|
|
tooltipPosition(useFinalPosition?: boolean): Point;
|
|
|
|
hasValue(): boolean;
|
|
|
|
getProps<P extends (keyof T)[]>(props: P, final?: boolean): Pick<T, P[number]>;
|
2020-12-19 20:56:11 +01:00
|
|
|
}
|
|
|
|
export const Element: {
|
2021-11-11 21:00:52 +01:00
|
|
|
prototype: Element;
|
|
|
|
new <T = AnyObject, O = AnyObject>(): Element<T, O>;
|
2020-12-19 20:56:11 +01:00
|
|
|
};
|