Skip to main content
Question

Figma 116.7.6 bug , node.clone().exportAsync() lose rotation

  • March 20, 2023
  • 1 reply
  • 236 views

I used the node.clone().exportAsync() method, a version 116.6.6, exportAsync can export normal icons with rotation. An icon exported with exportAsync in 116.7.6, the rendering is lost.

export async function exportData(node: SceneNode, format: 'PNG' | 'SVG') {
  const option: ExportSettings = {
    format,
  }
  const cloneNode = node.clone();
  const result = await cloneNode.exportAsync(option);
  setTimeout(() => {
    cloneNode.remove();
  })
  return result
}

In version 116.6.6, images with rotated styles can be exported normally。

However, in the 116.7.6 version, the rotation attribute was lost, which caused the image to be exported incorrectly with the api.

with 116.7.6

This topic has been closed for comments

1 reply

  • 0 replies
  • April 19, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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