LabelConnectorScope

The LabelConnectorScope provides geometry information to LabelConnector implementations so they can draw the connector from the graph element to the label.

Properties

Link copied to clipboard
abstract val endAngle: MutableState<Float>

The angle of the label at the end of the connector. This is an angle that is normal to the connector's bounding box at the endPosition

Link copied to clipboard

The ending position of the connector at the label.

Link copied to clipboard

The angle of the graph element at the start of the connector. For a Pie chart this is the angle of the slice it connects to.

Link copied to clipboard

The starting position of the connector at the graph element.

Functions

Link copied to clipboard
fun LabelConnectorScope.BezierLabelConnector(modifier: Modifier = Modifier, connectorColor: Color = MaterialTheme.colorScheme.onBackground, connectorStroke: Stroke = Stroke(width = 1f))

A label connector that uses a Bezier curve.

Link copied to clipboard
fun LabelConnectorScope.StraightLineConnector(modifier: Modifier = Modifier, connectorColor: Color = MaterialTheme.colorScheme.onBackground, connectorStroke: Stroke = Stroke(width = 1f))

A label connector that uses a straight line.