-
public final class MeasureContextExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static MutableMeasureContextgetMeasureContext(Boolean isHorizontalScrollEnabled, RectF canvasBounds, HorizontalLayout horizontalLayout, Function1<Float, Float> spToPx, ChartValuesProvider chartValuesProvider)The anonymous implementation of the MeasureContext. -
-
Method Detail
-
getMeasureContext
@Composable() final static MutableMeasureContext getMeasureContext(Boolean isHorizontalScrollEnabled, RectF canvasBounds, HorizontalLayout horizontalLayout, Function1<Float, Float> spToPx, ChartValuesProvider chartValuesProvider)
The anonymous implementation of the MeasureContext.
- Parameters:
isHorizontalScrollEnabled- whether horizontal scrolling is enabled.canvasBounds- the bounds of the canvas that will be used to draw the chart and its components.horizontalLayout- defines how the chart’s content is positioned horizontally.spToPx- converts dimensions from sp to px.chartValuesProvider- provides the chart’s ChartValues instances.
-
-
-
-