v0.6.1
版本发布时间: 2023-09-27 02:45:33
terrastruct/d2最新发布版本:v0.6.7(2024-09-29 07:27:22)
The globs feature underwent a major rewrite and is now almost finalized.
Before
Previously, globs would evaluate once on all the shapes and connections declared above it. So if you wanted to set everything red, you had to add the line at the bottom.
x
y
*.style.fill: red
Now
*.style.fill: red
x
y
We still have one more release in 0.6 series to add filters to globs, so stay tuned.
You might also be interested to know that grid cells can now have connections between them! Source code for this diagram here.
Features 🚀
- UTF-16 files are automatically detected and supported #1525
- Grid diagrams can now have simple connections between top-level cells #1586
Improvements 🧹
- Globs are lazily-evaluated #1552
- Latex blocks includes Mathjax's ASM extension #1544
-
font-color
works on Markdown #1546 -
font-color
works on arrowheads #1582 - CLI failure message includes input path #1617
Bugfixes ⛑️
-
d2 fmt
formats all files passed as arguments rather than just the first non-formatted (thank you @maxbrunet) #1523 - Fixes Markdown cropping last element in mixed-element blocks (e.g. em and strong) #1543
- Adds compiler error for non-blockstring empty labels #1590
- Prevents multiple constant nears overlapping in some cases #1591
- Fixes crash from empty nested grid #1594
-
d2fmt
with variable substitution mid-string is formatted correctly #1611 - Fixes certain shape IDs not working with dagre #1610
- Fixes font-size adjustments missing from rendered code shape #1614
1、 d2-v0.6.1-linux-amd64.tar.gz 18.33MB
2、 d2-v0.6.1-linux-arm64.tar.gz 17.17MB
3、 d2-v0.6.1-macos-amd64.tar.gz 17.85MB
4、 d2-v0.6.1-macos-arm64.tar.gz 17.3MB
5、 d2-v0.6.1-windows-amd64.msi 16.48MB
6、 d2-v0.6.1-windows-amd64.tar.gz 18.53MB
7、 d2-v0.6.1-windows-arm64.tar.gz 17.37MB