v0.4.0
版本发布时间: 2023-04-09 10:44:36
terrastruct/d2最新发布版本:v0.6.7(2024-09-29 07:27:22)
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.
1、 d2-v0.4.0-linux-amd64.tar.gz 17.19MB
2、 d2-v0.4.0-linux-arm64.tar.gz 16.12MB
3、 d2-v0.4.0-macos-amd64.tar.gz 16.95MB
4、 d2-v0.4.0-macos-arm64.tar.gz 16.43MB
5、 d2-v0.4.0-windows-amd64.msi 15.72MB
6、 d2-v0.4.0-windows-amd64.tar.gz 17.64MB
7、 d2-v0.4.0-windows-arm64.tar.gz 16.5MB