Skip to content

Commit

Permalink
Update src/axis.js
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Rivière <[email protected]>
  • Loading branch information
mbostock and Fil authored Feb 23, 2021
1 parent 8769f6d commit d9cab26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function axis(orient, scale) {
tickSizeInner = 6,
tickSizeOuter = 6,
tickPadding = 3,
offset = typeof window !== "undefined" && window.devicePixelRatio >= 2 ? 0 : 0.5,
offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5,
k = orient === top || orient === left ? -1 : 1,
x = orient === left || orient === right ? "x" : "y",
transform = orient === top || orient === bottom ? translateX : translateY;
Expand Down

0 comments on commit d9cab26

Please sign in to comment.