jysBlack2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
541 B

export interface GradientObject {
id?: number;
type: string;
colorStops: GradientColorStop[];
global: boolean;
}
export interface InnerGradientObject extends GradientObject {
__canvasGradient: CanvasGradient;
}
export interface GradientColorStop {
offset: number;
color: string;
}
export default class Gradient {
id?: number;
type: string;
colorStops: GradientColorStop[];
global: boolean;
constructor(colorStops: GradientColorStop[]);
addColorStop(offset: number, color: string): void;
}