mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-03 05:10:13 -05:00
added commented funcions
This commit is contained in:
parent
645b0360c4
commit
2529abd371
1 changed files with 22 additions and 3 deletions
25
src/ui/lib/penpot.d.ts
vendored
25
src/ui/lib/penpot.d.ts
vendored
|
@ -6,9 +6,6 @@ import { RectShape } from './types/rect/rectShape';
|
||||||
import { TextShape } from './types/text/textShape';
|
import { TextShape } from './types/text/textShape';
|
||||||
|
|
||||||
export interface PenpotFile {
|
export interface PenpotFile {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
asMap(): any;
|
|
||||||
export(): void;
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
addPage(name: string, options?: any): void;
|
addPage(name: string, options?: any): void;
|
||||||
closePage(): void;
|
closePage(): void;
|
||||||
|
@ -16,10 +13,32 @@ export interface PenpotFile {
|
||||||
closeArtboard(): void;
|
closeArtboard(): void;
|
||||||
addGroup(group: GroupShape): void;
|
addGroup(group: GroupShape): void;
|
||||||
closeGroup(): void;
|
closeGroup(): void;
|
||||||
|
// addBool(bool: any): void;
|
||||||
|
// closeBool(): void;
|
||||||
createRect(rect: RectShape): void;
|
createRect(rect: RectShape): void;
|
||||||
createCircle(circle: CircleShape): void;
|
createCircle(circle: CircleShape): void;
|
||||||
|
// createPath(path: any): void;
|
||||||
createText(options: TextShape): void;
|
createText(options: TextShape): void;
|
||||||
createImage(image: ImageShape): void;
|
createImage(image: ImageShape): void;
|
||||||
|
// createSVG(svg: any): void;
|
||||||
|
// closeeSVG(): void;
|
||||||
|
// addLibraryColor(color: any): void;
|
||||||
|
// updateLibraryColor(color: any): void;
|
||||||
|
// deleteLibraryColor(color: any): void;
|
||||||
|
// addLibraryColor(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createFile(name: string): PenpotFile;
|
export function createFile(name: string): PenpotFile;
|
||||||
|
|
Loading…
Reference in a new issue