diff options
author | Joris | 2016-06-28 00:32:37 +0200 |
---|---|---|
committer | Joris | 2016-06-29 20:34:05 +0200 |
commit | 071b07463ab3f6894928b13553e98cd47c9ccb18 (patch) | |
tree | fad6e7f6c8e9aa730f7c113868debc1812795cc9 /src/client/elm/Model | |
parent | f605541cbaaa3c339eef8f345547bcd653d3f721 (diff) |
Add tooltips
Diffstat (limited to 'src/client/elm/Model')
-rw-r--r-- | src/client/elm/Model/Size.elm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/client/elm/Model/Size.elm b/src/client/elm/Model/Size.elm new file mode 100644 index 0000000..b29e90b --- /dev/null +++ b/src/client/elm/Model/Size.elm @@ -0,0 +1,17 @@ +module Model.Size exposing + ( Size + , sizeDecoder + ) + +import Json.Decode as Json exposing ((:=)) + +type alias Size = + { width: Int + , height: Int + } + +sizeDecoder : Json.Decoder Size +sizeDecoder = + Json.object2 Size + ("width" := Json.int) + ("height" := Json.int) |