@toplast/generator
Version:
Collage generator for Toplast
20 lines (19 loc) • 549 B
TypeScript
import { Base } from "../base";
export interface Item {
description?: string;
image: string;
title: string;
}
export declare class Grid extends Base {
private static readonly COVER_SIZE;
private readonly SIZE;
private readonly items;
private readonly displayCaptions;
constructor(items: Item[], displayCaptions?: boolean);
protected generateCanvas(): Promise<void>;
private generateDisplayCaptions;
private addGradient;
private addTitle;
private addDescription;
private generateCoverImages;
}