1 | import { OrdinalOptions, Domain, Range } from '../types';
|
2 | import { Base } from './base';
|
3 | type Transform = (x: any) => any;
|
4 | export declare const defaultUnknown: unique symbol;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class Ordinal<O extends OrdinalOptions = OrdinalOptions> extends Base<O> {
|
16 | private domainIndexMap;
|
17 | private rangeIndexMap;
|
18 | protected sortedDomain: O['domain'];
|
19 | protected domainKey: Transform;
|
20 | protected rangeKey: Transform;
|
21 | protected getDefaultOptions(): O;
|
22 | constructor(options?: OrdinalOptions);
|
23 | map(x: Domain<O>): any;
|
24 | invert(y: Range<O>): any;
|
25 | protected rescale(options?: Partial<O>): void;
|
26 | clone(): Ordinal<O>;
|
27 | protected getRange(): any[];
|
28 | getDomain(): O["domain"];
|
29 | }
|
30 | export {};
|