merchi_product_editor
Version:
A React component for editing product images using Fabric.js
13 lines (12 loc) • 527 B
TypeScript
import { MappedPreview } from '../types';
/**
* Process mapped previews, replacing layers in PSD files with rendered layers
* and converting the results to PNG images
*
* @param mappedPreviews Array of mapped previews with draftPreview and draftPreviewLayers
* @returns Promise that resolves to an array of processed previews with PNG data URLs
*/
export declare function renderDraftPreviewsWithLayers(mappedPreviews: MappedPreview[]): Promise<Array<{
draftPreviewId: number | undefined;
pngDataUrl: string;
}>>;