The image interface, used for keeping useful data for drawing

interface IImage {
    color?: IHsl;
    element?: HTMLImageElement;
    error: boolean;
    gif: boolean;
    gifData?: GIF;
    gifLoopCount?: number;
    loading: boolean;
    name: string;
    ratio?: number;
    replaceColor?: boolean;
    source: string;
    svgData?: string;
    type: string;
}

Properties

color?: IHsl
element?: HTMLImageElement
error: boolean
gif: boolean
gifData?: GIF
gifLoopCount?: number
loading: boolean
name: string
ratio?: number
replaceColor?: boolean
source: string
svgData?: string
type: string