UNPKG

759 BTypeScriptView Raw
1import { LgQuery } from '../../lgQuery';
2import { LightGallery } from '../../lightgallery';
3import { HashSettings } from './lg-hash-settings';
4export default class Hash {
5 core: LightGallery;
6 settings: HashSettings;
7 oldHash: string;
8 private $LG;
9 constructor(instance: LightGallery, $LG: LgQuery);
10 init(): void;
11 private onAfterSlide;
12 /**
13 * Get index of the slide from custom slideName. Has to be a public method. Used in hash plugin
14 * @param {String} hash
15 * @returns {Number} Index of the slide.
16 */
17 getIndexFromUrl(hash?: string): number;
18 buildFromHash(): boolean | undefined;
19 private onCloseAfter;
20 private onHashchange;
21 closeGallery(): void;
22 destroy(): void;
23}