2023-03-07 19:11:52 +00:00
#### Features 🚀
2023-01-19 19:38:24 +00:00
2023-03-16 01:03:48 +00:00
- New class of special themes, starting with `Terminal` [#1040 ](https://github.com/terrastruct/d2/pull/1040 )
2023-03-07 06:21:23 +00:00
- `style.font: mono` to use a monospaced font for the text/label [#1010 ](https://github.com/terrastruct/d2/pull/1010 )
2023-03-12 01:31:05 +00:00
- `border-radius` is supported for both `class` and `sql_table` shapes. [#982 ](https://github.com/terrastruct/d2/pull/982 )
2023-03-14 17:25:22 +00:00
- Implements `style.fill-pattern` . Currently only value supported is `dots` . [#1024 ](https://github.com/terrastruct/d2/pull/1024 )
2023-03-07 06:21:23 +00:00
2022-12-01 20:59:53 +00:00
#### Improvements 🧹
2022-11-15 00:53:57 +00:00
2023-03-10 03:44:27 +00:00
- `dagre` layouts that have a connection where one endpoint is a container is much improved. [#1011 ](https://github.com/terrastruct/d2/pull/1011 )
2023-03-15 02:19:31 +00:00
- `elk` layouts have less bends in the routes. [#1033 ](https://github.com/terrastruct/d2/pull/1033 )
- `elk` layouts center nodes better. [#1028 ](https://github.com/terrastruct/d2/pull/1028 )
2023-03-14 20:08:17 +00:00
- `elk` layouts have nicer margins between node boundaries and edges. [#1028 ](https://github.com/terrastruct/d2/pull/1028 )
2023-03-15 20:03:49 +00:00
- `elk` layouts container contents are centered within. [#1038 ](https://github.com/terrastruct/d2/pull/1038 )
- `elk` layouts container dimensions fit label. [#1038 ](https://github.com/terrastruct/d2/pull/1038 )
2023-03-11 18:00:50 +00:00
- `sketch` draws connections with less roughness, which especially improves look of corner bends in ELK. [#1014 ](https://github.com/terrastruct/d2/pull/1014 )
2023-03-12 01:31:05 +00:00
- CSS in SVGs are diagram-specific, which means you can embed multiple D2 diagrams on a web page without fear of style conflicts. [#1016 ](https://github.com/terrastruct/d2/pull/1016 )
2023-03-10 03:44:27 +00:00
2022-12-01 21:14:09 +00:00
#### Bugfixes ⛑️
2023-03-08 20:17:38 +00:00
- Fixes `d2` erroring on malformed user paths (`fdopendir` error). [util-go#10 ](https://github.com/terrastruct/util-go/pull/10 )
2023-03-11 21:21:13 +00:00
- Arrowhead labels being set without maps wasn't being picked up. [#1015 ](https://github.com/terrastruct/d2/pull/1015 )
2023-03-14 22:08:10 +00:00
- Fixes a dagre layout error with connections to a container shape with a block type label. [#1032 ](https://github.com/terrastruct/d2/pull/1032 )