Skip to content
Spreadsheet Editor

GradientPathFill

type GradientPathFill = {
colorStops: GradientColorStop[];
fillToRect?: RelativeRect;
flip?: FlipAxis;
path: PathFillType;
rotWithShape?: boolean;
type: "pathGradient";
};
Property Type Description
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 PathFillType 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.