Interface IFill

interface IFill {
    fillType: FillType;
    asCSS(darkMode?, bounds?): CSSProperties;
    toJSON(): Partial<{
        fillType: string;
    }>;
}

Hierarchy (view full)

Properties

Methods

Properties

fillType: FillType

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<{
        fillType: string;
    }>