Works as so:
index.d2:
```d2
x: @x
```
x.d2:
```d2
label: meow
shape: circle
```
TODO:
- [ ] Correctly import into fields by handling the scenarios/steps overlay.
- And links.
- [ ] Test every kind of import.
11 lines
292 B
JSON
Generated
11 lines
292 B
JSON
Generated
{
|
|
"graph": null,
|
|
"err": {
|
|
"errs": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/3d_oval.d2,1:0:17-1:19:36",
|
|
"errmsg": "d2/testdata/d2compiler/TestCompile/3d_oval.d2:2:1: key \"3d\" can only be applied to squares, rectangles, and hexagons"
|
|
}
|
|
]
|
|
}
|
|
}
|