lightgallery 2.5.0 → 2.6.0-beta.1
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/css/lg-rotate.css +7 -0
- package/css/lg-zoom.css +37 -5
- package/css/lightgallery-bundle.css +44 -5
- package/css/lightgallery-bundle.min.css +1 -1
- package/lib/lightgallery.js +6 -6
- package/lib/lightgallery.js.map +1 -1
- package/lib/plugins/rotate/lg-rotate.js +15 -8
- package/lib/plugins/rotate/lg-rotate.js.map +1 -1
- package/lib/plugins/zoom/lg-zoom.js +281 -293
- package/lib/plugins/zoom/lg-zoom.js.map +1 -1
- package/lightgallery.es5.js +7 -7
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +7 -7
- package/lightgallery.umd.js.map +1 -1
- package/lit/lightgallery.esm.js +2 -2
- package/lit/lightgallery.umd.js +2 -2
- package/package.json +1 -1
- package/plugins/autoplay/lg-autoplay.es5.js +1 -1
- package/plugins/autoplay/lg-autoplay.min.js +1 -1
- package/plugins/autoplay/lg-autoplay.umd.js +1 -1
- package/plugins/comment/lg-comment.es5.js +1 -1
- package/plugins/comment/lg-comment.min.js +1 -1
- package/plugins/comment/lg-comment.umd.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
- package/plugins/hash/lg-hash.es5.js +1 -1
- package/plugins/hash/lg-hash.min.js +1 -1
- package/plugins/hash/lg-hash.umd.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
- package/plugins/pager/lg-pager.es5.js +1 -1
- package/plugins/pager/lg-pager.min.js +1 -1
- package/plugins/pager/lg-pager.umd.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
- package/plugins/rotate/lg-rotate.es5.js +16 -9
- package/plugins/rotate/lg-rotate.es5.js.map +1 -1
- package/plugins/rotate/lg-rotate.min.js +2 -2
- package/plugins/rotate/lg-rotate.umd.js +16 -9
- package/plugins/rotate/lg-rotate.umd.js.map +1 -1
- package/plugins/share/lg-share.es5.js +1 -1
- package/plugins/share/lg-share.min.js +1 -1
- package/plugins/share/lg-share.umd.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/plugins/video/lg-video.es5.js +1 -1
- package/plugins/video/lg-video.min.js +1 -1
- package/plugins/video/lg-video.umd.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +1 -1
- package/plugins/zoom/lg-zoom.d.ts +12 -23
- package/plugins/zoom/lg-zoom.es5.js +282 -294
- package/plugins/zoom/lg-zoom.es5.js.map +1 -1
- package/plugins/zoom/lg-zoom.min.js +2 -2
- package/plugins/zoom/lg-zoom.umd.js +282 -294
- package/plugins/zoom/lg-zoom.umd.js.map +1 -1
- package/react/Lightgallery.es5.js +7 -7
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +7 -7
- package/react/Lightgallery.umd.js.map +1 -1
- package/scss/lg-rotate.scss +8 -0
- package/scss/lg-zoom.scss +29 -2
- package/vue/LightGalleryVue.common.js +6 -6
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +6 -6
- package/vue/LightGalleryVue.umd.js.map +1 -1
- package/vue/LightGalleryVue.umd.min.js +1 -1
- package/vue/LightGalleryVue.umd.min.js.map +1 -1
|
@@ -10,7 +10,7 @@ interface DragAllowedAxises {
|
|
|
10
10
|
}
|
|
11
11
|
interface ZoomTouchEvent {
|
|
12
12
|
pageX: number;
|
|
13
|
-
|
|
13
|
+
touches: {
|
|
14
14
|
pageY: number;
|
|
15
15
|
pageX: number;
|
|
16
16
|
}[];
|
|
@@ -26,17 +26,13 @@ export default class Zoom {
|
|
|
26
26
|
private core;
|
|
27
27
|
private settings;
|
|
28
28
|
private $LG;
|
|
29
|
+
private imageReset;
|
|
29
30
|
zoomableTimeout: any;
|
|
30
31
|
positionChanged: boolean;
|
|
31
32
|
pageX: number;
|
|
32
33
|
pageY: number;
|
|
33
34
|
scale: number;
|
|
34
|
-
imageYSize: number;
|
|
35
|
-
imageXSize: number;
|
|
36
35
|
containerRect: ClientRect;
|
|
37
|
-
rotateValue: number;
|
|
38
|
-
modifierX: number;
|
|
39
|
-
modifierY: number;
|
|
40
36
|
dragAllowedAxises: DragAllowedAxises;
|
|
41
37
|
top: number;
|
|
42
38
|
left: number;
|
|
@@ -51,19 +47,9 @@ export default class Zoom {
|
|
|
51
47
|
*/
|
|
52
48
|
enableZoom(event: CustomEvent): void;
|
|
53
49
|
enableZoomOnSlideItemLoad(): void;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
getSwipeCords(e: TouchEvent, rotateValue: number): Coords;
|
|
58
|
-
getDragAllowedAxises(rotateValue: number, scale?: number): DragAllowedAxises;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param {Element} el
|
|
62
|
-
* @return matrix(cos(X), sin(X), -sin(X), cos(X), 0, 0);
|
|
63
|
-
* Get the current transform value
|
|
64
|
-
*/
|
|
65
|
-
getCurrentTransform(el: HTMLElement): string[] | undefined;
|
|
66
|
-
getCurrentRotation(el: HTMLElement): number;
|
|
50
|
+
getDragCords(e: MouseEvent): Coords;
|
|
51
|
+
getSwipeCords(e: TouchEvent): Coords;
|
|
52
|
+
getDragAllowedAxises(scale: number, scaleDiff?: number): DragAllowedAxises;
|
|
67
53
|
setZoomEssentials(): void;
|
|
68
54
|
/**
|
|
69
55
|
* @desc Image zoom
|
|
@@ -71,7 +57,9 @@ export default class Zoom {
|
|
|
71
57
|
*
|
|
72
58
|
* @param {String} scale - Zoom decrement/increment value
|
|
73
59
|
*/
|
|
74
|
-
zoomImage(scale: number): void;
|
|
60
|
+
zoomImage(scale: number, scaleDiff: number, reposition: boolean, resetToMax: boolean): void;
|
|
61
|
+
resetImageTranslate(): void;
|
|
62
|
+
setZoomImageSize(): void;
|
|
75
63
|
/**
|
|
76
64
|
* @desc apply scale3d to image and translate to image wrap
|
|
77
65
|
* @param {style} X,Y and scale
|
|
@@ -91,21 +79,22 @@ export default class Zoom {
|
|
|
91
79
|
getCurrentImageActualSizeScale(): number;
|
|
92
80
|
getPageCords(event?: ZoomTouchEvent): Coords;
|
|
93
81
|
setPageCords(event?: ZoomTouchEvent): void;
|
|
82
|
+
manageActualPixelClassNames(): void;
|
|
94
83
|
beginZoom(scale: number): boolean;
|
|
95
84
|
getScale(scale: number): number;
|
|
96
85
|
init(): void;
|
|
97
|
-
zoomIn(
|
|
86
|
+
zoomIn(): void;
|
|
98
87
|
resetZoom(index?: number): void;
|
|
99
88
|
getTouchDistance(e: TouchEvent): number;
|
|
100
89
|
pinchZoom(): void;
|
|
101
|
-
touchendZoom(startCoords: Coords, endCoords: Coords, allowX: boolean, allowY: boolean, touchDuration: number
|
|
90
|
+
touchendZoom(startCoords: Coords, endCoords: Coords, allowX: boolean, allowY: boolean, touchDuration: number): void;
|
|
102
91
|
getZoomSwipeCords(startCoords: Coords, endCoords: Coords, allowX: boolean, allowY: boolean, possibleSwipeCords: PossibleCords): Coords;
|
|
103
92
|
private isBeyondPossibleLeft;
|
|
104
93
|
private isBeyondPossibleRight;
|
|
105
94
|
private isBeyondPossibleTop;
|
|
106
95
|
private isBeyondPossibleBottom;
|
|
107
96
|
isImageSlide(): boolean;
|
|
108
|
-
getPossibleSwipeDragCords(
|
|
97
|
+
getPossibleSwipeDragCords(scale?: number): PossibleCords;
|
|
109
98
|
setZoomSwipeStyles(LGel: lgQuery, distance: {
|
|
110
99
|
x: number;
|
|
111
100
|
y: number;
|