Seems ‘rotate’ is not being exported in the JSON export from the RestApi?
It appears on export the ‘Last Name’ fields should be the same size as the other rectangles, just rotated 33 degrees… Instead it seem the css properties for it are the outer bounding box as if the control wasn’t rotated.
The json snippet for the lastNameField has no ‘rotate’, might expect it in the definition for ‘effect’? Just guessing, not really familiar with where it would be… Also in the json the height property is wrong? Should be
"height":24.0 (as you see in the screen shot.)
Actual:
“height”:120.34167480468750
The actual json i’m seeing after the export…
{
"id":"125:27",
"name":"lastNameField",
"type":"RECTANGLE",
"blendMode":"PASS_THROUGH",
"absoluteBoundingBox":
{
"x":464.594238281250,
"y":188.33920288085938,
"width":167.38670349121094,
**"height":120.34167480468750**
},
"constraints":
{
"vertical":"TOP",
"horizontal":"LEFT"
},
"fills":
[
{
"blendMode":"NORMAL",
"type":"SOLID",
"color":
{
"r":0.99583333730697632,
"g":0.99583333730697632,
"b":0.99583333730697632,
"a":1.0
}
}
],
"strokes":
[
{
"blendMode":"NORMAL",
"type":"SOLID",
"color":
{
"r":0.0,
"g":0.0,
"b":0.0,
"a":1.0
}
}
],
"strokeWeight":1.0,
"strokeAlign":"INSIDE",
"effects":
[
],
"cornerRadius":7.0,
"rectangleCornerRadii":
[
7.0,7.0,7.0,7.0
]
},