VectorGroup

Class

Common
class VectorGroup
internal constructor(
    /** Name of the corresponding group */
    val name: String = DefaultGroupName,

    /** Rotation of the group in degrees */
    val rotation: Float = DefaultRotation,

    /** X coordinate of the pivot point to rotate or scale the group */
    val pivotX: Float = DefaultPivotX,

    /** Y coordinate of the pivot point to rotate or scale the group */
    val pivotY: Float = DefaultPivotY,

    /** Scale factor in the X-axis to apply to the group */
    val scaleX: Float = DefaultScaleX,

    /** Scale factor in the Y-axis to apply to the group */
    val scaleY: Float = DefaultScaleY,

    /** Translation in virtual pixels to apply along the x-axis */
    val translationX: Float = DefaultTranslationX,

    /** Translation in virtual pixels to apply along the y-axis */
    val translationY: Float = DefaultTranslationY,

    /** Path information used to clip the content within the group */
    val clipPathData: List<PathNode> = EmptyPath,

    /** Child Vector nodes that are part of this group, this can contain paths or other groups */
    private val children: List<VectorNode> = emptyList(),
) : VectorNode(), Iterable<VectorNode>

Defines a group of paths or subgroups, plus transformation information. The transformations are defined in the same coordinates as the viewport. The transformations are applied in the order of scale, rotate then translate.

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

Properties

Common
val size: Int

Functions

operator fun get(index: Int): VectorNode