1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | import { AxisBreak, IAxisBreakProperties, IAxisBreakAdapters, IAxisBreakEvents } from "./AxisBreak";
|
11 | import { CategoryAxis } from "./CategoryAxis";
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export interface ICategoryAxisBreakProperties extends IAxisBreakProperties {
|
22 | |
23 |
|
24 |
|
25 | startCategory?: string;
|
26 | |
27 |
|
28 |
|
29 | endCategory?: string;
|
30 | |
31 |
|
32 |
|
33 | startLocation?: number;
|
34 | |
35 |
|
36 |
|
37 | endLocation?: number;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 | export interface ICategoryAxisBreakEvents extends IAxisBreakEvents {
|
43 | }
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | export interface ICategoryAxisBreakAdapters extends IAxisBreakAdapters, ICategoryAxisBreakProperties {
|
50 | }
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | export declare class CategoryAxisBreak extends AxisBreak {
|
63 | |
64 |
|
65 |
|
66 | _properties: ICategoryAxisBreakProperties;
|
67 | |
68 |
|
69 |
|
70 | _adapter: ICategoryAxisBreakAdapters;
|
71 | |
72 |
|
73 |
|
74 | _events: ICategoryAxisBreakEvents;
|
75 | |
76 |
|
77 |
|
78 | _axisType: CategoryAxis;
|
79 | |
80 |
|
81 |
|
82 | constructor();
|
83 | /**
|
84 | * Pixel position of the break's start.
|
85 | *
|
86 | * @return Position (px)
|
87 | * @readonly
|
88 | */
|
89 | readonly startPosition: number;
|
90 | /**
|
91 | * Pixel position of the break's end.
|
92 | *
|
93 | * @return Position (px)
|
94 | * @readonly
|
95 | */
|
96 | readonly endPosition: number;
|
97 | /**
|
98 | * A category break starts on.
|
99 | *
|
100 | * @param value Start category
|
101 | */
|
102 | /**
|
103 | * @return Start category
|
104 | */
|
105 | startCategory: string;
|
106 | /**
|
107 | * A category break ends on.
|
108 | *
|
109 | * @param value End category
|
110 | */
|
111 | /**
|
112 | * @return End category
|
113 | */
|
114 | endCategory: string;
|
115 | /**
|
116 | * An index of start category.
|
117 | *
|
118 | * @param value Value
|
119 | */
|
120 | /**
|
121 | * @return Value
|
122 | */
|
123 | startValue: number;
|
124 | /**
|
125 | * An index of end category or a end value.
|
126 | *
|
127 | * @param value Value
|
128 | */
|
129 | /**
|
130 | * @return Value
|
131 | */
|
132 | endValue: number;
|
133 | /**
|
134 | * Indicates where within starting category break should begin.
|
135 | *
|
136 | * Values range from `0` (start) to `1` (end), with default being `0.5` (middle).
|
137 | *
|
138 | * E.g. if you want to a break to fully encompass start and end categories,
|
139 | * you should set `startLocation = 0` and `endLocation = 1`.
|
140 | *
|
141 | * @since 4.9.17
|
142 | * @default 0.5
|
143 | * @param value Break start location
|
144 | */
|
145 | /**
|
146 | * @return Break start location
|
147 | */
|
148 | startLocation: number;
|
149 | /**
|
150 | * Indicates where within ending category break should end.
|
151 | *
|
152 | * Values range from `0` (start) to `1` (end), with default being `0.5` (middle).
|
153 | *
|
154 | * E.g. if you want to a break to fully encompass start and end categories,
|
155 | * you should set `startLocation = 0` and `endLocation = 1`.
|
156 | *
|
157 | * @since 4.9.17
|
158 | * @default 0.5
|
159 | * @param value Break end location
|
160 | */
|
161 | /**
|
162 | * @return Break end location
|
163 | */
|
164 | endLocation: number;
|
165 | }
|