Member Junction
    Preparing search index...

    Interface ElementCaptureOptions

    Options for CaptureElementJpeg. A value that is not a positive number, or a quality above 1, falls back to ELEMENT_CAPTURE_DEFAULTS.

    interface ElementCaptureOptions {
        maxNodes?: number;
        maxWidth?: number;
        quality?: number;
        timeoutMs?: number;
    }
    Index

    Properties

    maxNodes?: number

    The most DOM nodes to rasterize. The clone step is synchronous and freezes the UI above this.

    maxWidth?: number

    Output width ceiling in CSS pixels. Wider elements are scaled down.

    quality?: number

    JPEG quality, above 0 and at most 1.

    timeoutMs?: number

    How long to wait for the capture before giving up, in milliseconds.