svgcanvas/types/image.d.ts

13 lines
445 B
TypeScript

export default utils;
declare const utils: ImageUtils;
declare class ImageUtils {
/**
* Convert svg dataurl to canvas element
*
* @private
*/
private svg2canvas;
toDataURL(svgNode: any, width: any, height: any, type: any, encoderOptions: any, options: any): string | Promise<string>;
getImageData(svgNode: any, width: any, height: any, sx: any, sy: any, sw: any, sh: any, options: any): Promise<ImageData>;
}