@merchi/product-form 1.19.77 → 1.19.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,20 +3,18 @@ export declare function templateImageSources(template: any, apiUrl?: string): st
3
3
  export declare function templateDownloadHref(template: any, apiUrl?: string): string;
4
4
  export declare function loadHtmlImage(src: string, persistObjectUrl?: boolean): Promise<HTMLImageElement>;
5
5
  export declare function loadHtmlImageFromSources(sources: string[], persistObjectUrl?: boolean): Promise<HTMLImageElement>;
6
- export declare function waitForDraftFonts(families?: string[]): Promise<void>;
7
- export declare function wrapLines(text: string, maxWidth: number, measure: (value: string) => number): string[];
8
- export declare function applyKonvaObjectTransform(ctx: Pick<CanvasRenderingContext2D, 'translate' | 'rotate' | 'scale'>, obj: Pick<DraftCanvasObject, 'x' | 'y' | 'rotation' | 'scaleX' | 'scaleY'>): void;
9
- export declare function captureStageArtboard(stage: {
10
- toDataURL: (config: Record<string, unknown>) => string;
11
- }, view: {
12
- x: number;
13
- y: number;
14
- scale: number;
15
- }, art: {
16
- width: number;
17
- height: number;
18
- }): string;
19
- export declare function exportDraftPngs(state: DraftCanvasState, templateSrc?: string | string[] | null, apiUrl?: string): Promise<{
6
+ export declare function draftTextStyle(obj: DraftCanvasObject): {
7
+ text: string;
8
+ fontSize: number;
9
+ fill: string;
10
+ fontFamily: string;
11
+ align: string;
12
+ verticalAlign: string;
13
+ lineHeight: number;
14
+ wrap: string;
15
+ };
16
+ export declare function backgroundComposite(obj: DraftCanvasObject, artWidth: number, artHeight: number): GlobalCompositeOperation;
17
+ export declare function exportDraftPngs(state: DraftCanvasState, templateSources: string[], fixedSizeFieldIds: number[]): Promise<{
20
18
  draft: string;
21
19
  canvasPreview: string;
22
20
  }>;