Commit graph

475 commits

Author SHA1 Message Date
Anmol Sethi
78b09f5007
BoardContainer -> IsContainerOnly
As discussed on slack.
2023-02-27 14:39:08 -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
Alexander Wang
be09118633
Merge pull request #876 from alixander/fix-d2oracle-underscore
compiler: Fix underscore reference
2023-02-27 12:10:07 -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
fa9f402f8c
ensure 2023-02-27 10:33:35 -08:00
Alexander Wang
1bc5d90d22
add failing compiler test 2023-02-27 10:33:34 -08:00
Jett Chen
c9477639cc
Merge branch 'master' into 3d-hexagon 2023-02-27 10:22:09 +08:00
JettChenT
5b5a976b7c
squash commits
upate tests

Update changelog

add support for Fill

update test case

resolve changes
2023-02-27 09:50:18 +08:00
Alexander Wang
87eae1b616
implement background styles 2023-02-26 16:23:51 -08:00
Alexander Wang
0216c8b5f0
fix font-color for tables and class 2023-02-24 20:39:34 -08:00
Vojtěch Fošnár
6c8ff99eaf
merge updates 2023-02-23 11:41:42 +01:00
Alexander Wang
db1e17a742
fix delete 2023-02-22 16:53:01 -08:00
Alexander Wang
5f3f5da704
save 2023-02-22 16:34:05 -08:00
Alexander Wang
a3790e2e1a
Merge pull request #867 from alixander/seq-dia-note-escape
idval edge case
2023-02-22 16:25:32 -08:00
Alexander Wang
f40350609a
fix near updating when not first path 2023-02-22 15:34:41 -08:00
Alexander Wang
389f4cb9d3
failing test 2023-02-22 13:21:29 -08:00
Vojtěch Fošnár
72417d5ccf
Merge branch 'terrastruct:master' into master 2023-02-22 15:36:02 +01:00
Alexander Wang
6dee552e1a
nvm on 1 2023-02-21 20:26:20 -08:00
Alexander Wang
264ce21d60
validate top left 2023-02-21 20:10:34 -08:00
Vojtěch Fošnár
00be0de277
Merge branch 'terrastruct:master' into master 2023-02-21 08:56:05 +01:00
Alexander Wang
e91a046990
fix edge key index value 2023-02-20 20:17:17 -08:00
Alexander Wang
b5d2dba267
fix edge keying 2023-02-20 19:34:38 -08:00
Alexander Wang
fdb6133f04
replace arrowhead 2023-02-20 17:00:37 -08:00
Alexander Wang
d082d97469
[ci-base] fix last pr 2023-02-20 14:31:26 -08:00
Alexander Wang
dab8215f9e
more tests 2023-02-20 14:21:51 -08:00
Alexander Wang
f7a5689280
fix 2023-02-20 14:18:55 -08:00
Alexander Wang
aff6723d38
replace link and tooltip 2023-02-20 14:15:47 -08:00
Vojtěch Fošnár
d8525f5225
Merge branch 'terrastruct:master' into master 2023-02-20 19:54:39 +01:00
Alexander Wang
5f750f7109
Merge branch 'master' into container-dimensions 2023-02-20 09:07:12 -08:00
Vojtěch Fošnár
6fcc58a4f8
Merge branch 'terrastruct:master' into master 2023-02-20 10:27:44 +01:00
Alexander Wang
b40eb5a4d8
d2oracle: delete dimensions and positions 2023-02-19 21:33:37 -08:00
Alexander Wang
2951a7d878
test 2023-02-19 18:52:00 -08:00
Alexander Wang
0c0e7d6134
set and replace position and dimensions 2023-02-19 14:08:56 -08:00
Vojtěch Fošnár
7bf795b455
Merge branch 'terrastruct:master' into master 2023-02-19 21:03:54 +01:00
Alexander Wang
1a11eb00cb
fix d2oracle test 2023-02-19 08:22:20 -08:00
Alexander Wang
f1ac119c09
validate near key better 2023-02-19 08:15:59 -08:00
Vojtěch Fošnár
6a89beaeb1
merge updates 2023-02-19 12:32:44 +01:00
Alexander Wang
5ff1909935
container dimensions 2023-02-18 23:35:18 -08:00
Alexander Wang
e52ffd37d4
test 2023-02-18 16:27:24 -08:00
Alexander Wang
4c6353c412
tests 2023-02-16 17:45:16 -08:00
Alexander Wang
4dbae3c925
prevent sql table and class from having nested children 2023-02-16 17:44:54 -08:00
Alexander Wang
ba7ef0b661
fix underscore move 2023-02-15 14:26:52 -08:00
Alexander Wang
28f61ad4e6
delete only underscore 2023-02-15 14:09:56 -08:00
Alexander Wang
40b4879f47
fix underscore bug in compiler 2023-02-14 16:45:55 -08:00
Anmol Sethi
11d1c111d5
d2oracle: Fix out_of_newline_container 2023-02-13 17:30:10 -08:00
Alexander Wang
675e2ea6ec
tests 2023-02-09 14:30:38 -08:00
Alexander Wang
39e6f73b11
add failing test 2023-02-05 11:04:38 -08:00
Alexander Wang
0a677b382e
update tests 2023-02-05 10:39:02 -08:00
Alexander Wang
102560a8ad
implement validation 2023-02-05 10:36:38 -08:00
Anmol Sethi
8860b6b716
d2graph: Sort objects by AST order 2023-02-02 12:24:48 -08:00
Anmol Sethi
8f58e4ca54
d2ir: Review fixes #714 2023-02-02 10:31:09 -08:00
Vojtěch Fošnár
cc324d1f68
downgraded tests to Go 1.18.5 2023-01-30 18:01:45 +01:00
Vojtěch Fošnár
01928a5032
review fixes 2023-01-30 12:06:54 +01:00
Anmol Sethi
3ace33fd01
d2ir: Review fixes #714 2023-01-27 23:28:44 -08:00
Anmol Sethi
30b5b64cad
d2ir: Review fixes #714 2023-01-27 23:19:50 -08:00
Anmol Sethi
f056700152
d2ir: Review fixes #714 2023-01-27 17:19:12 -08:00
Vojtěch Fošnár
1cbcca7e3a
recreated tests with downgraded go to 1.18.5 2023-01-28 01:28:38 +01:00
Vojtěch Fošnár
d24a5c1ec3
updated export and render options 2023-01-27 22:41:59 +01:00
Anmol Sethi
2d36513e2c
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-27 10:51:33 -08:00
Anmol Sethi
caef5a5a8f
cli: Add support for rendering layers/scenarios/steps 2023-01-27 10:41:25 -08:00
Anmol Sethi
b350399d66
d2ir: Complete integration across all packages 2023-01-24 03:24:35 -08:00
Anmol Sethi
ece34aaf01
d2ir: Add recursive scenario/step test 2023-01-24 03:24:27 -08:00
Anmol Sethi
d239b8dad1
d2ir: Fully implement scenarios/steps 2023-01-24 03:24:26 -08:00
Anmol Sethi
180334a8e1
d2ir: IR Root wip 2023-01-24 03:24:23 -08:00
Anmol Sethi
98ede1f586
d2ir: IR Root wip 2023-01-24 03:24:16 -08:00
Anmol Sethi
473d5ba582
d2ir: IR Root wip 2023-01-24 03:24:15 -08:00
Anmol Sethi
33ae53dc75
d2ir: IR Root wip 2023-01-24 03:24:14 -08:00
Anmol Sethi
5741e0a4f9
d2ir: IR Root wip 2023-01-24 03:24:13 -08:00
Anmol Sethi
f7394133b9
d2ir: IR Root wip 2023-01-24 03:24:11 -08:00
Anmol Sethi
f69f401d23
d2ir: References wip 2023-01-24 03:24:10 -08:00
Anmol Sethi
91149543f5
d2ir: wip 2023-01-24 03:24:02 -08:00
Anmol Sethi
61aef74975
d2ir: wip 2023-01-24 03:23:27 -08:00
Anmol Sethi
989fdb0fe5
d2ir: wip 2023-01-24 03:23:17 -08:00
Anmol Sethi
83ef53dc40
d2ir: wip 2023-01-24 02:57:32 -08:00
Anmol Sethi
c9ef6ab9c9
d2graph: Implement deep copying a graph 2023-01-24 02:56:30 -08:00
OneRain2333
e858d355a3 update test using go 1.18 2023-01-24 16:24:32 +08:00
OneRain2333
735add1b32 update tests 2023-01-24 16:21:39 +08:00
Alexander Wang
adee356d81
fix sql attributes 2023-01-13 08:21:32 -08:00
Júlio César Batista
07b3032eea
Merge branch 'master' into gh-1967-column-index 2023-01-06 16:12:33 -03:00
Júlio César Batista
5fc492669e
Fix table prefix check 2023-01-06 16:03:39 -03:00
Alexander Wang
54368d8672
fix dimension with style 2023-01-06 11:01:45 -08:00
Gavin Nishizawa
ae4e6364ea
add compiler error for using width or height on a container 2022-12-28 21:28:42 -08:00
Gavin Nishizawa
fbf48fa0ff
compile error for circle/square shapes with different width and height 2022-12-28 21:28:42 -08:00
Gavin Nishizawa
5d4059e470
support setting width/height on non-image shapes 2022-12-28 21:27:33 -08:00
Alexander Wang
9b409104fb
restrict near criteria 2022-12-26 21:22:23 -08:00
Alexander Wang
7beff718aa
Merge branch 'master' into fix-null 2022-12-26 11:22:37 -08:00
Anmol Sethi
dd1de57200
d2format: Escape null correctly 2022-12-26 11:18:09 -08:00
Alexander Wang
9e658adf08
update tests 2022-12-25 21:50:40 -08:00
Alexander Wang
0adec7fea2
compiler 2022-12-25 13:42:11 -08:00
Alexander Wang
3a6834662d
fix sql constraint array panic 2022-12-24 13:11:45 -08:00
Alexander Wang
72af538e2f
add test 2022-12-23 13:25:43 -08:00
Alexander Wang
745900b137
fix group label position 2022-12-23 13:16:33 -08:00
Alexander Wang
3c176ebfbc
fix style compiling issue 2022-12-22 23:41:15 -08:00
Alexander Wang
3ab9c4b182
test 2022-12-22 21:20:18 -08:00
Alexander Wang
949df0342d
fix null key 2022-12-22 19:30:07 -08:00
Alexander Wang
07fb1a3d86
implement sketch 2022-12-21 20:55:27 -08:00
Gavin Nishizawa
c054538ae2
update tests 2022-12-19 17:55:16 -08:00
Alexander Wang
18b39b44fd
test update 2022-12-18 20:21:33 -08:00
Alexander Wang
794e864988
fix constraint keyword 2022-12-11 16:46:09 -08:00
Alexander Wang
546ea0266c
save 2022-12-05 19:50:08 -08:00
gavin-ts
213912f476
Merge pull request #360 from gavin-ts/fix-dagre-id-with-newline
fix dagre id with newline
2022-12-05 13:57:39 -08:00
Júlio César Batista
297ea52b9e
Merge branch 'master' into actors-distance 2022-12-05 13:13:30 -08:00
Gavin Nishizawa
a9f0d5978b
update tests 2022-12-05 11:56:26 -08:00
Alexander Wang
874a54fff8
Merge pull request #348 from alixander/unresolved-obj
fix unresolved scope obj setting in compiler
2022-12-04 14:00:50 -08:00
Alexander Wang
c2825e401f
fix notes identifying as spans 2022-12-04 13:40:46 -08:00
Alexander Wang
f12067e5bd
fix unresolved scope obj setting in compiler 2022-12-04 12:47:55 -08:00
Alexander Wang
2b0f2d394f
add check for sequence diagram connection error 2022-12-03 18:17:49 -08:00
Alexander Wang
6213150433
fix compiler test 2022-12-02 19:55:49 -08:00
Alexander Wang
2781d904be
self referencing edges 2022-12-02 19:53:36 -08:00
Júlio César Batista
abcfa7cb24
Update tests 2022-11-30 11:23:30 -08:00
Júlio César Batista
0fc1294ae6
Rename RenderPriority -> ZIndex 2022-11-29 21:41:32 -08:00
Júlio César Batista
e13f8f6711
update tests 2022-11-29 21:41:29 -08:00
Alexander Wang
6d4735a8ef
2022-11-29 05:59:27PM 2022-11-29 17:59:27 -08:00
Alexander Wang
88a89d4f72
2022-11-29 04:13:34PM 2022-11-29 16:13:34 -08:00
Alexander Wang
a39bfce697
2022-11-29 04:02:37PM 2022-11-29 16:02:37 -08:00
Alexander Wang
8e1f4c21c9
2022-11-28 09:49:30PM 2022-11-28 21:49:30 -08:00
Alexander Wang
b1cfeb19e6
2022-11-28 09:39:36PM 2022-11-28 21:39:36 -08:00
Alexander Wang
1db6939cce
2022-11-28 09:01:42PM 2022-11-28 21:01:42 -08:00
Alexander Wang
a6f7130c5f
2022-11-28 07:19:28PM 2022-11-28 19:19:28 -08:00
Alexander Wang
1796dd9020
2022-11-28 02:10:24PM 2022-11-28 14:10:24 -08:00
Júlio César Batista
06a30f7820
Rename From/To to Src/Dst 2022-11-16 15:54:34 -03:00
Júlio César Batista
505a4d38ce
Add test for edge column index 2022-11-16 14:58:06 -03:00
Júlio César Batista
618d7f5edf
Update tests 2022-11-16 11:56:28 -03:00
Júlio César Batista
a943bea111
Add [From/To]TableRowIndex to edges 2022-11-15 19:41:44 -03:00
Alexander Wang
524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00