figma2html icon indicating copy to clipboard operation
figma2html copied to clipboard

Fix: Calculate text position recursively.

Open jonasoesch opened this issue 3 months ago • 1 comments

When text is in a frame or component within the root frame, the positions are calculated relative to the child frame. With this commit, text position is calculated recursively so that it is relative to the root element.

Example Figma file for testing

jonasoesch avatar Oct 29 '25 10:10 jonasoesch

⚠️ No Changeset found

Latest commit: 3d1ba3d83bb4557d618a97d3485c00000b7e48eb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Oct 29 '25 10:10 changeset-bot[bot]