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

425 lines
14 KiB
JSON
Raw Normal View History

{
"graph": {
"name": "",
2023-02-27 22:33:33 +00:00
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-9:0:168",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-8:1:167",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-0:6:6",
"src": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:5:5-0:6:6",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:5:5-0:6:6",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:8:8-8:1:167",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,1:2:12-3:3:91",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,1:2:12-1:18:28",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,1:2:12-1:18:28",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,1:20:30-1:56:66",
"value": [
{
"string": "Reisner's Rule of Conceptual Inertia",
"raw_string": "Reisner's Rule of Conceptual Inertia"
}
]
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,1:57:67-3:3:91",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,2:4:73-2:18:87",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,2:4:73-2:9:78",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,2:4:73-2:9:78",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,2:11:80-2:18:87",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,4:2:94-4:24:116",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,4:2:94-4:18:110",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,4:2:94-4:18:110",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,4:20:112-4:24:116",
"value": [
{
"string": "QOTD",
"raw_string": "QOTD"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,5:2:119-7:3:165",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,5:2:119-5:18:135",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,5:2:119-5:18:135",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,5:20:137-7:3:165",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,6:4:143-6:22:161",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,6:4:143-6:16:155",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,6:4:143-6:9:148",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,6:10:149-6:16:155",
"value": [
{
"string": "filled",
"raw_string": "filled"
}
]
}
}
]
},
"primary": {},
"value": {
"boolean": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,6:18:157-6:22:161",
"value": true
}
}
}
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"srcArrowhead": {
"label": {
"value": "Reisner's Rule of Conceptual Inertia"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "diamond"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-29 05:01:42 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
},
"dst_arrow": true,
"dstArrowhead": {
"label": {
"value": "QOTD"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {
"filled": {
"value": "true"
}
},
"near_key": null,
"shape": {
"value": ""
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-29 05:01:42 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
},
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-29 05:01:42 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
}
],
"objects": [
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:0:0-0:1:1",
"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"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
},
{
"id": "y",
"id_val": "y",
"references": [
{
"key": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:5:5-0:6:6",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_arrowhead_fields.d2,0:5:5-0:6:6",
"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"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
}
]
},
"err": null
}