@samatawy/diagrams
    Preparing search index...

    Interface IGradient

    Represents a gradient fill, with type, angle, centre, and stops. This is how gradients are stored in the diagram model, and is not the industry standard.

    interface IGradient {
        type: GradientType;
        angle: number;
        centerX: number;
        centerY: number;
        stops: GradientStop[];
    }
    Index

    Properties

    Gradient type, one of 'linear', 'radial', or 'conic'.

    angle: number

    Rotation angle in degrees. Used by linear and conic.

    centerX: number

    Horizontal centre, 0–100 %. Used by radial and conic.

    centerY: number

    Vertical centre, 0–100 %. Used by radial and conic.

    stops: GradientStop[]

    Gradient stops, in order of increasing position. Must have at least 2 stops.