Alexander Wang
fd70b5ef46
layers work
2023-07-10 21:32:30 -07:00
Alexander Wang
05802edb07
edge label working
2023-07-10 21:18:18 -07:00
Alexander Wang
c9793b9a87
label works
2023-07-10 19:24:21 -07:00
Alexander Wang
db051a95b6
pr fixes
2023-07-03 15:58:22 -07:00
Alexander Wang
7973e4927d
change test expected behavior
2023-06-27 13:36:33 -07:00
Alexander Wang
0749d4fb41
attribute
2023-06-26 12:15:24 -07:00
Alexander Wang
1acc3d685a
new implementation
2023-06-26 11:57:18 -07:00
Alexander Wang
5be1f6c187
cleanup
2023-06-26 10:39:38 -07:00
Alexander Wang
09d1ec6314
reimplement
2023-06-25 23:10:56 -07:00
Alexander Wang
6749115ce2
reappear works
2023-06-25 18:59:53 -07:00
Alexander Wang
16a879e05b
cleanup
2023-06-20 18:56:04 -07:00
Alexander Wang
9351a2e2cd
cleanup
2023-06-20 18:56:04 -07:00
Alexander Wang
21d2c44413
set wip
2023-06-20 18:56:03 -07:00
Alexander Wang
1ff119d803
baseAST
2023-06-20 18:56:02 -07:00
Alexander Wang
64daf4643f
use right AST
2023-06-16 16:23:57 -07:00
Anmol Sethi
1f891a3c9e
d2ir: Fix for windows
...
Closes #1388
2023-06-09 19:45:31 -07:00
Alexander Wang
538812f928
Merge branch 'master' into imports
2023-06-07 15:38:52 -07:00
Alexander Wang
424f671d54
add test exercising steps/scenarios
2023-06-06 22:52:17 -07:00
Anmol Sethi
986f069c18
d2ir: Fix link paths to be unquoted strings
...
Allows for simpler manipulation.
2023-06-06 22:37:56 -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
7d9f8b6c08
d2ir: Update links after import
2023-06-06 22:13:49 -07:00
Anmol Sethi
47018488aa
d2ir: Fix pushImportStack
2023-06-06 17:14:49 -07:00
Anmol Sethi
7f0450121a
d2ir: Handle imported scenarios/steps/links
2023-06-06 16:49:12 -07:00
Anmol Sethi
a5d3cc1429
d2parser: Parse and format @../file imports correctly
2023-06-06 16:15:01 -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
111759f6bd
d2cli: Pass path for imports correctly
2023-06-06 13:44:41 -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
Alexander Wang
69f40ae9fb
fix
2023-05-31 23:28:33 -07:00
Alexander Wang
e998a95b96
d2ir: prevent illegal non-tail keywords
2023-05-31 23:04:09 -07:00
Alexander Wang
595fafc4c8
fix class
...
style validation
changelog
2023-04-27 11:48:07 -07:00
Alexander Wang
16478fd894
fix classes panic
2023-04-26 12:40:42 -07:00
Alexander Wang
e0b4c09df1
d2oracle: don't modify classes
2023-04-18 20:25:07 -07:00
Alexander Wang
305c72d239
implement classes
2023-04-07 09:57:51 -07:00
Alexander Wang
754e0ece80
use helpers
2023-04-06 21:02:12 -07:00
Alexander Wang
a2cffc9341
fix inheritence bug
2023-04-05 19:29:08 -07:00
Alexander Wang
60c912c605
compile reserved keys to lowercase in IR
2023-03-06 16:38:13 -08:00
Alexander Wang
81ce1f8209
pr feedback
2023-03-02 18:25:14 -08:00
Alexander Wang
d8b1e65386
disallow referring to root
2023-03-02 18:01:51 -08:00
Alexander Wang
78e6f3fc06
pr feedback
2023-03-02 17:56:32 -08:00
Alexander Wang
e504aca6d0
comment
2023-03-01 15:49:47 -08:00
Alexander Wang
85985bbaf5
ok
2023-03-01 15:38:02 -08:00
Alexander Wang
3a9745974c
save
2023-03-01 14:53:58 -08:00
Anmol Sethi
e4fac7840f
cli: Improve multiboard output
...
- Boards with subboards are now selfcontained folders with index.svg/png as
the root board render.
- Boards that are only containers of other boards are not rendered. For example a
scenario with no modifications and only steps only has its steps
rendered.
- Boards with sibling boards of another type are rendered under a
subdirectory indicating their type to separate them. For example a
board with layers and scenarios has its layers rendered into subfolder
layers and scenarios into subfolder scenarios.
cc @berniexie see BoardContainer field on d2target.Board for the field
you were looking for to skip renders for PDFs too.
2023-02-27 13:50:03 -08:00
Anmol Sethi
903bf7e206
Ignore BoardKeywords in d2graph and change d2ir.IDA to return from nearest board
2023-02-27 11:52:55 -08:00
Alexander Wang
a027564100
update
2023-02-22 16:21:16 -08:00