d2/testdata/d2compiler/TestCompile/edge_label_map.exp.json
2023-02-27 14:39:09 -08:00

275 lines
7.6 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-1:0:42",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:41:41",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:14:14",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:7:7",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:6:6",
"value": [
{
"string": "hey y9",
"raw_string": "hey y9"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:9:9-0:14:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:10:10-0:14:14",
"value": [
{
"string": "qwer",
"raw_string": "qwer"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:16:16-0:20:20",
"value": [
{
"string": "asdf",
"raw_string": "asdf"
}
]
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:21:21-0:40:40",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:22:22-0:40:40",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:22:22-0:35:35",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:22:22-0:27:27",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:28:28-0:35:35",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:37:37-0:40:40",
"raw": "0.5",
"value": "1/2"
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"label_dimensions": {
"width": 0,
"height": 0
},
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"minWidth": 0,
"minHeight": 0,
"label_dimensions": {
"width": 0,
"height": 0
},
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "asdf"
},
"style": {
"opacity": {
"value": "0.5"
}
},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
}
],
"objects": [
{
"id": "hey y9",
"id_val": "hey y9",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:7:7",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:6:6",
"value": [
{
"string": "hey y9",
"raw_string": "hey y9"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "hey y9"
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
},
{
"id": "qwer",
"id_val": "qwer",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:9:9-0:14:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:10:10-0:14:14",
"value": [
{
"string": "qwer",
"raw_string": "qwer"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "qwer"
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
}
]
},
"err": null
}