A set of four dimensions: top, left, bottom and right. Used for offsets, padding, margins, etc.
An offset with all the dimensions set to zero.
module Composer.Geometry.Offset exposing (Offset, zero)
{-| A set of four dimensions: top, left, bottom and right. Used for offsets,
padding, margins, etc.
@docs Offset, zero
-}
{-| -}
type alias Offset =
{ top : Float
, left : Float
, bottom : Float
, right : Float
}
{-| An offset with all the dimensions set to zero.
-}
zero : Offset
zero =
{ top = 0
, left = 0
, bottom = 0
, right = 0
}