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
0.25lastRowHeightTolerance
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
0.5lastRowJustification
lastRowJustification:
string
Defined in: gallery/config.ts:201
How the last row is justified if it can't be justified normally.
Default
Justification.Centermargin
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
[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
Deviation.AutotargetRowHeight
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
250type
readonlytype:"justified"
Defined in: gallery/config.ts:172