2024-04-26 03:24:57 +00:00
#### Features 🚀
2024-08-14 00:42:47 +00:00
- Vars: Variable definitions can now refer to other variables in the current scope [#2052 ](https://github.com/terrastruct/d2/pull/2052 )
2024-08-26 19:43:56 +00:00
- Composition: Imported boards can use underscores to reference boards beyond its own
scope (e.g. to a sibling board at the scope its imported to) [#2075 ](https://github.com/terrastruct/d2/pull/2075 )
2024-09-15 16:49:50 +00:00
- Autoformat: Reserved keywords are formatted to be lowercase [#2098 ](https://github.com/terrastruct/d2/pull/2098 )
2024-08-06 02:18:34 +00:00
2024-04-26 03:24:57 +00:00
#### Improvements 🧹
2022-11-15 00:53:57 +00:00
2024-08-14 00:42:47 +00:00
- Sequence diagram: edge groups account for edge label heights [#2038 ](https://github.com/terrastruct/d2/pull/2038 )
- Sequence diagram: self-referential edges account for edge label heights [#2040 ](https://github.com/terrastruct/d2/pull/2040 )
2024-08-05 05:01:14 +00:00
- Sequence diagram: The spacing between self-referential edges and regular edges is uniform [#2043 ](https://github.com/terrastruct/d2/pull/2043 )
2024-08-14 00:42:47 +00:00
- Compiler: Error on multi-line labels in `sql_table` shapes [#2057 ](https://github.com/terrastruct/d2/pull/2057 )
2024-08-17 01:04:01 +00:00
- Sequence diagram: Image shape actors can use spans and notes [#2056 ](https://github.com/terrastruct/d2/issues/2056 )
2024-08-06 18:11:04 +00:00
- Globs: Filters work with default values (e.g. `&opacity: 1` will capture everything without opacity explicitly set) [#2090 ](https://github.com/terrastruct/d2/pull/2090 )
2024-09-14 23:41:57 +00:00
- Render: connection label fills have a bit of padding and border-radius for better aesthetics [#2094 ](https://github.com/terrastruct/d2/pull/2094 )
2024-09-14 23:53:51 +00:00
- Sequence diagram: the padding between message labels and message endpoints are slightly increased [#2096 ](https://github.com/terrastruct/d2/pull/2096 )
2024-08-02 21:22:34 +00:00
2022-12-01 21:14:09 +00:00
#### Bugfixes ⛑️
2024-08-05 05:01:14 +00:00
2024-08-14 00:42:47 +00:00
- Sequence diagram: multi-line edge labels no longer can collide with other elements [#2049 ](https://github.com/terrastruct/d2/pull/2049 )
- Sequence diagram: long self-referential edge labels no longer can collide neighboring actors (or its own) lifeline edges [#2050 ](https://github.com/terrastruct/d2/pull/2050 )
2024-09-11 17:06:30 +00:00
- Sequence diagram: fixes layout when sequence diagrams are in children boards (e.g. a layer) [#1692 ](https://github.com/terrastruct/d2/issues/1692 )
2024-08-06 00:34:41 +00:00
- Globs: An edge case was fixed where globs used in edges were creating nodes when it shouldn't have [#2051 ](https://github.com/terrastruct/d2/pull/2051 )
2024-08-14 00:42:47 +00:00
- Render: Multi-line class labels/headers are rendered correctly [#2057 ](https://github.com/terrastruct/d2/pull/2057 )
2024-08-14 04:56:09 +00:00
- CLI: Watch mode uses correct backlinks (`_` usages) [#2058 ](https://github.com/terrastruct/d2/pull/2058 )
2024-08-17 00:48:06 +00:00
- Vars: Spread variables are inserted in place instead of appending to end of scope [#2062 ](https://github.com/terrastruct/d2/pull/2062 )
2024-08-25 02:02:52 +00:00
- Imports: fix local icon imports from files that are imported [#2066 ](https://github.com/terrastruct/d2/pull/2066 )
2024-08-25 04:15:01 +00:00
- CLI: fixes edge case of watch mode links to nested board that had more nested boards not working [#2070 ](https://github.com/terrastruct/d2/pull/2070 )
2024-08-25 21:26:42 +00:00
- CLI: fixes theme flag not being passed to GIF outputs [#2071 ](https://github.com/terrastruct/d2/pull/2071 )
- CLI: fixes scale flag not being passed to animated SVG outputs [#2071 ](https://github.com/terrastruct/d2/pull/2071 )
2024-09-16 15:18:59 +00:00
- CLI: pptx exports use theme flags correctly [#2099 ](https://github.com/terrastruct/d2/pull/2099 )