John O'Reilly
02/16/2024, 11:30 PMJohn O'Reilly
02/17/2024, 8:15 AMJohn O'Reilly
02/17/2024, 8:15 AMyschimke
02/17/2024, 8:17 AMJohn O'Reilly
02/17/2024, 8:18 AMyschimke
02/17/2024, 8:19 AMJohn O'Reilly
02/17/2024, 8:20 AMyschimke
02/17/2024, 9:35 AMyschimke
02/17/2024, 9:36 AMyschimke
02/17/2024, 9:36 AMyschimke
02/17/2024, 9:38 AMyschimke
02/17/2024, 9:46 AMyschimke
02/17/2024, 9:46 AMyschimke
02/17/2024, 9:48 AMJohn O'Reilly
02/17/2024, 9:48 AMyschimke
02/17/2024, 9:48 AMfun calculateVerticalOffsetForChip(
viewportDiameter: Float,
horizontalPaddingPercent: Float,
): Dp {
val childViewHeight: Float = ChipDefaults.Height.value
val childViewWidth: Float = viewportDiameter * (1.0f - (2f * horizontalPaddingPercent))
val radius = viewportDiameter / 2f
return (
radius -
sqrt(
(radius - childViewHeight + childViewWidth * 0.5f) * (radius - childViewWidth * 0.5f),
) -
childViewHeight * 0.5f
).dp
}
yschimke
02/17/2024, 9:49 AMyschimke
02/17/2024, 9:49 AMyschimke
02/17/2024, 9:49 AMyschimke
02/17/2024, 9:49 AMJohn O'Reilly
02/18/2024, 4:27 PMyschimke
02/18/2024, 4:28 PMJohn O'Reilly
02/18/2024, 4:28 PMyschimke
02/18/2024, 4:28 PMyschimke
02/18/2024, 4:29 PMyschimke
02/19/2024, 11:40 AMyschimke
02/19/2024, 5:54 PMJohn O'Reilly
02/20/2024, 2:59 PMyschimke
02/20/2024, 3:01 PMyschimke
02/20/2024, 3:01 PMJohn O'Reilly
02/20/2024, 3:05 PMyschimke
02/20/2024, 3:09 PMyschimke
02/20/2024, 4:35 PMyschimke
02/20/2024, 4:36 PMyschimke
02/20/2024, 4:36 PMyschimke
02/20/2024, 4:36 PMyschimke
02/20/2024, 4:36 PMyschimke
02/20/2024, 4:37 PMJohn O'Reilly
02/20/2024, 4:37 PMyschimke
02/20/2024, 4:39 PMyschimke
02/20/2024, 7:09 PMJohn O'Reilly
02/20/2024, 7:34 PM