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:
parent
5a219e99d8
commit
9ce45a2583
1 changed files with 7 additions and 2 deletions
9
libs/plugin-types/index.d.ts
vendored
9
libs/plugin-types/index.d.ts
vendored
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue