This commit is contained in:
Alexander Wang 2023-02-24 18:48:55 -08:00
parent cd47fc8dd7
commit d254e862cd
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -0,0 +1,55 @@
TALA 0.3.0 implements position-locking to give control over parts of the diagram where you need it. This is an advanced feature that opens up a world of possibilities to create small bubbles of customized layouts and combine it with autolayout. For example, here's a legend:
<img src="https://raw.githubusercontent.com/terrastruct/TALA/master/docs/assets/legend.png" />
```d2
Legend: {
top: 0
left: 0
blue: "" {
width: 20
height: 20
left: 0
top: 0
style.stroke: black
}
blue-explanation: Actions {
shape: text
left: 50
top: 0
}
green: "" {
width: 20
height: 20
left: 0
top: 50
style.fill: honeydew
style.stroke: black
}
green-explanation: Intermediate artifacts {
shape: text
left: 50
top: 50
}
}
```
We're excited to see all the creative diagrams this enables!
#### Features 🚀
- `top` and `left` positions implemented.
#### Improvements 🧹
- ~30% faster for large, connected diagrams
- Much faster gap normalization for all diagrams
- Bin-packing algorithm improved to reduce whitespace between non-connected subgraphs
#### Bugfixes ⛑️
- Fixes label placements avoiding connections that weren't actually obstructing
- Fixes a rare panic that could with cluster nodes
- Edges could sometimes route through nodes that were not part of its subgraph
- Edges between containers that were perfectly aligned was sometimes unable to find a route.