Hi, i’m trying to use the REST API to fetch nodes and build a custom representation of the nodes in it so that they can be used later in html.
Most basic things seem to work fine, except lists, but one major issue i noticed is that with some simple rotated squares ( 100x100 ), i’m getting the following data from the API:
{
"id": "12:157",
"name": "Rectangle 1",
"type": "RECTANGLE",
"scrollBehavior": "SCROLLS",
"rotation": 0.6848266973437781,
"blendMode": "PASS_THROUGH",
"opacity": 0.5,
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 0.9887507557868958,
"g": 0.031232699751853943,
"b": 0.031232699751853943,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "INSIDE",
"absoluteBoundingBox": {
"x": 183.99999618530273,
"y": 60,
"width": 140.70674777030945,
"height": 140.70674777030945
},
"absoluteRenderBounds": {
"x": 184,
"y": 60,
"width": 140.70675659179688,
"height": 140.7067413330078
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"effects": [],
"interactions": []
}As you can see the dimensions are wrong. The square is 100x100, why is the REST API returning 140? How do i get the correct value? Any help would be appreciated.
