d2/testdata/d2compiler/TestCompile/image_style.exp.json
2023-01-27 22:41:59 +01:00

240 lines
7.9 KiB
JSON
Generated

{
"graph": {
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-5:0:118",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-4:1:117",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-0:3:3",
"value": [
{
"string": "hey",
"raw_string": "hey"
}
]
}
}
]
},
"primary": {
"double_quoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:5:5-0:7:7",
"value": null
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:8:8-4:0:116",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,1:2:12-1:64:74",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,1:2:12-1:6:16",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,1:2:12-1:6:16",
"value": [
{
"string": "icon",
"raw_string": "icon"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,1:8:18-1:64:74",
"value": [
{
"string": "https://icons.terrastruct.com/essentials/004-picture.svg",
"raw_string": "https://icons.terrastruct.com/essentials/004-picture.svg"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,2:2:77-2:14:89",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,2:2:77-2:7:82",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,2:2:77-2:7:82",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,2:9:84-2:14:89",
"value": [
{
"string": "image",
"raw_string": "image"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,3:2:92-3:25:115",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,3:2:92-3:14:104",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,3:2:92-3:7:97",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,3:8:98-3:14:104",
"value": [
{
"string": "stroke",
"raw_string": "stroke"
}
]
}
}
]
},
"primary": {},
"value": {
"double_quoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,3:16:106-3:25:115",
"value": [
{
"string": "#0D32B2",
"raw_string": "#0D32B2"
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"label_dimensions": {
"width": 0,
"height": 0
},
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
}
},
"zIndex": 0
},
"edges": [],
"objects": [
{
"id": "hey",
"id_val": "hey",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/image_style.d2,0:0:0-0:3:3",
"value": [
{
"string": "hey",
"raw_string": "hey"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"style": {
"stroke": {
"value": "#0D32B2"
}
},
"icon": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "icons.terrastruct.com",
"Path": "/essentials/004-picture.svg",
"RawPath": "",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"near_key": null,
"shape": {
"value": "image"
},
"direction": {
"value": ""
}
},
"zIndex": 0
}
]
},
"err": null
}