-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfigma.d.ts
More file actions
44 lines (38 loc) · 754 Bytes
/
figma.d.ts
File metadata and controls
44 lines (38 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
interface IconObject {
name: string;
fill: {
rgb: string;
hsl: string;
hex: string;
};
size: {
width: number;
height: number;
};
viewBox: string;
paths: CustomVectorPaths[];
translate: {
x: number;
y: number;
};
}
type CustomVectorPaths = {
data: string;
windingRule: string;
};
type IconsData = {
[name: string]: IconObject;
};
interface CommandMessage {
counter: number;
icons: IconsData | null;
errorIcons: string[];
errorNames: string[];
errorFrames: string[];
}
type CommandType = "init" | "cancel" | "resize" | "generate";
interface PluginMessage {
type: CommandType;
data?: Record<string, any>;
}
type Frame = FrameNode | ComponentNode | InstanceNode | BooleanOperationNode;