Skip to content

Commit

Permalink
Properly style breakpoints and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrswift committed Aug 1, 2024
1 parent b06bc20 commit 45c225f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/plot.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#import "plot/axis-style.typ"
#import "axes/axes.typ"


// TODO: Refactor this into a better way of providing palettes

#let default-colors = (
Expand Down
11 changes: 8 additions & 3 deletions src/plot/styles.typ
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,16 @@
style.tick.label.offset = res(style.tick.label.offset)

// Break points
// style.break-point.width = res(style.break-point.width)
// style.break-point.length = res(style.break-point.length)
if "break-point" in style {
style.break-point.width = res(style.break-point.width)
style.break-point.length = res(style.break-point.length)
}


// Padding
// style.padding = res(style.padding)
if "padding" in style {
style.padding = res(style.padding)
}

if "overshoot" in style {
style.overshoot = res(style.overshoot)
Expand Down

0 comments on commit 45c225f

Please sign in to comment.