mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
add shape for uuid
This commit is contained in:
parent
e36a702b9b
commit
645b0360c4
7 changed files with 19 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
|
|
||||||
export type CircleAttributes = {
|
export type CircleAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
};
|
};
|
||||||
|
|
5
src/ui/lib/types/frame/frameAttributes.d.ts
vendored
5
src/ui/lib/types/frame/frameAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
|
|
||||||
export type FrameAttributes = {
|
export type FrameAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
shapes?: any[];
|
shapes?: any[];
|
||||||
|
|
5
src/ui/lib/types/group/groupAttributes.d.ts
vendored
5
src/ui/lib/types/group/groupAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
|
|
||||||
export type GroupAttributes = {
|
export type GroupAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
shapes?: any[];
|
shapes?: any[];
|
||||||
|
|
8
src/ui/lib/types/image/imageAttributes.d.ts
vendored
8
src/ui/lib/types/image/imageAttributes.d.ts
vendored
|
@ -1,6 +1,7 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
|
|
||||||
export type ImageAttributes = {
|
export type ImageAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
// TODO: Investigate where it comes from
|
// TODO: Investigate where it comes from
|
||||||
dataUri?: string;
|
dataUri?: string;
|
||||||
|
@ -8,7 +9,6 @@ export type ImageAttributes = {
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
mtype?: string;
|
mtype?: string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
5
src/ui/lib/types/rect/rectAttributes.d.ts
vendored
5
src/ui/lib/types/rect/rectAttributes.d.ts
vendored
|
@ -1,5 +1,6 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
|
|
||||||
export type RectAttributes = {
|
export type RectAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
};
|
};
|
||||||
|
|
4
src/ui/lib/types/text/textAttributes.d.ts
vendored
4
src/ui/lib/types/text/textAttributes.d.ts
vendored
|
@ -1,8 +1,8 @@
|
||||||
|
import { Uuid } from '../utils/uuid';
|
||||||
import { TextContent } from './textContent';
|
import { TextContent } from './textContent';
|
||||||
|
|
||||||
export type TextAttributes = {
|
export type TextAttributes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
id?: Uuid;
|
||||||
id?: any;
|
|
||||||
type: symbol;
|
type: symbol;
|
||||||
content?: TextContent;
|
content?: TextContent;
|
||||||
};
|
};
|
||||||
|
|
1
src/ui/lib/types/utils/uuid.d.ts
vendored
Normal file
1
src/ui/lib/types/utils/uuid.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export type Uuid = string;
|
Loading…
Reference in a new issue