Commit graph

83 commits

Author SHA1 Message Date
melsonic
1f5508bf6d
refactored Shape & connection renderers 2025-03-29 14:39:40 +05:30
melsonic
1f4aca9379
hold icon properties in a struct in renderer 2025-03-22 15:07:41 +05:30
melsonic
532d913309
add icon-border-radius to connections 2025-03-19 23:02:49 +05:30
melsonic
9603f1ae3b
feat: ability to add border-radius to d2 icons 2025-03-16 21:26:25 +05:30
Alexander Wang
4b911ffd15
fix legend 2025-03-04 12:05:39 -07:00
Alexander Wang
79e7b69552
legend 2025-03-04 10:14:45 -07:00
Alexander Wang
091c7a4585
Revert "add legend-label"
This reverts commit 92390b5b1c.
2025-03-03 20:32:55 -07:00
Alexander Wang
d59285a7ad
ta 2025-03-03 19:16:36 -07:00
Alexander Wang
a7540203a5
c4 theme 2025-03-03 18:33:00 -07:00
Alexander Wang
b8a5dbdbc5
save 2025-03-01 12:12:35 -07:00
Alexander Wang
44248e77eb
language works for sequence diagram notes 2025-03-01 12:12:33 -07:00
Alexander Wang
92390b5b1c
add legend-label 2025-02-26 10:13:51 -07:00
Alexander Wang
20c2c592eb
d2svg: implement connection icons 2025-02-16 22:08:40 -07:00
Alexander Wang
f711a76ade
add diagram hash salt 2025-01-30 14:48:41 -07:00
Alexander Wang
74f708a2ea
allow animated: true for shape 2024-12-14 19:35:18 -07:00
Daniel Suh
38bfc69325
removed pretty linke 2024-12-14 13:58:25 -07:00
Daniel Suh
2ccd211cc8
html links are working on connections 2024-12-14 13:58:23 -07:00
Alexander Wang
6035ec7d37
replace cdr.dev/slog dependency with stdlib slog 2024-10-04 15:58:44 -06:00
Alexander Wang
4db1f72134
allow underlines for connections 2024-02-14 16:48:57 -08:00
Alexander Wang
10a2cb60e7
export: use board labels 2023-12-12 10:37:19 -08:00
Gavin Nishizawa
0bf10f1634
add RoutingPlugin interface that plugins can implement for cross-graph edge routing 2023-11-21 12:47:26 -08:00
Gavin Nishizawa
b9a5dad820
save cloud innerbox aspect ratio 2023-11-16 18:37:37 -08:00
Gavin Nishizawa
61f8e67454
render unfilled triangle arrowhead 2023-11-07 17:46:26 -08:00
Gavin Nishizawa
cee6a92722
cleanup 2023-09-21 21:02:33 -07:00
Gavin Nishizawa
cfd7c3996d
render arrowhead labels using style.font-color 2023-09-11 12:22:17 -07:00
Anmol Sethi
203953723e
d2parser: Autodetect UTF-16 based on BOM
Turns out I was wrong this is safe.
2023-08-02 11:10:24 -07:00
Alexander Wang
9122ce1c2b
robust hash 2023-07-29 11:31:03 -07:00
Alexander Wang
45b396c894
config vars 2023-07-20 16:08:08 -07:00
Gavin Nishizawa
ee70180a87
fixes 2023-05-25 18:35:58 -07:00
Gavin Nishizawa
53709d641a
export connection truncate decimals along route 2023-05-25 16:22:04 -07:00
Gavin Nishizawa
e6e9673ddd
arrowhead refactor 2023-04-24 18:32:24 -07:00
Gavin Nishizawa
71546caeeb
render with arrowhead dimensions 2023-04-17 13:01:38 -07:00
Gavin Nishizawa
214c95eefc
refactor d2graph.Attributes 2023-04-13 20:04:55 -07:00
Alexander Wang
305c72d239
implement classes 2023-04-07 09:57:51 -07:00
Gavin Nishizawa
d139eeadad
layout with grids 2023-04-03 13:48:38 -07:00
Alexander Wang
ab25a7a8ab
fix origami theme 2023-03-29 21:05:42 -07:00
Alexander Wang
e98c34a34c
origami theme 2023-03-29 20:01:52 -07:00
Alexander Wang
4c8c2b1ab5
define new theme 2023-03-15 17:54:34 -07:00
Alexander Wang
1f6a361b3f
implement pattern 2023-03-13 23:01:33 -07:00
donglixiaoche
e88c60fe55
fix: default border-radius for BaseConnection 2023-03-01 08:09:39 +08:00
donglixiaoche
2dd120294f
fix: default elk border-radius 2023-03-01 08:09:38 +08:00
donglixiaoche
84905ded9e
feat: elk border-radius 2023-03-01 08:09:38 +08:00
Anmol Sethi
f64b5c010d
IsContainerOnly -> IsFolderOnly 2023-02-27 14:39:09 -08:00
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
87eae1b616
implement background styles 2023-02-26 16:23:51 -08:00
Vojtěch Fošnár
00be0de277
Merge branch 'terrastruct:master' into master 2023-02-21 08:56:05 +01:00
Alexander Wang
f7a5689280
fix 2023-02-20 14:18:55 -08:00
Vojtěch Fošnár
331cf95284
move ThemableElement and others to d2themes, smaller fixes 2023-02-19 13:00:01 +01:00
Vojtěch Fošnár
6a89beaeb1
merge updates 2023-02-19 12:32:44 +01:00