Hi everyone,
I am trying to re-use some parts of a component designed in Figma. I do this with the REST api.
I generally find what I am looking for just by looking at the response, but for the “dash” setting for a stroke, I am out of luck.
It seems to be “dashPattern” before, but I cannot find it in the current response (cf a part of the response below).
Do you know where I can find this information?
Cheers,
Adrien
"document": {
"id": "94:18",
"name": "Label",
"type": "TEXT",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"absoluteBoundingBox": {
"x": -627,
"y": 33,
"width": 66,
"height": 17
},
"absoluteRenderBounds": {
"x": -626.3544921875,
"y": 35.91015625,
"width": 63.7265625,
"height": 10.2265625
},
"constraints": {
"vertical": "SCALE",
"horizontal": "SCALE"
},
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 0.27843138575553894,
"g": 0.5764706134796143,
"b": 0.6392157077789307,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"styles": {
"fill": "88:4",
"text": "94:4"
},
"effects": [],
"characters": "testabc",
"style": {
"fontFamily": "Roboto",
"fontPostScriptName": "Roboto-Medium",
"fontWeight": 500,
"textCase": "UPPER",
"textAutoResize": "WIDTH_AND_HEIGHT",
"fontSize": 14,
"textAlignHorizontal": "CENTER",
"textAlignVertical": "CENTER",
"letterSpacing": 0.75,
"lineHeightPx": 16.40625,
"lineHeightPercent": 100,
"lineHeightUnit": "INTRINSIC_%"
},
"layoutVersion": 0,
"characterStyleOverrides": [],
"styleOverrideTable": {},
"lineTypes": [
"NONE"
],
"lineIndentations": [
0
]
},
"components": {},
"componentSets": {},
"schemaVersion": 0,
"styles": {
"88:4": {
"key": "db6ff595584355a6a8565602019f6b468f57c42e",
"name": "Primary/Primary",
"styleType": "FILL",
"remote": true,
"description": ""
},
"94:4": {
"key": "1c628e268d85489a948ca5579fdc9fbb0a1b759b",
"name": "14 sp • BUTTON",
"styleType": "TEXT",
"remote": true,
"description": ""
}
}