UNPKG

merchi_product_editor

Version:

A React component for editing product images using Fabric.js

18 lines (17 loc) 818 B
/** * Test function to demonstrate the usage of renderDraftPreviewsWithLayers * * @param psdUrl URL of a PSD file to use for testing * @param renderedLayerImages Array of URLs for rendered layer images * @returns Promise that resolves to the rendered PNG data URL */ export declare function testPsdRenderer(psdUrl: string, renderedLayerImages?: string[]): Promise<string>; /** * Renders a PSD file replacing a specific layer with a rendered image * * @param psdUrl URL of the PSD file to process * @param layerName Name of the layer to replace * @param renderedImageUrl URL of the image to use for replacement * @returns Promise that resolves to the rendered PNG data URL */ export declare function renderPsdWithReplacedLayer(psdUrl: string, layerName: string, renderedImageUrl: string): Promise<string>;