0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/ui-src/lib/penpot.d.ts

41 lines
1.5 KiB
TypeScript
Raw Normal View History

import { PenpotPageOptions } from '@ui/lib/types/penpotPage';
2024-05-06 01:06:14 -05:00
import { BoolShape } from '@ui/lib/types/shapes/boolShape';
import { CircleShape } from '@ui/lib/types/shapes/circleShape';
import { FrameShape } from '@ui/lib/types/shapes/frameShape';
import { GroupShape } from '@ui/lib/types/shapes/groupShape';
import { PathShape } from '@ui/lib/types/shapes/pathShape';
import { RectShape } from '@ui/lib/types/shapes/rectShape';
import { TextShape } from '@ui/lib/types/shapes/textShape';
export interface PenpotFile {
addPage(name: string, options?: PenpotPageOptions): void;
2024-04-10 06:25:49 -05:00
closePage(): void;
addArtboard(artboard: FrameShape): void;
closeArtboard(): void;
2024-04-10 06:14:12 -05:00
addGroup(group: GroupShape): void;
closeGroup(): void;
addBool(bool: BoolShape): void;
closeBool(): void;
2024-04-10 05:54:46 -05:00
createRect(rect: RectShape): void;
2024-04-10 05:49:05 -05:00
createCircle(circle: CircleShape): void;
createPath(path: PathShape): void;
2024-04-10 05:31:37 -05:00
createText(options: TextShape): void;
2024-04-10 08:08:40 -05:00
// createSVG(svg: any): void;
2024-04-10 09:51:42 -05:00
// closeSVG(): void;
2024-04-10 08:08:40 -05:00
// addLibraryColor(color: any): void;
// updateLibraryColor(color: any): void;
// deleteLibraryColor(color: any): void;
// addLibraryTypography(typography: any): void;
// deleteLibraryTypography(typography: any): void;
// startComponent(component: any): void;
// finishComponent(): void;
// createComponentInstance(instance: any): void;
// lookupShape(shapeId: string): void;
// updateObject(id: string, object: any): void;
// deleteObject(id: string): void;
2024-04-15 06:36:37 -05:00
asMap(): unknown;
2024-04-10 08:08:40 -05:00
export(): void;
}
export function createFile(name: string): PenpotFile;