goolord/elm-cropper/1.0.0

Cropper.Types

Types

Types

type alias CropData =
{ url : String
, size : Rect
, crop : Rect
, resized : Rect
, origin : Point
}

crop data

type alias Drag =
{ start : Position
, current : Position
}

filling out these docs is a drag

type alias Image =
{ src : String
, width : Int
, height : Int
}

image object

type alias ImageData =
{ url : String
, crop : Rect
}

image data

type alias Model =
{ url : String
, crop : Rect
, image : Maybe Image
, boundingClientRect : Rectangle
, pivot : Vector
, zoom : Float
, drag : Maybe Drag
}

mobel

It seems that Msg(..) does not have any docs. The module's documentation names it in an @docs line, but the package does not expose it.
type alias Point =
{ x : Int
, y : Int
}

point. x, y, all that business

type alias Position =
{ x : Int
, y : Int
}

pozition

type alias Rect =
{ width : Int
, height : Int
}

Rectangle..... TWO!!!!!!!!

type alias Rectangle =
Rectangle

grectangle

type alias Vector =
{ x : Float
, y : Float
}

vegtor

decodeImage : Decoder Image

decode image object