constructor(lightbox, options) {
        this.options = {
            ...defaultOptions,
            ...options
        };
        this.lightbox = lightbox;
        this.lightbox.on('init', () => {
            this.initPlugin(this.lightbox.pswp);
        });
    }
PhotoSwipe fullscreen plugin v1.0.5

Inspired by https://github.com/dimsemenov/PhotoSwipe/issues/1759

By https://arnowelzel.de