VectorPath

Class

Common
class VectorPath
internal constructor(
    /** Name of the corresponding path */
    val name: String = DefaultPathName,

    /** Path information to render the shape of the path */
    val pathData: List<PathNode>,

    /** Rule to determine how the interior of the path is to be calculated */
    val pathFillType: PathFillType,

    /** Specifies the color or gradient used to fill the path */
    val fill: Brush? = null,

    /** Opacity to fill the path */
    val fillAlpha: Float = 1.0f,

    /** Specifies the color or gradient used to fill the stroke */
    val stroke: Brush? = null,

    /** Opacity to stroke the path */
    val strokeAlpha: Float = 1.0f,

    /** Width of the line to stroke the path */
    val strokeLineWidth: Float = DefaultStrokeLineWidth,

    /**
     * Specifies the linecap for a stroked path, either butt, round, or square. The default is butt.
     */
    val strokeLineCap: StrokeCap = DefaultStrokeLineCap,

    /**
     * Specifies the linejoin for a stroked path, either miter, round or bevel. The default is miter
     */
    val strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,

    /** Specifies the miter limit for a stroked path, the default is 4 */
    val strokeLineMiter: Float = DefaultStrokeLineMiter,

    /**
     * Specifies the fraction of the path to trim from the start, in the range from 0 to 1. The
     * default is 0.
     */
    val trimPathStart: Float = DefaultTrimPathStart,

    /**
     * Specifies the fraction of the path to trim from the end, in the range from 0 to 1. The
     * default is 1.
     */
    val trimPathEnd: Float = DefaultTrimPathEnd,

    /**
     * Specifies the offset of the trim region (allows showed region to include the start and end),
     * in the range from 0 to 1. The default is 0.
     */
    val trimPathOffset: Float = DefaultTrimPathOffset,
) : VectorNode()

Leaf node of a Vector graphics tree. This specifies a path shape and parameters to color and style the shape itself

This is constructed as part of the result of ImageVector.Builder construction