UNPKG

realchart-export

Version:

Wooritech realchart exporting moudle

25 lines (20 loc) 771 B
import { Chart, ExportOptions, ExporterOptions } from 'realchart'; declare class RcChartExporter { private _imageExporter; private _libraryExporter; private _contextmenuButton; private _contextmenu; private _chart; constructor(doc: Document, dom: HTMLElement, chart: Chart); exportToImage(dom: HTMLElement, options: ExportOptions, config: ExporterOptions): void; isContextMenuVisible(): boolean; toggleContextMenu(): void; private render; } declare class Globals { static readonly MODULE_NAME = "$$realchart_export"; static use(chart: any): void; static createExporter(doc: Document, dom: HTMLElement, chart: Chart): RcChartExporter; } declare const RealchartExport: typeof Globals.use; export { RealchartExport };