2023-03-07 19:11:52 +00:00
#### Features 🚀
2023-01-19 19:38:24 +00:00
2023-11-02 17:39:29 +00:00
- ELK now routes `sql_table` edges to the exact columns (ty @landmaj ) [#1681 ](https://github.com/terrastruct/d2/pull/1681 )
2023-11-08 01:55:26 +00:00
- Adds new unfilled triangle arrowhead. [#1711 ](https://github.com/terrastruct/d2/pull/1711 )
2023-11-09 04:31:50 +00:00
- Grid containers can now have custom label positions. [#1715 ](https://github.com/terrastruct/d2/pull/1715 )
2023-11-14 20:42:02 +00:00
- A single board from a multi-board diagram can now be rendered with `--target` flag. [#1725 ](https://github.com/terrastruct/d2/pull/1725 )
2023-11-02 17:39:29 +00:00
2022-12-01 20:59:53 +00:00
#### Improvements 🧹
2022-11-15 00:53:57 +00:00
2023-09-28 20:59:44 +00:00
- Grid cells can now contain nested edges [#1629 ](https://github.com/terrastruct/d2/pull/1629 )
2023-09-29 03:09:15 +00:00
- Edges can now go across constant nears, sequence diagrams, and grids including nested ones. [#1631 ](https://github.com/terrastruct/d2/pull/1631 )
2023-11-01 19:05:45 +00:00
- All vars defined in a scope are accessible everywhere in that scope, i.e., an object can use a var defined after itself. [#1695 ](https://github.com/terrastruct/d2/pull/1695 )
2023-11-07 19:36:23 +00:00
- Encoding API switches to standard zlib encoding so that decoding doesn't depend on source. [#1709 ](https://github.com/terrastruct/d2/pull/1709 )
2023-11-07 22:31:50 +00:00
- `currentcolor` is accepted as a color option to inherit parent colors. (ty @hboomsma ) [#1700 ](https://github.com/terrastruct/d2/pull/1700 )
2023-11-14 21:47:17 +00:00
- grid containers can now be sized with `width` /`height` even when using a layout plugin without that feature. [#1731 ](https://github.com/terrastruct/d2/pull/1731 )
2023-11-10 19:35:29 +00:00
- Watch mode watches for changes in both the input file and imported files [#1720 ](https://github.com/terrastruct/d2/pull/1720 )
2023-09-28 20:59:44 +00:00
2022-12-01 21:14:09 +00:00
#### Bugfixes ⛑️
2023-09-27 01:04:47 +00:00
2023-10-06 01:57:04 +00:00
- Fixes a bug calculating grid height with only grid-rows and different horizontal-gap and vertical-gap values. [#1646 ](https://github.com/terrastruct/d2/pull/1646 )
2023-09-27 01:04:47 +00:00
- Grid layout now accounts for each cell's outside labels and icons [#1624 ](https://github.com/terrastruct/d2/pull/1624 )
2023-10-16 23:52:12 +00:00
- Grid layout now accounts for labels wider or taller than the shape and fixes default label positions for image grid cells. [#1670 ](https://github.com/terrastruct/d2/pull/1670 )
2023-10-05 19:18:38 +00:00
- Fixes a panic with a spread substitution in a glob map [#1643 ](https://github.com/terrastruct/d2/pull/1643 )
2023-10-15 04:58:26 +00:00
- Fixes use of `null` in `sql_table` constraints (ty @landmaj ) [#1660 ](https://github.com/terrastruct/d2/pull/1660 )
2023-10-20 23:19:53 +00:00
- Fixes elk growing shapes with width/height set [#1679 ](https://github.com/terrastruct/d2/pull/1679 )
2023-10-28 04:04:58 +00:00
- Adds a compiler error when accidentally using an arrowhead on a shape [#1686 ](https://github.com/terrastruct/d2/pull/1686 )
2023-10-31 19:26:01 +00:00
- Correctly reports errors from invalid values set by globs. [#1691 ](https://github.com/terrastruct/d2/pull/1691 )
2023-11-01 19:05:45 +00:00
- Fixes panic when spread substitution referenced a nonexistant var. [#1695 ](https://github.com/terrastruct/d2/pull/1695 )
2023-11-07 00:45:46 +00:00
- Fixes incorrect appendix icon numbering. [#1704 ](https://github.com/terrastruct/d2/pull/1704 )
2023-10-31 22:52:48 +00:00
- Fixes crash when using `--watch` and navigating to an invalid board path [#1693 ](https://github.com/terrastruct/d2/pull/1693 )
2023-11-08 22:56:46 +00:00
- Fixes edge case where nested edge globs were creating excess shapes [#1713 ](https://github.com/terrastruct/d2/pull/1713 )
2023-11-14 05:47:32 +00:00
- Fixes a panic with a connection to a grid cell that is a container in TALA [#1729 ](https://github.com/terrastruct/d2/pull/1729 )
2023-11-16 18:53:33 +00:00
- Fixes incorrect grid cell positioning when the grid has a shape set and fixes content sometimes escaping circle shapes. [#1734 ](https://github.com/terrastruct/d2/pull/1734 )
2023-11-17 03:00:06 +00:00
- Fixes content sometimes escaping cloud shapes. [#1736 ](https://github.com/terrastruct/d2/pull/1736 )
2023-11-27 02:25:31 +00:00
- Fixes panic using a glob filter (e.g. `&a` ) outside globs. [#1748 ](https://github.com/terrastruct/d2/pull/1748 )
2023-12-05 21:12:36 +00:00
- Fixes glob keys with import values (e.g. `user*: @lib/user` ). [#1755 ](https://github.com/terrastruct/d2/pull/1755 )