Diagrams that link between objects and the source they represent are much more integrated into your overall documentation than standalone diagrams. This release brings the linking feature to PDFs! Try clicking on "GitHub" object in the following PDF:
Code blocks now adapt to dark mode:
Welcome new contributor @donglixiaoche , who helps D2 support border-radius on connections!
Features ๐
- PDF exports support linking #891, #966
border-radius
is supported on connections (ELK and TALA only, since dagre uses curves). #913
Improvements ๐งน
- Code blocks adapt to dark mode #971
- SVGs are fit to top left by default to avoid issues with zooming. #954
- Person shapes have labels below them and don't need to expand as much. #960