Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
118067adb2 | |||
3f04932c2f |
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
name = "kicad_sexpr"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
description = "A gleam library for parsing kicad footprint files and symbol libraries"
|
||||
licences = ["MIT"]
|
||||
repository = { type = "forgejo", host = "git.7cs.dev", user = "lily", repo = "gleam-kicad-sexpr" }
|
||||
|
|
|
@ -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