使用 Figma API 时,我可以获得描述节点层次结构的复杂 json 结构,但该结构中似乎没有任何东西可以帮助我识别设计者在类型细节方面的意图。
{
"id": "3133:83529",
"name": "FABs should clearly illustrate meaningful actions and be relevant to the screen. When a FAB reappears on a new screen, it should occupy the same position as before.",
"type": "TEXT",
"blendMode": "PASS_THROUGH",
"absoluteBoundingBox": {
"x": -5400,
"y": 30959,
"width": 328,
"height": 120
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"layoutAlign": "STRETCH",
"layoutGrow": 0,
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 0.18431372940540314,
"g": 0.1764705926179886,
"b": 0.27450981736183167,
"a": 1
}
}
],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"styles": {
"fill": "30:73",
"text": "32:320"
},
"effects": [],
"characters": "This is bulleted text\nThis is a second bullet",
"style": {
"fontFamily": "AmplitudeWide-Light",
"fontPostScriptName": "AmplitudeWide-Light",
"fontWeight": 400,
"paragraphSpacing": 12,
"textAutoResize": "HEIGHT",
"fontSize": 16,
"textAlignHorizontal": "LEFT",
"textAlignVertical": "TOP",
"letterSpacing": 0,
"lineHeightPx": 24,
"lineHeightPercent": 128,
"lineHeightPercentFontSize": 150,
"lineHeightUnit": "PIXELS"
},
"characterStyleOverrides": [],
"styleOverrideTable": {}
}
和样式不包含任何相关信息text
。fill
导出中是否缺少类型详细信息,或者是否有其他获取方式?