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
441 B
JSON
Generated
11 lines
441 B
JSON
Generated
{
|
|
"graph": null,
|
|
"err": {
|
|
"errs": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/near_bad_constant.d2,0:8:8-0:19:19",
|
|
"errmsg": "d2/testdata/d2compiler/TestCompile/near_bad_constant.d2:1:9: near key \"txop-center\" must be the absolute path to a shape or one of the following constants: top-left, top-center, top-right, center-left, center-right, bottom-left, bottom-center, bottom-right"
|
|
}
|
|
]
|
|
}
|
|
}
|