0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-18 13:32:28 -05:00
penpot-exporter-figma-plugin/ui-src/lib/penpot.d.ts

44 lines
1.6 KiB
TypeScript
Raw Normal View History

import { BoolShape } from '@ui/lib/types/bool/boolShape';
import { CircleShape } from '@ui/lib/types/circle/circleShape';
import { FrameShape } from '@ui/lib/types/frame/frameShape';
import { GroupShape } from '@ui/lib/types/group/groupShape';
import { ImageShape } from '@ui/lib/types/image/imageShape';
import { RectShape } from '@ui/lib/types/rect/rectShape';
import { TextShape } from '@ui/lib/types/text/textShape';
export interface PenpotFile {
2024-04-10 10:56:14 +00:00
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2024-04-10 11:25:49 +00:00
addPage(name: string, options?: any): void;
closePage(): void;
addArtboard(artboard: FrameShape): void;
closeArtboard(): void;
2024-04-10 11:14:12 +00:00
addGroup(group: GroupShape): void;
closeGroup(): void;
addBool(bool: BoolShape): void;
closeBool(): void;
2024-04-10 10:54:46 +00:00
createRect(rect: RectShape): void;
2024-04-10 10:49:05 +00:00
createCircle(circle: CircleShape): void;
2024-04-10 15:08:40 +02:00
// createPath(path: any): void;
2024-04-10 12:31:37 +02:00
createText(options: TextShape): void;
2024-04-10 11:08:55 +00:00
createImage(image: ImageShape): void;
2024-04-10 15:08:40 +02:00
// createSVG(svg: any): void;
2024-04-10 16:51:42 +02:00
// closeSVG(): void;
2024-04-10 15:08:40 +02:00
// addLibraryColor(color: any): void;
// updateLibraryColor(color: any): void;
// deleteLibraryColor(color: any): void;
// addLibraryMedia(media: any): void;
// deleteLibraryMedia(media: 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 11:36:37 +00:00
asMap(): unknown;
2024-04-10 15:08:40 +02:00
export(): void;
}
export function createFile(name: string): PenpotFile;