d2/testdata/d2compiler/TestCompile/table_style_map.exp.json

312 lines
11 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-8:0:113",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-7:1:112",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
"value": [
{
"string": "IUserProperties",
"raw_string": "IUserProperties"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:17:17-7:0:111",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:18:37",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:7:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:7:26",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:9:28-1:18:37",
"value": [
{
"string": "sql_table",
"raw_string": "sql_table"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:19:57",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:11:49",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:11:49",
"value": [
{
"string": "GetType()",
"raw_string": "GetType()"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:13:51-2:19:57",
"value": [
{
"string": "string",
"raw_string": "string"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-6:3:110",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-3:7:65",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-3:7:65",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:9:67-6:2:109",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:16:85",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:11:80",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:11:80",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:13:82-4:16:85",
"raw": "0.4",
"value": "2/5"
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:20:106",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:14:100",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:14:100",
"value": [
{
"string": "font-color",
"raw_string": "font-color"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:16:102-5:20:106",
"value": [
{
"string": "blue",
"raw_string": "blue"
}
]
}
}
}
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
},
"edges": null,
"objects": [
{
"id": "IUserProperties",
"id_val": "IUserProperties",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
"value": [
{
"string": "IUserProperties",
"raw_string": "IUserProperties"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"sql_table": {
"columns": [
{
"name": {
"label": "GetType()",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"type": {
"label": "string",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0
},
"constraint": "",
"reference": ""
}
]
},
"attributes": {
"label": {
"value": "IUserProperties"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {
"opacity": {
"value": "0.4"
},
"fontColor": {
"value": "blue"
}
},
"near_key": null,
"shape": {
"value": "sql_table"
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
}
]
},
"err": null
}