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

181 lines
5.2 KiB
JSON
Raw Normal View History

2023-04-01 00:18:17 +00:00
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-4:0:44",
2023-04-01 00:18:17 +00:00
"nodes": [
{
"map_key": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-3:1:43",
2023-04-01 00:18:17 +00:00
"key": {
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
"value": [
{
"string": "hey",
"raw_string": "hey"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:5:5-3:0:42",
2023-04-01 00:18:17 +00:00
"nodes": [
{
"map_key": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:15:22",
2023-04-01 00:18:17 +00:00
"key": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:10:17",
2023-04-01 00:18:17 +00:00
"path": [
{
"unquoted_string": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:10:17",
2023-04-01 00:18:17 +00:00
"value": [
{
2023-04-06 22:43:03 +00:00
"string": "grid-rows",
"raw_string": "grid-rows"
2023-04-01 00:18:17 +00:00
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:12:19-1:15:22",
2023-04-01 00:18:17 +00:00
"raw": "200",
"value": "200"
}
}
}
},
{
"map_key": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:24-2:18:41",
2023-04-01 00:18:17 +00:00
"key": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:24-2:13:36",
2023-04-01 00:18:17 +00:00
"path": [
{
"unquoted_string": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:24-2:13:36",
2023-04-01 00:18:17 +00:00
"value": [
{
2023-04-06 22:43:03 +00:00
"string": "grid-columns",
"raw_string": "grid-columns"
2023-04-01 00:18:17 +00:00
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
2023-04-06 22:43:03 +00:00
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:15:38-2:18:41",
2023-04-01 00:18:17 +00:00
"raw": "230",
"value": "230"
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
2023-04-01 00:18:17 +00:00
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
}
},
"zIndex": 0
},
"edges": null,
"objects": [
{
"id": "hey",
"id_val": "hey",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
"value": [
{
"string": "hey",
"raw_string": "hey"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "hey"
},
"labelDimensions": {
"width": 0,
"height": 0
},
2023-04-01 00:18:17 +00:00
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": {
"value": ""
},
2023-04-06 22:43:03 +00:00
"gridRows": {
2023-04-01 00:18:17 +00:00
"value": "200"
},
2023-04-06 22:43:03 +00:00
"gridColumns": {
2023-04-01 00:18:17 +00:00
"value": "230"
}
},
"zIndex": 0
}
]
},
"err": null
}