Commit graph

18 commits

Author SHA1 Message Date
Alexander Wang
453c24388a
d2ir: fix glob applications on edges 2024-03-06 22:50:42 -08:00
Alexander Wang
6a4c7a51f8
d2ir: fix merging boards with array composites 2023-12-07 08:52:55 -08:00
Alexander Wang
12b166b398
globs: fix imported case 2023-12-05 13:42:43 -08:00
Alexander Wang
0c230f6eb5
Fix link paths in nested imports 2023-09-14 07:22:34 -07:00
Anmol Sethi
a79e963f3e
d2ir: Fix variables to passthrough primary type
If the variable is a number it should be parsed as a number and not coerced into a string.
See test change.
2023-07-18 14:58:22 -07:00
Alexander Wang
e95f61985e
fix import test 2023-07-13 14:41:06 -07:00
Alexander Wang
5d4d9c5c17
import tests 2023-07-11 17:37:39 -07:00
Alexander Wang
08cc907f07
more test 2023-07-10 22:22:04 -07:00
Alexander Wang
424f671d54
add test exercising steps/scenarios 2023-06-06 22:52:17 -07:00
Alexander Wang
8857f46110
add failing test 2023-06-06 22:28:32 -07:00
Anmol Sethi
42cf8bed42
d2ir: Update cyclic import test 2023-06-06 22:16:14 -07:00
Anmol Sethi
7f0450121a
d2ir: Handle imported scenarios/steps/links 2023-06-06 16:49:12 -07:00
Anmol Sethi
de0a863e9f
d2: Fix nested import spread ghost container bug 2023-06-06 15:09:27 -07:00
Anmol Sethi
10c6d2af71
d2parser: Fix bad import key panic 2023-06-06 14:01:32 -07:00
Anmol Sethi
ad21f1fbea
d2ir: Add more import error tests 2023-06-06 13:17:29 -07:00
Anmol Sethi
42706f8b64
d2ir: More import tests 2023-06-06 13:07:30 -07:00
Anmol Sethi
9f0c24f5d7
fmt 2023-06-04 23:32:14 -07:00
Anmol Sethi
2fcc9ed140
d2ir: Compile imports
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.
2023-06-04 23:31:18 -07:00