plotomics
    Preparing search index...

    Interface CompositeOptions

    What compositePNG draws.

    interface CompositeOptions {
        background: string;
        element?: Element;
        height: number;
        layers: PNGLayer[];
        overlay: SVGSVGElement | null;
        padding?: PlotPadding;
        scale?: number;
        underlay?: SVGSVGElement | null;
        width: number;
    }
    Index
    background: string

    Fill under every layer: the theme background. A background that paints nothing, such as "none" or "transparent", leaves the image clear there.

    element?: Element

    The plot's element. A background given as var() or currentColor takes the colour it has there, as on screen.

    height: number

    Widget height in CSS px.

    layers: PNGLayer[]

    Canvases, bottom first.

    overlay: SVGSVGElement | null

    The SVG over the canvases: axes, labels, legends.

    padding?: PlotPadding

    Space around the widget in CSS px, filled with the background. The image grows by it, and the layers and SVGs move in by the left and top padding. None by default.

    scale?: number

    Multiplier on top of the device pixel ratio. Default 1.

    underlay?: SVGSVGElement | null

    An SVG under the canvases, such as gridlines that sit under the marks. The canvases over it need a transparent background to show it.

    width: number

    Widget width in CSS px.