@image-tracer-ts/browser
Version:
Platform-specific bindings for image-tracer-ts. Turn images into SVG files in browsers.
10 lines • 903 B
TypeScript
import { ImageTracer } from "@image-tracer-ts/core";
import { Options } from "@image-tracer-ts/core";
import { ImageDrawer } from "@image-tracer-ts/core";
export declare class ImageTracerBrowser extends ImageTracer {
static fromUrl<OutputType = string>(url: string, options: Partial<Options>, drawer?: ImageDrawer<OutputType> | null): Promise<string | OutputType>;
static fromBuffer<OutputType = string>(buffer: ArrayBuffer, options: Partial<Options>, drawer?: ImageDrawer<OutputType> | null): Promise<string | OutputType>;
static fromFile<OutputType = string>(file: File, options: Partial<Options>, drawer?: ImageDrawer<OutputType> | null): Promise<string | OutputType>;
static fromImageData<OutputType = string>(imageData: ImageData, options: Partial<Options>, drawer?: ImageDrawer<OutputType> | null): Promise<string | OutputType>;
}
//# sourceMappingURL=image-tracer-browser.d.ts.map