import { Formatter } from '@nodata/redux-utils'; /** * A Position is the size and height of an element. * It is used on grid's childrens. * * @prop x The x position on the grid. * @prop y The y position on the grid. * @prop width: The width of the element. * @prop height: The height of the element. */ export interface Position { readonly height?: PositionHeight; readonly width?: PositionWidth; readonly x?: PositionX; readonly y?: PositionY; } export type PositionHeight = Formatter; export type PositionWidth = Formatter; export type PositionX = Formatter; export type PositionY = Formatter;