UNPKG

@syncfusion/ej2-treemap

Version:
35 lines (34 loc) 1.12 kB
import { TreeMap } from '../../index'; import { ExportType } from '../utils/enum'; /** * ImageExport module handles the export to image functionality for treemap. * * @hidden */ export declare class ImageExport { /** * Constructor for Maps * * @param {TreeMap} control - Specifies the treemap instance */ constructor(control: TreeMap); /** * This method is used to perform the export functionality for the rendered treemap. * * @param {TreeMap} treeMap - Specifies the treemap instance. * @param {ExportType} type - Specifies the type of the image file. * @param {string} fileName - Specifies the file name of the image file. * @param {boolean} allowDownload - Specifies whether to download the file or not. * @returns {Promise} - Returns the promise string. * @private */ export(treeMap: TreeMap, type: ExportType, fileName: string, allowDownload?: boolean): Promise<string>; protected getModuleName(): string; /** * To destroy the ImageExport. * * @returns {void} * @private */ destroy(): void; }