-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.element.d.ts
More file actions
21 lines (21 loc) · 861 Bytes
/
core.element.d.ts
File metadata and controls
21 lines (21 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type { AnyObject } from '../types/basic.js';
import type { Point } from '../types/geometric.js';
import type { Animation } from '../types/animation.js';
export default class Element<T = AnyObject, O = AnyObject> {
static defaults: {};
static defaultRoutes: any;
x: number;
y: number;
active: boolean;
options: O;
$animations: Record<keyof T, Animation>;
tooltipPosition(useFinalPosition: boolean): Point;
hasValue(): boolean;
/**
* Gets the current or final value of each prop. Can return extra properties (whole object).
* @param props - properties to get
* @param [final] - get the final value (animation target)
*/
getProps<P extends (keyof T)[]>(props: P, final?: boolean): Pick<T, P[number]>;
getProps<P extends string>(props: P[], final?: boolean): Partial<Record<P, unknown>>;
}