SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/lib/datauri/index.d.ts
2026-05-15 10:22:44 +08:00

16 lines
657 B
TypeScript

export declare namespace DataUri {
function isDataUrl(url: string): boolean;
/**
* Converts an image at `url` to base64-encoded data uri.
* The mime type of the image is inferred from the `url` file extension.
*/
function imageToDataUri(url: string, callback: (err: Error | null, dataUri?: string) => any): void;
function dataUriToBlob(dataUrl: string): Blob;
function downloadBlob(blob: Blob, fileName: string): void;
function downloadDataUri(dataUrl: string, fileName: string): void;
function svgToDataUrl(svg: string, options?: {
width?: number | null;
height?: number | null;
}): string;
}