Skip to main content
Question

Exporting vectors using the API

  • December 18, 2024
  • 0 replies
  • 50 views

brunogabado

Hi guys, I am working on a desktop app that is supposed to convert Figma designs into code directly. The problem I am with is about the SVG’s and how Figma works with them. When I use the API: “https://api.figma.com/v1/images/${fileKey}?ids=${svgIds}&format=svg” , Figma treats each path inside an SVG as an independent SVG with a path inside. This always starts when you copy an SVG into Figma, and it is represented as some vectors. This will make Figma export them as different vectors when it was supposed to be all part of one SVG.

first image shows the svg.


second image shows how Figma interprets the svg when i past it on the design

0 replies

Be the first to reply!

Reply


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