Skip to content

zuzu v0.7.5

Choose a tag to compare

@kenshaw kenshaw released this 20 Nov 22:29
· 53 commits to main since this release

zuzu v0.7.5 draws the math of KaTeX in the labels of Mermaid, records the answers of the maintainers of 2026-11-20 (D35, D36 and D37), and does the easy items of the backlog. The output of some charts and diagrams changes, as the sections below say.

Math in the labels of Mermaid (D36)

  • A text between two $$ in a label draws as math. The math layout of okage lays it out in STIX Two Math.
  • The new Parse option zuzu.WithMath gives the font. The package github.com/xo/zuzu/text/math holds STIX Two Math under the OFL. Call zuzu.WithMath(math.Font()).
  • A formula draws as a path with the role math, in the color of its label. The SVG names its TeX in aria-label.
  • If the parse has no font of math, or okage cannot lay out a formula, the label draws its source. The report names the label and the command at fault.

Look and themes (D35, D37)

  • A sequential ramp takes its form from the lightness of its background.
  • A kind of Mermaid whose section has the theme redux-color by default draws in mermaid-redux-color when its source sets no theme.
  • The bgcolor of a graph of DOT fills the page and is the background of the theme. The mode follows its lightness. WithBackground wins over it.
  • colorScheme: rotate of a use case diagram gives each actor, use case and boundary a categorical color in turn.
  • A diverging scheme name of Vega takes the diverging ramp. rainbow and sinebow take a wheel of the categorical colors.

Fixes from the backlog

  • Guides: an encode of a part of an axis applies as in vega.js, a legend wraps at the width of the plot, and a closed line gets no end label.
  • Mermaid: the bit numbers of a packet draw at size 10, and a theme in the section of a kind applies. C4 accepts c4ShapeInRow and c4BoundaryInRow. \n starts a line in a label.
  • DOT: a record keeps its empty fields, label="" draws no text, and weight=0 does not pull its ends. A loop draws above its node in LR and RL.
  • Vega: a fill that is an object with no gradient is no gradient. The open and closed curves of basis, cardinal and catmull-rom draw.

Dependencies

  • github.com/xo/okage v0.19.0
  • zuzu reads its fonts with the copy of go-text in okage, so it no longer requires github.com/go-text/typesetting.

Full changes: v0.7.4...v0.7.5