File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const allPropertyNames = [
112
112
"effects" ,
113
113
"type" ,
114
114
"layoutGrids" ,
115
- "absoluteRenderBounds"
115
+ "absoluteRenderBounds" ,
116
116
] ;
117
117
118
118
// The Figma nodes are hard to inspect at a glance because almost all properties are non enumerable
@@ -135,13 +135,6 @@ const cloneObject = (obj: any, valuesSet = new Set()) => {
135
135
} ;
136
136
137
137
async function postSelection ( ) {
138
- console . log (
139
- JSON . stringify (
140
- figma . currentPage . selection . map ( ( obj ) => cloneObject ( obj ) ) ,
141
- null ,
142
- 2
143
- )
144
- ) ;
145
138
figma . ui . postMessage ( {
146
139
type : "selectionChange" ,
147
140
elements : fastClone (
@@ -271,10 +264,12 @@ async function serialize(
271
264
} ,
272
265
] ;
273
266
}
267
+ const cssProps = await element . getCSSAsync ( ) ;
274
268
275
269
// TODO: better way to enumerate everything, including getters, that is not function
276
270
return {
277
271
...cloneObject ( element ) ,
272
+ cssProps,
278
273
fills,
279
274
type : element . type === "VECTOR" ? "RECTANGLE" : element . type ,
280
275
data : JSON . parse ( element . getSharedPluginData ( "builder" , "data" ) || "{}" ) ,
You can’t perform that action at this time.
0 commit comments