1 | import { SwiperOptions } from './swiper-options';
|
2 | import Swiper from './swiper-class';
|
3 |
|
4 | import { A11yEvents } from './components/a11y';
|
5 | import { AutoplayEvents } from './components/autoplay';
|
6 | import { ControllerEvents } from './components/controller';
|
7 | import { CoverflowEffectEvents } from './components/effect-coverflow';
|
8 | import { CubeEffectEvents } from './components/effect-cube';
|
9 | import { FadeEffectEvents } from './components/effect-fade';
|
10 | import { FlipEffectEvents } from './components/effect-flip';
|
11 | import { HashNavigationEvents } from './components/hash-navigation';
|
12 | import { HistoryEvents } from './components/history';
|
13 | import { KeyboardEvents } from './components/keyboard';
|
14 | import { LazyEvents } from './components/lazy';
|
15 | import { MousewheelEvents } from './components/mousewheel';
|
16 | import { NavigationEvents } from './components/navigation';
|
17 | import { PaginationEvents } from './components/pagination';
|
18 | import { ParallaxEvents } from './components/parallax';
|
19 | import { ScrollbarEvents } from './components/scrollbar';
|
20 | import { ThumbsEvents } from './components/thumbs';
|
21 | import { VirtualEvents } from './components/virtual';
|
22 | import { ZoomEvents } from './components/zoom';
|
23 |
|
24 | export interface SwiperEvents {
|
25 |
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | init: (swiper: Swiper) => any;
|
54 |
|
55 | |
56 |
|
57 |
|
58 | beforeDestroy: (swiper: Swiper) => void;
|
59 |
|
60 | |
61 |
|
62 |
|
63 | slideChange: (swiper: Swiper) => void;
|
64 |
|
65 | |
66 |
|
67 |
|
68 | slideChangeTransitionStart: (swiper: Swiper) => void;
|
69 |
|
70 | |
71 |
|
72 |
|
73 | slideChangeTransitionEnd: (swiper: Swiper) => void;
|
74 |
|
75 | |
76 |
|
77 |
|
78 | slideNextTransitionStart: (swiper: Swiper) => void;
|
79 |
|
80 | |
81 |
|
82 |
|
83 | slideNextTransitionEnd: (swiper: Swiper) => void;
|
84 |
|
85 | |
86 |
|
87 |
|
88 | slidePrevTransitionStart: (swiper: Swiper) => void;
|
89 |
|
90 | |
91 |
|
92 |
|
93 | slidePrevTransitionEnd: (swiper: Swiper) => void;
|
94 |
|
95 | |
96 |
|
97 |
|
98 | transitionStart: (swiper: Swiper) => void;
|
99 |
|
100 | |
101 |
|
102 |
|
103 | transitionEnd: (swiper: Swiper) => void;
|
104 |
|
105 | |
106 |
|
107 |
|
108 | touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
109 |
|
110 | |
111 |
|
112 |
|
113 | touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
114 |
|
115 | |
116 |
|
117 |
|
118 | touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
119 |
|
120 | |
121 |
|
122 |
|
123 | sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
124 |
|
125 | |
126 |
|
127 |
|
128 | touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
129 |
|
130 | |
131 |
|
132 |
|
133 | click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
134 |
|
135 | |
136 |
|
137 |
|
138 | tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
139 |
|
140 | |
141 |
|
142 |
|
143 | doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
144 |
|
145 | |
146 |
|
147 |
|
148 | imagesReady: (swiper: Swiper) => void;
|
149 |
|
150 | |
151 |
|
152 |
|
153 | progress: (swiper: Swiper, progress: number) => void;
|
154 |
|
155 | |
156 |
|
157 |
|
158 | reachBeginning: (swiper: Swiper) => void;
|
159 |
|
160 | |
161 |
|
162 |
|
163 | reachEnd: (swiper: Swiper) => void;
|
164 |
|
165 | |
166 |
|
167 |
|
168 | toEdge: (swiper: Swiper) => void;
|
169 |
|
170 | |
171 |
|
172 |
|
173 | fromEdge: (swiper: Swiper) => void;
|
174 |
|
175 | |
176 |
|
177 |
|
178 | setTranslate: (swiper: Swiper, translate: number) => void;
|
179 |
|
180 | |
181 |
|
182 |
|
183 | setTransition: (swiper: Swiper, transition: number) => void;
|
184 |
|
185 | |
186 |
|
187 |
|
188 | resize: (swiper: Swiper) => void;
|
189 |
|
190 | |
191 |
|
192 |
|
193 | observerUpdate: (swiper: Swiper) => void;
|
194 |
|
195 | |
196 |
|
197 |
|
198 | beforeLoopFix: (swiper: Swiper) => void;
|
199 |
|
200 | |
201 |
|
202 |
|
203 | loopFix: (swiper: Swiper) => void;
|
204 |
|
205 | |
206 |
|
207 |
|
208 | breakpoint: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
209 |
|
210 | |
211 |
|
212 |
|
213 | _beforeBreakpoint?: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
214 | |
215 |
|
216 |
|
217 | _containerClasses?: (swiper: Swiper, classNames: string) => void;
|
218 | |
219 |
|
220 |
|
221 | _slideClass?: (swiper: Swiper, el: HTMLElement, classNames: string) => void;
|
222 | |
223 |
|
224 |
|
225 | _swiper?: (swiper: Swiper) => void;
|
226 | |
227 |
|
228 |
|
229 | activeIndexChange: (swiper: Swiper) => void;
|
230 | |
231 |
|
232 |
|
233 | snapIndexChange: (swiper: Swiper) => void;
|
234 | |
235 |
|
236 |
|
237 | realIndexChange: (swiper: Swiper) => void;
|
238 | |
239 |
|
240 |
|
241 | afterInit: (swiper: Swiper) => void;
|
242 | |
243 |
|
244 |
|
245 | beforeInit: (swiper: Swiper) => void;
|
246 | |
247 |
|
248 |
|
249 | beforeResize: (swiper: Swiper) => void;
|
250 | |
251 |
|
252 |
|
253 | beforeSlideChangeStart: (swiper: Swiper) => void;
|
254 | |
255 |
|
256 |
|
257 | beforeTransitionStart: (swiper: Swiper, speed: number, internal: any) => void;
|
258 | |
259 |
|
260 |
|
261 | changeDirection: (swiper: Swiper) => void;
|
262 | |
263 |
|
264 |
|
265 | doubleClick: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
266 | |
267 |
|
268 |
|
269 | destroy: (swiper: Swiper) => void;
|
270 | |
271 |
|
272 |
|
273 | momentumBounce: (swiper: Swiper) => void;
|
274 | |
275 |
|
276 |
|
277 | orientationchange: (swiper: Swiper) => void;
|
278 | |
279 |
|
280 |
|
281 | slideResetTransitionStart: (swiper: Swiper) => void;
|
282 | |
283 |
|
284 |
|
285 | slideResetTransitionEnd: (swiper: Swiper) => void;
|
286 | |
287 |
|
288 |
|
289 | sliderFirstMove: (swiper: Swiper, event: TouchEvent) => void;
|
290 | |
291 |
|
292 |
|
293 | slidesLengthChange: (swiper: Swiper) => void;
|
294 | |
295 |
|
296 |
|
297 | slidesGridLengthChange: (swiper: Swiper) => void;
|
298 | |
299 |
|
300 |
|
301 | snapGridLengthChange: (swiper: Swiper) => void;
|
302 | |
303 |
|
304 |
|
305 | update: (swiper: Swiper) => void;
|
306 |
|
307 | }
|
308 |
|
309 | interface SwiperEvents extends A11yEvents {}
|
310 | interface SwiperEvents extends AutoplayEvents {}
|
311 | interface SwiperEvents extends ControllerEvents {}
|
312 | interface SwiperEvents extends CoverflowEffectEvents {}
|
313 | interface SwiperEvents extends CubeEffectEvents {}
|
314 | interface SwiperEvents extends FadeEffectEvents {}
|
315 | interface SwiperEvents extends FlipEffectEvents {}
|
316 | interface SwiperEvents extends HashNavigationEvents {}
|
317 | interface SwiperEvents extends HistoryEvents {}
|
318 | interface SwiperEvents extends KeyboardEvents {}
|
319 | interface SwiperEvents extends LazyEvents {}
|
320 | interface SwiperEvents extends MousewheelEvents {}
|
321 | interface SwiperEvents extends NavigationEvents {}
|
322 | interface SwiperEvents extends PaginationEvents {}
|
323 | interface SwiperEvents extends ParallaxEvents {}
|
324 | interface SwiperEvents extends ScrollbarEvents {}
|
325 | interface SwiperEvents extends ThumbsEvents {}
|
326 | interface SwiperEvents extends VirtualEvents {}
|
327 | interface SwiperEvents extends ZoomEvents {}
|