Skip to main content

0.4.0

Major updates in 0.4.0:

  • classes and class are finally here. No more repeating styles!
  • Introducing Grid diagrams. A very popular form of diagramming software architecture.

To showcase both of these, here's a demo with a link to the source code below:

Screen Shot 2023-04-08 at 7 20 04 PM

Bunch of other features, improvements, and bug fixes too. Make sure to check out the updated docs for how to use these new features!

Features ๐Ÿš€โ€‹

  • Classes are implemented. See docs. #772
  • Grid diagrams are implemented. See docs. #1122
  • Container with constant key near attribute now can have descendant objects and connections (thank you @donglixiaoche) #1071
  • Multi-board SVG outputs with internal links go to their output paths #1116

Improvements ๐Ÿงนโ€‹

  • Labels on parallel dagre connections include a gap between them #1134
  • Sequence diagram lifelines inherit the actor's stroke and stroke-dash #1140
  • Add text-transform styling option (thank you @alexstoick for these 2) #1118

Bugfixes โ›‘๏ธโ€‹

  • Fix inheritance in scenarios/steps #1090
  • Fix a bug in 32bit builds #1115
  • Fix a bug in ID parsing #322
  • Fix a bug in watch mode parsing SVG #1119
  • Namespace transitions so that multiple animated D2 diagrams can exist on the same page #1123
  • Fix a bug in vertical alignment of appendix lines #1104
  • Fix precision difference for sketch mode running on different architectures #921
  • Fix an issue where markdown fonts weren't being applied correctly #1132

Breaking changesโ€‹

  • class and classes are now reserved keywords.
  • text-transform is now a reserved keyword.
Contents