forked from sachinchoolur/lightGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
50 lines (47 loc) · 1.14 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
import {
AfterSlideDetail,
HasVideoDetail,
SlideItemLoadDetail,
} from './lg-events';
import { LightGallerySettings } from './lg-settings';
import { $LG } from './lgQuery';
import { LightGallery } from './lightgallery';
declare global {
interface Window {
lgModules: any;
$LG: typeof $LG;
lightGallery: (
el: HTMLElement,
options: Partial<LightGallerySettings>,
) => LightGallery | undefined;
}
}
export interface Coordinates {
pageX: number;
pageY: number;
}
export interface CustomEventHasVideo extends CustomEvent {
detail: HasVideoDetail;
}
export interface CustomEventSlideItemLoad extends CustomEvent {
detail: SlideItemLoadDetail;
}
export interface CustomEventAfterSlide extends CustomEvent {
detail: AfterSlideDetail;
}
export type SlideDirection = 'next' | 'prev';
export interface Coords {
pageX: number;
pageY: number;
}
export interface VideoInfo {
html5?: boolean;
youtube?: string[];
vimeo?: string[];
wistia?: string[];
dailymotion?: string[];
}
export interface MediaContainerPosition {
top: number;
bottom: number;
}