Source set: Common
public class VectorPath internal constructor(
/** Name of the corresponding path */
public val name: String = DefaultPathName,
/** Path information to render the shape of the path */
public val pathData: List<PathNode>,
/** Rule to determine how the interior of the path is to be calculated */
public val pathFillType: PathFillType,
/** Specifies the color or gradient used to fill the path */
public val fill: Brush? = null,
/** Opacity to fill the path */
public val fillAlpha: Float = 1.0f,
/** Specifies the color or gradient used to fill the stroke */
public val stroke: Brush? = null,
/** Opacity to stroke the path */
public val strokeAlpha: Float = 1.0f,
/** Width of the line to stroke the path */
public val strokeLineWidth: Float = DefaultStrokeLineWidth,
/**
* Specifies the linecap for a stroked path, either butt, round, or square. The default is butt.
*/
public val strokeLineCap: StrokeCap = DefaultStrokeLineCap,
/**
* Specifies the linejoin for a stroked path, either miter, round or bevel. The default is miter
*/
public val strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,
/** Specifies the miter limit for a stroked path, the default is 4 */
public 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.
*/
public 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.
*/
public 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.
*/
public 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