2024-04-12 09:52:36 -05:00
|
|
|
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';
|
2024-04-08 04:43:30 -05:00
|
|
|
|
|
|
|
export interface PenpotFile {
|
2024-04-10 05:56:14 -05:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2024-04-10 06:25:49 -05:00
|
|
|
addPage(name: string, options?: any): void;
|
|
|
|
closePage(): void;
|
|
|
|
addArtboard(artboard: FrameShape): void;
|
2024-04-08 04:43:30 -05:00
|
|
|
closeArtboard(): void;
|
2024-04-10 06:14:12 -05:00
|
|
|
addGroup(group: GroupShape): void;
|
2024-04-08 04:43:30 -05:00
|
|
|
closeGroup(): void;
|
2024-04-12 09:52:36 -05:00
|
|
|
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;
|
2024-04-10 08:08:40 -05:00
|
|
|
// createPath(path: any): 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;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
asMap(): any;
|
|
|
|
export(): void;
|
2024-04-08 04:43:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export function createFile(name: string): PenpotFile;
|