/** * Model: GradientPaint * * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT. * */ import { BlendMode } from '../blend-mode'; import { ColorStop } from '../color-stop'; import { Vector } from '../vector'; export interface GradientPaint { /** Is the paint enabled? */ visible?: boolean; /** Overall opacity of paint (colors within the paint can also have opacity values which would blend with this) */ opacity?: number; /** @see BlendMode */ blendMode: BlendMode; /** The string literal representing the paint's type. Always check the `type` before reading other properties. */ type: TypeEnum; /** This field contains three vectors, each of which are a position in normalized object space (normalized object space is if the top left corner of the bounding box of the object is (0, 0) and the bottom right is (1,1)). The first position corresponds to the start of the gradient (value 0 for the purposes of calculating gradient stops), the second position is the end of the gradient (value 1), and the third handle position determines the width of the gradient. */ gradientHandlePositions: Vector[]; /** Positions of key points along the gradient axis with the colors anchored there. Colors along the gradient are interpolated smoothly between neighboring gradient stops. */ gradientStops: ColorStop[]; } export type TypeEnum = 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' | 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND'; //# sourceMappingURL=gradient-paint.d.ts.map