Skip to content

Commit

Permalink
fix(api): use named parameters directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jomaway committed Mar 10, 2024
1 parent 5d0e8c4 commit 548fecb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/api.typ
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@
}

let format = (
angle: args.named().at("angle", default: -60deg),
text-size: args.named().at("text-size",default: auto),
marker: args.named().at("marker", default: true),
fill: args.named().at("fill", default: auto),
stroke: args.named().at("stroke", default: auto),
angle: angle,
text-size: text-size,
marker: marker,
fill: fill,
stroke: stroke,
)

return header-field(
Expand Down

0 comments on commit 548fecb

Please sign in to comment.