1 | import { Point } from '../../../dependents';
|
2 | import { FilterCondition, EventPayload } from '../../../interface';
|
3 | import { View } from '../../../chart';
|
4 | import Action from '../base';
|
5 |
|
6 | declare enum EVENTS {
|
7 | FILTER = "brush-filter-processing",
|
8 | RESET = "brush-filter-reset",
|
9 | BEFORE_FILTER = "brush-filter:beforefilter",
|
10 | AFTER_FILTER = "brush-filter:afterfilter",
|
11 | BEFORE_RESET = "brush-filter:beforereset",
|
12 | AFTER_RESET = "brush-filter:afterreset"
|
13 | }
|
14 | export { EVENTS as BRUSH_FILTER_EVENTS };
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | declare class RangeFilter extends Action {
|
20 |
|
21 | protected cfgFields: ['dims'];
|
22 | |
23 |
|
24 |
|
25 | protected dims: string[];
|
26 |
|
27 | protected startPoint: Point;
|
28 | private isStarted;
|
29 | private hasDim;
|
30 | |
31 |
|
32 |
|
33 | start(): void;
|
34 | |
35 |
|
36 |
|
37 | filter(): void;
|
38 | |
39 |
|
40 |
|
41 | end(): void;
|
42 | |
43 |
|
44 |
|
45 | reset(): void;
|
46 | |
47 |
|
48 |
|
49 | protected filterView(view: View, field: string, filter: FilterCondition): void;
|
50 | |
51 |
|
52 |
|
53 |
|
54 | protected reRender(view: View, payload?: EventPayload): void;
|
55 | }
|
56 | export default RangeFilter;
|