mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
dddc457281
* wip * wip * fix something? * wip * wip * wip * fixes * fixes * stroke image * wip * fixes * fixes * remove old code * fix translate fills * remove penpot public uri * remove old code * fix return undefineds * updated packages * finish refactor --------- Co-authored-by: Jordi Sala Morales <jordism91@gmail.com>
40 lines
1.5 KiB
TypeScript
40 lines
1.5 KiB
TypeScript
import { PenpotPageOptions } from '@ui/lib/types/penpotPage';
|
|
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;
|
|
closePage(): void;
|
|
addArtboard(artboard: FrameShape): void;
|
|
closeArtboard(): void;
|
|
addGroup(group: GroupShape): void;
|
|
closeGroup(): void;
|
|
addBool(bool: BoolShape): void;
|
|
closeBool(): void;
|
|
createRect(rect: RectShape): void;
|
|
createCircle(circle: CircleShape): void;
|
|
createPath(path: PathShape): void;
|
|
createText(options: TextShape): void;
|
|
// createSVG(svg: any): void;
|
|
// closeSVG(): void;
|
|
// 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;
|
|
asMap(): unknown;
|
|
export(): void;
|
|
}
|
|
|
|
export function createFile(name: string): PenpotFile;
|