2024-04-22 03:52:25 -05:00
|
|
|
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';
|
2024-04-08 04:43:30 -05:00
|
|
|
|
|
|
|
export interface PenpotFile {
|
2024-04-22 03:52:25 -05:00
|
|
|
addPage(name: string, options?: PenpotPageOptions): void;
|
2024-04-10 06:25:49 -05:00
|
|
|
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-16 09:08:39 -05:00
|
|
|
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;
|
2024-04-08 04:43:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export function createFile(name: string): PenpotFile;
|