Package-level declarations

Functions

Link copied to clipboard
fun DrawScope.drawLinePath(path: Path, pointsData: MutableList<Offset>, lineStyle: LineStyle, wave: Wave, yPointOfOrigin: Float)
Link copied to clipboard
fun DrawScope.drawStraightOrCubicLineForWave(pointsData: MutableList<Offset>, lineStyle: LineStyle, yPointOfOrigin: Float = 0.0f, wave: Wave): Path

DrawScope.drawStraightOrCubicLine extension method used for drawing a straight/cubic line for a given Point(x,y).

Link copied to clipboard
fun DrawScope.drawWavePath(path: Path, pointsData: MutableList<Offset>, lineStyle: LineStyle, wave: Wave, yPointOfOrigin: Float): Path

Used to draw the wave

Link copied to clipboard
fun DrawScope.fillCurvePath(yPointOfOrigin: Float, pointPosition: AxisPosition, wave: Wave, startPoint: Offset, endPoint: Offset, cubicPoints1: Offset, cubicPoints2: Offset)

Used to fill the line path

Link copied to clipboard
fun DrawScope.fillIntersectionCurvePath(curvePoints: List<Offset>, yPointOfOrigin: Float, wave: Wave)

Used to fill the wave path using given color

Link copied to clipboard
fun DrawScope.fillIntersectionLinePath(startPoint: Offset, endPoint: Offset, yPointOfOrigin: Float, intersectionPoint: Offset, wave: Wave)

Used to fill the line path when two lines are intersecting

Link copied to clipboard
fun DrawScope.fillLinePath(yPointOfOrigin: Float, pointPosition: AxisPosition, wave: Wave, startPoint: Offset, endPoint: Offset)

Used to fill the line path

Link copied to clipboard
fun findControlPoints(startPoint: Offset, endPoint: Offset): Pair<Offset, Offset>

Used to get the control points of the give curve

Link copied to clipboard

Using De Casteljau’s algorithm to find the intermediate points on the curve

Link copied to clipboard
fun findLineIntersection(m1: Float, b1: Float, m2: Float, b2: Float): Offset?

Used to compute the intersection point of the lines

Link copied to clipboard
fun findNearestValue(list: List<Offset>, intersectionPoint: Float): Offset

Used to find the closest value for a given input

Link copied to clipboard
fun findPointPosition(p1: Float, p2: Float, yPointOfOrigin: Float): AxisPosition

Used to find the position of the start and end point of the bezier curve

Link copied to clipboard

Return slop and y intercept of the line

Link copied to clipboard
fun getCurveIntersectionPoint(curvePoints: List<Offset>, yPointOfOrigin: Float): Offset

Used to get the intersection point between the curve and line

Link copied to clipboard
fun getCurvePoints(startPoint: Offset, cubicPoint1: Offset, cubicPoint2: Offset, endPoint: Offset): List<Offset>

Used to get the points which helps to construct the bezier curve

Link copied to clipboard

Used to returns the interpolated point between p0 and p1 at the given t value.

Link copied to clipboard
fun WaveChart(modifier: Modifier, waveChartData: WaveChartData)

WaveChart compose method used for drawing a Wave Chart.