Line Style
data class LineStyle( val brush: Brush? = null, val arrowHeadType: ArrowHeadType? = null, val width: Dp = Dp.Unspecified, val miter: Dp = Dp.Unspecified, val cap: StrokeCap? = null, val join: StrokeJoin? = null, val dashIntervals: Pair<Dp, Dp>? = null)
Content copied to clipboard
Properties that control how lines and arrows are rendered.
Parameters
brush
The Brush used to draw lines and arrows.
arrow Head Type
The ArrowHeadType of arrows, when appropriate.
width
The width of the stroke, in Dp. See Stroke.width.
miter
The miter of the stroke, in Dp. See Stroke.miter.
cap
The cap of the stroke. See Stroke.cap.
join
The join of the stroke. See Stroke.join.
dash Intervals
If non-null, lines will be drawn as dashed lines, with the first element of the pair Dp on, and the second element off. E.g. 10.dp to 10.dp
is equivalent to dashedPathEffect(floatArrayOf(10.dp.toPx(), 10.dp.toPx()))
.