Skip to main content

CommonGenerateGridParameters

Index

Properties

optionaldirection

direction?: horizontal | vertical = horizontal | vertical

The direction the items are layed out

height

height: number

Maximum height of the grid

itemHeight

itemHeight: number

Height of one grid item

optionalitemMarginX

itemMarginX?: number

Margin of one grid item in the X direction. Not giving a value will calculate a margin from the item's size and the grid size

optionalitemMarginY

itemMarginY?: number

Margin of one grid item in the Y direction Not giving a value will calculate a margin from the item's size and the grid size

itemWidth

itemWidth: number

Width of one grid item

width

width: number

Maximum width of the grid

x

x: number

Starting X coordinate of the grid

y

y: number

Starting Y coordinate of the grid