This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Composer.Geometry.Offset

A set of four dimensions: top, left, bottom and right. Used for offsets, padding, margins, etc.

type alias Offset = { top : Float , left : Float , bottom : Float , right : Float }
zero : Offset

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
    }