1 | import { Base } from './base';
|
2 | import { ContinuousOptions, Domain, Range, NiceMethod, TickMethodOptions } from '../types';
|
3 |
|
4 | export declare type Transform = (x: any) => any;
|
5 |
|
6 | export declare type CreateTransform = (...args: any[]) => Transform;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare abstract class Continuous<O extends ContinuousOptions> extends Base<O> {
|
13 |
|
14 | protected output: Transform;
|
15 |
|
16 | protected input: Transform;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | protected abstract chooseTransforms(): Transform[];
|
24 | protected getDefaultOptions(): O;
|
25 | |
26 |
|
27 |
|
28 | map(x: Domain<O>): any;
|
29 | |
30 |
|
31 |
|
32 | invert(x: Range<O>): any;
|
33 | protected nice(): void;
|
34 | getTicks(): (number | Date)[];
|
35 | protected getTickMethodOptions(): TickMethodOptions;
|
36 | protected chooseNice(): NiceMethod<number | Date>;
|
37 | protected rescale(): void;
|
38 | protected chooseClamp(transform: Transform): (x: number) => number;
|
39 | protected composeOutput(transform: Transform, clamp: Transform): void;
|
40 | protected composeInput(transform: Transform, untransform: Transform, clamp: Transform): void;
|
41 | }
|