Interface ISolidFill

interface ISolidFill {
    color: AdjustedColor;
    fillType: Solid;
    asCSS(darkMode?, bounds?): CSSProperties;
    toJSON(): Partial<{
        color: string | AdjustedColor | Partial<{
            val: string;
            adjustments: any;
            asCSS: any;
            isEqual: any;
            isImmutable: any;
            toHSLA: any;
            toHex: any;
            toJSON: any;
            toRGBA: any;
            toString: any;
        }>;
        fillType: string;
    }>;
}

Hierarchy (view full)

Properties

Methods

Properties

The solid color

fillType: Solid

If null then the fill type will inherit.

Methods

  • Return the fill as a set of css string that are suitable for css.

    Parameters

    • Optional darkMode: boolean
    • Optional bounds: Bounds

    Returns CSSProperties

    Remarks

    Not all fill styles will offer an exact css equivalent. Additionally due to the nature of css having different properties for the same logic value (for example color, backgroundColor)

  • Returns Partial<{
        color: string | AdjustedColor | Partial<{
            val: string;
            adjustments: any;
            asCSS: any;
            isEqual: any;
            isImmutable: any;
            toHSLA: any;
            toHex: any;
            toJSON: any;
            toRGBA: any;
            toString: any;
        }>;
        fillType: string;
    }>