justgook/elm-tiled/2.0.0

NOTE: the latest version is 3.0.2

Tiled.Object

type Object
= Point (Common {})
| Rectangle CommonDimension
| Ellipse CommonDimension
| Polygon CommonDimensionPolyPoints
| PolyLine CommonDimensionPolyPoints
| Tile CommonDimensionGid
decode : Decoder Object
encode : Object -> Value
type alias CommonDimension =
Common (Dimension {})
type alias CommonDimensionGid =
Common (Dimension { gid : Gid })
Common
(Dimension
{ points :
List
{ x : Float
, y : Float
}
}
)
type alias Common a =
{ a
| id : Int
, name : String
, kind : String
, visible : Bool
, x : Float
, y : Float
, rotation : Float
, properties : Properties
}

Do i really need ID here?

type alias Dimension a =
{ a | width : Float, height : Float }
type alias Gid =
Int
type alias PolyPoints =
List
{ x : Float
, y : Float
}