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

Size unit implementation for PointGeom and TextGeom #215

Merged
merged 17 commits into from
Oct 27, 2020
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
Edit comment
  • Loading branch information
IKrukov-HORIS committed Oct 22, 2020
commit 29e2e4ceb44661aed11d7eb01c4b55d37e77c809
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ open class PointGeom : GeomBase() {
sizeUnit?.let { sizeUnitValue ->
alshan marked this conversation as resolved.
Show resolved Hide resolved
val unitRes = getUnitResBySizeUnit(ctx, sizeUnitValue)
// TODO: Need refactoring: It's better to use NamedShape.FILLED_CIRCLE.size(1.0)
// but AesScaling.circleDiameter is used because Shape.size() takes DataPointAesthetics
// but Shape.size() can't be used because it takes DataPointAesthetics as param
val unitShapeSize = 2.2
alshan marked this conversation as resolved.
Show resolved Hide resolved
return unitRes / unitShapeSize
}
Expand Down