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

Improve border line type experience #1106

Merged
merged 8 commits into from
May 24, 2024
Prev Previous commit
Next Next commit
LPK-220: Change linewidth calculation for the midline of the boxplot.
  • Loading branch information
ASmirnov-HORIS committed May 20, 2024
commit 9931a32319d28c9398732b19bc62fe58d8ec4857
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ object BoxHelper {
DoubleVector(x - width / 2, middle),
DoubleVector(x + width / 2, middle),
p
) ?: continue
) { AesScaling.strokeWidth(it) * fatten } ?: continue

// TODO: use strokeScale in createLine() function
// adjust thickness
require(line is SvgShape)
val thickness = line.strokeWidth().get()!!
line.strokeWidth().set(thickness * fatten)

root.add(line)
}
Expand Down