🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

VectorGroup

Defines a group of paths or subgroups, plus transformation information.

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

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

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

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

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

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

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

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

    /** Path information used to clip the content within the group */
    public 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

size

Source set: Common
public val size: Int

Functions

get

Source set: Common
public operator fun get(index: Int): VectorNode