Skip to main content
Solved

Exporting svg elements using Figma API issue-

  • January 31, 2023
  • 2 replies
  • 1022 views

Emir1

When I download the SVG by hands Figma gives me SVG file with path data = d1. However, when I use Figma API, the path data = d2 where d1 !== d2. How I can get the same data path as in svg export from figma directly (d1).

Best answer by Chang_Liu

Hi @Emir1 ,

Is there a figma file you can share with us that demonstrate this issue? Feel free to submit your file via https://help.figma.com/hc/en-us/requests/new

View original
This topic has been closed for replies.

2 replies

Chang_Liu
Figmate
  • Figmate
  • 2 replies
  • Answer
  • February 7, 2023

Hi @Emir1 ,

Is there a figma file you can share with us that demonstrate this issue? Feel free to submit your file via https://help.figma.com/hc/en-us/requests/new


  • 1 reply
  • April 10, 2024

I think what OP was trying to say that when you retrieve the VECTOR from the API (for us it was the getFiles endpoint. But that endpoint retrieves the vector path of the vector path if that makes sense.

But when you export the SVG from Figma directly, instead of retrieving the node from the api, you instead get the correct vector path and which closes itself.

This means if we use the vector path from the API we have to convert the path to a filled path.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings