Skip to main content

Hello!

I am making plugin to export content from file.
I use 

await node.exportAsync({ format: 'SVG_STRING' })

to export, for example, RECTANGLE node as svg.
I also need to get information about size and position of this image.
I tried to use node.width, node.height, node.x, node.y, but it doesnt work correct. The reason is figma doesnt export node as is, it optimize svg and do not return the part of node, that is over frame edge.
How can i get coords and dimensions of exported svg to be able to draw it in another system?

Thanks!

Be the first to reply!