Commit graph

2935 commits

Author SHA1 Message Date
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
35bf5d2c41
d2parser: Fix non file map range not including last brace 2023-06-06 15:48:14 -07:00
Anmol Sethi
de0a863e9f
d2: Fix nested import spread ghost container bug 2023-06-06 15:09:27 -07:00
Anmol Sethi
0300b81c31
d2parser: Strip leading ./ from imports 2023-06-06 14:52:54 -07:00
Anmol Sethi
bc8f180055
d2parser: Error on unquoted strings starting with ...@ 2023-06-06 14:47:40 -07:00
Anmol Sethi
b4d5bc0be1
d2parser: Error on leading @ in non import key strings 2023-06-06 14:06:59 -07:00
Anmol Sethi
10c6d2af71
d2parser: Fix bad import key panic 2023-06-06 14:01:32 -07:00
Anmol Sethi
f819e5395b
e2etests-cli: Add import test 2023-06-06 13:44:41 -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
Anmol Sethi
f61409cb79
d2parser: Allow passing in ParseError for nicer error messages in imports 2023-06-04 23:31:18 -07:00
Anmol Sethi
c325e94cad
d2parser: Allow .d2 extension on quoted import strings 2023-05-30 15:56:01 -07:00
Anmol Sethi
89e1e324d7
d2parser: Add imports support
Includes rewriting @file.d2 to @file
2023-05-30 15:44:35 -07:00
Alexander Wang
962f3445f5
Merge pull request #1350 from alixander/square-shape-type
fix square shape type
2023-05-28 11:17:59 -07:00
Alexander Wang
b3e5c71746
fix square shape type 2023-05-28 11:14:31 -07:00
Alexander Wang
69ee4a9033
Merge pull request #1348 from alixander/rename-return-key
d2oracle: return newkey in rename
2023-05-27 17:32:15 -07:00
Alexander Wang
bbc37d74fd
return newkey in rename 2023-05-27 17:21:57 -07:00
gavin-ts
0332fe39bc
Merge pull request #1340 from gavin-ts/multiple-offset
adjust connections and labels for shapes with 3d or multiple
2023-05-26 20:44:38 -07:00
Gavin Nishizawa
182af8dc39
comments, renaming 2023-05-26 12:37:51 -07:00
Gavin Nishizawa
5b7634fe26
changelog reword 2023-05-25 19:19:11 -07:00
Gavin Nishizawa
d06d797025
refactor/cleanup 2023-05-25 19:14:11 -07:00
Gavin Nishizawa
152557fa2c
update tests 2023-05-25 18:47:45 -07:00
Gavin Nishizawa
ee70180a87
fixes 2023-05-25 18:35:58 -07:00
Gavin Nishizawa
78ee09f915
changelog 2023-05-25 16:22:24 -07:00
Gavin Nishizawa
bdd7dc51d3
update tests 2023-05-25 16:22:24 -07:00
Gavin Nishizawa
36e01a7de7
update new tests 2023-05-25 16:22:20 -07:00
Gavin Nishizawa
c3a3454353
elk 2023-05-25 16:22:04 -07:00
Gavin Nishizawa
53709d641a
export connection truncate decimals along route 2023-05-25 16:22:04 -07:00
Gavin Nishizawa
6fc9ffa04d
fixes, cleanup 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
6f9ad8d6dd
fix tracing edge to multiple/3d border 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
006a60d338
fix 3d hexagon bounding box 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
3ce0b1439e
shift descendants 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
d6b8149073
adjust for 3d/multiple 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
73b60b1289
add multiple_offset test 2023-05-24 20:07:10 -07:00
Alexander Wang
f5bc9347e5
Merge pull request #1342 from alixander/fix-underscore-jgn
d2oracle: fix underscores for move with descendant
2023-05-24 16:27:33 -07:00
Alexander Wang
c6db3b160f
better name 2023-05-24 16:20:04 -07:00
Alexander Wang
2bbaf1223c
simplify 2023-05-24 16:17:31 -07:00
Alexander Wang
877ff5d9f2
fix underscore again 2023-05-24 16:14:55 -07:00
Alexander Wang
fe8efdf09e
[ci-force] fix last 2023-05-19 16:08:23 -07:00
Alexander Wang
39682629f9
[ci-force] d2oracle.GetID 2023-05-19 14:26:17 -07:00
Alexander Wang
37c0845278
Update next.md 2023-05-16 14:56:26 -07:00
gavin-ts
0121efeb21
Merge pull request #1326 from LeonardsonCC/master
fix: shadow cut when 0 padding
2023-05-16 13:41:38 -07:00
LeonardsonCC
36373c30ff
fix width stroke when the shape has shadow 2023-05-16 16:30:23 -03:00
Alexander Wang
266e8eee8b
Merge pull request #1332 from alixander/no-empty-map
fix `style` validation
2023-05-16 10:54:17 -07:00
Alexander Wang
3afbf724f0
fix 2023-05-16 10:45:35 -07:00
LeonardsonCC
88d6eac8e0
changelog 2023-05-16 09:21:46 -03:00