Debian Codegraph @

vendor/static/chart.js/dist/core/core.element.d.ts

raw
1 import type { AnyObject } from '../types/basic.js';
2 import type { Point } from '../types/geometric.js';
3 import type { Animation } from '../types/animation.js';
4 export default class Element<T = AnyObject, O = AnyObject> {
5 static defaults: {};
6 static defaultRoutes: any;
7 x: number;
8 y: number;
9 active: boolean;
10 options: O;
11 $animations: Record<keyof T, Animation>;
12 tooltipPosition(useFinalPosition: boolean): Point;
13 hasValue(): boolean;
14 /**
15 * Gets the current or final value of each prop. Can return extra properties (whole object).
16 * @param props - properties to get
17 * @param [final] - get the final value (animation target)
18 */
19 getProps<P extends (keyof T)[]>(props: P, final?: boolean): Pick<T, P[number]>;
20 getProps<P extends string>(props: P[], final?: boolean): Partial<Record<P, unknown>>;
21 }