Repository navigation
zuzu v0.8.1
zuzu v0.8.1 gives a named node of Mermaid the color of the hash of its name (D56), and fixes the two failures of the tests of v0.8.0 on GitHub. The colors of class, ER, requirement, sequence, gitgraph and use case diagrams change, as the sections below say.
Colors by the hash of a name (D56)
- A class, an entity, a requirement and an element take the categorical color at the FNV-1a hash of their id, in the default theme and in a color theme of Mermaid. Before, they all took the first color.
- A participant of a sequence and of ZenUML, a branch of a gitgraph, and an actor and a use case with
colorScheme: rotatetake the color of the hash too, in place of the colors in turn. - A node whose color an earlier node took takes the next free color, so up to ten nodes take ten colors. So a name keeps its color across diagrams and edits, where Mermaid gives the colors in the order in which the names first appear.
- A subgraph, a lane, a composite state, a namespace, a subgraph of an ER diagram and a system boundary take the color of the hash among the second to the tenth colors, so a panel never takes the color of the nodes in it. A class does not take the color of its namespace.
- A node colored by its kind, in an agentflow, a C4 diagram or an event model, keeps the color of its kind. A chart of data, such as a pie, a sankey or the sections of a timeline, keeps its colors in turn.
- A fill or a stroke that the source gives wins over the color.
Fixes
- On arm64, the mix of two colors gave other bits than on amd64 and d3, so some named schemes of Vega were one off in a channel. Each product of the mix now rounds, so no architecture fuses it with the add.
- The test module requires zuzu v0.8.0, as the module elk does, so
go mod tidyleaves it as it is.
Dependencies
- github.com/xo/okage v0.20.1
Full changes: v0.8.0...v0.8.1