Skip to content

@mermaid-js/tiny@12.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 13:50
· 13 commits to develop since this release
Immutable release. Only release title and notes can be modified.
9f93a44

Minor Changes

  • #8834 68114ea Thanks @knsv-bot! - feat: agentflow diagrams accept the agentflow keyword. agentflow-beta keeps working as an alias

  • #8745 619b6ab Thanks @timmy-wright! - feat: add a grid layout with configurable row and column placement, recursive subgraphs, alignment, and orthogonal edge routing

    Flowchart subgraph metadata forwarded to layout engines is now limited to row, column, horizontalAlign, verticalAlign, and algorithm. Custom layouts registered through registerLayoutLoaders no longer receive other authored subgraph metadata fields.

  • #8676 fca5f3f Thanks @knsv-bot! - feat: add the layered layout (beta), selected with layout: layered, for flowchart, class, state, ER, requirement and mindmap diagrams, with a layered.edgeRouting option (rounded by default, curved, stepped or straight)

  • #8851 08f406c Thanks @pbrolin47! - feat(layered): draw a hop where two edges cross, as the elk layout does; the new layered.lineHops option sets arc (default), gap or false for plain crossings

Patch Changes

  • #8886 cef7109 Thanks @pbrolin47! - fix: centre the label of braces nodes between the two braces in the neo look, and centre the label of braces, brace-l and brace-r nodes vertically

  • #8581 4e923df Thanks @lrharboe! - fix: ELK edge straightening no longer lets the labels of a bidirectional labelled pair run into each other or into the nodes

  • #8621 ca0f683 Thanks @filipsajdak! - fix: ELK keeps the arrowheads of several edges that end on one short node apart, instead of drawing them on top of each other

  • #8659 6db148a Thanks @lazerg! - fix: Escape the diagram id in scoped styles so ids starting with a digit keep their styling

  • #8591 f36133e Thanks @dipak5501! - fix(flowchart): allow a space or tab between a node id and its @{ ... } shape data

  • #8842 fb28759 Thanks @pbrolin47! - fix(layered): keep an edge from a subgraph to its own node apart from other edges into that node instead of drawing it on top of them

  • #8848 ff6f2ec Thanks @pbrolin47! - fix(layered): draw every level of nested subgraphs when an outer subgraph is declared after the ones inside it, instead of its box hiding them

  • #8852 1525f22 Thanks @pbrolin47! - fix(layered): end an edge where it first meets a node's outline, so edges to a lightning-bolt node stop on the bolt instead of inside it

  • #8670 9b4d5b7 Thanks @filipsajdak! - fix(swimlane): an edge between two aligned nodes in different groups (lanes, or the subgraphs inside them) is now one straight line between their facing sides, when nothing is in the way

  • #8670 af46d84 Thanks @filipsajdak! - fix(swimlane): an edge from a decision diamond now leaves at the diamond's vertex, and an edge that ended against a node's corner now enters the middle of that face

  • #8668 8754b65 Thanks @filipsajdak! - fix(swimlane): size LR edge-label gaps from the same nodes the transform stretches by, so anchored nodes no longer add extra room

  • #8693 7df8903 Thanks @filipsajdak! - fix(swimlane): keep a straight connector straight when two edges meet one side of a box, and keep separated edges clear of the box's corners