lightgallery 2.9.0 → 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/LICENSE +690 -0
- package/README.md +31 -21
- package/dist/README.md +229 -0
- package/{css → dist/css}/lg-autoplay.css +7 -4
- package/{css → dist/css}/lg-autoplay.css.map +1 -1
- package/{css → dist/css}/lg-comments.css +0 -6
- package/{css → dist/css}/lg-comments.css.map +1 -1
- package/dist/css/lg-fullscreen.css +11 -0
- package/dist/css/lg-fullscreen.css.map +1 -0
- package/dist/css/lg-justified.css +37 -0
- package/dist/css/lg-justified.css.map +1 -0
- package/{css → dist/css}/lg-pager.css.map +1 -1
- package/{css → dist/css}/lg-rotate.css +0 -16
- package/{css → dist/css}/lg-rotate.css.map +1 -1
- package/dist/css/lg-rtl.css +94 -0
- package/dist/css/lg-rtl.css.map +1 -0
- package/{css → dist/css}/lg-share.css +4 -32
- package/dist/css/lg-share.css.map +1 -0
- package/{css → dist/css}/lg-thumbnail.css +7 -3
- package/dist/css/lg-thumbnail.css.map +1 -0
- package/{css → dist/css}/lg-transitions.css +10 -0
- package/dist/css/lg-transitions.css.map +1 -0
- package/{css → dist/css}/lg-zoom.css +20 -9
- package/dist/css/lg-zoom.css.map +1 -0
- package/{css → dist/css}/lightgallery-bundle.css +150 -118
- package/dist/css/lightgallery-bundle.css.map +1 -0
- package/dist/css/lightgallery-bundle.min.css +1 -0
- package/{css → dist/css}/lightgallery-core.css +49 -7
- package/dist/css/lightgallery-core.css.map +1 -0
- package/{css → dist/css}/lightgallery.css +105 -44
- package/dist/css/lightgallery.css.map +1 -0
- package/dist/lightgallery.es5.js +3797 -0
- package/dist/lightgallery.es5.js.map +1 -0
- package/dist/lightgallery.min.js +1 -0
- package/dist/lightgallery.umd.js +3800 -0
- package/dist/lightgallery.umd.js.map +1 -0
- package/dist/package.json +33 -0
- package/dist/plugins/autoplay/lg-autoplay.es5.js +193 -0
- package/dist/plugins/autoplay/lg-autoplay.es5.js.map +1 -0
- package/dist/plugins/autoplay/lg-autoplay.min.js +1 -0
- package/dist/plugins/autoplay/lg-autoplay.umd.js +196 -0
- package/dist/plugins/autoplay/lg-autoplay.umd.js.map +1 -0
- package/dist/plugins/autoplay/package.json +7 -0
- package/dist/plugins/comment/lg-comment.es5.js +136 -0
- package/dist/plugins/comment/lg-comment.es5.js.map +1 -0
- package/dist/plugins/comment/lg-comment.min.js +1 -0
- package/dist/plugins/comment/lg-comment.umd.js +139 -0
- package/dist/plugins/comment/lg-comment.umd.js.map +1 -0
- package/dist/plugins/comment/package.json +7 -0
- package/dist/plugins/fullscreen/lg-fullscreen.es5.js +114 -0
- package/dist/plugins/fullscreen/lg-fullscreen.es5.js.map +1 -0
- package/dist/plugins/fullscreen/lg-fullscreen.min.js +1 -0
- package/dist/plugins/fullscreen/lg-fullscreen.umd.js +117 -0
- package/dist/plugins/fullscreen/lg-fullscreen.umd.js.map +1 -0
- package/dist/plugins/fullscreen/package.json +7 -0
- package/dist/plugins/hash/lg-hash.es5.js +207 -0
- package/dist/plugins/hash/lg-hash.es5.js.map +1 -0
- package/dist/plugins/hash/lg-hash.min.js +1 -0
- package/dist/plugins/hash/lg-hash.umd.js +210 -0
- package/dist/plugins/hash/lg-hash.umd.js.map +1 -0
- package/dist/plugins/hash/package.json +7 -0
- package/dist/plugins/justified/lg-justified.es5.js +415 -0
- package/dist/plugins/justified/lg-justified.es5.js.map +1 -0
- package/dist/plugins/justified/lg-justified.min.js +1 -0
- package/dist/plugins/justified/lg-justified.umd.js +418 -0
- package/dist/plugins/justified/lg-justified.umd.js.map +1 -0
- package/dist/plugins/justified/package.json +7 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js +95 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js.map +1 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.min.js +1 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js +98 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js.map +1 -0
- package/dist/plugins/mediumZoom/package.json +7 -0
- package/dist/plugins/originCrop/lg-origin-crop.es5.js +622 -0
- package/dist/plugins/originCrop/lg-origin-crop.es5.js.map +1 -0
- package/dist/plugins/originCrop/lg-origin-crop.min.js +1 -0
- package/dist/plugins/originCrop/lg-origin-crop.umd.js +625 -0
- package/dist/plugins/originCrop/lg-origin-crop.umd.js.map +1 -0
- package/dist/plugins/pager/lg-pager.es5.js +96 -0
- package/dist/plugins/pager/lg-pager.es5.js.map +1 -0
- package/dist/plugins/pager/lg-pager.min.js +1 -0
- package/dist/plugins/pager/lg-pager.umd.js +99 -0
- package/dist/plugins/pager/lg-pager.umd.js.map +1 -0
- package/dist/plugins/pager/package.json +7 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.es5.js +98 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.es5.js.map +1 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.min.js +1 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.umd.js +101 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.umd.js.map +1 -0
- package/dist/plugins/relativeCaption/package.json +7 -0
- package/dist/plugins/rotate/lg-rotate.es5.js +226 -0
- package/dist/plugins/rotate/lg-rotate.es5.js.map +1 -0
- package/dist/plugins/rotate/lg-rotate.min.js +1 -0
- package/dist/plugins/rotate/lg-rotate.umd.js +229 -0
- package/dist/plugins/rotate/lg-rotate.umd.js.map +1 -0
- package/dist/plugins/rotate/package.json +7 -0
- package/dist/plugins/share/lg-share.es5.js +309 -0
- package/dist/plugins/share/lg-share.es5.js.map +1 -0
- package/dist/plugins/share/lg-share.min.js +1 -0
- package/dist/plugins/share/lg-share.umd.js +312 -0
- package/dist/plugins/share/lg-share.umd.js.map +1 -0
- package/dist/plugins/share/package.json +7 -0
- package/dist/plugins/thumbnail/lg-thumbnail.es5.js +792 -0
- package/dist/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -0
- package/dist/plugins/thumbnail/lg-thumbnail.min.js +1 -0
- package/dist/plugins/thumbnail/lg-thumbnail.umd.js +795 -0
- package/dist/plugins/thumbnail/lg-thumbnail.umd.js.map +1 -0
- package/dist/plugins/thumbnail/package.json +7 -0
- package/dist/plugins/video/lg-video.es5.js +518 -0
- package/dist/plugins/video/lg-video.es5.js.map +1 -0
- package/dist/plugins/video/lg-video.min.js +1 -0
- package/dist/plugins/video/lg-video.umd.js +521 -0
- package/dist/plugins/video/lg-video.umd.js.map +1 -0
- package/dist/plugins/video/package.json +7 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +72 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +1 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +75 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +1 -0
- package/dist/plugins/vimeoThumbnail/package.json +7 -0
- package/dist/plugins/zoom/lg-zoom.es5.js +1412 -0
- package/dist/plugins/zoom/lg-zoom.es5.js.map +1 -0
- package/dist/plugins/zoom/lg-zoom.min.js +1 -0
- package/dist/plugins/zoom/lg-zoom.umd.js +1415 -0
- package/dist/plugins/zoom/lg-zoom.umd.js.map +1 -0
- package/dist/plugins/zoom/package.json +7 -0
- package/{scss → dist/scss}/_lg-theme-default.scss +68 -18
- package/{scss → dist/scss}/_lg-variables.scss +0 -1
- package/{scss → dist/scss}/lg-autoplay.scss +10 -4
- package/{scss → dist/scss}/lg-comments.scss +0 -8
- package/dist/scss/lg-fullscreen.scss +15 -0
- package/dist/scss/lg-justified.scss +63 -0
- package/{scss → dist/scss}/lg-rotate.scss +0 -24
- package/dist/scss/lg-rtl.scss +145 -0
- package/{scss → dist/scss}/lg-share.scss +6 -33
- package/{scss → dist/scss}/lg-thumbnail.scss +16 -5
- package/{scss → dist/scss}/lg-zoom.scss +46 -9
- package/{scss → dist/scss}/lightgallery-bundle.scss +0 -1
- package/{scss → dist/scss}/lightgallery-core.scss +73 -6
- package/{scss → dist/scss}/lightgallery.scss +0 -1
- package/{scss → dist/scss}/transitions/_lg-scale-up.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-slide-circular-vertical.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-slide-circular.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-soft-zoom.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in-big.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in-out.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out-big.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out-in.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out.scss +6 -0
- 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/{index.d.ts → dist/types/index.d.ts} +9 -4
- package/{lg-events.d.ts → dist/types/lg-events.d.ts} +300 -300
- package/dist/types/lg-icons.d.ts +27 -0
- package/{lg-plugin.d.ts → dist/types/lg-plugin.d.ts} +7 -7
- package/{lg-settings.d.ts → dist/types/lg-settings.d.ts} +549 -425
- package/dist/types/lg-spring-runner.d.ts +14 -0
- package/dist/types/lg-toolbar-overflow.d.ts +36 -0
- package/{lg-utils.d.ts → dist/types/lg-utils.d.ts} +236 -228
- package/{lgQuery.d.ts → dist/types/lgQuery.d.ts} +56 -56
- package/{lightgallery.d.ts → dist/types/lightgallery.d.ts} +384 -305
- package/{plugins → dist/types/plugins}/autoplay/lg-autoplay-settings.d.ts +41 -38
- package/{plugins → dist/types/plugins}/autoplay/lg-autoplay.d.ts +22 -22
- package/{plugins → dist/types/plugins}/comment/lg-comment-settings.d.ts +36 -33
- package/{plugins → dist/types/plugins}/comment/lg-comment.d.ts +25 -25
- package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen-settings.d.ts +17 -14
- package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen.d.ts +16 -16
- package/dist/types/plugins/hash/lg-hash-settings.d.ts +28 -0
- package/{plugins → dist/types/plugins}/hash/lg-hash.d.ts +25 -23
- package/dist/types/plugins/justified/lg-justified-settings.d.ts +42 -0
- package/dist/types/plugins/justified/lg-justified.d.ts +55 -0
- package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom-settings.d.ts +16 -16
- package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom.d.ts +12 -12
- package/dist/types/plugins/originCrop/lg-origin-crop-settings.d.ts +12 -0
- package/dist/types/plugins/originCrop/lg-origin-crop.d.ts +79 -0
- package/{plugins → dist/types/plugins}/pager/lg-pager-settings.d.ts +7 -7
- package/{plugins → dist/types/plugins}/pager/lg-pager.d.ts +13 -13
- package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption-settings.d.ts +7 -7
- package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption.d.ts +14 -14
- package/{plugins → dist/types/plugins}/rotate/lg-rotate-settings.d.ts +47 -45
- package/{plugins → dist/types/plugins}/rotate/lg-rotate.d.ts +25 -24
- package/{plugins → dist/types/plugins}/share/lg-fb-share-utils.d.ts +2 -2
- package/{plugins → dist/types/plugins}/share/lg-pinterest-share-utils.d.ts +2 -2
- package/{plugins → dist/types/plugins}/share/lg-share-settings.d.ts +71 -56
- package/dist/types/plugins/share/lg-share.d.ts +33 -0
- package/dist/types/plugins/share/lg-twitter-share-utils.d.ts +4 -0
- package/{plugins → dist/types/plugins}/share/types.d.ts +6 -6
- package/{plugins → dist/types/plugins}/thumbnail/lg-thumbnail-settings.d.ts +85 -70
- package/dist/types/plugins/thumbnail/lg-thumbnail.d.ts +88 -0
- package/{plugins → dist/types/plugins}/video/lg-video-settings.d.ts +94 -71
- package/{plugins → dist/types/plugins}/video/lg-video.d.ts +116 -104
- package/{plugins → dist/types/plugins}/video/types.d.ts +8 -8
- package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail-settings.d.ts +11 -11
- package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail.d.ts +14 -14
- package/{plugins → dist/types/plugins}/zoom/lg-zoom-settings.d.ts +54 -51
- package/{plugins → dist/types/plugins}/zoom/lg-zoom.d.ts +145 -108
- package/{types.d.ts → dist/types/types.d.ts} +40 -40
- package/package.json +222 -8
- package/angular/10/README.md +0 -24
- package/angular/10/bundles/lightgallery-angular-10.umd.js +0 -289
- package/angular/10/bundles/lightgallery-angular-10.umd.js.map +0 -1
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js +0 -2
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +0 -1
- package/angular/10/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/10/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/10/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/10/esm2015/lightgallery-angular-10.js +0 -5
- package/angular/10/esm2015/public-api.js +0 -7
- package/angular/10/fesm2015/lightgallery-angular-10.js +0 -261
- package/angular/10/fesm2015/lightgallery-angular-10.js.map +0 -1
- package/angular/10/lib/lightgallery-angular.component.d.ts +0 -39
- package/angular/10/lib/lightgallery-angular.component.d.ts.map +0 -1
- package/angular/10/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/10/lib/lightgallery-angular.module.d.ts.map +0 -1
- package/angular/10/lib/lightgallery-angular.service.d.ts +0 -7
- package/angular/10/lib/lightgallery-angular.service.d.ts.map +0 -1
- package/angular/10/lightgallery-angular-10.d.ts +0 -6
- package/angular/10/lightgallery-angular-10.d.ts.map +0 -1
- package/angular/10/package.json +0 -21
- package/angular/10/public-api.d.ts +0 -4
- package/angular/10/public-api.d.ts.map +0 -1
- package/angular/11/README.md +0 -24
- package/angular/11/bundles/lightgallery-angular-11.umd.js +0 -290
- package/angular/11/bundles/lightgallery-angular-11.umd.js.map +0 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js +0 -2
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +0 -1
- package/angular/11/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/11/esm2015/lib/lightgallery-angular.module.js +0 -18
- package/angular/11/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/11/esm2015/lightgallery-angular-11.js +0 -5
- package/angular/11/esm2015/public-api.js +0 -7
- package/angular/11/fesm2015/lightgallery-angular-11.js +0 -262
- package/angular/11/fesm2015/lightgallery-angular-11.js.map +0 -1
- package/angular/11/lib/lightgallery-angular.component.d.ts +0 -39
- package/angular/11/lib/lightgallery-angular.component.d.ts.map +0 -1
- package/angular/11/lib/lightgallery-angular.module.d.ts +0 -8
- package/angular/11/lib/lightgallery-angular.module.d.ts.map +0 -1
- package/angular/11/lib/lightgallery-angular.service.d.ts +0 -7
- package/angular/11/lib/lightgallery-angular.service.d.ts.map +0 -1
- package/angular/11/lightgallery-angular-11.d.ts +0 -6
- package/angular/11/lightgallery-angular-11.d.ts.map +0 -1
- package/angular/11/package.json +0 -21
- package/angular/11/public-api.d.ts +0 -4
- package/angular/11/public-api.d.ts.map +0 -1
- package/angular/12/README.md +0 -24
- package/angular/12/bundles/lightgallery-angular-12.umd.js +0 -296
- package/angular/12/bundles/lightgallery-angular-12.umd.js.map +0 -1
- package/angular/12/esm2015/lib/lightgallery-angular.component.js +0 -221
- package/angular/12/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/12/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/12/esm2015/lightgallery-angular-12.js +0 -5
- package/angular/12/esm2015/public-api.js +0 -7
- package/angular/12/fesm2015/lightgallery-angular-12.js +0 -258
- package/angular/12/fesm2015/lightgallery-angular-12.js.map +0 -1
- package/angular/12/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/12/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/12/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/12/lightgallery-angular-12.d.ts +0 -5
- package/angular/12/package.json +0 -18
- package/angular/12/public-api.d.ts +0 -3
- package/angular/13/README.md +0 -24
- package/angular/13/esm2020/lib/lightgallery-angular.component.mjs +0 -221
- package/angular/13/esm2020/lib/lightgallery-angular.module.mjs +0 -17
- package/angular/13/esm2020/lib/lightgallery-angular.service.mjs +0 -14
- package/angular/13/esm2020/lightgallery-angular-13.mjs +0 -5
- package/angular/13/esm2020/public-api.mjs +0 -7
- package/angular/13/fesm2015/lightgallery-angular-13.mjs +0 -258
- package/angular/13/fesm2015/lightgallery-angular-13.mjs.map +0 -1
- package/angular/13/fesm2020/lightgallery-angular-13.mjs +0 -258
- package/angular/13/fesm2020/lightgallery-angular-13.mjs.map +0 -1
- package/angular/13/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/13/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/13/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/13/lightgallery-angular-13.d.ts +0 -5
- package/angular/13/package.json +0 -31
- package/angular/13/public-api.d.ts +0 -3
- package/angular/14/README.md +0 -24
- package/angular/14/esm2020/lib/lightgallery-angular.component.mjs +0 -217
- package/angular/14/esm2020/lib/lightgallery-angular.module.mjs +0 -17
- package/angular/14/esm2020/lib/lightgallery-angular.service.mjs +0 -14
- package/angular/14/esm2020/lightgallery-angular-14.mjs +0 -5
- package/angular/14/esm2020/public-api.mjs +0 -7
- package/angular/14/fesm2015/lightgallery-angular-14.mjs +0 -254
- package/angular/14/fesm2015/lightgallery-angular-14.mjs.map +0 -1
- package/angular/14/fesm2020/lightgallery-angular-14.mjs +0 -254
- package/angular/14/fesm2020/lightgallery-angular-14.mjs.map +0 -1
- package/angular/14/index.d.ts +0 -5
- package/angular/14/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/14/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/14/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/14/package.json +0 -31
- package/angular/14/public-api.d.ts +0 -3
- package/angular/15/README.md +0 -24
- package/angular/15/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/15/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/15/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/15/esm2022/lightgallery-angular-15.mjs +0 -5
- package/angular/15/esm2022/public-api.mjs +0 -7
- package/angular/15/fesm2022/lightgallery-angular-15.mjs +0 -254
- package/angular/15/fesm2022/lightgallery-angular-15.mjs.map +0 -1
- package/angular/15/index.d.ts +0 -5
- package/angular/15/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/15/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/15/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/15/package.json +0 -25
- package/angular/15/public-api.d.ts +0 -3
- package/angular/16/README.md +0 -24
- package/angular/16/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/16/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/16/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/16/esm2022/lightgallery-angular-16.mjs +0 -5
- package/angular/16/esm2022/public-api.mjs +0 -7
- package/angular/16/fesm2022/lightgallery-angular-16.mjs +0 -254
- package/angular/16/fesm2022/lightgallery-angular-16.mjs.map +0 -1
- package/angular/16/index.d.ts +0 -5
- package/angular/16/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/16/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/16/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/16/package.json +0 -25
- package/angular/16/public-api.d.ts +0 -3
- package/angular/9/README.md +0 -24
- package/angular/9/bundles/lightgallery-angular-9.umd.js +0 -271
- package/angular/9/bundles/lightgallery-angular-9.umd.js.map +0 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js +0 -2
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +0 -1
- package/angular/9/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/9/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/9/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/9/esm2015/lightgallery-angular-9.js +0 -5
- package/angular/9/esm2015/public-api.js +0 -7
- package/angular/9/esm5/lib/lightgallery-angular.component.js +0 -228
- package/angular/9/esm5/lib/lightgallery-angular.module.js +0 -21
- package/angular/9/esm5/lib/lightgallery-angular.service.js +0 -17
- package/angular/9/esm5/lightgallery-angular-9.js +0 -5
- package/angular/9/esm5/public-api.js +0 -7
- package/angular/9/fesm2015/lightgallery-angular-9.js +0 -261
- package/angular/9/fesm2015/lightgallery-angular-9.js.map +0 -1
- package/angular/9/fesm5/lightgallery-angular-9.js +0 -268
- package/angular/9/fesm5/lightgallery-angular-9.js.map +0 -1
- package/angular/9/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/9/lib/lightgallery-angular.module.d.ts +0 -6
- package/angular/9/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/9/lightgallery-angular-9.d.ts +0 -5
- package/angular/9/package.json +0 -23
- package/angular/9/public-api.d.ts +0 -3
- package/angular/README.md +0 -24
- package/angular/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/esm2022/lightgallery-angular.mjs +0 -5
- package/angular/esm2022/public-api.mjs +0 -7
- package/angular/fesm2022/lightgallery-angular.mjs +0 -254
- package/angular/fesm2022/lightgallery-angular.mjs.map +0 -1
- package/angular/index.d.ts +0 -5
- package/angular/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/package.json +0 -25
- package/angular/public-api.d.ts +0 -3
- package/css/lg-fullscreen.css +0 -8
- package/css/lg-fullscreen.css.map +0 -1
- package/css/lg-share.css.map +0 -1
- package/css/lg-thumbnail.css.map +0 -1
- package/css/lg-transitions.css.map +0 -1
- package/css/lg-zoom.css.map +0 -1
- package/css/lightgallery-bundle.css.map +0 -1
- package/css/lightgallery-bundle.min.css +0 -1
- package/css/lightgallery-core.css.map +0 -1
- package/css/lightgallery.css.map +0 -1
- package/fonts/lg.svg +0 -54
- package/fonts/lg.ttf +0 -0
- package/fonts/lg.woff +0 -0
- package/fonts/lg.woff2 +0 -0
- package/lib/index.js +0 -8
- package/lib/index.js.map +0 -1
- package/lib/lg-events.js +0 -37
- package/lib/lg-events.js.map +0 -1
- package/lib/lg-plugin.js +0 -13
- package/lib/lg-plugin.js.map +0 -1
- package/lib/lg-settings.js +0 -83
- package/lib/lg-settings.js.map +0 -1
- package/lib/lg-utils.js +0 -328
- package/lib/lg-utils.js.map +0 -1
- package/lib/lgQuery.js +0 -385
- package/lib/lgQuery.js.map +0 -1
- package/lib/lightgallery.js +0 -1949
- package/lib/lightgallery.js.map +0 -1
- package/lib/plugins/autoplay/lg-autoplay-settings.js +0 -16
- package/lib/plugins/autoplay/lg-autoplay-settings.js.map +0 -1
- package/lib/plugins/autoplay/lg-autoplay.js +0 -184
- package/lib/plugins/autoplay/lg-autoplay.js.map +0 -1
- package/lib/plugins/comment/lg-comment-settings.js +0 -17
- package/lib/plugins/comment/lg-comment-settings.js.map +0 -1
- package/lib/plugins/comment/lg-comment.js +0 -140
- package/lib/plugins/comment/lg-comment.js.map +0 -1
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js +0 -10
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +0 -1
- package/lib/plugins/fullscreen/lg-fullscreen.js +0 -108
- package/lib/plugins/fullscreen/lg-fullscreen.js.map +0 -1
- package/lib/plugins/hash/lg-hash-settings.js +0 -9
- package/lib/plugins/hash/lg-hash-settings.js.map +0 -1
- package/lib/plugins/hash/lg-hash.js +0 -139
- package/lib/plugins/hash/lg-hash.js.map +0 -1
- package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js +0 -9
- package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js.map +0 -1
- package/lib/plugins/mediumZoom/lg-medium-zoom.js +0 -73
- package/lib/plugins/mediumZoom/lg-medium-zoom.js.map +0 -1
- package/lib/plugins/pager/lg-pager-settings.js +0 -7
- package/lib/plugins/pager/lg-pager-settings.js.map +0 -1
- package/lib/plugins/pager/lg-pager.js +0 -82
- package/lib/plugins/pager/lg-pager.js.map +0 -1
- package/lib/plugins/relativeCaption/lg-relative-caption-settings.js +0 -7
- package/lib/plugins/relativeCaption/lg-relative-caption-settings.js.map +0 -1
- package/lib/plugins/relativeCaption/lg-relative-caption.js +0 -97
- package/lib/plugins/relativeCaption/lg-relative-caption.js.map +0 -1
- package/lib/plugins/rotate/lg-rotate-settings.js +0 -18
- package/lib/plugins/rotate/lg-rotate-settings.js.map +0 -1
- package/lib/plugins/rotate/lg-rotate.js +0 -206
- package/lib/plugins/rotate/lg-rotate.js.map +0 -1
- package/lib/plugins/share/lg-fb-share-utils.js +0 -10
- package/lib/plugins/share/lg-fb-share-utils.js.map +0 -1
- package/lib/plugins/share/lg-pinterest-share-utils.js +0 -17
- package/lib/plugins/share/lg-pinterest-share-utils.js.map +0 -1
- package/lib/plugins/share/lg-share-settings.js +0 -15
- package/lib/plugins/share/lg-share-settings.js.map +0 -1
- package/lib/plugins/share/lg-share.js +0 -130
- package/lib/plugins/share/lg-share.js.map +0 -1
- package/lib/plugins/share/lg-twitter-share-utils.js +0 -11
- package/lib/plugins/share/lg-twitter-share-utils.js.map +0 -1
- package/lib/plugins/share/types.js +0 -3
- package/lib/plugins/share/types.js.map +0 -1
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js +0 -23
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +0 -1
- package/lib/plugins/thumbnail/lg-thumbnail.js +0 -414
- package/lib/plugins/thumbnail/lg-thumbnail.js.map +0 -1
- package/lib/plugins/video/lg-video-settings.js +0 -15
- package/lib/plugins/video/lg-video-settings.js.map +0 -1
- package/lib/plugins/video/lg-video-utils.js +0 -84
- package/lib/plugins/video/lg-video-utils.js.map +0 -1
- package/lib/plugins/video/lg-video.js +0 -411
- package/lib/plugins/video/lg-video.js.map +0 -1
- package/lib/plugins/video/types.js +0 -3
- package/lib/plugins/video/types.js.map +0 -1
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js +0 -8
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js.map +0 -1
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js +0 -122
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js.map +0 -1
- package/lib/plugins/zoom/lg-zoom-settings.js +0 -21
- package/lib/plugins/zoom/lg-zoom-settings.js.map +0 -1
- package/lib/plugins/zoom/lg-zoom.js +0 -909
- package/lib/plugins/zoom/lg-zoom.js.map +0 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +0 -1
- package/lightgallery-2.9.0.tgz +0 -0
- package/lightgallery.es5.js +0 -2786
- package/lightgallery.es5.js.map +0 -1
- package/lightgallery.min.js +0 -8
- package/lightgallery.umd.js +0 -2794
- package/lightgallery.umd.js.map +0 -1
- package/lit/custom-elements.json +0 -82
- package/lit/lightgallery.esm.js +0 -59
- package/lit/lightgallery.umd.js +0 -37
- package/lit/package.json +0 -8
- package/plugins/autoplay/lg-autoplay.es5.js +0 -250
- package/plugins/autoplay/lg-autoplay.es5.js.map +0 -1
- package/plugins/autoplay/lg-autoplay.min.js +0 -8
- package/plugins/autoplay/lg-autoplay.umd.js +0 -258
- package/plugins/autoplay/lg-autoplay.umd.js.map +0 -1
- package/plugins/autoplay/package.json +0 -7
- package/plugins/comment/lg-comment.es5.js +0 -205
- package/plugins/comment/lg-comment.es5.js.map +0 -1
- package/plugins/comment/lg-comment.min.js +0 -8
- package/plugins/comment/lg-comment.umd.js +0 -213
- package/plugins/comment/lg-comment.umd.js.map +0 -1
- package/plugins/comment/package.json +0 -7
- package/plugins/fullscreen/lg-fullscreen.es5.js +0 -135
- package/plugins/fullscreen/lg-fullscreen.es5.js.map +0 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +0 -8
- package/plugins/fullscreen/lg-fullscreen.umd.js +0 -143
- package/plugins/fullscreen/lg-fullscreen.umd.js.map +0 -1
- package/plugins/fullscreen/package.json +0 -7
- package/plugins/hash/lg-hash-settings.d.ts +0 -16
- package/plugins/hash/lg-hash.es5.js +0 -198
- package/plugins/hash/lg-hash.es5.js.map +0 -1
- package/plugins/hash/lg-hash.min.js +0 -8
- package/plugins/hash/lg-hash.umd.js +0 -206
- package/plugins/hash/lg-hash.umd.js.map +0 -1
- package/plugins/hash/package.json +0 -7
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +0 -132
- package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +0 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +0 -8
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +0 -140
- package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +0 -1
- package/plugins/mediumZoom/package.json +0 -7
- package/plugins/pager/lg-pager.es5.js +0 -139
- package/plugins/pager/lg-pager.es5.js.map +0 -1
- package/plugins/pager/lg-pager.min.js +0 -8
- package/plugins/pager/lg-pager.umd.js +0 -147
- package/plugins/pager/lg-pager.umd.js.map +0 -1
- package/plugins/pager/package.json +0 -7
- package/plugins/relativeCaption/lg-relative-caption.es5.js +0 -154
- package/plugins/relativeCaption/lg-relative-caption.es5.js.map +0 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +0 -8
- package/plugins/relativeCaption/lg-relative-caption.umd.js +0 -162
- package/plugins/relativeCaption/lg-relative-caption.umd.js.map +0 -1
- package/plugins/relativeCaption/package.json +0 -7
- package/plugins/rotate/lg-rotate.es5.js +0 -274
- package/plugins/rotate/lg-rotate.es5.js.map +0 -1
- package/plugins/rotate/lg-rotate.min.js +0 -8
- package/plugins/rotate/lg-rotate.umd.js +0 -282
- package/plugins/rotate/lg-rotate.umd.js.map +0 -1
- package/plugins/rotate/package.json +0 -7
- package/plugins/share/lg-share.d.ts +0 -15
- package/plugins/share/lg-share.es5.js +0 -219
- package/plugins/share/lg-share.es5.js.map +0 -1
- package/plugins/share/lg-share.min.js +0 -8
- package/plugins/share/lg-share.umd.js +0 -227
- package/plugins/share/lg-share.umd.js.map +0 -1
- package/plugins/share/lg-twitter-share-utils.d.ts +0 -2
- package/plugins/share/package.json +0 -7
- package/plugins/thumbnail/lg-thumbnail.d.ts +0 -48
- package/plugins/thumbnail/lg-thumbnail.es5.js +0 -487
- package/plugins/thumbnail/lg-thumbnail.es5.js.map +0 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +0 -8
- package/plugins/thumbnail/lg-thumbnail.umd.js +0 -495
- package/plugins/thumbnail/lg-thumbnail.umd.js.map +0 -1
- package/plugins/thumbnail/package.json +0 -7
- package/plugins/video/lg-video-utils.d.ts +0 -10
- package/plugins/video/lg-video.es5.js +0 -545
- package/plugins/video/lg-video.es5.js.map +0 -1
- package/plugins/video/lg-video.min.js +0 -8
- package/plugins/video/lg-video.umd.js +0 -553
- package/plugins/video/lg-video.umd.js.map +0 -1
- package/plugins/video/package.json +0 -7
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +0 -182
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +0 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +0 -8
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +0 -190
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +0 -1
- package/plugins/vimeoThumbnail/package.json +0 -7
- package/plugins/zoom/lg-zoom.es5.js +0 -980
- package/plugins/zoom/lg-zoom.es5.js.map +0 -1
- package/plugins/zoom/lg-zoom.min.js +0 -8
- package/plugins/zoom/lg-zoom.umd.js +0 -988
- package/plugins/zoom/lg-zoom.umd.js.map +0 -1
- package/plugins/zoom/package.json +0 -7
- package/react/Lightgallery.d.ts +0 -33
- package/react/Lightgallery.es5.js +0 -2988
- package/react/Lightgallery.es5.js.map +0 -1
- package/react/Lightgallery.umd.js +0 -2994
- package/react/Lightgallery.umd.js.map +0 -1
- package/react/package.json +0 -7
- package/scss/_lg-fonts.scss +0 -27
- package/scss/lg-fullscreen.scss +0 -9
- package/vue/LightGallery.vue.d.ts +0 -37
- package/vue/LightGalleryVue.common.js +0 -9343
- package/vue/LightGalleryVue.common.js.map +0 -1
- package/vue/LightGalleryVue.umd.js +0 -9353
- package/vue/LightGalleryVue.umd.js.map +0 -1
- package/vue/LightGalleryVue.umd.min.js +0 -8
- package/vue/LightGalleryVue.umd.min.js.map +0 -1
- package/vue/package.json +0 -7
- /package/{css → dist/css}/lg-medium-zoom.css +0 -0
- /package/{css → dist/css}/lg-medium-zoom.css.map +0 -0
- /package/{css → dist/css}/lg-pager.css +0 -0
- /package/{css → dist/css}/lg-relative-caption.css +0 -0
- /package/{css → dist/css}/lg-relative-caption.css.map +0 -0
- /package/{css → dist/css}/lg-video.css +0 -0
- /package/{css → dist/css}/lg-video.css.map +0 -0
- /package/{images → dist/images}/loading.gif +0 -0
- /package/{scss → dist/scss}/_lg-mixins.scss +0 -0
- /package/{scss → dist/scss}/lg-medium-zoom.scss +0 -0
- /package/{scss → dist/scss}/lg-pager.scss +0 -0
- /package/{scss → dist/scss}/lg-relative-caption.scss +0 -0
- /package/{scss → dist/scss}/lg-transitions.scss +0 -0
- /package/{scss → dist/scss}/lg-video.scss +0 -0
- /package/{scss → dist/scss}/transitions/_index.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-lollipop-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-lollipop.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-rotate-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-rotate.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-vertical-growth.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-vertical.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-tube.scss +0 -0
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
export interface AutoplayStrings {
|
|
2
|
-
toggleAutoplay: string;
|
|
3
|
-
}
|
|
4
|
-
export interface AutoplaySettings {
|
|
5
|
-
/**
|
|
6
|
-
* Enable autoplay plugin
|
|
7
|
-
*/
|
|
8
|
-
autoplay: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Enable slideshow autoplay
|
|
11
|
-
*/
|
|
12
|
-
slideShowAutoplay: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The time (in ms) between each auto transition.
|
|
15
|
-
*/
|
|
16
|
-
slideShowInterval: number;
|
|
17
|
-
/**
|
|
18
|
-
* Show autoplay progressBar
|
|
19
|
-
*/
|
|
20
|
-
progressBar: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* If false autoplay will be stopped after first user action
|
|
23
|
-
*/
|
|
24
|
-
forceSlideShowAutoplay: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Show/hide autoplay controls.
|
|
27
|
-
*/
|
|
28
|
-
autoplayControls: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Specify where the autoplay controls should be appended.
|
|
31
|
-
*/
|
|
32
|
-
appendAutoplayControlsTo: string;
|
|
33
|
-
/**
|
|
34
|
-
* Custom translation strings for aria-labels
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
export interface AutoplayStrings {
|
|
2
|
+
toggleAutoplay: string;
|
|
3
|
+
}
|
|
4
|
+
export interface AutoplaySettings {
|
|
5
|
+
/**
|
|
6
|
+
* Enable autoplay plugin
|
|
7
|
+
*/
|
|
8
|
+
autoplay: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Enable slideshow autoplay
|
|
11
|
+
*/
|
|
12
|
+
slideShowAutoplay: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The time (in ms) between each auto transition.
|
|
15
|
+
*/
|
|
16
|
+
slideShowInterval: number;
|
|
17
|
+
/**
|
|
18
|
+
* Show autoplay progressBar
|
|
19
|
+
*/
|
|
20
|
+
progressBar: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If false autoplay will be stopped after first user action
|
|
23
|
+
*/
|
|
24
|
+
forceSlideShowAutoplay: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Show/hide autoplay controls.
|
|
27
|
+
*/
|
|
28
|
+
autoplayControls: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specify where the autoplay controls should be appended.
|
|
31
|
+
*/
|
|
32
|
+
appendAutoplayControlsTo: string;
|
|
33
|
+
/**
|
|
34
|
+
* Custom translation strings for aria-labels
|
|
35
|
+
* @deprecated Set these labels on the core `strings` object instead,
|
|
36
|
+
* every user-facing string lives in that one contract. An explicitly set
|
|
37
|
+
* key here still wins (alias).
|
|
38
|
+
*/
|
|
39
|
+
autoplayPluginStrings?: Partial<AutoplayStrings>;
|
|
40
|
+
}
|
|
41
|
+
export declare const autoplaySettings: AutoplaySettings;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { LightGallery } from '../../lightgallery';
|
|
2
|
-
import { AutoplaySettings } from './lg-autoplay-settings';
|
|
3
|
-
/**
|
|
4
|
-
* Creates the autoplay plugin.
|
|
5
|
-
* @param {object} element - lightGallery element
|
|
6
|
-
*/
|
|
7
|
-
export default class Autoplay {
|
|
8
|
-
core: LightGallery;
|
|
9
|
-
settings: AutoplaySettings;
|
|
10
|
-
interval: any;
|
|
11
|
-
fromAuto: boolean;
|
|
12
|
-
pausedOnTouchDrag: boolean;
|
|
13
|
-
pausedOnSlideChange: boolean;
|
|
14
|
-
constructor(instance: LightGallery);
|
|
15
|
-
init(): void;
|
|
16
|
-
private showProgressBar;
|
|
17
|
-
private controls;
|
|
18
|
-
startAutoPlay(): void;
|
|
19
|
-
stopAutoPlay(): void;
|
|
20
|
-
closeGallery(): void;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
|
1
|
+
import { LightGallery } from '../../lightgallery';
|
|
2
|
+
import { AutoplaySettings } from './lg-autoplay-settings';
|
|
3
|
+
/**
|
|
4
|
+
* Creates the autoplay plugin.
|
|
5
|
+
* @param {object} element - lightGallery element
|
|
6
|
+
*/
|
|
7
|
+
export default class Autoplay {
|
|
8
|
+
core: LightGallery;
|
|
9
|
+
settings: AutoplaySettings;
|
|
10
|
+
interval: any;
|
|
11
|
+
fromAuto: boolean;
|
|
12
|
+
pausedOnTouchDrag: boolean;
|
|
13
|
+
pausedOnSlideChange: boolean;
|
|
14
|
+
constructor(instance: LightGallery);
|
|
15
|
+
init(): void;
|
|
16
|
+
private showProgressBar;
|
|
17
|
+
private controls;
|
|
18
|
+
startAutoPlay(): void;
|
|
19
|
+
stopAutoPlay(): void;
|
|
20
|
+
closeGallery(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
export interface CommentStrings {
|
|
2
|
-
toggleComments: string;
|
|
3
|
-
}
|
|
4
|
-
export interface CommentSettings {
|
|
5
|
-
/**
|
|
6
|
-
* Enable comment box
|
|
7
|
-
*/
|
|
8
|
-
commentBox: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Enable facebook comment box
|
|
11
|
-
*/
|
|
12
|
-
fbComments: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Enable disqus comment box
|
|
15
|
-
*/
|
|
16
|
-
disqusComments: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Disqus comment config
|
|
19
|
-
*/
|
|
20
|
-
disqusConfig: {
|
|
21
|
-
title?: string;
|
|
22
|
-
language: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Facebook comments default markup
|
|
26
|
-
*/
|
|
27
|
-
commentsMarkup: string;
|
|
28
|
-
/**
|
|
29
|
-
* Custom translation strings for aria-labels
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
export interface CommentStrings {
|
|
2
|
+
toggleComments: string;
|
|
3
|
+
}
|
|
4
|
+
export interface CommentSettings {
|
|
5
|
+
/**
|
|
6
|
+
* Enable comment box
|
|
7
|
+
*/
|
|
8
|
+
commentBox: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Enable facebook comment box
|
|
11
|
+
*/
|
|
12
|
+
fbComments: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Enable disqus comment box
|
|
15
|
+
*/
|
|
16
|
+
disqusComments: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Disqus comment config
|
|
19
|
+
*/
|
|
20
|
+
disqusConfig: {
|
|
21
|
+
title?: string;
|
|
22
|
+
language: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Facebook comments default markup
|
|
26
|
+
*/
|
|
27
|
+
commentsMarkup: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom translation strings for aria-labels
|
|
30
|
+
* @deprecated Set these labels on the core `strings` object instead,
|
|
31
|
+
* every user-facing string lives in that one contract. An explicitly set
|
|
32
|
+
* key here still wins (alias).
|
|
33
|
+
*/
|
|
34
|
+
commentPluginStrings?: Partial<CommentStrings>;
|
|
35
|
+
}
|
|
36
|
+
export declare const commentSettings: CommentSettings;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lightGallery comments module
|
|
3
|
-
* Supports facebook and disqus comments
|
|
4
|
-
*
|
|
5
|
-
* @ref - https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
|
|
6
|
-
* @ref - https://github.com/disqus/DISQUS-API-Recipes/blob/master/snippets/js/disqus-reset/disqus_reset.html
|
|
7
|
-
* @ref - https://css-tricks.com/lazy-loading-disqus-comments/
|
|
8
|
-
* @ref - https://developers.facebook.com/docs/plugins/comments/#comments-plugin
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
import { LgQuery } from '../../lgQuery';
|
|
12
|
-
import { LightGallery } from '../../lightgallery';
|
|
13
|
-
import { CommentSettings } from './lg-comment-settings';
|
|
14
|
-
export default class CommentBox {
|
|
15
|
-
core: LightGallery;
|
|
16
|
-
settings: CommentSettings;
|
|
17
|
-
private $LG;
|
|
18
|
-
constructor(instance: LightGallery, $LG: LgQuery);
|
|
19
|
-
init(): void;
|
|
20
|
-
private setMarkup;
|
|
21
|
-
toggleCommentBox(): void;
|
|
22
|
-
addFbComments(): void;
|
|
23
|
-
addDisqusComments(): void;
|
|
24
|
-
destroy(): void;
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* lightGallery comments module
|
|
3
|
+
* Supports facebook and disqus comments
|
|
4
|
+
*
|
|
5
|
+
* @ref - https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
|
|
6
|
+
* @ref - https://github.com/disqus/DISQUS-API-Recipes/blob/master/snippets/js/disqus-reset/disqus_reset.html
|
|
7
|
+
* @ref - https://css-tricks.com/lazy-loading-disqus-comments/
|
|
8
|
+
* @ref - https://developers.facebook.com/docs/plugins/comments/#comments-plugin
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
import { LgQuery } from '../../lgQuery';
|
|
12
|
+
import { LightGallery } from '../../lightgallery';
|
|
13
|
+
import { CommentSettings } from './lg-comment-settings';
|
|
14
|
+
export default class CommentBox {
|
|
15
|
+
core: LightGallery;
|
|
16
|
+
settings: CommentSettings;
|
|
17
|
+
private $LG;
|
|
18
|
+
constructor(instance: LightGallery, $LG: LgQuery);
|
|
19
|
+
init(): void;
|
|
20
|
+
private setMarkup;
|
|
21
|
+
toggleCommentBox(): void;
|
|
22
|
+
addFbComments(): void;
|
|
23
|
+
addDisqusComments(): void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
export interface FullscreenStrings {
|
|
2
|
-
toggleFullscreen: string;
|
|
3
|
-
}
|
|
4
|
-
export interface FullscreenSettings {
|
|
5
|
-
/**
|
|
6
|
-
* Enable/Disable fullscreen option
|
|
7
|
-
*/
|
|
8
|
-
fullScreen: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Custom translation strings for aria-labels
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
export interface FullscreenStrings {
|
|
2
|
+
toggleFullscreen: string;
|
|
3
|
+
}
|
|
4
|
+
export interface FullscreenSettings {
|
|
5
|
+
/**
|
|
6
|
+
* Enable/Disable fullscreen option
|
|
7
|
+
*/
|
|
8
|
+
fullScreen: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Custom translation strings for aria-labels
|
|
11
|
+
* @deprecated Set these labels on the core `strings` object instead,
|
|
12
|
+
* every user-facing string lives in that one contract. An explicitly set
|
|
13
|
+
* key here still wins (alias).
|
|
14
|
+
*/
|
|
15
|
+
fullscreenPluginStrings?: Partial<FullscreenStrings>;
|
|
16
|
+
}
|
|
17
|
+
export declare const fullscreenSettings: FullscreenSettings;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { LgQuery } from '../../lgQuery';
|
|
2
|
-
import { LightGallery } from '../../lightgallery';
|
|
3
|
-
import { FullscreenSettings } from './lg-fullscreen-settings';
|
|
4
|
-
export default class FullScreen {
|
|
5
|
-
core: LightGallery;
|
|
6
|
-
settings: FullscreenSettings;
|
|
7
|
-
private $LG;
|
|
8
|
-
constructor(instance: LightGallery, $LG: LgQuery);
|
|
9
|
-
init(): void;
|
|
10
|
-
private isFullScreen;
|
|
11
|
-
private requestFullscreen;
|
|
12
|
-
private exitFullscreen;
|
|
13
|
-
private fullScreen;
|
|
14
|
-
closeGallery(): void;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
}
|
|
1
|
+
import { LgQuery } from '../../lgQuery';
|
|
2
|
+
import { LightGallery } from '../../lightgallery';
|
|
3
|
+
import { FullscreenSettings } from './lg-fullscreen-settings';
|
|
4
|
+
export default class FullScreen {
|
|
5
|
+
core: LightGallery;
|
|
6
|
+
settings: FullscreenSettings;
|
|
7
|
+
private $LG;
|
|
8
|
+
constructor(instance: LightGallery, $LG: LgQuery);
|
|
9
|
+
init(): void;
|
|
10
|
+
private isFullScreen;
|
|
11
|
+
private requestFullscreen;
|
|
12
|
+
private exitFullscreen;
|
|
13
|
+
private fullScreen;
|
|
14
|
+
closeGallery(): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HashDriverPreference } from '../../headless/index';
|
|
2
|
+
export interface HashSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Enable/Disable hash option
|
|
5
|
+
*/
|
|
6
|
+
hash: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* URL engine behind the hash syncing.
|
|
9
|
+
* @description 'auto' uses the Navigation API where the browser
|
|
10
|
+
* supports it and falls back to the History API everywhere else;
|
|
11
|
+
* 'history' and 'navigation' force an engine (an unsupported
|
|
12
|
+
* 'navigation' quietly falls back, the enhancement is never
|
|
13
|
+
* load-bearing). The deep-link URL format is identical either way.
|
|
14
|
+
* See <a href="/docs/hash-drivers/">Hash drivers</a>.
|
|
15
|
+
* @version V3.0.0
|
|
16
|
+
*/
|
|
17
|
+
hashDriver: HashDriverPreference;
|
|
18
|
+
/**
|
|
19
|
+
* Unique id for each gallery.
|
|
20
|
+
* @description It is mandatory when you use hash plugin for multiple galleries on the same page.
|
|
21
|
+
*/
|
|
22
|
+
galleryId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Custom slide name to use in the url when hash plugin is enabled
|
|
25
|
+
*/
|
|
26
|
+
customSlideName: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const hashSettings: HashSettings;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { LgQuery } from '../../lgQuery';
|
|
2
|
-
import { LightGallery } from '../../lightgallery';
|
|
3
|
-
import { HashSettings } from './lg-hash-settings';
|
|
4
|
-
export default class Hash {
|
|
5
|
-
core: LightGallery;
|
|
6
|
-
settings: HashSettings;
|
|
7
|
-
oldHash: string;
|
|
8
|
-
private $LG;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { LgQuery } from '../../lgQuery';
|
|
2
|
+
import { LightGallery } from '../../lightgallery';
|
|
3
|
+
import { HashSettings } from './lg-hash-settings';
|
|
4
|
+
export default class Hash {
|
|
5
|
+
core: LightGallery;
|
|
6
|
+
settings: HashSettings;
|
|
7
|
+
oldHash: string;
|
|
8
|
+
private $LG;
|
|
9
|
+
private driver;
|
|
10
|
+
private unsubscribeDriver?;
|
|
11
|
+
constructor(instance: LightGallery, $LG: LgQuery);
|
|
12
|
+
init(): void;
|
|
13
|
+
private onAfterSlide;
|
|
14
|
+
/**
|
|
15
|
+
* Get index of the slide from custom slideName. Has to be a public method. Used in hash plugin
|
|
16
|
+
* @param {String} hash
|
|
17
|
+
* @returns {Number} Index of the slide.
|
|
18
|
+
*/
|
|
19
|
+
getIndexFromUrl(hash?: string): number;
|
|
20
|
+
buildFromHash(): boolean | undefined;
|
|
21
|
+
private onCloseAfter;
|
|
22
|
+
private onHashchange;
|
|
23
|
+
closeGallery(): void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface JustifiedSettings {
|
|
2
|
+
/**
|
|
3
|
+
* Enable the justified layout for the gallery's trigger thumbnails:
|
|
4
|
+
* rows of equal height and varying widths that fill the container
|
|
5
|
+
* edge to edge. Inline galleries only, dynamic mode has no trigger
|
|
6
|
+
* grid to lay out. Each box shows as a placeholder and its thumbnail
|
|
7
|
+
* fades in once loaded; put `class="lg-justified"` on the container
|
|
8
|
+
* markup so nothing shows unorganized before the script runs.
|
|
9
|
+
* See <a href="/docs/justified-layout/">Justified layout</a>.
|
|
10
|
+
*/
|
|
11
|
+
justified: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Row height (px) the layout aims for; actual rows land as close to
|
|
14
|
+
* it as the aspect ratios allow.
|
|
15
|
+
*/
|
|
16
|
+
justifiedRowHeight: number;
|
|
17
|
+
/**
|
|
18
|
+
* Gap between thumbnails and between rows (px).
|
|
19
|
+
*/
|
|
20
|
+
justifiedGap: number;
|
|
21
|
+
/**
|
|
22
|
+
* Last-row policy: 'justify' scales the leftover row to fill the
|
|
23
|
+
* width like every other row, 'start' keeps the row height aligned
|
|
24
|
+
* to the reading start, 'hide' hides the leftover thumbnails.
|
|
25
|
+
*/
|
|
26
|
+
justifiedLastRow: 'justify' | 'start' | 'hide';
|
|
27
|
+
/**
|
|
28
|
+
* Row-height clamp as a multiple of justifiedRowHeight, a sparse
|
|
29
|
+
* row never renders taller than this.
|
|
30
|
+
*/
|
|
31
|
+
justifiedMaxScale: number;
|
|
32
|
+
/**
|
|
33
|
+
* How thumbnails appear as they load: 'row' reveals whole rows top
|
|
34
|
+
* to bottom, each once every thumbnail in it has loaded; 'image'
|
|
35
|
+
* reveals each thumbnail on its own as soon as it has loaded.
|
|
36
|
+
* Until a thumbnail is revealed its box shows as a placeholder.
|
|
37
|
+
* See <a href="/docs/justified-layout/">Justified layout</a>.
|
|
38
|
+
* @version V3.0.0
|
|
39
|
+
*/
|
|
40
|
+
justifiedReveal: 'row' | 'image';
|
|
41
|
+
}
|
|
42
|
+
export declare const justifiedSettings: JustifiedSettings;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { LgQuery } from '../../lgQuery';
|
|
2
|
+
import { LightGallery } from '../../lightgallery';
|
|
3
|
+
import { JustifiedSettings } from './lg-justified-settings';
|
|
4
|
+
/**
|
|
5
|
+
* lightGallery justified layout: lays the gallery's trigger thumbnails
|
|
6
|
+
* out in rows of equal height and varying widths that fill the
|
|
7
|
+
* container edge to edge. The row math is shared headless code; this
|
|
8
|
+
* plugin measures the container, sources the aspect ratios and writes
|
|
9
|
+
* the geometry.
|
|
10
|
+
*
|
|
11
|
+
* Aspect-ratio sources, in order: the trigger's `data-lg-size`
|
|
12
|
+
* attribute, the thumbnail's `width`/`height` attributes, and finally
|
|
13
|
+
* the loaded image's natural size (one relayout when the last unknown
|
|
14
|
+
* resolves).
|
|
15
|
+
*
|
|
16
|
+
* Triggers stay invisible (stylesheet) until they are positioned; each
|
|
17
|
+
* box then shows as a placeholder and the thumbnails fade in as they
|
|
18
|
+
* load, row by row in reading order or one by one (`justifiedReveal`),
|
|
19
|
+
* so the grid is never seen unorganized. Ship `class="lg-justified"`
|
|
20
|
+
* on the container markup to cover the time before the script runs.
|
|
21
|
+
*/
|
|
22
|
+
export default class Justified {
|
|
23
|
+
core: LightGallery;
|
|
24
|
+
settings: JustifiedSettings;
|
|
25
|
+
private $LG;
|
|
26
|
+
private triggers;
|
|
27
|
+
private ratios;
|
|
28
|
+
private resizeObserver?;
|
|
29
|
+
private layoutWidth;
|
|
30
|
+
private pendingLoads;
|
|
31
|
+
private rows;
|
|
32
|
+
private loaded;
|
|
33
|
+
private loadWatchers;
|
|
34
|
+
private originalContainerStyle;
|
|
35
|
+
private originalTriggerStyles;
|
|
36
|
+
constructor(instance: LightGallery, $LG: LgQuery);
|
|
37
|
+
init(): void;
|
|
38
|
+
/** Adopt the core's current trigger list into the layout. */
|
|
39
|
+
private collectTriggers;
|
|
40
|
+
/** Best-known aspect ratio per trigger; unknowns resolve on load. */
|
|
41
|
+
private resolveRatios;
|
|
42
|
+
/** Relayout once when the last unknown thumbnail resolves. */
|
|
43
|
+
private watchImageLoad;
|
|
44
|
+
private layout;
|
|
45
|
+
/** Track when the trigger's thumbnail has settled (loaded or failed). */
|
|
46
|
+
private watchLoad;
|
|
47
|
+
/**
|
|
48
|
+
* Fade in what may show now (see `justifiedReveal`). Never re-hides:
|
|
49
|
+
* a relayout regroups the rows, already visible triggers stay.
|
|
50
|
+
*/
|
|
51
|
+
private reveal;
|
|
52
|
+
private cancelLoadWatchers;
|
|
53
|
+
closeGallery(): void;
|
|
54
|
+
destroy(): void;
|
|
55
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface MediumZoomSettings {
|
|
2
|
-
/**
|
|
3
|
-
* Enable/Disable medium like zoom experience
|
|
4
|
-
*/
|
|
5
|
-
mediumZoom: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Space between the gallery outer area and images
|
|
8
|
-
*/
|
|
9
|
-
margin: number;
|
|
10
|
-
/**
|
|
11
|
-
* Background color for the gallery
|
|
12
|
-
* This can be overwritten by passing background color via `lg-background-color` for each item
|
|
13
|
-
*/
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const mediumZoomSettings: MediumZoomSettings;
|
|
1
|
+
export interface MediumZoomSettings {
|
|
2
|
+
/**
|
|
3
|
+
* Enable/Disable medium like zoom experience
|
|
4
|
+
*/
|
|
5
|
+
mediumZoom: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Space between the gallery outer area and images
|
|
8
|
+
*/
|
|
9
|
+
margin: number;
|
|
10
|
+
/**
|
|
11
|
+
* Background color for the gallery
|
|
12
|
+
* This can be overwritten by passing background color via `lg-background-color` for each item
|
|
13
|
+
*/
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const mediumZoomSettings: MediumZoomSettings;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { LgQuery } from '../../lgQuery';
|
|
2
|
-
import { LightGallery } from '../../lightgallery';
|
|
3
|
-
import { MediumZoomSettings } from './lg-medium-zoom-settings';
|
|
4
|
-
export default class MediumZoom {
|
|
5
|
-
core: LightGallery;
|
|
6
|
-
settings: MediumZoomSettings;
|
|
7
|
-
private $LG;
|
|
8
|
-
constructor(instance: LightGallery, $LG: LgQuery);
|
|
9
|
-
private toggleItemClass;
|
|
10
|
-
init(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
}
|
|
1
|
+
import { LgQuery } from '../../lgQuery';
|
|
2
|
+
import { LightGallery } from '../../lightgallery';
|
|
3
|
+
import { MediumZoomSettings } from './lg-medium-zoom-settings';
|
|
4
|
+
export default class MediumZoom {
|
|
5
|
+
core: LightGallery;
|
|
6
|
+
settings: MediumZoomSettings;
|
|
7
|
+
private $LG;
|
|
8
|
+
constructor(instance: LightGallery, $LG: LgQuery);
|
|
9
|
+
private toggleItemClass;
|
|
10
|
+
init(): void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface OriginCropSettings {
|
|
2
|
+
/**
|
|
3
|
+
* Enable/Disable the origin crop plugin: zoom-from-origin flights from
|
|
4
|
+
* cropped thumbnails (<code>object-fit: cover</code>,
|
|
5
|
+
* <code>background-size: cover</code>) start from the part of the image
|
|
6
|
+
* the thumbnail shows, at a uniform scale, and reveal the rest around it.
|
|
7
|
+
* See <a href="/demos/zoom-from-origin/">Zoom from origin</a>.
|
|
8
|
+
* @version 3.0.0
|
|
9
|
+
*/
|
|
10
|
+
originCrop: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const originCropSettings: OriginCropSettings;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LightGallery } from '../../lightgallery';
|
|
2
|
+
import { OriginCropSettings } from './lg-origin-crop-settings';
|
|
3
|
+
/**
|
|
4
|
+
* Zoom-from-origin flights from cropped thumbnails. A grid tile cropped
|
|
5
|
+
* with `object-fit: cover` (or `background-size: cover`) shows a window of
|
|
6
|
+
* the image, and the built-in flight squashes the whole image into the
|
|
7
|
+
* tile. With this plugin the window grows from the tile at a uniform
|
|
8
|
+
* scale while two boxes around the slides crop the rest of the image,
|
|
9
|
+
* revealed as the flight lands; the close flies back the same way. The
|
|
10
|
+
* plugin reads the thumbnail's computed fit and position, so no markup is
|
|
11
|
+
* needed. Thumbnails the built-in flight lands exactly keep it.
|
|
12
|
+
*
|
|
13
|
+
* The core's flight is untouched: the plugin replaces the flight's
|
|
14
|
+
* transform through `getOriginTransform` and follows each of the core's
|
|
15
|
+
* flight steps with the crop, in the same task.
|
|
16
|
+
*/
|
|
17
|
+
export default class OriginCrop {
|
|
18
|
+
core: LightGallery;
|
|
19
|
+
settings: OriginCropSettings;
|
|
20
|
+
private outerBox?;
|
|
21
|
+
private innerBox?;
|
|
22
|
+
private flight?;
|
|
23
|
+
private closing;
|
|
24
|
+
private stageMoved;
|
|
25
|
+
private observer?;
|
|
26
|
+
private flipGrace?;
|
|
27
|
+
private restoreCore?;
|
|
28
|
+
constructor(instance: LightGallery);
|
|
29
|
+
init(): void;
|
|
30
|
+
destroy(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Takes over the core's flight hooks: the flight's transform, and the
|
|
33
|
+
* dummy that flies in place of the loading image.
|
|
34
|
+
*/
|
|
35
|
+
private patchCore;
|
|
36
|
+
/**
|
|
37
|
+
* The flight from (or back to) a trigger, when the built-in flight
|
|
38
|
+
* cannot land it exactly: a cropped thumbnail, one letterboxed in its
|
|
39
|
+
* box, or a background thumbnail. Undefined otherwise, and the core
|
|
40
|
+
* flies as it always does.
|
|
41
|
+
*/
|
|
42
|
+
private getFlight;
|
|
43
|
+
/**
|
|
44
|
+
* The opening flight, whose transform the core has just asked for. For
|
|
45
|
+
* a cropped thumbnail the stage crops to the thumbnail before anything
|
|
46
|
+
* shows (the gallery is still transparent), then follows the slide.
|
|
47
|
+
*/
|
|
48
|
+
private onBeforeOpen;
|
|
49
|
+
/**
|
|
50
|
+
* Follows the opening slide with the stage. Mutation records are
|
|
51
|
+
* delivered at the end of the task that made them, before the browser
|
|
52
|
+
* renders, so the stage moves in the same frame as each of the core's
|
|
53
|
+
* steps: when the core flips the slide to rest, the stage opens with it
|
|
54
|
+
* on the slide's duration and easing; when the core settles the flight,
|
|
55
|
+
* the stage lets go.
|
|
56
|
+
*/
|
|
57
|
+
private followOpen;
|
|
58
|
+
private onBeforeClose;
|
|
59
|
+
/**
|
|
60
|
+
* The closing flight, whose transform the core has just asked for. The
|
|
61
|
+
* core puts the slide on it right after, in the same task; once it has,
|
|
62
|
+
* the stage follows on the slide's duration and easing: onto the
|
|
63
|
+
* thumbnail's box for a cropped thumbnail, else back to rest if an
|
|
64
|
+
* opening flight left it cropped.
|
|
65
|
+
*/
|
|
66
|
+
private followClose;
|
|
67
|
+
private onAfterClose;
|
|
68
|
+
private getSlideTransition;
|
|
69
|
+
/**
|
|
70
|
+
* Crops the stage: both boxes hide their overflow and take their
|
|
71
|
+
* transforms, instantly or on a transition.
|
|
72
|
+
*/
|
|
73
|
+
private setStage;
|
|
74
|
+
/** Lets go of the crop: the boxes are inert again. */
|
|
75
|
+
private resetStage;
|
|
76
|
+
private stopFollowing;
|
|
77
|
+
private wrapStage;
|
|
78
|
+
private unwrapStage;
|
|
79
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface PagerSettings {
|
|
2
|
-
/**
|
|
3
|
-
* Enable/Disable pager option
|
|
4
|
-
*/
|
|
5
|
-
pager: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const pagerSettings: PagerSettings;
|
|
1
|
+
export interface PagerSettings {
|
|
2
|
+
/**
|
|
3
|
+
* Enable/Disable pager option
|
|
4
|
+
*/
|
|
5
|
+
pager: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const pagerSettings: PagerSettings;
|