Anmol Sethi
42706f8b64
d2ir: More import tests
2023-06-06 13:07:30 -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
satoqz
665844db39
TA=1
2023-06-03 14:05:18 +02:00
Bernard Xie
69b816c1b4
Merge pull request #1364 from berniexie/no-empty-block-strings
...
compile: no empty block strings
2023-06-02 11:30:08 -07:00
Bernard Xie
cd09aba54f
trim space
2023-06-02 10:42:44 -07:00
Alexander Wang
e6750a99b6
fix renameiddelta
2023-06-01 19:42:40 -07:00
Bernard Xie
1a6b1a4084
add test
2023-06-01 18:48:37 -07:00
Alexander Wang
6d2b77170b
fix arrowhead overriding
2023-06-01 17:11:11 -07:00
Alexander Wang
e998a95b96
d2ir: prevent illegal non-tail keywords
2023-05-31 23:04:09 -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
bbc37d74fd
return newkey in rename
2023-05-27 17:21:57 -07:00
Alexander Wang
877ff5d9f2
fix underscore again
2023-05-24 16:14:55 -07:00
Alexander Wang
3afbf724f0
fix
2023-05-16 10:45:35 -07:00
Alexander Wang
503a31e034
fix
2023-05-12 16:18:50 -07:00
gavin-ts
9664fd6b7d
Merge pull request #1309 from gavin-ts/nested-layout
...
layout with nested grids
2023-05-10 17:29:43 -07:00
Alexander Wang
677a8daa13
fix underscore
2023-05-10 16:27:08 -07:00
Gavin Nishizawa
590a18c8bd
update compile test
2023-05-10 12:57:40 -07:00
Alexander Wang
38d344c626
fix underscore regression
2023-05-10 12:27:08 -07:00
Alexander Wang
5520c0bca6
fix map carry
2023-05-09 17:17:18 -07:00
Alexander Wang
acf239d59a
fix underscores
2023-05-09 14:24:42 -07:00
Alexander Wang
c40fce1483
preserve attr
2023-05-09 12:39:00 -07:00
Alexander Wang
aa7cd3f973
fix sibling conflict
2023-05-08 22:26:13 -07:00
Alexander Wang
0124b68780
fix again
2023-05-08 18:45:36 -07:00
Alexander Wang
49828667f7
min/max
2023-05-08 17:49:04 -07:00
Alexander Wang
bb465277c5
fix move container
2023-05-08 14:32:11 -07:00
Alexander Wang
7301cb3699
tests
2023-05-07 16:10:21 -07:00
Alexander Wang
43b206cde8
move container
2023-05-07 16:09:57 -07:00
Alexander Wang
eb30d8af90
rebase and TA=1
2023-05-05 09:21:28 -07:00
Alexander Wang
e03e19b28b
ta=1
2023-05-05 09:18:25 -07:00
Anmol Sethi
e6b52a357f
d2parser: Pass whitespace_range test
...
Closes #1279
2023-05-05 09:18:25 -07:00
Alexander Wang
db21d350c5
ignore when no params
2023-05-04 20:29:53 -07:00
Alexander Wang
657cdd83cb
more robust
2023-05-04 19:53:53 -07:00
Alexander Wang
60e5a33c8a
implement ReconnectEdge
2023-05-04 19:09:04 -07:00
Alexander Wang
ddd997e3f0
add md block info
2023-04-29 20:45:03 -07:00
Alexander Wang
b08431b73a
Merge pull request #1256 from alixander/class-array
...
implement arrays for classes
2023-04-27 15:21:06 -07:00
Alexander Wang
7c401a4806
implement arrays for classes
...
update
changelog
2023-04-27 15:12:39 -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
e512d43ec5
fix generate unique number id
2023-04-20 12:27:34 -07:00
Antoine Poivey
760dbfe5ae
merge with master
2023-04-20 16:48:52 +02:00
Alexander Wang
e0b4c09df1
d2oracle: don't modify classes
2023-04-18 20:25:07 -07:00
Gavin Nishizawa
bf50cb9ab3
update tests
2023-04-17 15:03:58 -07:00
Gavin Nishizawa
913c170985
update tests
2023-04-17 13:16:34 -07:00
Gavin Nishizawa
69208ccf19
update tests json .label_dimensions -> .attributes.labelDimensions
2023-04-13 20:13:58 -07:00
Antoine Poivey
b2d0a44e2f
remove border-radius percent tests, add border-radius pill (with a big value) test
2023-04-13 18:18:28 +02:00
Gavin Nishizawa
c0e164e44b
rename to horizontal-gap and vertical-gap
2023-04-12 13:51:04 -07:00
Gavin Nishizawa
e871cee0bb
add compile test
2023-04-10 18:21:39 -07:00
Alexander Wang
70b3dd7b87
add text-transform as keyword
2023-04-08 12:24:29 -07:00
Alexander Wang
305c72d239
implement classes
2023-04-07 09:57:51 -07:00
Alexander Wang
ad880fa9be
Merge pull request #1090 from alixander/scenarios-bug
...
fix scenarios/steps inheritence
2023-04-06 22:27:03 -07:00
donglixiaoche
b2f905efb8
Merge branch 'master' into near-keys-for-container
...
Conflicts:
d2layouts/d2near/layout.go
2023-04-07 10:40:40 +08:00
Gavin Nishizawa
a75d4dd0b9
update keywords rows -> grid-rows
2023-04-06 15:48:01 -07:00
Gavin Nishizawa
37fc3ea8e0
cleanup
2023-04-06 15:37:35 -07:00
Antoine Poivey
e59a50fd08
merge with master
2023-04-06 19:04:53 +02:00
Alexander Wang
a2cffc9341
fix inheritence bug
2023-04-05 19:29:08 -07:00
donglixiaoche
e61629e692
fix: cr
2023-04-06 05:00:12 +08:00
Gavin Nishizawa
06a942cf99
rename to grid diagram
2023-04-05 11:15:52 -07:00
Gavin Nishizawa
04775c8491
validate descendants
2023-04-04 21:00:40 -07:00
Gavin Nishizawa
bce774fd4a
validate edges
2023-04-04 18:45:08 -07:00
Gavin Nishizawa
06fb313d3e
values must be positive
2023-04-03 13:49:10 -07:00
Gavin Nishizawa
d139eeadad
layout with grids
2023-04-03 13:48:38 -07:00
donglixiaoche
9089253872
Merge branch 'master' into near-keys-for-container
2023-03-31 21:18:46 +08:00
Antoine Poivey
e96eb4c6f0
add compile test
2023-03-30 18:43:16 +02:00
donglixiaoche
ad515e6110
chore: regenerate testcases
2023-03-30 18:15:35 +08:00
Anmol Sethi
84cc463ff6
d2parser: Fix #322
2023-03-30 01:29:59 -07:00
Gavin Nishizawa
ad2e3af900
add compiler error for neara set to title with constant near
2023-03-28 11:37:40 -07:00
alankan886
bb54d03033
compiler: Compiler error when Link is set and Tooltip is an URL
2023-03-28 00:12:05 -04:00
alankan886
1250ad3ea7
# This is a combination of 2 commits.
...
# This is the 1st commit message:
compiler: Compiler error when Link is set and Tooltip is an URL
# The commit message #2 will be skipped:
# Update changelog
2023-03-28 00:02:27 -04:00
donglixiaoche
0df9abc056
fix: delete redundant file
2023-03-27 21:38:11 +08:00
donglixiaoche
22cce86892
fix: cr, add validation for near connectioins
2023-03-27 21:38:09 +08:00
donglixiaoche
72253e892f
fix: compile_test testcase
2023-03-27 21:38:09 +08:00
donglixiaoche
1af6896883
fix: revert near_bad_connected compile_test
2023-03-27 21:38:09 +08:00
donglixiaoche
597385e19c
fix: delete redundant testcases
2023-03-27 21:38:09 +08:00
Alexander Wang
4e67114797
fix delete
2023-03-21 14:31:52 -07:00
Alexander Wang
81c3eef895
fix move with child and container same id
2023-03-21 13:25:00 -07:00
Alexander Wang
436531dbc2
paper pattern
2023-03-20 19:08:56 -07:00
Alexander Wang
04246ef0fb
tmp fix
2023-03-20 11:57:53 -07:00
Alexander Wang
240d555989
fix test
2023-03-19 20:57:15 -07:00
Bernard Xie
1658c05f18
fix
2023-03-17 19:13:14 -07:00
Alexander Wang
c30887b363
new fill-patterns, grayscale
2023-03-15 23:02:17 -07:00
Alexander Wang
36e546c8b4
Merge branch 'master' into pattern
2023-03-14 10:00:56 -07:00
Alexander Wang
c45aa06103
regen
2023-03-14 09:46:45 -07:00
Alexander Wang
bee43fd290
fix d2oracle move with duplicates
2023-03-14 00:29:37 -07:00
Alexander Wang
366a36df67
compiler
2023-03-13 20:07:13 -07:00
Anmol Sethi
1e3cb397a9
testdata: Add a few parse tests and cleanup testdata
...
Updates #955
Updates #322
2023-03-13 15:28:53 -07:00
Alexander Wang
298a0c10bd
bump to go 1.20
2023-03-13 13:35:26 -07:00
Alexander Wang
a9433a5204
fix arrowhead label detection
2023-03-11 21:33:03 -08:00
Alexander Wang
1730326747
d2oracle: delete class and table deletes all refs
2023-03-09 17:04:38 -08:00
Alexander Wang
a556160306
validate markdown
2023-03-07 09:38:19 -08:00
Alexander Wang
9199554800
give err msg for invalid edge style
2023-03-06 22:44:45 -08:00
Alexander Wang
60c912c605
compile reserved keys to lowercase in IR
2023-03-06 16:38:13 -08:00
Alexander Wang
ea60464d6c
remove primary
2023-03-04 00:57:44 -08:00
Alexander Wang
e1b9a227c4
fix delete not saving map
2023-03-04 00:40:12 -08:00
Alexander Wang
d6e501419d
fix delete suffix with value
2023-03-04 00:32:52 -08:00
Alexander Wang
78c3f3f797
Merge branch 'master' into link-layers
2023-03-02 18:42:06 -08:00
Alexander Wang
78e6f3fc06
pr feedback
2023-03-02 17:56:32 -08:00
Alexander Wang
37ff3fb40b
ignore the parent for delete
2023-03-02 17:04:03 -08:00
Alexander Wang
be5009ea7a
fix d2oracle.Delete
2023-03-02 15:48:47 -08:00