lightgallery 3.0.0-beta.2 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lightgallery.es5.js +5 -56
- package/dist/lightgallery.es5.js.map +1 -1
- package/dist/lightgallery.min.js +1 -1
- package/dist/lightgallery.umd.js +5 -56
- package/dist/lightgallery.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/plugins/autoplay/lg-autoplay.es5.js +1 -1
- package/dist/plugins/autoplay/lg-autoplay.umd.js +1 -1
- package/dist/plugins/comment/lg-comment.es5.js +1 -1
- package/dist/plugins/comment/lg-comment.umd.js +1 -1
- package/dist/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
- package/dist/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
- package/dist/plugins/hash/lg-hash.es5.js +1 -1
- package/dist/plugins/hash/lg-hash.umd.js +1 -1
- package/dist/plugins/justified/lg-justified.es5.js +1 -1
- package/dist/plugins/justified/lg-justified.umd.js +1 -1
- package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
- package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
- package/dist/plugins/originCrop/lg-origin-crop.es5.js +1 -1
- package/dist/plugins/originCrop/lg-origin-crop.umd.js +1 -1
- package/dist/plugins/pager/lg-pager.es5.js +1 -1
- package/dist/plugins/pager/lg-pager.umd.js +1 -1
- package/dist/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
- package/dist/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
- package/dist/plugins/rotate/lg-rotate.es5.js +1 -1
- package/dist/plugins/rotate/lg-rotate.umd.js +1 -1
- package/dist/plugins/share/lg-share.es5.js +1 -1
- package/dist/plugins/share/lg-share.umd.js +1 -1
- package/dist/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/dist/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/dist/plugins/video/lg-video.es5.js +1 -1
- package/dist/plugins/video/lg-video.umd.js +1 -1
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +1 -1
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +1 -1
- package/dist/plugins/zoom/lg-zoom.es5.js +1 -1
- package/dist/plugins/zoom/lg-zoom.umd.js +1 -1
- package/dist/types/headless/announce.d.ts +22 -0
- package/dist/types/headless/emitter.d.ts +14 -0
- package/dist/types/headless/gestures.d.ts +128 -0
- package/dist/types/headless/hash-driver.d.ts +77 -0
- package/dist/types/headless/icons.d.ts +56 -0
- package/dist/types/headless/index.d.ts +34 -0
- package/dist/types/headless/items.d.ts +92 -0
- package/dist/types/headless/justified-layout.d.ts +71 -0
- package/dist/types/headless/license.d.ts +35 -0
- package/dist/types/headless/origin-crop.d.ts +135 -0
- package/dist/types/headless/origin.d.ts +65 -0
- package/dist/types/headless/plugin-slices.d.ts +64 -0
- package/dist/types/headless/preload.d.ts +36 -0
- package/dist/types/headless/responsive.d.ts +90 -0
- package/dist/types/headless/settings.d.ts +268 -0
- package/dist/types/headless/share-urls.d.ts +60 -0
- package/dist/types/headless/spring.d.ts +42 -0
- package/dist/types/headless/state.d.ts +63 -0
- package/dist/types/headless/thumb-math.d.ts +85 -0
- package/dist/types/headless/toolbar-overflow.d.ts +61 -0
- package/dist/types/headless/transition.d.ts +33 -0
- package/dist/types/headless/velocity.d.ts +31 -0
- package/dist/types/headless/video-urls.d.ts +64 -0
- package/dist/types/headless/zoom-math.d.ts +89 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lg-icons.d.ts +1 -1
- package/dist/types/lg-settings.d.ts +1 -7
- package/dist/types/lg-spring-runner.d.ts +1 -1
- package/dist/types/lightgallery.d.ts +0 -1
- package/dist/types/plugins/hash/lg-hash-settings.d.ts +1 -1
- package/dist/types/plugins/video/lg-video-settings.d.ts +1 -1
- package/dist/types/plugins/zoom/lg-zoom.d.ts +1 -1
- package/package.json +56 -71
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightgallery",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgAutoplay = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgComment = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgFullscreen = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgHash = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgJustified = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgMediumZoom = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgOriginCrop = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgPager = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgRelativeCaption = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgRotate = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgShare = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgThumbnail = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgVideo = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgVimeoThumbnail = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.lgZoom = factory());
|
|
3
3
|
})(this, function() {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* lightgallery | 3.0.0-beta.
|
|
5
|
+
* lightgallery | 3.0.0-beta.3 | October 1st 2026
|
|
6
6
|
* http://www.lightgalleryjs.com/
|
|
7
7
|
* Copyright (c) 2020 Sachin Neravath;
|
|
8
8
|
* @license GPLv3
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slide-change announcement formatting for the shared `aria-live` region.
|
|
3
|
+
* All four runtimes build their announcer text through this helper so the
|
|
4
|
+
* wording (and its localization surface, `strings.slideAnnouncement`) stays
|
|
5
|
+
* identical everywhere.
|
|
6
|
+
*/
|
|
7
|
+
export interface SlideAnnouncementOptions {
|
|
8
|
+
/** `strings.slideAnnouncement` template with `{index}`/`{total}` slots. */
|
|
9
|
+
template: string;
|
|
10
|
+
/** 1-based position of the shown slide. */
|
|
11
|
+
index: number;
|
|
12
|
+
/** Total slide count. */
|
|
13
|
+
total: number;
|
|
14
|
+
/** Plain-text caption of the shown slide, if any. */
|
|
15
|
+
caption?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build the text announced on a slide change: the filled template, then the
|
|
19
|
+
* caption (comma-separated) when one exists. Whitespace in the caption is
|
|
20
|
+
* collapsed so multi-line/rich captions read as one sentence.
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatSlideAnnouncement(options: SlideAnnouncementOptions): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-free typed event emitter — the plugin/core event bus shared by
|
|
3
|
+
* every framework runtime (React ADR 0001 §1 boundary note; Angular ADR
|
|
4
|
+
* 0001 §5). Each framework supplies its own event map type; unknown event
|
|
5
|
+
* names stay usable for plugin-private events.
|
|
6
|
+
*/
|
|
7
|
+
export interface TypedEmitter<TMap extends object> {
|
|
8
|
+
/** Subscribe; returns the unsubscribe function. */
|
|
9
|
+
on<K extends keyof TMap & string>(name: K, listener: (detail: TMap[K]) => void): () => void;
|
|
10
|
+
on(name: string, listener: (detail: unknown) => void): () => void;
|
|
11
|
+
emit<K extends keyof TMap & string>(name: K, detail: TMap[K]): void;
|
|
12
|
+
emit(name: string, detail?: unknown): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function createEmitter<TMap extends object>(): TypedEmitter<TMap>;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gesture math, ported from the 2.x touch/drag implementation
|
|
3
|
+
* (`touchMove`/`touchEnd` in `src/lightgallery.ts`) as pure functions. The
|
|
4
|
+
* framework layer owns pointer events and writes the returned transforms
|
|
5
|
+
* straight to the DOM (never through framework state — one render per
|
|
6
|
+
* gesture, not per move); every *decision* lives here so swipe feel is
|
|
7
|
+
* identical across frameworks.
|
|
8
|
+
*/
|
|
9
|
+
import type { ResolvedGalleryDirection } from './settings';
|
|
10
|
+
export type SwipeAxis = 'horizontal' | 'vertical';
|
|
11
|
+
/**
|
|
12
|
+
* Minimum travel (px) before a drag commits to an axis. Tuned from the
|
|
13
|
+
* 2.x 15px to ~10 (UIPanGestureRecognizer territory): drags answer a
|
|
14
|
+
* touch sooner without axis flip-flop — the commit is still sticky.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SWIPE_AXIS_THRESHOLD = 10;
|
|
17
|
+
/**
|
|
18
|
+
* Flick support: a release faster than this (px/ms, windowed — see
|
|
19
|
+
* `velocity.ts`) navigates even below `swipeThreshold`. Default per the
|
|
20
|
+
* gesture-physics teardown: windowed readings run higher than the old
|
|
21
|
+
* whole-gesture averages, so this gate and windowed measurement ship as
|
|
22
|
+
* one change. Public setting: `flickVelocity`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const FLICK_VELOCITY = 0.5;
|
|
25
|
+
/** Minimum travel (px) for a flick, so taps never navigate. */
|
|
26
|
+
export declare const FLICK_MIN_DISTANCE = 20;
|
|
27
|
+
/** Vertical travel (px) beyond which the drag hides the UI chrome — 2.x. */
|
|
28
|
+
export declare const VERTICAL_CLOSE_THRESHOLD = 100;
|
|
29
|
+
/**
|
|
30
|
+
* Drag-to-close verdict: the momentum-projected travel must pass this
|
|
31
|
+
* fraction of the viewport height — a small fast downward flick closes,
|
|
32
|
+
* a large slow drag released while returning does not.
|
|
33
|
+
*/
|
|
34
|
+
export declare const VERTICAL_CLOSE_RATIO = 0.4;
|
|
35
|
+
/**
|
|
36
|
+
* Minimum actual travel (px) before the projected close arms. Momentum
|
|
37
|
+
* may extend a real drag, never replace one: a grazed tap releases with
|
|
38
|
+
* a fast final instant, and projection alone would read it as a close
|
|
39
|
+
* flick.
|
|
40
|
+
*/
|
|
41
|
+
export declare const VERTICAL_CLOSE_MIN_DRAG = 40;
|
|
42
|
+
/**
|
|
43
|
+
* Rubber-band friction past the first/last slide (no loop): the drag
|
|
44
|
+
* keeps moving at this fraction of the finger instead of the 2.x
|
|
45
|
+
* un-resisted 1:1 travel — you feel that there is nothing further.
|
|
46
|
+
*/
|
|
47
|
+
export declare const SLIDE_EDGE_FRICTION = 0.35;
|
|
48
|
+
/**
|
|
49
|
+
* Horizontal drag delta with rubber-banding past the gallery ends.
|
|
50
|
+
* `hasPrev`/`hasNext` reflect whether a slide exists in that direction
|
|
51
|
+
* (loop counts); the release spring returns the frictioned distance.
|
|
52
|
+
*/
|
|
53
|
+
export declare function getEdgeFrictionedDelta(deltaX: number, hasPrev: boolean, hasNext: boolean, direction?: ResolvedGalleryDirection): number;
|
|
54
|
+
/** Decide (once) which axis a drag follows; sticky after the first commit. */
|
|
55
|
+
export declare function getSwipeAxis(deltaX: number, deltaY: number, current: SwipeAxis | undefined): SwipeAxis | undefined;
|
|
56
|
+
export interface HorizontalDragTransforms {
|
|
57
|
+
current: string;
|
|
58
|
+
prev: string;
|
|
59
|
+
next: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Follow-the-finger transforms for the current slide and its neighbors
|
|
63
|
+
* (2.x `touchMove` horizontal branch, including the shrinking gutter).
|
|
64
|
+
*/
|
|
65
|
+
export declare function getHorizontalDragTransforms(deltaX: number, slideWidth: number, direction?: ResolvedGalleryDirection): HorizontalDragTransforms;
|
|
66
|
+
export interface VerticalDragEffects {
|
|
67
|
+
/** Backdrop opacity fading out with the drag. */
|
|
68
|
+
backdropOpacity: number;
|
|
69
|
+
/** Transform for the current slide (translate + shrink). */
|
|
70
|
+
transform: string;
|
|
71
|
+
/** True once the UI chrome should hide (past the close threshold). */
|
|
72
|
+
hideUi: boolean;
|
|
73
|
+
}
|
|
74
|
+
/** Drag-to-close visuals (2.x `touchMove` vertical branch). */
|
|
75
|
+
export declare function getVerticalDragEffects(deltaY: number, viewportWidth: number, viewportHeight: number): VerticalDragEffects;
|
|
76
|
+
export type SwipeReleaseVerdict = 'next' | 'prev' | 'stay';
|
|
77
|
+
export interface SwipeReleaseInput {
|
|
78
|
+
deltaX: number;
|
|
79
|
+
/** Release velocity, px/ms signed (windowed — see `velocity.ts`). */
|
|
80
|
+
velocityX: number;
|
|
81
|
+
/** `swipeThreshold` setting (px). */
|
|
82
|
+
threshold: number;
|
|
83
|
+
/** `flickVelocity` setting (px/ms). */
|
|
84
|
+
flickVelocity?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Slide width (px). When given, a release whose momentum-projected
|
|
87
|
+
* travel crosses the midpoint also navigates — a firm half-hearted
|
|
88
|
+
* swipe keeps going where a hesitant one snaps back.
|
|
89
|
+
*/
|
|
90
|
+
viewportWidth?: number;
|
|
91
|
+
/** Resolved gallery direction; in `'rtl'` the verdict mirrors. */
|
|
92
|
+
direction?: ResolvedGalleryDirection;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Horizontal release decision: past `swipeThreshold`, or a quick flick →
|
|
96
|
+
* navigate (negative delta = next, 2.x parity); otherwise snap back.
|
|
97
|
+
* The flick counts only when the release velocity points the same way
|
|
98
|
+
* as the drag — reversing direction just before lifting is a cancel,
|
|
99
|
+
* not a flick.
|
|
100
|
+
*/
|
|
101
|
+
export declare function getSwipeReleaseVerdict({ deltaX, velocityX, threshold, flickVelocity, viewportWidth, direction, }: SwipeReleaseInput): SwipeReleaseVerdict;
|
|
102
|
+
/**
|
|
103
|
+
* Vertical release decision: close when the momentum-projected travel
|
|
104
|
+
* passes {@link VERTICAL_CLOSE_RATIO} of the viewport in the drag's own
|
|
105
|
+
* direction (a release moving back toward rest never closes), and the
|
|
106
|
+
* finger actually travelled {@link VERTICAL_CLOSE_MIN_DRAG}.
|
|
107
|
+
*/
|
|
108
|
+
export declare function shouldCloseOnVerticalDrag(deltaY: number, velocityY: number, viewportHeight: number, options: {
|
|
109
|
+
closable: boolean;
|
|
110
|
+
swipeToClose: boolean;
|
|
111
|
+
}): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Which slide navigation a release verdict maps to, honoring the 2.x touch
|
|
114
|
+
* loop rule: galleries with fewer than 3 slides never wrap from touch.
|
|
115
|
+
*/
|
|
116
|
+
export declare function resolveSwipeTarget(verdict: SwipeReleaseVerdict, currentIndex: number, slidesCount: number, loop: boolean): number | null;
|
|
117
|
+
/** One live pointer, for multi-pointer consumers (zoom plugin). */
|
|
118
|
+
export interface PointerRecord {
|
|
119
|
+
id: number;
|
|
120
|
+
startX: number;
|
|
121
|
+
startY: number;
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
}
|
|
125
|
+
/** Add or update a pointer record, returning a new array. */
|
|
126
|
+
export declare function upsertPointer(pointers: readonly PointerRecord[], record: PointerRecord): PointerRecord[];
|
|
127
|
+
/** Remove a pointer record by id, returning a new array. */
|
|
128
|
+
export declare function removePointer(pointers: readonly PointerRecord[], id: number): PointerRecord[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL-hash drivers for the hash plugin (plan 012). The plugin's history
|
|
3
|
+
* side-effects — replace-write the deep link, restore/clear on close,
|
|
4
|
+
* follow back/forward — sit behind one interface with two engines:
|
|
5
|
+
*
|
|
6
|
+
* - `history`: today's behavior (history.replaceState + `hashchange`) —
|
|
7
|
+
* the default fallback everywhere.
|
|
8
|
+
* - `navigation`: the Navigation API (Baseline Newly Available, Jan
|
|
9
|
+
* 2026) — replace-navigations carry entry state, and back/forward is
|
|
10
|
+
* observed via `currententrychange`. Strictly a feature-detected
|
|
11
|
+
* enhancement: nothing here is load-bearing (Safari's missing
|
|
12
|
+
* `precommitHandler` is irrelevant — we never intercept), and any
|
|
13
|
+
* missing capability falls back to the history driver.
|
|
14
|
+
*
|
|
15
|
+
* The deep-link URL format (`#lg=<galleryId>&slide=<index|name>`) is
|
|
16
|
+
* public API and identical across drivers — pinned by the parity tests.
|
|
17
|
+
*
|
|
18
|
+
* Everything is structurally typed (the runtimes pass `window`); nothing
|
|
19
|
+
* in this module touches DOM globals directly.
|
|
20
|
+
*
|
|
21
|
+
* Revisit note: flip the docs' default emphasis toward `navigation` once
|
|
22
|
+
* the API reaches Widely Available (~2028 per current projection).
|
|
23
|
+
*/
|
|
24
|
+
export interface HashDriver {
|
|
25
|
+
/** Which engine this driver runs on (also used by the parity tests). */
|
|
26
|
+
readonly kind: 'history' | 'navigation';
|
|
27
|
+
/** The current URL hash including the leading '#', or ''. */
|
|
28
|
+
getHash(): string;
|
|
29
|
+
/** Replace the current entry's hash (never grows history). */
|
|
30
|
+
replaceHash(hash: string): void;
|
|
31
|
+
/** Replace the current entry with the bare URL (drops the hash). */
|
|
32
|
+
clearHash(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Notify on URL changes the driver did not itself cause is NOT
|
|
35
|
+
* guaranteed — subscribers must be re-entrant-safe (the hash plugin's
|
|
36
|
+
* handlers already are: same-slide jumps no-op and close checks the
|
|
37
|
+
* open flag).
|
|
38
|
+
*/
|
|
39
|
+
subscribe(onChange: () => void): () => void;
|
|
40
|
+
}
|
|
41
|
+
export interface HashHistoryWindow {
|
|
42
|
+
location: {
|
|
43
|
+
hash: string;
|
|
44
|
+
pathname: string;
|
|
45
|
+
search: string;
|
|
46
|
+
};
|
|
47
|
+
history: {
|
|
48
|
+
replaceState(data: unknown, unused: string, url?: string): void;
|
|
49
|
+
};
|
|
50
|
+
addEventListener(type: string, listener: () => void): void;
|
|
51
|
+
removeEventListener(type: string, listener: () => void): void;
|
|
52
|
+
}
|
|
53
|
+
/** Structural slice of the Navigation API the driver uses. */
|
|
54
|
+
export interface NavigationLike {
|
|
55
|
+
currentEntry?: {
|
|
56
|
+
url?: string | null;
|
|
57
|
+
} | null;
|
|
58
|
+
navigate(url: string, options?: {
|
|
59
|
+
history?: 'auto' | 'push' | 'replace';
|
|
60
|
+
state?: unknown;
|
|
61
|
+
}): unknown;
|
|
62
|
+
addEventListener(type: string, listener: () => void): void;
|
|
63
|
+
removeEventListener(type: string, listener: () => void): void;
|
|
64
|
+
}
|
|
65
|
+
export interface HashNavigationWindow extends HashHistoryWindow {
|
|
66
|
+
navigation?: NavigationLike;
|
|
67
|
+
}
|
|
68
|
+
export type HashDriverPreference = 'auto' | 'history' | 'navigation';
|
|
69
|
+
export declare function createHistoryHashDriver(win: HashHistoryWindow): HashDriver;
|
|
70
|
+
export declare function createNavigationHashDriver(win: HashHistoryWindow, navigation: NavigationLike): HashDriver;
|
|
71
|
+
/**
|
|
72
|
+
* Pick a driver: `navigation` when preferred-or-auto and the Navigation
|
|
73
|
+
* API is present with everything the driver needs; the history driver in
|
|
74
|
+
* every other case (including an explicit `navigation` preference on a
|
|
75
|
+
* browser without support — the enhancement is never load-bearing).
|
|
76
|
+
*/
|
|
77
|
+
export declare function createHashDriver(win: HashNavigationWindow, preference?: HashDriverPreference): HashDriver;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in UI icon set: inline SVG strings, one per icon name, grouped
|
|
3
|
+
* by the feature that renders them so bundlers ship only the groups a
|
|
4
|
+
* consumer's plugins import. Pure string data — safe in this DOM-free
|
|
5
|
+
* package. Runtimes render these when the consumer supplies no custom
|
|
6
|
+
* icon for a name.
|
|
7
|
+
*
|
|
8
|
+
* The artwork is lightGallery's own icon set, carried over from the
|
|
9
|
+
* 2.x icon font: each glyph's vector outline extracted from the font
|
|
10
|
+
* and re-baselined onto a square viewBox (font ascent 960 on a 1024
|
|
11
|
+
* em). Same shapes the library has always shipped — now crisp inline
|
|
12
|
+
* SVGs that follow `currentColor`.
|
|
13
|
+
*/
|
|
14
|
+
/** The icon-name contract shared by every runtime and plugin. */
|
|
15
|
+
export type LgIconName = 'close' | 'prev' | 'next' | 'download' | 'maximize' | 'minimize' | 'more' | 'zoomIn' | 'zoomOut' | 'actualSize' | 'rotateLeft' | 'rotateRight' | 'flipHorizontal' | 'flipVertical' | 'share' | 'shareFacebook' | 'shareX' | 'sharePinterest' | 'autoplayPlay' | 'autoplayPause' | 'fullscreen' | 'fullscreenExit' | 'comment' | 'commentClose' | 'toggleThumbnails';
|
|
16
|
+
export declare const coreDefaultIcons: {
|
|
17
|
+
readonly close: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M810 664.667l-238-238 238-238-60-60-238 238-238-238-60 60 238 238-238 238 60 60 238-238 238 238z\"/></svg>";
|
|
18
|
+
readonly more: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><circle cx=\"232\" cy=\"512\" r=\"80\"/><circle cx=\"512\" cy=\"512\" r=\"80\"/><circle cx=\"792\" cy=\"512\" r=\"80\"/></svg>";
|
|
19
|
+
readonly prev: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M426.667 768q17.667 0 30.167-12.5t12.5-30.167q0-18-12.667-30.333l-225.667-225.667h665q17.667 0 30.167-12.5t12.5-30.167-12.5-30.167-30.167-12.5h-665l225.667-225.667q12.667-12.333 12.667-30.333 0-17.667-12.5-30.167t-30.167-12.5q-18 0-30.333 12.333l-298.667 298.667q-12.333 13-12.333 30.333t12.333 30.333l298.667 298.667q12.667 12.333 30.333 12.333z\"/></svg>";
|
|
20
|
+
readonly next: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M597.333 768q18 0 30.333-12.333l298.667-298.667q12.333-12.333 12.333-30.333t-12.333-30.333l-298.667-298.667q-12.333-12.333-30.333-12.333-18.333 0-30.5 12.167t-12.167 30.5q0 18 12.333 30.333l226 225.667h-665q-17.667 0-30.167 12.5t-12.5 30.167 12.5 30.167 30.167 12.5h665l-226 225.667q-12.333 12.333-12.333 30.333 0 18.333 12.167 30.5t30.5 12.167z\"/></svg>";
|
|
21
|
+
readonly download: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M170 128.667h684v-86h-684v86zM682 384.667l-170-172-170 172h128v426h84v-426h128z\"/></svg>";
|
|
22
|
+
readonly maximize: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M793.003 768l-225.835-225.835c-16.683-16.683-16.683-43.691 0-60.331s43.691-16.683 60.331 0l225.835 225.835v-153.003c0-23.552 19.115-42.667 42.667-42.667s42.667 19.115 42.667 42.667v256c0 5.803-1.152 11.307-3.243 16.341s-5.163 9.728-9.216 13.781c-0.043 0.043-0.043 0.043-0.085 0.085-3.925 3.925-8.619 7.083-13.781 9.216-5.035 2.091-10.539 3.243-16.341 3.243h-256c-23.552 0-42.667-19.115-42.667-42.667s19.115-42.667 42.667-42.667zM230.997 85.334l225.835 225.835c16.683 16.683 16.683 43.691 0 60.331s-43.691 16.683-60.331 0l-225.835-225.835v153.003c0 23.552-19.115 42.667-42.667 42.667s-42.667-19.115-42.667-42.667v-256c0-23.552 19.115-42.667 42.667-42.667h256c23.552 0 42.667 19.115 42.667 42.667s-19.115 42.667-42.667 42.667z\"/></svg>";
|
|
23
|
+
readonly minimize: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M700.331 554.667l225.835 225.835c16.683 16.683 16.683 43.691 0 60.331s-43.691 16.683-60.331 0l-225.835-225.835v153.003c0 23.552-19.115 42.667-42.667 42.667s-42.667-19.115-42.667-42.667v-256c0-5.803 1.152-11.307 3.243-16.341s5.163-9.728 9.216-13.781c0.043-0.043 0.043-0.043 0.085-0.085 3.925-3.925 8.619-7.083 13.781-9.216 5.035-2.091 10.539-3.243 16.341-3.243h256c23.552 0 42.667 19.115 42.667 42.667s-19.115 42.667-42.667 42.667zM158.165 12.502l225.835 225.835v-153.003c0-23.552 19.115-42.667 42.667-42.667s42.667 19.115 42.667 42.667v256c0 5.803-1.152 11.307-3.243 16.341s-5.163 9.728-9.216 13.781c-0.043 0.043-0.043 0.043-0.085 0.085-4.096 4.053-8.789 7.125-13.781 9.216-5.035 2.091-10.539 3.243-16.341 3.243h-256c-23.552 0-42.667-19.115-42.667-42.667s19.115-42.667 42.667-42.667h153.003l-225.835-225.835c-16.683-16.683-16.683-43.691 0-60.331s43.691-16.683 60.331 0z\"/></svg>";
|
|
24
|
+
};
|
|
25
|
+
export declare const zoomDefaultIcons: {
|
|
26
|
+
readonly zoomIn: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M512 512.667h-86v-86h-42v86h-86v42h86v86h42v-86h86v-42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z\"/></svg>";
|
|
27
|
+
readonly zoomOut: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M298 554.667h214v-42h-214v42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z\"/></svg>";
|
|
28
|
+
readonly actualSize: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M384 853.334h426.667q53 0 90.5-37.5t37.5-90.5v-426.667q0-53-37.5-90.5t-90.5-37.5h-426.667q-53 0-90.5 37.5t-37.5 90.5v426.667q0 53 37.5 90.5t90.5 37.5zM170.667 675.334v-547.333q0-17.667 12.5-30.167t30.167-12.5h547.333q-13.333-37.667-46.333-61.5t-74.333-23.833h-426.667q-53 0-90.5 37.5t-37.5 90.5v426.667q0 41.333 23.833 74.333t61.5 46.333zM810.667 768h-426.667q-17.667 0-30.167-12.5t-12.5-30.167v-426.667q0-17.667 12.5-30.167t30.167-12.5h426.667q17.667 0 30.167 12.5t12.5 30.167v426.667q0 17.667-12.5 30.167t-30.167 12.5z\"/></svg>";
|
|
29
|
+
};
|
|
30
|
+
export declare const rotateDefaultIcons: {
|
|
31
|
+
readonly rotateLeft: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M554 764.667q126-16 213-112t87-226-87-226-213-112v86q92 16 153 87t61 165-61 165-153 87v-166l-194 190 194 194v-132zM302 156.667l62 62q46-34 106-44v-86q-96 12-168 68zM260 384.667q10-58 42-106l-60-60q-56 74-68 166h86zM304 574.667q-36-52-44-106h-86q12 90 70 166z\"/></svg>";
|
|
32
|
+
readonly rotateRight: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M720 278.667q34 46 44 106h86q-12-92-68-166zM554 174.667q60 10 106 44l62-62q-72-56-168-68v86zM850 468.667h-86q-10 60-44 106l62 60q58-72 68-166zM664 702.667l-194-190v166q-92-16-153-87t-61-165 61-165 153-87v-86q-126 16-213 112t-87 226 87 226 213 112v132z\"/></svg>";
|
|
33
|
+
readonly flipHorizontal: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M896 554.667l-170-170v128h-300v84h300v128zM298 468.667v-128h300v-84h-300v-128l-170 170z\"/></svg>";
|
|
34
|
+
readonly flipVertical: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M384 810.667l170-170h-128v-300h-84v300h-128zM682 212.667h128l-170-170-170 170h128v300h84v-300z\"/></svg>";
|
|
35
|
+
};
|
|
36
|
+
export declare const shareDefaultIcons: {
|
|
37
|
+
readonly share: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M768 252.667c68 0 124-56 124-124s-56-126-124-126-124 58-124 126c0 10 0 20 2 28l-302 176c-24-22-54-34-88-34-70 0-128 58-128 128s58 128 128 128c34 0 64-12 88-34l300 174c-2 10-4 20-4 30 0 70 58 128 128 128s128-58 128-128-58-128-128-128c-34 0-64 14-88 36l-300-176c2-10 4-20 4-30s-2-20-4-30l304-176c22 20 52 32 84 32z\"/></svg>";
|
|
38
|
+
readonly shareFacebook: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M512 952.32c-271.462 0-491.52-220.058-491.52-491.52s220.058-491.52 491.52-491.52 491.52 220.058 491.52 491.52-220.058 491.52-491.52 491.52zM628.429 612.659h-73.882c-8.755 0-18.483-11.52-18.483-26.829v-53.35h92.416l-13.978-76.083h-78.438v-228.403h-87.194v228.403h-79.104v76.083h79.104v44.749c0 64.205 44.544 116.378 105.677 116.378h73.882v-80.947z\"/></svg>";
|
|
39
|
+
readonly shareX: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><circle cx=\"512\" cy=\"512\" r=\"491.52\"/><path fill=\"#fff\" transform=\"translate(227 224) scale(24)\" d=\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\"/></svg>";
|
|
40
|
+
readonly sharePinterest: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M512 952.32c-271.462 0-491.52-220.058-491.52-491.52s220.058-491.52 491.52-491.52 491.52 220.058 491.52 491.52-220.058 491.52-491.52 491.52zM545.638 344.32c-31.539 2.406-44.749 18.022-69.427 32.973-13.568-71.219-30.157-139.52-79.309-175.206-15.206 107.725 22.221 188.518 39.629 274.381-29.645 49.92 3.533 150.323 66.099 125.645 76.954-30.515-66.662-185.6 29.747-205.005 100.659-20.173 141.773 174.694 79.36 237.978-90.214 91.494-262.502 2.099-241.306-128.87 5.12-32 38.246-41.728 13.21-85.914-57.702 12.8-74.957 58.317-72.704 118.989 3.533 99.328 89.242 168.909 175.155 178.483 108.698 12.083 210.688-39.885 224.819-142.182 15.821-115.405-49.101-240.282-165.274-231.27z\"/></svg>";
|
|
41
|
+
};
|
|
42
|
+
export declare const autoplayDefaultIcons: {
|
|
43
|
+
readonly autoplayPlay: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM426 234.667v384l256-192z\"/></svg>";
|
|
44
|
+
readonly autoplayPause: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M554 256.667v340h86v-340h-86zM512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM384 256.667v340h86v-340h-86z\"/></svg>";
|
|
45
|
+
};
|
|
46
|
+
export declare const fullscreenDefaultIcons: {
|
|
47
|
+
readonly fullscreen: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M598 724.667h212v-212h-84v128h-128v84zM726 212.667v128h84v-212h-212v84h128zM214 512.667v212h212v-84h-128v-128h-84zM298 340.667v-128h128v-84h-212v212h84z\"/></svg>";
|
|
48
|
+
readonly fullscreenExit: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M682 596.667h128v-84h-212v212h84v-128zM598 128.667v212h212v-84h-128v-128h-84zM342 596.667v128h84v-212h-212v84h128zM214 256.667v84h212v-212h-84v128h-128z\"/></svg>";
|
|
49
|
+
};
|
|
50
|
+
export declare const commentDefaultIcons: {
|
|
51
|
+
readonly comment: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M938.667 448.128v21.205c0 0.725-0.043 1.621-0.085 2.475-5.803 99.755-47.488 190.336-112.725 258.176-68.352 71.125-162.731 117.419-268.843 123.264-0.683 0.043-1.536 0.085-2.347 0.085h-20.864c-59.947 0.683-122.965-13.227-181.931-43.008-52.181-26.496-97.749-63.488-133.931-108.16-56.405-69.717-89.899-158.080-89.941-253.696-0.597-54.4 10.795-111.36 35.157-165.419l-75.605-226.859c-2.816-8.363-3.072-17.835 0-26.965 7.467-22.357 31.616-34.432 53.973-26.965l226.731 75.563c49.493-22.485 105.984-35.243 165.376-35.115 58.539 0.384 115.797 13.141 168.149 36.949 81.579 37.163 151.040 101.248 193.749 186.667 27.477 53.291 43.307 115.84 43.136 181.803zM853.333 447.872c0.128-52.267-12.459-101.333-33.664-142.464-34.176-68.352-88.832-118.827-153.259-148.139-41.387-18.859-86.827-28.971-133.376-29.269-52.096-0.128-101.163 12.459-142.293 33.664-10.624 5.504-22.528 6.059-33.067 2.56l-162.261-54.101 54.101 162.261c3.755 11.221 2.56 22.912-2.389 32.725-23.552 46.677-34.304 96.171-33.792 142.421 0.043 76.331 26.411 145.92 70.955 200.917 28.629 35.371 64.768 64.725 106.24 85.76 46.592 23.552 96.085 34.304 142.336 33.792h19.456c83.712-4.565 158.037-41.003 212.011-97.152 51.285-53.376 84.139-124.416 89.003-202.795z\"/></svg>";
|
|
52
|
+
readonly commentClose: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M810 664.667l-238-238 238-238-60-60-238 238-238-238-60 60 238 238-238 238 60 60 238-238 238 238z\"/></svg>";
|
|
53
|
+
};
|
|
54
|
+
export declare const thumbnailDefaultIcons: {
|
|
55
|
+
readonly toggleThumbnails: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\" fill=\"currentColor\"><path transform=\"translate(0, 960) scale(1, -1)\" d=\"M682 84.667v172h172v-172h-172zM682 340.667v172h172v-172h-172zM426 596.667v172h172v-172h-172zM682 768.667h172v-172h-172v172zM426 340.667v172h172v-172h-172zM170 340.667v172h172v-172h-172zM170 84.667v172h172v-172h-172zM426 84.667v172h172v-172h-172zM170 596.667v172h172v-172h-172z\"/></svg>";
|
|
56
|
+
};
|