This commit is contained in:
Bellord
2026-06-11 20:07:42 +03:00
parent 4a87dfe2a2
commit 2fcea871be
171 changed files with 20476 additions and 2780 deletions
+48
View File
@@ -0,0 +1,48 @@
import { LgQuery } from '../../lgQuery';
import { LightGallery } from '../../lightgallery';
import { GalleryItem } from '../../lg-utils';
interface ThumbDragUtils {
cords: {
startX: number;
endX: number;
};
isMoved: boolean;
newTranslateX: number;
startTime: Date;
endTime: Date;
touchMoveTime: number;
}
interface ThumbnailGalleryItem extends GalleryItem {
thumb: string;
}
export default class Thumbnail {
private core;
private $thumbOuter;
private $lgThumb;
private thumbOuterWidth;
private thumbTotalWidth;
private translateX;
private thumbClickable;
private settings;
private $LG;
constructor(instance: LightGallery, $LG: LgQuery);
init(): void;
build(): void;
setThumbMarkup(): void;
enableThumbDrag(): void;
enableThumbSwipe(): void;
rebuildThumbnails(): void;
setTranslate(value: number): void;
getPossibleTransformX(left: number): number;
animateThumb(index: number): void;
onThumbTouchMove(thumbDragUtils: ThumbDragUtils): ThumbDragUtils;
onThumbTouchEnd(thumbDragUtils: ThumbDragUtils): ThumbDragUtils;
getThumbHtml(thumb: string, index: number, alt?: string): HTMLElement;
setThumbItemHtml(items: ThumbnailGalleryItem[]): void;
setAnimateThumbStyles(): void;
manageActiveClassOnSlideChange(): void;
toggleThumbBar(): void;
thumbKeyPress(): void;
destroy(): void;
}
export {};