@jsfkit/types
    Preparing search index...

    Type Alias GradientPathFill

    Path gradient fill (radial/shape gradient).

    Defines a gradient fill that radiates from a center point or follows the shape's contour, creating circular, rectangular, or shape-based gradients.

    type GradientPathFill = {
        colorStops: GradientColorStop[];
        fillToRect?: RelativeRect;
        flip?: FlipAxis;
        path: PathFillType;
        rotWithShape?: boolean;
        type: "pathGradient";
    }
    Index

    Properties

    colorStops: GradientColorStop[]

    Array of color stops defining the gradient color transitions.

    fillToRect?: RelativeRect

    Rectangle defining the gradient's focus area (relative coordinates).

    flip?: FlipAxis

    Direction(s) in which to flip the gradient pattern.

    Path type determining the gradient shape (circle, rectangle, or shape contour).

    rotWithShape?: boolean

    Whether the gradient should rotate when the shape is rotated.

    type: "pathGradient"

    Type discriminator for path gradient fills.