UNPKG

image-exporter

Version:

Easily download one or more DOM elements as images

15 lines 534 B
import { Config, ImageOptions } from "../types"; /** * Retrieves the image options for the given element or configuration. * * Data attributes: * - data-label: string * - data-format: "jpg" | "png" | "svg" * - data-scale: number | number[] * - data-quality: number * - data-include-scale-in-label: boolean * * @returns {Promise<ImageOptions>} - The parsed image options. */ export declare function getImageOptions(element: HTMLElement, config: Config): Promise<ImageOptions>; //# sourceMappingURL=get-image-options.d.ts.map