This commit is contained in:
parent
e6c9989d35
commit
3f04932c2f
1 changed files with 3 additions and 3 deletions
|
@ -302,14 +302,14 @@ pub fn fill(then next: NextFn(Fill, a)) -> Decoder(a) {
|
|||
}
|
||||
|
||||
pub type Size {
|
||||
Size(height: Float, width: Float)
|
||||
Size(width: Float, height: Float)
|
||||
}
|
||||
|
||||
pub fn size(then next: NextFn(Size, a)) -> Decoder(a) {
|
||||
decode.token(named: "size", then: next, with: {
|
||||
use height <- decode.float()
|
||||
use width <- decode.float()
|
||||
decode.success(Size(height:, width:))
|
||||
use height <- decode.float()
|
||||
decode.success(Size(width:, height:))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue