-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (30 loc) · 850 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare class MutationMap<T extends HTMLElement, Data extends {
position: number;
text: string;
isDRM: boolean;
isUnusual: boolean;
}> {
#private;
scaleX?: {
(num: number): number;
invert: (x: number) => number;
};
constructor(el: T);
setDomain(val: [number, number]): this;
setShorten(overallWidth: number, width: number, x: number): this;
setTickValues(val: number[]): this;
setText(text: string, config: {
background: string;
color: string;
}): this;
setData(val: Data[]): this;
setInterval(val: number): this;
render(): void;
}
declare const createMutationMap: <T extends HTMLElement, Data extends {
position: number;
text: string;
isDRM: boolean;
isUnusual: boolean;
}>(el: T) => MutationMap<T, Data>;
export { createMutationMap };