- Boards with subboards are now selfcontained folders with index.svg/png as the root board render. - Boards that are only containers of other boards are not rendered. For example a scenario with no modifications and only steps only has its steps rendered. - Boards with sibling boards of another type are rendered under a subdirectory indicating their type to separate them. For example a board with layers and scenarios has its layers rendered into subfolder layers and scenarios into subfolder scenarios. cc @berniexie see BoardContainer field on d2target.Board for the field you were looking for to skip renders for PDFs too.
387 lines
12 KiB
JSON
Generated
387 lines
12 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"boardContainer": false,
|
|
"ast": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,0:0:0-5:0:172",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:77:78",
|
|
"edges": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:6:7",
|
|
"src": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:2:3",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:1:2",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"src_arrow": "",
|
|
"dst": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:4:5-1:6:7",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:5:6-1:6:7",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dst_arrow": ">"
|
|
}
|
|
],
|
|
"primary": {},
|
|
"value": {
|
|
"double_quoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:8:9-1:77:78",
|
|
"value": [
|
|
{
|
|
"string": "Can you imagine how life could be improved if we could do away with",
|
|
"raw_string": "Can you imagine how life could be improved if we could do away with"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:0:79-4:1:171",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:0:79-2:1:80",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:0:79-2:1:80",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:3:82-4:0:170",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:1:85-3:85:169",
|
|
"edges": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:2:86-3:12:96",
|
|
"src": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:2:86-3:6:90",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:2:86-3:3:87",
|
|
"value": [
|
|
{
|
|
"string": "_",
|
|
"raw_string": "_"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:4:88-3:5:89",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"src_arrow": "",
|
|
"dst": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:8:92-3:12:96",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:9:93-3:10:94",
|
|
"value": [
|
|
{
|
|
"string": "_",
|
|
"raw_string": "_"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:11:95-3:12:96",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dst_arrow": ">"
|
|
}
|
|
],
|
|
"edge_index": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:13:97-3:16:100",
|
|
"int": 0,
|
|
"glob": false
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"double_quoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,3:18:102-3:85:169",
|
|
"value": [
|
|
{
|
|
"string": "Well, it's garish, ugly, and derelicts have used it for a toilet.",
|
|
"raw_string": "Well, it's garish, ugly, and derelicts have used it for a toilet."
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"root": {
|
|
"id": "",
|
|
"id_val": "",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"attributes": {
|
|
"label": {
|
|
"value": ""
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": {
|
|
"value": ""
|
|
}
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
"edges": [
|
|
{
|
|
"index": 0,
|
|
"minWidth": 0,
|
|
"minHeight": 0,
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"isCurve": false,
|
|
"src_arrow": false,
|
|
"dst_arrow": true,
|
|
"references": [
|
|
{
|
|
"map_key_edge_index": 0
|
|
},
|
|
{
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "Well, it's garish, ugly, and derelicts have used it for a toilet."
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": {
|
|
"value": ""
|
|
}
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "a",
|
|
"id_val": "a",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:2:3",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:0:1-1:1:2",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "a"
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": {
|
|
"value": ""
|
|
}
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "b",
|
|
"id_val": "b",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:4:5-1:6:7",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,1:5:6-1:6:7",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "b"
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": {
|
|
"value": ""
|
|
}
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "x",
|
|
"id_val": "x",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:0:79-2:1:80",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_index.d2,2:0:79-2:1:80",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "x"
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": {
|
|
"value": ""
|
|
}
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
]
|
|
},
|
|
"err": null
|
|
}
|