RadialMenuCanvas

fun RadialMenuCanvas(center: Offset, dragOffset: Offset, selectionIndex: Int?, items: List<RadialMenuItem>, colors: RadialMenuColors, centerAngle: Float, animationConfig: RadialMenuAnimationConfig, edgeHugPositions: List<Offset>? = null)(source)

The internal drawing logic for the radial menu icons, indicators, and badges.

Since

1.0.0

Parameters

center

The touch origin position.

dragOffset

Current drag delta from center.

selectionIndex

Index of the currently hovered item, or null.

items

The menu items to draw.

colors

Color configuration.

centerAngle

The computed center angle of the menu fan.

animationConfig

Animation configuration.

edgeHugPositions

Pre-computed item positions for edge-hug mode, or null for radial.