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 |
|
54 |
|
55 |
|
56 |
|
57 | init: (swiper: Swiper) => any;
|
58 |
|
59 | |
60 |
|
61 |
|
62 | beforeDestroy: (swiper: Swiper) => void;
|
63 |
|
64 | |
65 |
|
66 |
|
67 | slideChange: (swiper: Swiper) => void;
|
68 |
|
69 | |
70 |
|
71 |
|
72 | slideChangeTransitionStart: (swiper: Swiper) => void;
|
73 |
|
74 | |
75 |
|
76 |
|
77 | slideChangeTransitionEnd: (swiper: Swiper) => void;
|
78 |
|
79 | |
80 |
|
81 |
|
82 | slideNextTransitionStart: (swiper: Swiper) => void;
|
83 |
|
84 | |
85 |
|
86 |
|
87 | slideNextTransitionEnd: (swiper: Swiper) => void;
|
88 |
|
89 | |
90 |
|
91 |
|
92 | slidePrevTransitionStart: (swiper: Swiper) => void;
|
93 |
|
94 | |
95 |
|
96 |
|
97 | slidePrevTransitionEnd: (swiper: Swiper) => void;
|
98 |
|
99 | |
100 |
|
101 |
|
102 | transitionStart: (swiper: Swiper) => void;
|
103 |
|
104 | |
105 |
|
106 |
|
107 | transitionEnd: (swiper: Swiper) => void;
|
108 |
|
109 | |
110 |
|
111 |
|
112 | touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
113 |
|
114 | |
115 |
|
116 |
|
117 | touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
118 |
|
119 | |
120 |
|
121 |
|
122 | touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
123 |
|
124 | |
125 |
|
126 |
|
127 | sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
128 |
|
129 | |
130 |
|
131 |
|
132 | touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
133 |
|
134 | |
135 |
|
136 |
|
137 | click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
138 |
|
139 | |
140 |
|
141 |
|
142 | tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
143 |
|
144 | |
145 |
|
146 |
|
147 | doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
148 |
|
149 | |
150 |
|
151 |
|
152 | imagesReady: (swiper: Swiper) => void;
|
153 |
|
154 | |
155 |
|
156 |
|
157 | progress: (swiper: Swiper, progress: number) => void;
|
158 |
|
159 | |
160 |
|
161 |
|
162 | reachBeginning: (swiper: Swiper) => void;
|
163 |
|
164 | |
165 |
|
166 |
|
167 | reachEnd: (swiper: Swiper) => void;
|
168 |
|
169 | |
170 |
|
171 |
|
172 | toEdge: (swiper: Swiper) => void;
|
173 |
|
174 | |
175 |
|
176 |
|
177 | fromEdge: (swiper: Swiper) => void;
|
178 |
|
179 | |
180 |
|
181 |
|
182 | setTranslate: (swiper: Swiper, translate: number) => void;
|
183 |
|
184 | |
185 |
|
186 |
|
187 | setTransition: (swiper: Swiper, transition: number) => void;
|
188 |
|
189 | |
190 |
|
191 |
|
192 | resize: (swiper: Swiper) => void;
|
193 |
|
194 | |
195 |
|
196 |
|
197 | observerUpdate: (swiper: Swiper) => void;
|
198 |
|
199 | |
200 |
|
201 |
|
202 | beforeLoopFix: (swiper: Swiper) => void;
|
203 |
|
204 | |
205 |
|
206 |
|
207 | loopFix: (swiper: Swiper) => void;
|
208 |
|
209 | |
210 |
|
211 |
|
212 | breakpoint: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
213 |
|
214 | |
215 |
|
216 |
|
217 | _beforeBreakpoint?: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
218 | |
219 |
|
220 |
|
221 | _containerClasses?: (swiper: Swiper, classNames: string) => void;
|
222 | |
223 |
|
224 |
|
225 | _slideClass?: (swiper: Swiper, el: HTMLElement, classNames: string) => void;
|
226 |
|
227 | |
228 |
|
229 |
|
230 | _slideClasses?: (
|
231 | swiper: Swiper,
|
232 | slides: { el: HTMLElement; classNames: string; index: number }[],
|
233 | ) => void;
|
234 |
|
235 | |
236 |
|
237 |
|
238 | _swiper?: (swiper: Swiper) => void;
|
239 | |
240 |
|
241 |
|
242 | activeIndexChange: (swiper: Swiper) => void;
|
243 | |
244 |
|
245 |
|
246 | snapIndexChange: (swiper: Swiper) => void;
|
247 | |
248 |
|
249 |
|
250 | realIndexChange: (swiper: Swiper) => void;
|
251 | |
252 |
|
253 |
|
254 | afterInit: (swiper: Swiper) => void;
|
255 | |
256 |
|
257 |
|
258 | beforeInit: (swiper: Swiper) => void;
|
259 | |
260 |
|
261 |
|
262 | beforeResize: (swiper: Swiper) => void;
|
263 | |
264 |
|
265 |
|
266 | beforeSlideChangeStart: (swiper: Swiper) => void;
|
267 | |
268 |
|
269 |
|
270 | beforeTransitionStart: (swiper: Swiper, speed: number, internal: any) => void;
|
271 | |
272 |
|
273 |
|
274 | changeDirection: (swiper: Swiper) => void;
|
275 | |
276 |
|
277 |
|
278 | doubleClick: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
279 | |
280 |
|
281 |
|
282 | destroy: (swiper: Swiper) => void;
|
283 | |
284 |
|
285 |
|
286 | momentumBounce: (swiper: Swiper) => void;
|
287 | |
288 |
|
289 |
|
290 | orientationchange: (swiper: Swiper) => void;
|
291 | |
292 |
|
293 |
|
294 | slideResetTransitionStart: (swiper: Swiper) => void;
|
295 | |
296 |
|
297 |
|
298 | slideResetTransitionEnd: (swiper: Swiper) => void;
|
299 | |
300 |
|
301 |
|
302 | sliderFirstMove: (swiper: Swiper, event: TouchEvent) => void;
|
303 | |
304 |
|
305 |
|
306 | slidesLengthChange: (swiper: Swiper) => void;
|
307 | |
308 |
|
309 |
|
310 | slidesGridLengthChange: (swiper: Swiper) => void;
|
311 | |
312 |
|
313 |
|
314 | snapGridLengthChange: (swiper: Swiper) => void;
|
315 | |
316 |
|
317 |
|
318 | update: (swiper: Swiper) => void;
|
319 |
|
320 | }
|
321 |
|
322 | interface SwiperEvents extends A11yEvents {}
|
323 | interface SwiperEvents extends AutoplayEvents {}
|
324 | interface SwiperEvents extends ControllerEvents {}
|
325 | interface SwiperEvents extends CoverflowEffectEvents {}
|
326 | interface SwiperEvents extends CubeEffectEvents {}
|
327 | interface SwiperEvents extends FadeEffectEvents {}
|
328 | interface SwiperEvents extends FlipEffectEvents {}
|
329 | interface SwiperEvents extends HashNavigationEvents {}
|
330 | interface SwiperEvents extends HistoryEvents {}
|
331 | interface SwiperEvents extends KeyboardEvents {}
|
332 | interface SwiperEvents extends LazyEvents {}
|
333 | interface SwiperEvents extends MousewheelEvents {}
|
334 | interface SwiperEvents extends NavigationEvents {}
|
335 | interface SwiperEvents extends PaginationEvents {}
|
336 | interface SwiperEvents extends ParallaxEvents {}
|
337 | interface SwiperEvents extends ScrollbarEvents {}
|
338 | interface SwiperEvents extends ThumbsEvents {}
|
339 | interface SwiperEvents extends VirtualEvents {}
|
340 | interface SwiperEvents extends ZoomEvents {}
|