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

45 lines
1.7 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 { PathShape } from '@ui/lib/types/path/pathShape';
import { PenpotPageOptions } from '@ui/lib/types/penpotPage';
import { RectShape } from '@ui/lib/types/rect/rectShape';
import { TextShape } from '@ui/lib/types/text/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 06:08:55 -05:00
createImage(image: ImageShape): 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;
// 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 06:36:37 -05:00
asMap(): unknown;
2024-04-10 08:08:40 -05:00
export(): void;
}
export function createFile(name: string): PenpotFile;