Major updates in 0.4.0:
classes
andclass
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:
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
andstroke-dash
#1140 - Add
text-transform
styling option (thank you @alexstoick for these 2) #1118
Bugfixes โ๏ธ
- Fix inheritence 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
andclasses
are now reserved keywords.text-transform
is now a reserved keyword.