{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-7:0:69", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:6:6", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:6:6", "src": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": {} } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,2:0:8-6:1:68", "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,2:0:8-2:9:17", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,2:0:8-2:9:17", "value": [ { "string": "scenarios", "raw_string": "scenarios" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,2:11:19-6:1:68", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,3:2:23-5:3:66", "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,3:2:23-3:3:24", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,3:2:23-3:3:24", "value": [ { "string": "1", "raw_string": "1" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,3:5:26-5:3:66", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:4:32-4:34:62", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:5:33-4:11:39", "src": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:5:33-4:6:34", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:5:33-4:6:34", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:10:38-4:11:39", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:10:38-4:11:39", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "dst_arrow": ">" } ], "edge_index": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:12:40-4:15:43", "int": 0, "glob": false }, "edge_key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:16:44-4:29:57", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:16:44-4:21:49", "value": [ { "string": "style", "raw_string": "style" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:22:50-4:29:57", "value": [ { "string": "opacity", "raw_string": "opacity" } ] } } ] }, "primary": {}, "value": { "number": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:31:59-4:34:62", "raw": "0.1", "value": "1/10" } } } } ] } } } } ] } } } } ] }, "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": "a", "id_val": "a", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "a" }, "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/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "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 } ], "scenarios": [ { "name": "1", "isFolderOnly": false, "ast": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "a" } ] } } ] }, "primary": {}, "value": {} } }, { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "x" } ] } } ] }, "primary": {}, "value": {} } }, { "map_key": { "range": ",0:0:0-0:0:0", "edges": [ { "range": ",0:0:0-0:0:0", "src": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "a" } ] } } ] }, "src_arrow": "", "dst": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "x" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": { "map": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "style" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "opacity" } ] } } ] }, "primary": { "number": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:31:59-4:34:62", "raw": "0.1", "value": "1/10" } }, "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 }, { "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": { "opacity": { "value": "0.1" } }, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ], "objects": [ { "id": "a", "id_val": "a", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:0:0-0:1:1", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:5:33-4:6:34", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:5:33-4:6:34", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "a" }, "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/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,0:5:5-0:6:6", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:10:38-4:11:39", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/boards/scenarios_edge_index.d2,4:10:38-4:11:39", "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 } ] } ] }, "err": null }