Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mattijn van Hoek <[email protected]>
  • Loading branch information
dangotbanned and mattijn authored Jul 19, 2024
1 parent ef81573 commit ca1b301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
highlight = alt.selection_point(name="highlight", on="pointerover", empty=False)

stroke_width = (
alt.when(select)
.then(alt.value(2, empty=False))
.when(highlight)
.then(alt.value(1))
alt.when(select).then(alt.value(2, empty=False))
.when(highlight).then(alt.value(1))
.otherwise(alt.value(0))
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
highlight = alt.selection_point(name="highlight", on="pointerover", empty=False)

stroke_width = (
alt.when(select)
.then(alt.value(2, empty=False))
.when(highlight)
.then(alt.value(1))
alt.when(select).then(alt.value(2, empty=False))
.when(highlight).then(alt.value(1))
.otherwise(alt.value(0))
)

Expand Down

0 comments on commit ca1b301

Please sign in to comment.