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
310 B
JSON
Generated
11 lines
310 B
JSON
Generated
{
|
|
"graph": null,
|
|
"err": {
|
|
"errs": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/illegal-stroke-width.d2,1:22:28-1:24:30",
|
|
"errmsg": "d2/testdata/d2compiler/TestCompile/illegal-stroke-width.d2:2:23: expected \"stroke-width\" to be a number between 0 and 15"
|
|
}
|
|
]
|
|
}
|
|
}
|