UNPKG

merchi_product_editor

Version:

A React component for editing product images using Fabric.js

13 lines (12 loc) 560 B
import { fabric } from 'fabric'; import { DraftTemplate } from '../types'; /** * Loads a template image onto a canvas with enhanced error handling and fallbacks * * @param fabricCanvas The Fabric.js canvas instance * @param template The template containing image information * @param width The canvas width * @param height The canvas height * @returns Promise that resolves when the image is loaded */ export declare const loadRegularImagePromise: (fabricCanvas: fabric.Canvas, template: DraftTemplate, width: number, height: number) => Promise<void>;