1 | import { Band } from './band';
|
2 | import { PointOptions, BandOptions } from '../types';
|
3 | /**
|
4 | * Point 比例尺
|
5 | *
|
6 | * 一种特殊的 band scale,它的 bandWidth 恒为 0。
|
7 | *
|
8 | * 由于部分选项较为抽象,见下图描述:
|
9 | *
|
10 | * PO = Padding = PaddingInner
|
11 | * domain = ["A", "B", "C"]
|
12 | *
|
13 | * |<------------------------------------------- range ------------------------------------------->|
|
14 | * | | | | |
|
15 | * |<--step*PO-->|<--------------step------------->|<--------------step------------->|<--step*PO-->|
|
16 | * | | | | |
|
17 | * | A B C |
|
18 | * |-----------------------------------------------------------------------------------------------|
|
19 | *
|
20 | * 性能方便较 d3 快出 8 - 9 倍
|
21 | */
|
22 | export declare class Point extends Band<PointOptions & BandOptions> {
|
23 | protected getDefaultOptions(): {
|
24 | domain: any[];
|
25 | range: number[];
|
26 | align: number;
|
27 | round: boolean;
|
28 | padding: number;
|
29 | unknown: symbol;
|
30 | paddingInner: number;
|
31 | paddingOuter: number;
|
32 | };
|
33 | constructor(options?: PointOptions);
|
34 | protected getPaddingInner(): number;
|
35 | clone(): Point;
|
36 | update(options?: PointOptions): void;
|
37 | protected getPaddingOuter(): number;
|
38 | }
|