Skip to content

termaid 0.14.1

Latest

Choose a tag to compare

@fasouto fasouto released this 25 Nov 18:56
· 149 commits to main since this release

Behavior changes

  • Flowchart: the extra passes that add space between crowded layers now run only on graphs of up to 24 edges. Larger flowcharts draw several times faster and can come out a little narrower or shorter, with a few more lines sharing a gap
  • Flowchart: unlabelled edges of one style into the same box share one line and one arrowhead, the way edges out of one box already do. A box with 60 incoming edges draws in 0.05 s where it took 1.3 s, on 13 rows where it took 195. Labelled edges keep their own line
  • Flowchart: a subgraph title wider than its nodes is clipped with … where the whole title would push the box onto the node or subgraph beside it. With nothing beside it the box still grows to show the whole title

Fixes

  • Flowchart: large diagrams draw faster. An 80-node flowchart went from 1.3 s to about 0.25 s
  • Flowchart: an edge whose path search ran out of steps is no longer drawn straight through other boxes. One more plain search finds a path around them
  • Fitting a diagram to a width picks the label width from the layout's measure and draws once or twice, not five or six times. Fitting a 67-line flowchart to 200 columns went from 5.8 s to 0.3 s
  • Flowchart: two subgraphs with links in both directions are drawn as two boxes. They were merged into one box and one title was lost
  • Flowchart: a subgraph box stretched by a long title no longer covers the node or subgraph next to it
  • Claude Code hook: each call starts faster, about 40 ms where it took 65 ms on a reply with no diagram. The version lookup, the parsers and dataclasses are no longer loaded before they are needed
  • Claude Code plugin: the hook tries python when python3 is missing or fails, which is how Python is usually installed on Windows. Windows itself is untested and needs Git Bash
  • --theme output sent to a pipe or a file is no longer wrapped at 80 columns, which broke every wider drawing
  • Class, ER, journey and kanban diagrams keep one column of padding inside their boxes. At padding_x=0, which fitting to a width tries last, text was written over the box borders or cut short. Three fitted drawings come out 2 to 9 columns wider and correct
  • Negative --padding-x, --padding-y and --gap are rejected by the CLI, and render() treats them as 0. A negative gap could raise IndexError
  • termaid file.mmd | head -1 exits quietly, without a broken pipe error
  • Textual widget and --tui: square brackets in a label, such as [/] or [red], are shown as written. Textual read them as markup and dropped them
  • --demo applies the drawing flags (--ascii, --width, --gap, the padding flags, --sharp-edges, --arrow-style)
  • Flowchart: a quoted or Markdown label written over several source lines draws on those lines, and bold and italic in Markdown labels reach the styled output