Skip to content

Commit bf9ba61

Browse files
committed
docs(wardley): cover autoPlaceLabels in the changeset
1 parent 4b0fdf2 commit bf9ba61

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.changeset/wardley-ecosystem-and-attitudes.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
'mermaid': minor
33
---
44

5-
feat(wardley): add `(ecosystem)` source strategy and pioneers/settlers/townplanners attitude zones
5+
feat(wardley): automatic label placement, `(ecosystem)` source strategy, and pioneers/settlers/townplanners attitude zones
6+
7+
## Automatic label placement
8+
9+
New opt-in `autoPlaceLabels` config flag for the `wardley-beta` diagram. When
10+
enabled, component, anchor, link and annotation labels are automatically
11+
repositioned to avoid overlapping each other, node markers, pipeline boxes,
12+
the chart boundary and link lines. Labels moved far from their node get a
13+
thin leader line; a collision-free manual `label [x, y]` is kept exactly as
14+
authored, and pipeline child labels prefer to sit underneath their node.
15+
16+
Off by default — existing maps render unchanged. Enable it via config:
17+
18+
```js
19+
mermaid.initialize({ 'wardley-beta': { autoPlaceLabels: true } });
20+
```
21+
22+
## Ecosystem source strategy and attitude zones
623

724
Extends the `wardley-beta` diagram to match more of the OWM syntax:
825

0 commit comments

Comments
 (0)