Skip to content

mosaicgallery / JustifiedLayoutConfig

Interface: JustifiedLayoutConfig

Defined in: gallery/config.ts:171

All configuration options for the justified layout in a MosaicGallery

Properties

heightTolerance

heightTolerance: number | null

Defined in: gallery/config.ts:184

How much the actual row height can deviate from the target height (as a fraction of the target height). Set to null to allow any deviation.

Default

ts
0.25

lastRowHeightTolerance

lastRowHeightTolerance: number | null

Defined in: gallery/config.ts:196

How much the last row height can deviate from the target height (as a fraction of the target height). Set to null to allow any deviation.

Default

ts
0.5

lastRowJustification

lastRowJustification: string

Defined in: gallery/config.ts:201

How the last row is justified if it can't be justified normally.

Default

ts
Justification.Center

margin

margin: [string | number, string | number]

Defined in: gallery/config.ts:207

The margin between elements in x, y direction. Can be a pixel value or any valid CSS unit.

Default

ts
[10, 10]

rowDeviation

rowDeviation: string

Defined in: gallery/config.ts:189

How the row height is adjusted to fit the whole width of the gallery.

Default

ts
Deviation.Auto

targetRowHeight

targetRowHeight: string | number

Defined in: gallery/config.ts:178

The target height of a single row. Can be a pixel value or any valid CSS unit.

Default

ts
250

type

readonly type: "justified"

Defined in: gallery/config.ts:172