{ "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:6:6", "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:10:10-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:41:41", "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": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "iconStyle": {}, "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": "asdf" }, "labelDimensions": { "width": 0, "height": 0 }, "style": { "opacity": { "value": "0.5" } }, "iconStyle": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ], "objects": [ { "id": "hey y9", "id_val": "hey y9", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:0:0-0:6:6", "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" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "iconStyle": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 }, { "id": "qwer", "id_val": "qwer", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_label_map.d2,0:10:10-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" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "iconStyle": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ] }, "err": null }