jemgold / figma-js

Little wrapper (+ types) for the Figma API
https://jongold.github.io/figma-js/
MIT License
490 stars 47 forks source link

Add absoluteRenderBounds #64

Open dastanaron opened 1 year ago

dastanaron commented 1 year ago

There is absoluteRenderBounds in the Figma answer API for elements extends FrameBase and VectorBase

{
  "id": "52:309",
  "name": "listText",
  "type": "TEXT",
  "scrollBehavior": "SCROLLS",
  "blendMode": "PASS_THROUGH",
  "absoluteBoundingBox": {
    "x": -104.83568572998047,
    "y": 330.29559326171875,
    "width": 158.5352325439453,
    "height": 18.87322998046875
  },
  "absoluteRenderBounds": {
    "x": -104.0505599975586,
    "y": 332.3878479003906,
    "width": 121.72467803955078,
    "height": 14.819244384765625
  },
  "constraints": {
    "vertical": "TOP",
    "horizontal": "LEFT"
  },
  "layoutVersion": 3,
  "/* --- */"
}
dastanaron commented 1 year ago

Sorry I found this PR https://github.com/jemgold/figma-js/pull/62. Merge please it is right