{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-6:0:97", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-2:1:45", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-0:6:6", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-0:1:1", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:5:5-0:6:6", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:8:8-2:0:44", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,1:2:12-1:33:43", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,1:2:12-1:24:34", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,1:2:12-1:18:28", "value": [ { "string": "target-arrowhead", "raw_string": "target-arrowhead" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,1:19:29-1:24:34", "value": [ { "string": "shape", "raw_string": "shape" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,1:26:36-1:33:43", "value": [ { "string": "diamond", "raw_string": "diamond" } ] } } } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:0:46-5:1:96", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:1:47-3:7:53", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:1:47-3:2:48", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:1:47-3:2:48", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:6:52-3:7:53", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:6:52-3:7:53", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "edge_index": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:8:54-3:11:57", "int": 0, "glob": false }, "edge_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:12:58-3:28:74", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:12:58-3:28:74", "value": [ { "string": "source-arrowhead", "raw_string": "source-arrowhead" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:30:76-5:0:95", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,4:2:80-4:16:94", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,4:2:80-4:7:85", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,4:2:80-4:7:85", "value": [ { "string": "shape", "raw_string": "shape" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,4:9:87-4:16:94", "value": [ { "string": "diamond", "raw_string": "diamond" } ] } } } } ] } } } } ] }, "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": [ { "index": 0, "isCurve": false, "src_arrow": false, "srcArrowhead": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "diamond" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "dst_arrow": true, "dstArrowhead": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "diamond" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "references": [ { "map_key_edge_index": 0 }, { "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 } ], "objects": [ { "id": "x", "id_val": "x", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:0:0-0:1:1", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:1:47-3:2:48", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:1:47-3:2:48", "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": { "value": "" } }, "zIndex": 0 }, { "id": "y", "id_val": "y", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,0:5:5-0:6:6", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:6:52-3:7:53", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.d2,3:6:52-3:7:53", "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": { "value": "" } }, "zIndex": 0 } ] }, "err": null }