Package 

Class MeasureContextExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static MutableMeasureContext getMeasureContext(Boolean isHorizontalScrollEnabled, RectF canvasBounds, HorizontalLayout horizontalLayout, Function1<Float, Float> spToPx, ChartValuesProvider chartValuesProvider) The anonymous implementation of the MeasureContext.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.