lightgallery 2.5.0 → 2.6.0
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/README.md +1 -1
- package/css/lg-rotate.css +7 -0
- package/css/lg-zoom.css +37 -5
- package/css/lightgallery-bundle.css +45 -6
- package/css/lightgallery-bundle.min.css +1 -1
- package/css/lightgallery.css +1 -1
- package/lib/lightgallery.js +21 -16
- 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/thumbnail/lg-thumbnail-settings.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.d.ts +1 -0
- package/lightgallery.es5.js +22 -17
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +22 -17
- 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-settings.d.ts +2 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js.map +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 +23 -18
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +23 -18
- package/react/Lightgallery.umd.js.map +1 -1
- package/scss/_lg-variables.scss +1 -1
- package/scss/lg-rotate.scss +8 -0
- package/scss/lg-zoom.scss +29 -2
- package/vue/LightGalleryVue.common.js +24 -19
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +24 -19
- 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
package/scss/_lg-variables.scss
CHANGED
|
@@ -58,7 +58,7 @@ $lg-thumb-container-height: 100px;
|
|
|
58
58
|
// z-index
|
|
59
59
|
$zindex-outer: 1050 !default;
|
|
60
60
|
$zindex-progressbar: 1083 !default;
|
|
61
|
-
$zindex-controls:
|
|
61
|
+
$zindex-controls: 1084 !default;
|
|
62
62
|
$zindex-toolbar: 1082 !default;
|
|
63
63
|
$zindex-subhtml: 1080 !default;
|
|
64
64
|
$zindex-components: 1080 !default;
|
package/scss/lg-rotate.scss
CHANGED
package/scss/lg-zoom.scss
CHANGED
|
@@ -42,14 +42,37 @@
|
|
|
42
42
|
.lg-dummy-img {
|
|
43
43
|
// Translate required for zoom
|
|
44
44
|
@include scale3d(1, 1, 1);
|
|
45
|
-
will-change: opacity, transform;
|
|
46
45
|
@include transitionCustom(
|
|
47
46
|
transform $zoom-transition-duration
|
|
48
47
|
cubic-bezier(0.12, 0.415, 0.01, 1.19) 0s,
|
|
49
48
|
opacity 0.15s !important
|
|
50
49
|
);
|
|
51
|
-
@include transform-origin(0 0);
|
|
52
50
|
@include backface-visibility(hidden);
|
|
51
|
+
|
|
52
|
+
&.no-transition {
|
|
53
|
+
transition: none !important;
|
|
54
|
+
}
|
|
55
|
+
&.reset-transition {
|
|
56
|
+
transform: scale3d(1, 1, 1) translate3d(-50%, -50%, 0px) !important;
|
|
57
|
+
max-width: none !important;
|
|
58
|
+
max-height: none !important;
|
|
59
|
+
top: 50% !important;
|
|
60
|
+
left: 50% !important;
|
|
61
|
+
}
|
|
62
|
+
&.reset-transition-x {
|
|
63
|
+
transform: scale3d(1, 1, 1) translate3d(-50%, 0, 0px) !important;
|
|
64
|
+
top: 0 !important;
|
|
65
|
+
left: 50% !important;
|
|
66
|
+
max-width: none !important;
|
|
67
|
+
max-height: none !important;
|
|
68
|
+
}
|
|
69
|
+
&.reset-transition-y {
|
|
70
|
+
transform: scale3d(1, 1, 1) translate3d(0, -50%, 0px) !important;
|
|
71
|
+
top: 50% !important;
|
|
72
|
+
left: 0% !important;
|
|
73
|
+
max-width: none !important;
|
|
74
|
+
max-height: none !important;
|
|
75
|
+
}
|
|
53
76
|
}
|
|
54
77
|
}
|
|
55
78
|
}
|
|
@@ -60,6 +83,10 @@
|
|
|
60
83
|
&:after {
|
|
61
84
|
content: '\e311';
|
|
62
85
|
}
|
|
86
|
+
.lg-actual-size & {
|
|
87
|
+
opacity: 0.5;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
63
90
|
}
|
|
64
91
|
|
|
65
92
|
&.lg-actual-size {
|
|
@@ -8303,23 +8303,23 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8303
8303
|
|
|
8304
8304
|
var $item = _this17.getSlideItem(_this17.index);
|
|
8305
8305
|
|
|
8306
|
-
if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.
|
|
8306
|
+
if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.touches.length === 1) {
|
|
8307
8307
|
isSwiping = true;
|
|
8308
8308
|
_this17.touchAction = 'swipe';
|
|
8309
8309
|
|
|
8310
8310
|
_this17.manageSwipeClass();
|
|
8311
8311
|
|
|
8312
8312
|
startCoords = {
|
|
8313
|
-
pageX: e.
|
|
8314
|
-
pageY: e.
|
|
8313
|
+
pageX: e.touches[0].pageX,
|
|
8314
|
+
pageY: e.touches[0].pageY
|
|
8315
8315
|
};
|
|
8316
8316
|
}
|
|
8317
8317
|
});
|
|
8318
8318
|
this.$inner.on('touchmove.lg', function (e) {
|
|
8319
|
-
if (isSwiping && _this17.touchAction === 'swipe' && e.
|
|
8319
|
+
if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
|
|
8320
8320
|
endCoords = {
|
|
8321
|
-
pageX: e.
|
|
8322
|
-
pageY: e.
|
|
8321
|
+
pageX: e.touches[0].pageX,
|
|
8322
|
+
pageY: e.touches[0].pageY
|
|
8323
8323
|
};
|
|
8324
8324
|
|
|
8325
8325
|
_this17.touchMove(startCoords, endCoords, e);
|
|
@@ -8922,6 +8922,19 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8922
8922
|
this.updateCounterTotal();
|
|
8923
8923
|
this.manageSingleSlideClassName();
|
|
8924
8924
|
}
|
|
8925
|
+
}, {
|
|
8926
|
+
key: "destroyGallery",
|
|
8927
|
+
value: function destroyGallery() {
|
|
8928
|
+
this.destroyModules(true);
|
|
8929
|
+
|
|
8930
|
+
if (!this.settings.dynamic) {
|
|
8931
|
+
this.invalidateItems();
|
|
8932
|
+
}
|
|
8933
|
+
|
|
8934
|
+
$LG(window).off(".lg.global".concat(this.lgId));
|
|
8935
|
+
this.LGel.off('.lg');
|
|
8936
|
+
this.$container.remove();
|
|
8937
|
+
}
|
|
8925
8938
|
/**
|
|
8926
8939
|
* Destroy lightGallery.
|
|
8927
8940
|
* Destroy lightGallery and its plugin instances completely
|
|
@@ -8939,22 +8952,14 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8939
8952
|
}, {
|
|
8940
8953
|
key: "destroy",
|
|
8941
8954
|
value: function destroy() {
|
|
8942
|
-
var _this29 = this;
|
|
8943
|
-
|
|
8944
8955
|
var closeTimeout = this.closeGallery(true);
|
|
8945
|
-
setTimeout(function () {
|
|
8946
|
-
_this29.destroyModules(true);
|
|
8947
|
-
|
|
8948
|
-
if (!_this29.settings.dynamic) {
|
|
8949
|
-
_this29.invalidateItems();
|
|
8950
|
-
}
|
|
8951
8956
|
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8957
|
+
if (closeTimeout) {
|
|
8958
|
+
setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
|
8959
|
+
} else {
|
|
8960
|
+
this.destroyGallery();
|
|
8961
|
+
}
|
|
8955
8962
|
|
|
8956
|
-
_this29.$container.remove();
|
|
8957
|
-
}, closeTimeout);
|
|
8958
8963
|
return closeTimeout;
|
|
8959
8964
|
}
|
|
8960
8965
|
}]);
|