d2/testdata/d2oracle/TestCreate/edge_nested.exp.json
2023-06-03 14:05:18 +02:00

266 lines
6.7 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-1:0:19",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:18:18",
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"edges": [
{
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:17:17",
"src": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
],
"objects": [
{
"id": "container",
"id_val": "container",
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "container"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:11:11-0:12:12",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "x"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "y",
"id_val": "y",
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestCreate/edge_nested.d2,0:16:16-0:17:17",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "y"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": "<nil>"
}