Skip to content

Commit 9a54b3b

Browse files
changes: Update changelog + Documentation (#915)
1 parent d0bbe2b commit 9a54b3b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGES.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 0.4.1
2-
- Added a `n-star` shape for drawing n-pointed stars
3-
- Added `breakable: false` to the `block` element of the canvas
4-
- A new tree layout algorithm, implemented by @MichaelGoodale in Rust, can handle differently sized tree nodes
5-
- **BREAKING** The `tree` callback for drawing nodes does not pass the parent nodes name anymor (new signature is `(node) => elements`)
6-
- **BREAKING** The `parent-position` argument of `tree` got removed
2+
- Added a `n-star` shape for drawing n-pointed stars (#886)
3+
- Added `breakable: false` to the `block` element of the canvas (#880)
4+
- A new tree layout algorithm, implemented by @MichaelGoodale in Rust, can handle differently sized tree nodes (#889)
5+
- **BREAKING** The `tree` callback for drawing nodes does not pass the parent nodes name anymor (new signature is `(node) => elements`) (#889)
6+
- **BREAKING** The `parent-position` argument of `tree` got removed (#889, #891)
7+
- `styles.resolve` now supports nested roots by passing an array (#914)
78

89
# 0.4.0
910
- Fixed a bug where passing a length as radius to a polygon resulted in an error

src/styles.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
///
178178
/// - dict (style): Current context style from `ctx.style`.
179179
/// - merge (style): Style values overwriting the current style. I.e. inline styles passed with an element: `line(.., stroke: red)`.
180-
/// - root (none, str): Style root element name.
180+
/// - root (none, str, array): Style root element name or list of nested roots (`("my-package", "my-element")`).
181181
/// - base (none, style): Style values to merge into `dict` without overwriting it.
182182
/// -> style
183183
#let resolve(dict, root: none, merge: (:), base: (:)) = {

0 commit comments

Comments
 (0)