MyGit

v0.6.0

terrastruct/d2

版本发布时间: 2023-07-31 13:41:48

terrastruct/d2最新发布版本:v0.6.7(2024-09-29 07:27:22)

D2 v0.6 introduces variable substitutions and globs. These two were the last of the features planned in the initial designs for D2, and v1 is now very close!

The power of variables and globs in a programming language need no introduction, so here's two minimal examples to get started:

Variables:

vars: {
  color: aquamarine
}

x.style.fill: ${color}

Globs:

x
y
z

*.style.fill: aquamarine

Both are live on D2 Playground so give it a try! Looking forward to your issues and iterating

Layout capability also takes a subtle but important step forward: you can now customize the position of labels and icons.

Features 🚀

Improvements 🧹

Bugfixes ⛑️

相关地址:原始地址 下载(tar) 下载(zip)

1、 d2-v0.6.0-linux-amd64.tar.gz 18.02MB

2、 d2-v0.6.0-linux-arm64.tar.gz 16.92MB

3、 d2-v0.6.0-macos-amd64.tar.gz 17.78MB

4、 d2-v0.6.0-macos-arm64.tar.gz 17.24MB

5、 d2-v0.6.0-windows-amd64.msi 16.41MB

6、 d2-v0.6.0-windows-amd64.tar.gz 18.47MB

7、 d2-v0.6.0-windows-arm64.tar.gz 17.3MB

查看:2023-07-31发行的版本