1 | import Chart from '../../chart';
|
2 | import Coord from '../../coord';
|
3 | import { AnimationCycle } from '../../canvas/animation/interface';
|
4 | import { SelectionProps } from './selection';
|
5 |
|
6 | export interface AttrRange {
|
7 | shape?: any[];
|
8 | color?: any[];
|
9 | size?: any[];
|
10 | }
|
11 |
|
12 | export type GeomType = 'line' | 'point' | 'area' | 'polygon' | 'schema' | 'interval';
|
13 |
|
14 | interface Style {
|
15 | [k: string]: any;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export type GeometryAdjustType =
|
22 |
|
23 | | 'stack'
|
24 |
|
25 | | 'dodge'
|
26 |
|
27 | | 'symmetric';
|
28 |
|
29 | export type GeometryAdjust = {
|
30 | type: GeometryAdjustType;
|
31 | [k: string]: any;
|
32 | };
|
33 |
|
34 | export type AdjustConfig = GeometryAdjust | GeometryAdjustType;
|
35 |
|
36 | export interface GeometryProps extends SelectionProps {
|
37 | data?: any;
|
38 | adjust?: AdjustConfig;
|
39 | chart?: Chart;
|
40 | coord?: Coord;
|
41 | startOnZero?: boolean;
|
42 | style?: Style;
|
43 | animation?: AnimationCycle;
|
44 | [k: string]: any;
|
45 | }
|