2023-07-29 20:55:48 +00:00
D2 v0.6 introduces variable substitutions. The only major language feature left that were in the intial language design is globs, then we'll stamp it 1.0!
Layout capability also takes a subtle but important step forward: you can now customize the position of labels and icons.
2023-03-07 19:11:52 +00:00
#### Features 🚀
2023-01-19 19:38:24 +00:00
2023-07-12 02:16:10 +00:00
- Variables and substitutions are implemented. See [docs ](https://d2lang.com/tour/vars ). [#1473 ](https://github.com/terrastruct/d2/pull/1473 )
2023-06-27 20:46:23 +00:00
- Configure timeout value with D2_TIMEOUT env var [#1392 ](https://github.com/terrastruct/d2/pull/1392 )
- Scale renders and disable fit to screen with `--scale` flag [#1413 ](https://github.com/terrastruct/d2/pull/1413 )
2023-07-29 20:55:48 +00:00
- `null` keyword can be used to un-declare. See [docs ](https://d2lang.com/tour/overrides#null ) [#1446 ](https://github.com/terrastruct/d2/pull/1446 )
2023-07-29 16:20:03 +00:00
- Develop multi-board diagrams in watch mode (links to layers/scenarios/steps work in `--watch` ) [#1503 ](https://github.com/terrastruct/d2/pull/1503 )
2023-06-10 00:36:45 +00:00
2022-12-01 20:59:53 +00:00
#### Improvements 🧹
2022-11-15 00:53:57 +00:00
2023-06-12 08:19:40 +00:00
- Display version on CLI help invocation [#1400 ](https://github.com/terrastruct/d2/pull/1400 )
2023-06-27 20:46:23 +00:00
- Improved readability of connection labels when they overlap another connection [#447 ](https://github.com/terrastruct/d2/pull/447 )
2023-06-16 23:51:19 +00:00
- Error message when `shape` is given a composite [#1415 ](https://github.com/terrastruct/d2/pull/1415 )
2023-06-27 20:46:23 +00:00
- Improved rendering and text measurement for code shapes [#1425 ](https://github.com/terrastruct/d2/pull/1425 )
- The autoformatter moves board declarations to the bottom of its scope [#1424 ](https://github.com/terrastruct/d2/pull/1424 )
2023-07-02 03:59:46 +00:00
- All font styles in sketch mode use a consistent font-family [#1463 ](https://github.com/terrastruct/d2/pull/1463 )
2023-07-29 20:55:48 +00:00
- Tooltip and link icons are positioned on shape border [#1466 ](https://github.com/terrastruct/d2/pull/1466 )
2023-07-03 23:56:26 +00:00
- Tooltip and link icons are always rendered over shapes [#1467 ](https://github.com/terrastruct/d2/pull/1467 )
2023-07-29 16:56:36 +00:00
- Boards with no objects are considered folders [#1504 ](https://github.com/terrastruct/d2/pull/1504 )
2023-07-29 17:07:20 +00:00
- `DEBUG` environment variable ignored if set incorrectly [#1505 ](https://github.com/terrastruct/d2/pull/1505 )
2023-05-04 03:05:52 +00:00
2022-12-01 21:14:09 +00:00
#### Bugfixes ⛑️
2023-05-16 12:21:46 +00:00
2023-06-12 18:29:29 +00:00
- Fixes edge case in compiler using dots in quotes [#1401 ](https://github.com/terrastruct/d2/pull/1401 )
2023-06-15 21:42:15 +00:00
- Fixes grid label font size for TALA [#1412 ](https://github.com/terrastruct/d2/pull/1412 )
2023-07-13 02:15:37 +00:00
- Fixes person shape label positioning with `multiple` or `3d` [#1478 ](https://github.com/terrastruct/d2/pull/1478 )