UNPKG

d3-svg-to-png

Version:

Converts SVG elements to PNG and other image formats while keeping CSS styles

15 lines (13 loc) 335 B
declare module 'd3-svg-to-png' { type Options = { format: string scale: number quality: number download: boolean ignore: string cssinline: number background: string } function d3ToPng(source: string | Element, fileName: string, options?: Partial<Options>): Promise<string> export default d3ToPng }