LineStyle

data class LineStyle(val lineType: LineType = LineType.SmoothCurve(isDotted = false), val color: Color = Color.Black, val width: Float = 8.0f, val alpha: Float = 1.0f, val style: DrawStyle = Stroke(width = width), val colorFilter: ColorFilter? = null, val blendMode: BlendMode = DefaultBlendMode)

Handles styling for the path drawn in the line graph

Parameters

color

Defines the color of the path or line.

width

Defines the width of the path/line stroke.

alpha

Defines the alpha of the path/line.

style

Defines if the path/line is filled or stroke.

colorFilter

ColorFilter to apply to the color when drawn into the destination.

blendMode

All prams related to selection popup to be added here in SelectionHighlightPopUp

Constructors

Link copied to clipboard
constructor(lineType: LineType = LineType.SmoothCurve(isDotted = false), color: Color = Color.Black, width: Float = 8.0f, alpha: Float = 1.0f, style: DrawStyle = Stroke(width = width), colorFilter: ColorFilter? = null, blendMode: BlendMode = DefaultBlendMode)

Properties

Link copied to clipboard
val alpha: Float = 1.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Float = 8.0f