Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates in lollipops #768

Merged
merged 12 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix rangeIncludesZero() for lollipops.
  • Loading branch information
ASmirnov-HORIS committed Apr 25, 2023
commit b0bf374bea056ce4f992de7cdc1fef4088a957a7
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ class GeomLayerBuilder(
@Suppress("NAME_SHADOWING")
val aes = aes.afterOrientation(isYOrientation)
return if (geom is LollipopGeom && aes == Aes.Y) {
geom.direction == LollipopGeom.Direction.ORTHOGONAL_TO_AXIS && geom.slope == 0.0 && geom.intercept == 0.0
// Pin the lollipops to an axis when baseline coincides with this axis and sticks are perpendicular to it
geom.slope == 0.0 && geom.intercept == 0.0 && geom.direction != LollipopGeom.Direction.ALONG_AXIS
} else {
aestheticsDefaults.rangeIncludesZero(aes)
}
Expand Down