Fix width and height order for size token
Some checks are pending
test / test (push) Waiting to run

This commit is contained in:
Lily Rose 2025-07-26 01:25:46 +10:00
parent e6c9989d35
commit 3f04932c2f

View file

@ -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:))
})
}