github terrastruct/d2 v0.2.2

latest releases: v0.6.8, v0.6.7, v0.6.6...
20 months ago

style keywords now apply at the root level, letting you style the diagram background and frame like so:

chilly
playground link

(also showcases a little 3d hexagon, newly supported thanks to our newest contributor @JettChenT !)

PDF is also now supported as an export format:

demo.pdf

Features ๐Ÿš€

  • PDF exports. See docs. #120
  • Diagram background and frame can be added and styled. See docs. #910
  • 3d works on hexagon shapes. #869
  • The arm64 docker container supports rendering diagrams to PNGs. #917

Improvements ๐Ÿงน

  • near key set to sequence diagram children get an appropriate error message. #899
  • class and sql_table shape respect font-color styling as header font color. #899
  • SVG fits to screen by default in both watch mode and as a standalone SVG (this time with just CSS, no JS). #725
  • Only chromium is installed when rendering png diagrams instead of also installing webkit and firefox. #835
  • Multiboard output is now self-contained and less confusing. See #923

Bugfixes โ›‘๏ธ

  • Error reported when no actors are declared in sequence diagram. #886
  • Fixes img bundling on image shapes. #889
  • class shape as sequence diagram actors had wrong colors. #899
  • Fixes regression in last release where some hex codes were not working. #922

Don't miss a new d2 release

NewReleases is sending notifications on new releases.