0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

feat(plugins-types): expose new attributes

This commit is contained in:
alonso.torres 2024-07-03 15:24:50 +02:00 committed by Alonso Torres
parent 5a219e99d8
commit 9ce45a2583

View file

@ -537,11 +537,11 @@ export interface PenpotExport {
/**
* For bitmap formats represent the scale of the original size to resize the export
*/
scale: number;
scale?: number;
/**
* Suffix that will be appended to the resulting exported file
*/
suffix: string;
suffix?: string;
}
/**
@ -1293,6 +1293,11 @@ export interface PenpotShapeBase extends PenpotPluginData {
*/
rotate(angle: number, center?: { x: number; y: number } | null): void;
/**
* Generates an export from the current shape.
*/
export(config: PenpotExport): Promise<Uint8Array>;
/**
* Creates a clone of the shape.
* Returns a new instance of the shape with identical properties.