Compare commits
No commits in common. "main" and "v1.0.0" have entirely different histories.
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
name = "kicad_sexpr"
|
name = "kicad_sexpr"
|
||||||
version = "1.0.1"
|
version = "1.0.0"
|
||||||
description = "A gleam library for parsing kicad footprint files and symbol libraries"
|
description = "A gleam library for parsing kicad footprint files and symbol libraries"
|
||||||
licences = ["MIT"]
|
licences = ["MIT"]
|
||||||
repository = { type = "forgejo", host = "git.7cs.dev", user = "lily", repo = "gleam-kicad-sexpr" }
|
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 {
|
pub type Size {
|
||||||
Size(width: Float, height: Float)
|
Size(height: Float, width: Float)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn size(then next: NextFn(Size, a)) -> Decoder(a) {
|
pub fn size(then next: NextFn(Size, a)) -> Decoder(a) {
|
||||||
decode.token(named: "size", then: next, with: {
|
decode.token(named: "size", then: next, with: {
|
||||||
use width <- decode.float()
|
|
||||||
use height <- decode.float()
|
use height <- decode.float()
|
||||||
decode.success(Size(width:, height:))
|
use width <- decode.float()
|
||||||
|
decode.success(Size(height:, width:))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue