# @types/justifiedgallery

> TypeScript definitions for justifiedgallery

Latest version **3.8.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/justifiedgallery
pnpm add @types/justifiedgallery
yarn add @types/justifiedgallery
bun add @types/justifiedgallery
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.8.3 |
| Published | 2023-11-07 |
| First published | 2022-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/justifiedgallery
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/justifiedgallery
- npm.io page: https://npm.io/package/@types/justifiedgallery

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 3.8.3 (latest) — 2023-11-07
- 3.8.0 (ts3.9) — 2022-05-19
- 3.8.2 — 2023-10-18
- 3.8.1 — 2023-09-15

## README

# Installation
> `npm install --save @types/justifiedgallery`

# Summary
This package contains type definitions for justifiedgallery (https://github.com/miromannino/Justified-Gallery).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/justifiedgallery.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/justifiedgallery/index.d.ts)
````ts
/// <reference types="jquery"/>

declare namespace JustifiedGallery {
    interface Settings {
        sizeRangeSuffixes?: { [size: number]: string };
        thumbnailPath?: ((imageSrc: string, imgWidth: number, imgHeight: number, image: JQuery) => string) | undefined;
        rowHeight?: number;
        maxRowHeight?: false | number | string;
        maxRowsCount?: number;
        margins?: number;
        border?: number;
        lastRow?: "justify" | "nojustify" | "left" | "right" | "center" | "hide";
        justifyThreshold?: number;
        waitThumbnailsLoad?: boolean;
        captions?: boolean;
        cssAnimation?: boolean;
        imagesAnimationDuration?: number;
        captionSettings?: CaptionSettings;
        rel?: string | null;
        target?: string | null;
        extension?: RegExp;
        refreshTime?: number;
        refreshSensitivity?: number;
        randomize?: boolean;
        rtl?: boolean;
        sort?: false | ((a: any, b: any) => number);
        filter?: false | string | ((value: HTMLElement, index: number, array: HTMLElement[]) => boolean);
        selector?: string;
        imgSelector?: string;
        triggerEvent?: (event: string | JQuery.Event) => void;
    }

    interface CaptionSettings {
        animationDuration?: number;
        visibleOpacity?: number;
        nonVisibleOpacity?: number;
    }
}

declare function justifiedGallery(root: Window, jQuery?: JQueryStatic): JQueryStatic | JQuery | HTMLElement;

declare global {
    interface JQuery<TElement = HTMLElement> {
        justifiedGallery(settings?: JustifiedGallery.Settings): JQuery;
    }
}

export = justifiedGallery;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Matt Smith](https://github.com/mattsmithcode).

---
_Source: https://npm.io/package/@types/justifiedgallery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
