Commit graph

139 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
Anmol Sethi
bc3942fa7e
d2graph: Actually remove board keyword check
d2ir change alone is enough.
2023-02-27 12:10:36 -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
4411fbdabc
fix class shape in sequence diagram render 2023-02-24 20:17:09 -08:00
Vojtěch Fošnár
6c8ff99eaf
merge updates 2023-02-23 11:41:42 +01:00
Gavin Nishizawa
a346542465
add error for dagre container-child edge 2023-02-22 12:16:04 -08:00
Vojtěch Fošnár
00be0de277
Merge branch 'terrastruct:master' into master 2023-02-21 08:56:05 +01:00
Alexander Wang
aff6723d38
replace link and tooltip 2023-02-20 14:15:47 -08:00
Vojtěch Fošnár
6a89beaeb1
merge updates 2023-02-19 12:32:44 +01:00
Alexander Wang
e5b575f301
change back 2023-02-18 16:23:27 -08:00
Alexander Wang
6f81e9b96b
change 2023-02-18 16:10:44 -08:00
Alexander Wang
641a6741ff
add top, left keywords 2023-02-18 14:54:10 -08:00
Anmol Sethi
11d1c111d5
d2oracle: Fix out_of_newline_container 2023-02-13 17:30:10 -08:00
Gavin Nishizawa
4de1f76751
limit oval shape aspect ratio 2023-02-13 11:23:30 -08:00
Alexander Wang
1baf999760
update right font 2023-02-06 13:14:31 -08:00
Alexander Wang
ea58e1139b
update back font size 2023-02-06 13:12:43 -08:00
Alexander Wang
01445768d8
fix for class 2023-02-06 00:47:13 -08:00
Alexander Wang
301e692a24
fix sql table font-size 2023-02-06 00:42:28 -08:00
Alexander Wang
fc3b7286a8
changes 2023-02-05 01:54:35 -08:00
Gavin Nishizawa
220351d48d
fix height of class with no rows 2023-02-03 18:28:26 -08:00
Gavin Nishizawa
f4dcaa481d
cleanup 2023-02-03 15:34:41 -08:00
Gavin Nishizawa
e524f43566
refactor and fix #699 2023-02-03 14:53:17 -08:00
Gavin Nishizawa
1567de64e1
don't set obj.LabelDimensions with padding 2023-02-03 13:53:24 -08:00
Gavin Nishizawa
4bfb6af7e6
Merge branch 'master' into shape-specific-inner-boxes 2023-02-02 20:25:52 -08:00
Anmol Sethi
8860b6b716
d2graph: Sort objects by AST order 2023-02-02 12:24:48 -08:00
Anmol Sethi
09dc9fd12f
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-02-02 10:33:31 -08:00
Anmol Sethi
8f58e4ca54
d2ir: Review fixes #714 2023-02-02 10:31:09 -08:00
Anmol Sethi
da500a8437
d2ir: Review fixes #714 2023-02-02 10:31:07 -08:00
Gavin Nishizawa
1b1cdaff15
Merge branch 'master' into shape-specific-inner-boxes 2023-02-01 10:31:46 -08:00
Gavin Nishizawa
491b4b7066
cleanup 2023-01-31 16:19:22 -08:00
Gavin Nishizawa
57fa903fe6
also limit person AR with width/height attributes unless both are entered 2023-01-31 16:08:06 -08:00
Vojtěch Fošnár
61bf09107a
Merge branch 'terrastruct:master' into master 2023-01-29 23:23:22 +01:00
Alexander Wang
b05ec48843
Merge pull request #710 from kevin-david/fonts
render: fonts: add bold + italic styles for Source Code Pro
2023-01-29 14:13:31 -08:00
Anmol Sethi
291f2fdfe3
d2ir: Review fixes #714 2023-01-27 23:45:04 -08:00
Anmol Sethi
30b5b64cad
d2ir: Review fixes #714 2023-01-27 23:19:50 -08:00
Anmol Sethi
192cb10a61
d2ir: Review fixes #714 2023-01-27 17:19:55 -08:00
Anmol Sethi
f056700152
d2ir: Review fixes #714 2023-01-27 17:19:12 -08:00
Vojtěch Fošnár
af2be1232f
resolved conflicts, updated tests 2023-01-27 22:30:44 +01:00
Vojtěch Fošnár
462bd1e23d
resolve conflicts 2023-01-27 21:08:01 +01:00
Gavin Nishizawa
c4db001781
fix unlabelled circle/square with desired width/height 2023-01-27 11:51:03 -08:00
Gavin Nishizawa
d6493887d9
cleanup desiredWidth/Height 2023-01-27 11:41:10 -08:00
Gavin Nishizawa
f6caac0127
use label height for padding shapes with icons 2023-01-27 10:57:55 -08:00
Gavin Nishizawa
781194e8ba
add class row ascii diagram 2023-01-27 10:52:46 -08: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
Gavin Nishizawa
162227e196
only add extra x padding for non-special shapes 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
b1beddc9e2
Adjust padding per shape 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
6f26167beb
fix class dimensions 2023-01-26 16:44:19 -08:00