termaid 0.2.1__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. termaid-0.4.0/.gitignore +20 -0
  2. termaid-0.4.0/CHANGELOG.md +102 -0
  3. {termaid-0.2.1 → termaid-0.4.0}/PKG-INFO +56 -8
  4. {termaid-0.2.1 → termaid-0.4.0}/README.md +55 -7
  5. termaid-0.4.0/docs/gallery.md +2150 -0
  6. {termaid-0.2.1 → termaid-0.4.0}/pyproject.toml +1 -1
  7. termaid-0.4.0/scripts/generate_gallery.py +94 -0
  8. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/__init__.py +77 -8
  9. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/__main__.py +3 -1
  10. termaid-0.4.0/src/termaid/cli.py +435 -0
  11. termaid-0.4.0/src/termaid/ingest.py +186 -0
  12. termaid-0.4.0/src/termaid/layout/coordinates.py +51 -0
  13. termaid-0.4.0/src/termaid/layout/grid.py +194 -0
  14. termaid-0.4.0/src/termaid/layout/layers.py +443 -0
  15. termaid-0.4.0/src/termaid/layout/placement.py +295 -0
  16. termaid-0.4.0/src/termaid/layout/subgraphs.py +186 -0
  17. termaid-0.4.0/src/termaid/model/kanban.py +23 -0
  18. termaid-0.4.0/src/termaid/model/mindmap.py +23 -0
  19. termaid-0.4.0/src/termaid/model/quadrant.py +24 -0
  20. termaid-0.4.0/src/termaid/model/timeline.py +23 -0
  21. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/output/rich.py +73 -5
  22. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/flowchart.py +45 -3
  23. termaid-0.4.0/src/termaid/parser/kanban.py +71 -0
  24. termaid-0.4.0/src/termaid/parser/mindmap.py +81 -0
  25. termaid-0.4.0/src/termaid/parser/quadrant.py +67 -0
  26. termaid-0.4.0/src/termaid/parser/timeline.py +68 -0
  27. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/blockdiagram.py +21 -17
  28. termaid-0.4.0/src/termaid/renderer/canvas.py +301 -0
  29. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/classdiagram.py +28 -24
  30. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/draw.py +40 -16
  31. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/erdiagram.py +23 -20
  32. termaid-0.4.0/src/termaid/renderer/kanban.py +137 -0
  33. termaid-0.4.0/src/termaid/renderer/mindmap.py +294 -0
  34. termaid-0.4.0/src/termaid/renderer/quadrant.py +146 -0
  35. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/sequence.py +6 -4
  36. termaid-0.4.0/src/termaid/renderer/themes.py +179 -0
  37. termaid-0.4.0/src/termaid/renderer/timeline.py +65 -0
  38. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/routing/router.py +101 -2
  39. {termaid-0.2.1 → termaid-0.4.0}/tests/test_cli.py +51 -0
  40. {termaid-0.2.1 → termaid-0.4.0}/tests/test_corner_cases.py +163 -1
  41. {termaid-0.2.1 → termaid-0.4.0}/tests/test_edge_styles.py +10 -8
  42. termaid-0.4.0/tests/test_mindmap.py +102 -0
  43. termaid-0.4.0/tests/test_rendering_quality.py +236 -0
  44. termaid-0.2.1/.gitignore +0 -10
  45. termaid-0.2.1/CHANGELOG.md +0 -50
  46. termaid-0.2.1/demo/demo.tape +0 -68
  47. termaid-0.2.1/demo/erdiagram.mmd +0 -19
  48. termaid-0.2.1/demo/flowchart.mmd +0 -6
  49. termaid-0.2.1/demo/gitgraph.mmd +0 -10
  50. termaid-0.2.1/demo/sequence.mmd +0 -13
  51. termaid-0.2.1/src/termaid/cli.py +0 -166
  52. termaid-0.2.1/src/termaid/layout/grid.py +0 -881
  53. termaid-0.2.1/src/termaid/renderer/canvas.py +0 -254
  54. termaid-0.2.1/src/termaid/renderer/themes.py +0 -87
  55. termaid-0.2.1/tests/fixtures/expected/all_shapes.txt +0 -45
  56. termaid-0.2.1/tests/fixtures/expected/ampersand_both.txt +0 -13
  57. termaid-0.2.1/tests/fixtures/expected/backlink_complex.txt +0 -13
  58. termaid-0.2.1/tests/fixtures/expected/bidir_dotted.txt +0 -5
  59. termaid-0.2.1/tests/fixtures/expected/bidir_labeled.txt +0 -5
  60. termaid-0.2.1/tests/fixtures/expected/bidir_td.txt +0 -13
  61. termaid-0.2.1/tests/fixtures/expected/bidir_thick.txt +0 -5
  62. termaid-0.2.1/tests/fixtures/expected/bidirectional.txt +0 -5
  63. termaid-0.2.1/tests/fixtures/expected/blockdiagram/basic.txt +0 -7
  64. termaid-0.2.1/tests/fixtures/expected/blockdiagram/col_span.txt +0 -14
  65. termaid-0.2.1/tests/fixtures/expected/blockdiagram/grid.txt +0 -14
  66. termaid-0.2.1/tests/fixtures/expected/blockdiagram/links.txt +0 -7
  67. termaid-0.2.1/tests/fixtures/expected/branching.txt +0 -13
  68. termaid-0.2.1/tests/fixtures/expected/chain.txt +0 -5
  69. termaid-0.2.1/tests/fixtures/expected/classdiagram/annotation.txt +0 -21
  70. termaid-0.2.1/tests/fixtures/expected/classdiagram/basic.txt +0 -10
  71. termaid-0.2.1/tests/fixtures/expected/classdiagram/inheritance.txt +0 -20
  72. termaid-0.2.1/tests/fixtures/expected/classdiagram/relationships.txt +0 -19
  73. termaid-0.2.1/tests/fixtures/expected/comments.txt +0 -5
  74. termaid-0.2.1/tests/fixtures/expected/cycle.txt +0 -7
  75. termaid-0.2.1/tests/fixtures/expected/diamond.txt +0 -23
  76. termaid-0.2.1/tests/fixtures/expected/dotted_arrow.txt +0 -5
  77. termaid-0.2.1/tests/fixtures/expected/duplicate_labels.txt +0 -13
  78. termaid-0.2.1/tests/fixtures/expected/empty_graph.txt +0 -5
  79. termaid-0.2.1/tests/fixtures/expected/erdiagram/attributes.txt +0 -20
  80. termaid-0.2.1/tests/fixtures/expected/erdiagram/basic.txt +0 -19
  81. termaid-0.2.1/tests/fixtures/expected/erdiagram/dashed.txt +0 -12
  82. termaid-0.2.1/tests/fixtures/expected/erdiagram/multiple_entities.txt +0 -12
  83. termaid-0.2.1/tests/fixtures/expected/fan_in.txt +0 -13
  84. termaid-0.2.1/tests/fixtures/expected/fan_out.txt +0 -13
  85. termaid-0.2.1/tests/fixtures/expected/flowchart_keyword.txt +0 -5
  86. termaid-0.2.1/tests/fixtures/expected/gitgraph/cherry_pick.txt +0 -7
  87. termaid-0.2.1/tests/fixtures/expected/gitgraph/feature_branch.txt +0 -7
  88. termaid-0.2.1/tests/fixtures/expected/gitgraph/linear.txt +0 -4
  89. termaid-0.2.1/tests/fixtures/expected/gitgraph/tags.txt +0 -4
  90. termaid-0.2.1/tests/fixtures/expected/gitgraph/tb_direction.txt +0 -18
  91. termaid-0.2.1/tests/fixtures/expected/graph_bt.txt +0 -25
  92. termaid-0.2.1/tests/fixtures/expected/graph_rl.txt +0 -5
  93. termaid-0.2.1/tests/fixtures/expected/labeled_edges.txt +0 -13
  94. termaid-0.2.1/tests/fixtures/expected/large_graph.txt +0 -53
  95. termaid-0.2.1/tests/fixtures/expected/long_labels.txt +0 -7
  96. termaid-0.2.1/tests/fixtures/expected/mermaid_comprehensive.txt +0 -13
  97. termaid-0.2.1/tests/fixtures/expected/mixed_arrow_styles.txt +0 -5
  98. termaid-0.2.1/tests/fixtures/expected/multiple_links.txt +0 -21
  99. termaid-0.2.1/tests/fixtures/expected/no_arrow_dotted.txt +0 -5
  100. termaid-0.2.1/tests/fixtures/expected/no_arrow_solid.txt +0 -5
  101. termaid-0.2.1/tests/fixtures/expected/no_arrow_thick.txt +0 -5
  102. termaid-0.2.1/tests/fixtures/expected/node_with_label.txt +0 -5
  103. termaid-0.2.1/tests/fixtures/expected/parallelogram.txt +0 -5
  104. termaid-0.2.1/tests/fixtures/expected/self_ref_with_edge.txt +0 -5
  105. termaid-0.2.1/tests/fixtures/expected/self_reference.txt +0 -5
  106. termaid-0.2.1/tests/fixtures/expected/semicolons.txt +0 -5
  107. termaid-0.2.1/tests/fixtures/expected/sequence/arrows.txt +0 -16
  108. termaid-0.2.1/tests/fixtures/expected/sequence/autonumber.txt +0 -12
  109. termaid-0.2.1/tests/fixtures/expected/sequence/basic.txt +0 -12
  110. termaid-0.2.1/tests/fixtures/expected/sequence/multiline_notes.txt +0 -19
  111. termaid-0.2.1/tests/fixtures/expected/sequence/nested_blocks.txt +0 -22
  112. termaid-0.2.1/tests/fixtures/expected/sequence/notes.txt +0 -16
  113. termaid-0.2.1/tests/fixtures/expected/sequence/participant_kinds.txt +0 -14
  114. termaid-0.2.1/tests/fixtures/expected/sequence/self_message.txt +0 -12
  115. termaid-0.2.1/tests/fixtures/expected/simple_lr.txt +0 -5
  116. termaid-0.2.1/tests/fixtures/expected/simple_tb.txt +0 -13
  117. termaid-0.2.1/tests/fixtures/expected/simple_td.txt +0 -13
  118. termaid-0.2.1/tests/fixtures/expected/single_node.txt +0 -5
  119. termaid-0.2.1/tests/fixtures/expected/statediagram/basic.txt +0 -21
  120. termaid-0.2.1/tests/fixtures/expected/statediagram/choice.txt +0 -31
  121. termaid-0.2.1/tests/fixtures/expected/statediagram/composite.txt +0 -28
  122. termaid-0.2.1/tests/fixtures/expected/statediagram/start_end.txt +0 -29
  123. termaid-0.2.1/tests/fixtures/expected/subgraph_basic.txt +0 -12
  124. termaid-0.2.1/tests/fixtures/expected/subgraph_nested.txt +0 -27
  125. termaid-0.2.1/tests/fixtures/expected/subgraph_three_levels.txt +0 -24
  126. termaid-0.2.1/tests/fixtures/expected/subgraph_two_separate.txt +0 -12
  127. termaid-0.2.1/tests/fixtures/expected/subgraph_with_labels.txt +0 -12
  128. termaid-0.2.1/tests/fixtures/expected/thick_arrow.txt +0 -5
  129. termaid-0.2.1/tests/fixtures/expected/three_nodes_inline.txt +0 -5
  130. termaid-0.2.1/tests/fixtures/expected/trapezoid.txt +0 -5
  131. termaid-0.2.1/tests/fixtures/expected/two_roots.txt +0 -13
  132. termaid-0.2.1/tests/fixtures/expected/unicode_labels.txt +0 -5
  133. {termaid-0.2.1 → termaid-0.4.0}/.github/workflows/ci.yml +0 -0
  134. {termaid-0.2.1 → termaid-0.4.0}/.github/workflows/publish.yml +0 -0
  135. {termaid-0.2.1 → termaid-0.4.0}/CONTRIBUTING.md +0 -0
  136. {termaid-0.2.1 → termaid-0.4.0}/LICENSE +0 -0
  137. {termaid-0.2.1 → termaid-0.4.0}/demo/termaid-demo.gif +0 -0
  138. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/graph/__init__.py +0 -0
  139. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/graph/model.py +0 -0
  140. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/graph/shapes.py +0 -0
  141. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/layout/__init__.py +0 -0
  142. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/__init__.py +0 -0
  143. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/blockdiagram.py +0 -0
  144. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/classdiagram.py +0 -0
  145. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/erdiagram.py +0 -0
  146. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/gitgraph.py +0 -0
  147. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/piechart.py +0 -0
  148. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/sequence.py +0 -0
  149. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/model/treemap.py +0 -0
  150. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/output/__init__.py +0 -0
  151. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/output/text.py +0 -0
  152. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/output/widget.py +0 -0
  153. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/__init__.py +0 -0
  154. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/blockdiagram.py +0 -0
  155. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/classdiagram.py +0 -0
  156. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/erdiagram.py +0 -0
  157. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/gitgraph.py +0 -0
  158. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/piechart.py +0 -0
  159. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/sequence.py +0 -0
  160. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/statediagram.py +0 -0
  161. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/tokens.py +0 -0
  162. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/parser/treemap.py +0 -0
  163. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/py.typed +0 -0
  164. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/__init__.py +0 -0
  165. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/charset.py +0 -0
  166. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/gitgraph.py +0 -0
  167. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/piechart.py +0 -0
  168. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/shapes/__init__.py +0 -0
  169. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/renderer/treemap.py +0 -0
  170. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/routing/__init__.py +0 -0
  171. {termaid-0.2.1 → termaid-0.4.0}/src/termaid/routing/pathfinder.py +0 -0
  172. {termaid-0.2.1 → termaid-0.4.0}/tests/__init__.py +0 -0
  173. {termaid-0.2.1 → termaid-0.4.0}/tests/conftest.py +0 -0
  174. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/blockdiagram/basic.mmd +0 -0
  175. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/blockdiagram/col_span.mmd +0 -0
  176. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/blockdiagram/grid.mmd +0 -0
  177. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/blockdiagram/links.mmd +0 -0
  178. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/classdiagram/annotation.mmd +0 -0
  179. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/classdiagram/basic.mmd +0 -0
  180. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/classdiagram/inheritance.mmd +0 -0
  181. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/classdiagram/relationships.mmd +0 -0
  182. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/erdiagram/attributes.mmd +0 -0
  183. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/erdiagram/basic.mmd +0 -0
  184. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/erdiagram/dashed.mmd +0 -0
  185. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/erdiagram/multiple_entities.mmd +0 -0
  186. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/all_shapes.mmd +0 -0
  187. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/ampersand_both.mmd +0 -0
  188. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/backlink_complex.mmd +0 -0
  189. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/bidir_dotted.mmd +0 -0
  190. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/bidir_labeled.mmd +0 -0
  191. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/bidir_td.mmd +0 -0
  192. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/bidir_thick.mmd +0 -0
  193. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/bidirectional.mmd +0 -0
  194. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/branching.mmd +0 -0
  195. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/chain.mmd +0 -0
  196. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/comments.mmd +0 -0
  197. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/cycle.mmd +0 -0
  198. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/diamond.mmd +0 -0
  199. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/dotted_arrow.mmd +0 -0
  200. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/duplicate_labels.mmd +0 -0
  201. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/empty_graph.mmd +0 -0
  202. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/fan_in.mmd +0 -0
  203. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/fan_out.mmd +0 -0
  204. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/flowchart_keyword.mmd +0 -0
  205. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/graph_bt.mmd +0 -0
  206. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/graph_rl.mmd +0 -0
  207. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/labeled_edges.mmd +0 -0
  208. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/large_graph.mmd +0 -0
  209. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/long_labels.mmd +0 -0
  210. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/mermaid_comprehensive.mmd +0 -0
  211. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/mixed_arrow_styles.mmd +0 -0
  212. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/multiple_links.mmd +0 -0
  213. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/no_arrow_dotted.mmd +0 -0
  214. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/no_arrow_solid.mmd +0 -0
  215. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/no_arrow_thick.mmd +0 -0
  216. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/node_with_label.mmd +0 -0
  217. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/parallelogram.mmd +0 -0
  218. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/self_ref_with_edge.mmd +0 -0
  219. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/self_reference.mmd +0 -0
  220. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/semicolons.mmd +0 -0
  221. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/simple_lr.mmd +0 -0
  222. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/simple_tb.mmd +0 -0
  223. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/simple_td.mmd +0 -0
  224. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/single_node.mmd +0 -0
  225. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/subgraph_basic.mmd +0 -0
  226. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/subgraph_nested.mmd +0 -0
  227. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/subgraph_three_levels.mmd +0 -0
  228. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/subgraph_two_separate.mmd +0 -0
  229. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/subgraph_with_labels.mmd +0 -0
  230. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/thick_arrow.mmd +0 -0
  231. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/three_nodes_inline.mmd +0 -0
  232. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/trapezoid.mmd +0 -0
  233. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/two_roots.mmd +0 -0
  234. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/flowcharts/unicode_labels.mmd +0 -0
  235. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/gitgraph/cherry_pick.mmd +0 -0
  236. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/gitgraph/feature_branch.mmd +0 -0
  237. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/gitgraph/linear.mmd +0 -0
  238. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/gitgraph/tags.mmd +0 -0
  239. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/gitgraph/tb_direction.mmd +0 -0
  240. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/arrows.mmd +0 -0
  241. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/autonumber.mmd +0 -0
  242. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/basic.mmd +0 -0
  243. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/multiline_notes.mmd +0 -0
  244. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/nested_blocks.mmd +0 -0
  245. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/notes.mmd +0 -0
  246. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/participant_kinds.mmd +0 -0
  247. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/sequence/self_message.mmd +0 -0
  248. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/statediagram/basic.mmd +0 -0
  249. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/statediagram/choice.mmd +0 -0
  250. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/statediagram/composite.mmd +0 -0
  251. {termaid-0.2.1 → termaid-0.4.0}/tests/fixtures/statediagram/start_end.mmd +0 -0
  252. {termaid-0.2.1 → termaid-0.4.0}/tests/test_blockdiagram.py +0 -0
  253. {termaid-0.2.1 → termaid-0.4.0}/tests/test_classdiagram.py +0 -0
  254. {termaid-0.2.1 → termaid-0.4.0}/tests/test_erdiagram.py +0 -0
  255. {termaid-0.2.1 → termaid-0.4.0}/tests/test_gitgraph.py +0 -0
  256. {termaid-0.2.1 → termaid-0.4.0}/tests/test_integration.py +0 -0
  257. {termaid-0.2.1 → termaid-0.4.0}/tests/test_layout.py +0 -0
  258. {termaid-0.2.1 → termaid-0.4.0}/tests/test_parser_comprehensive.py +0 -0
  259. {termaid-0.2.1 → termaid-0.4.0}/tests/test_piechart.py +0 -0
  260. {termaid-0.2.1 → termaid-0.4.0}/tests/test_renderer.py +0 -0
  261. {termaid-0.2.1 → termaid-0.4.0}/tests/test_routing.py +0 -0
  262. {termaid-0.2.1 → termaid-0.4.0}/tests/test_sequence.py +0 -0
  263. {termaid-0.2.1 → termaid-0.4.0}/tests/test_shapes.py +0 -0
  264. {termaid-0.2.1 → termaid-0.4.0}/tests/test_snapshots.py +0 -0
  265. {termaid-0.2.1 → termaid-0.4.0}/tests/test_state_diagram.py +0 -0
  266. {termaid-0.2.1 → termaid-0.4.0}/tests/test_themes.py +0 -0
  267. {termaid-0.2.1 → termaid-0.4.0}/tests/test_treemap.py +0 -0
  268. {termaid-0.2.1 → termaid-0.4.0}/tests/test_warnings.py +0 -0
  269. {termaid-0.2.1 → termaid-0.4.0}/uv.lock +0 -0
@@ -0,0 +1,20 @@
1
+ .DS_Store
2
+ __pycache__/
3
+ *.pyc
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .venv/
8
+ .pytest_cache/
9
+ # Scratch diagram files in root
10
+ /*.mmd
11
+
12
+ # Demo source files (tape scripts, scratch mmd) — keep only the gif
13
+ demo/*.tape
14
+ demo/*.mmd
15
+ demo/.DS_Store
16
+
17
+ # Other scratch files
18
+ .coverage
19
+ *.txt
20
+ screenshot.png
@@ -0,0 +1,102 @@
1
+ # Changelog
2
+
3
+ ## 0.4.0 (2026-03-26)
4
+
5
+ ### New diagram types
6
+ - **Timeline** (`timeline` syntax): vertical event list with sections and details
7
+ - **Kanban** (`kanban` syntax): column-based task boards with cards
8
+ - **Quadrant chart** (`quadrantChart` syntax): 2x2 grid with plotted data points
9
+ - 13 diagram types now supported
10
+
11
+ ### New themes
12
+ - **Solid-background themes**: `gruvbox`, `monokai`, `dracula`, `nord`, `solarized` with filled region backgrounds
13
+ - Per-section coloring: kanban columns, quadrant regions, and timeline sections get distinct colors
14
+ - Depth shading: kanban cards use a lighter shade of the column color
15
+ - `--themes` flag to list all available themes
16
+
17
+ ### New features
18
+ - **JSON ingest** (`--json TYPE`): pipe structured data and render as treemap, pie, mindmap, or flowchart
19
+ - **`--demo [TYPE]`**: render sample diagrams for any diagram type
20
+ - **`padding_x` and `gap`** now supported by sequence, class, ER, block, and kanban renderers
21
+ - Parser fix: edge labels with quoted text (`-->|"Yes"|`) no longer rendered as spaces
22
+
23
+ ## 0.3.0 (2026-03-25)
24
+
25
+ ### Rendering engine overhaul
26
+
27
+ - **Directional canvas**: junction characters derived from direction bitfields instead of a lookup table, producing correct junctions in all cases
28
+ - **Gap expansion**: crossing edges between layers automatically get extra routing space so they no longer overlap
29
+ - **Endpoint spreading**: overlapping arrows on the same node border are spread apart so all edges are visible
30
+ - **Subgraph separation**: nodes stay inside their declared subgraph even with cross-boundary edges
31
+ - **Routing bias**: edges prefer the natural flow direction, avoiding tight corners next to node borders
32
+ - **Label separation**: edge labels from different edges no longer merge onto the same output line
33
+ - **Parser fix**: arrow syntax inside quoted labels (`A["has --> arrow"]`) no longer confuses the parser
34
+
35
+ ### New diagram type
36
+
37
+ - **Mindmaps** (`mindmap` syntax): indentation-based tree layout with automatic overflow to the left for crowded roots, rounded/sharp/ASCII branch characters
38
+
39
+ ### CLI improvements
40
+
41
+ - `--width N`: set max output width, re-renders with smaller gap/padding if exceeded
42
+ - `-o FILE` / `--output FILE`: write output to file instead of stdout
43
+ - `--show-ids`: show node IDs alongside labels for debugging
44
+ - `--no-auto-fit`: disable automatic terminal width compaction
45
+ - `NO_COLOR` environment variable respected
46
+ - `--version` reads from package metadata instead of hardcoded string
47
+ - Auto-fit: diagrams that exceed terminal width are automatically re-rendered with compact settings
48
+
49
+ ### Code quality
50
+
51
+ - Layout engine split from 1 file (1095 lines) into 5 focused modules
52
+ - 1066 tests, 0 failures, 0 xfails (up from 1004 tests, 5 xfails)
53
+ - Gallery script and docs/gallery.md with all 78 fixture diagrams
54
+
55
+ ## 0.2.1 (2026-03-25)
56
+
57
+ - Add `--gap` CLI flag and `gap` parameter for compact diagram spacing
58
+ - Document wide LR diagram workarounds in README
59
+
60
+ ## 0.2.0 (2026-03-20)
61
+
62
+ - Add pie chart support (`pie` syntax, rendered as horizontal bar charts)
63
+ - Add treemap support (`treemap-beta` syntax with nested sections and proportional sizing)
64
+ - 9 diagram types now supported
65
+
66
+ ## 0.1.3 (2026-03-04)
67
+
68
+ - Add `--tui` flag to CLI for interactive TUI viewer
69
+ - Update demo GIF with pipe and TUI examples
70
+
71
+ ## 0.1.1 (2026-03-04)
72
+
73
+ - Rename package from `termmaid` to `termaid`
74
+
75
+ ## 0.1.0 (2026-03-04)
76
+
77
+ Initial release.
78
+
79
+ ### Features
80
+
81
+ - **7 diagram types:** flowcharts, sequence, class, ER, state, block, and git graphs
82
+ - **Flowcharts** (`graph`/`flowchart`) with all 5 directions (`LR`, `RL`, `TD`/`TB`, `BT`)
83
+ - **Sequence diagrams** with participants, actors, solid/dashed messages
84
+ - **Class diagrams** with attributes, methods, visibility, and 6 relationship types
85
+ - **ER diagrams** with cardinality, attributes, keys, and relationship labels
86
+ - **State diagrams** (`stateDiagram-v2`) with transitions, composite states, stereotypes
87
+ - **Block diagrams** (`block-beta`) with column layout and spanning
88
+ - **Git graphs** (`gitGraph`) with branches, merges, cherry-picks, tags, and 3 orientations
89
+ - 14 flowchart node shapes: rectangle, rounded, stadium, subroutine, diamond, hexagon, circle, double circle, asymmetric, cylinder, parallelogram, parallelogram alt, trapezoid, trapezoid alt
90
+ - 3 edge styles: solid, dotted, thick
91
+ - Bidirectional edges (`<-->`, `<-.->`, `<==>`)
92
+ - Edge labels (`-->|label|`)
93
+ - Subgraphs with nesting and cross-boundary edges
94
+ - `classDef`, `style`, and `linkStyle` directives
95
+ - `@{shape}` node syntax
96
+ - Link length control (`--->`, `---->`)
97
+ - Markdown labels (`**bold**`, `*italic*`)
98
+ - ASCII mode (`--ascii`) for terminals without Unicode support
99
+ - Colored output via Rich (`--color`) with 6 built-in themes
100
+ - Textual widget for TUI applications
101
+ - CLI tool with stdin/file input
102
+ - Pure Python, zero runtime dependencies
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: termaid
3
- Version: 0.2.1
3
+ Version: 0.4.0
4
4
  Summary: Render Mermaid diagrams in your terminal or Python app
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -38,8 +38,9 @@ Description-Content-Type: text/markdown
38
38
 
39
39
  ## Features
40
40
 
41
- - **9 diagram types:** flowcharts, sequence, class, ER, state, block, git graphs, pie charts, and treemaps
41
+ - **13 diagram types:** flowcharts, sequence, class, ER, state, block, git graphs, pie charts, treemaps, mindmaps, timelines, kanban boards, and quadrant charts
42
42
  - **Zero dependencies:** pure Python, nothing to install beyond the package itself
43
+ - **Terminal-aware:** auto-fits diagrams to terminal width with progressive compaction
43
44
  - **Rich and Textual integration:** colored output and TUI widgets with optional extras
44
45
  - **6 color themes:** default, terra, neon, mono, amber, phosphor
45
46
  - **ASCII fallback:** works on any terminal, even the most basic ones
@@ -402,17 +403,48 @@ treemap-beta
402
403
 
403
404
  **Features:** nested sections via indentation, `"label": value` syntax, proportional sizing, `%%` comments
404
405
 
406
+ ### Mindmaps
407
+
408
+ ```mermaid
409
+ mindmap
410
+ Project
411
+ Design
412
+ Wireframes
413
+ Mockups
414
+ Development
415
+ Frontend
416
+ Backend
417
+ Testing
418
+ ```
419
+
420
+ ```
421
+ ╭─ Design ──╭─ Wireframes
422
+ │ ╰─ Mockups
423
+ Project ──├─ Development ──╭─ Frontend
424
+ │ ╰─ Backend
425
+ ╰─ Testing
426
+ ```
427
+
428
+ **Features:** indentation-based nesting, automatic overflow to the left when many children, rounded/sharp/ASCII branch characters, Mermaid shape markers stripped (`(round)`, `[square]`, `{{hexagon}}`, `)cloud(`)
429
+
405
430
  ## CLI options
406
431
 
407
432
  | Flag | Description |
408
433
  |------|-------------|
409
- | `--tui` | Interactive TUI viewer (requires `pip install termaid[tui]`) |
410
434
  | `--ascii` | ASCII-only output (no Unicode box-drawing) |
411
- | `--theme NAME` | Color theme: `default`, `terra`, `neon`, `mono`, `amber`, `phosphor` (requires `pip install termaid[rich]`) |
435
+ | `--theme NAME` | Color theme (requires `pip install termaid[rich]`). Use `--themes` to list |
436
+ | `--themes` | List all available color themes |
437
+ | `--demo [TYPE]` | Render sample diagrams (`all`, `flowchart`, `sequence`, `mindmap`, etc.) |
412
438
  | `--padding-x N` | Horizontal padding inside boxes (default: 4) |
413
439
  | `--padding-y N` | Vertical padding inside boxes (default: 2) |
414
440
  | `--gap N` | Space between nodes (default: 4). Use `1` or `2` for compact diagrams |
441
+ | `--width N` | Max output width. Re-renders with smaller gap/padding if exceeded |
442
+ | `--no-auto-fit` | Disable automatic compaction when diagram exceeds terminal width |
415
443
  | `--sharp-edges` | Sharp corners on edge turns instead of rounded |
444
+ | `-o FILE` | Write output to file instead of stdout |
445
+ | `--show-ids` | Show node IDs alongside labels for debugging (e.g. `myId: My Label`) |
446
+ | `--json TYPE` | Pipe JSON/tabular data and render as `treemap`, `pie`, `mindmap`, or `flowchart` |
447
+ | `--tui` | Interactive TUI viewer (requires `pip install termaid[tui]`) |
416
448
 
417
449
  ## Python API
418
450
 
@@ -438,7 +470,9 @@ class MyApp(App):
438
470
 
439
471
  ## Themes
440
472
 
441
- Six built-in themes for `--theme` / `render_rich()`:
473
+ 11 built-in themes for `--theme` / `render_rich()`. Run `termaid --themes` to list them.
474
+
475
+ **Text themes** (foreground colors only):
442
476
 
443
477
  | Theme | Colors | Description |
444
478
  |-------|--------|-------------|
@@ -449,6 +483,16 @@ Six built-in themes for `--theme` / `render_rich()`:
449
483
  | `amber` | ![#FFB000](https://placehold.co/12x12/FFB000/FFB000.png) ![#FFD080](https://placehold.co/12x12/FFD080/FFD080.png) ![#FFD580](https://placehold.co/12x12/FFD580/FFD580.png) | Amber/gold CRT-style |
450
484
  | `phosphor` | ![#33FF33](https://placehold.co/12x12/33FF33/33FF33.png) ![#66FF66](https://placehold.co/12x12/66FF66/66FF66.png) ![#AAFFAA](https://placehold.co/12x12/AAFFAA/AAFFAA.png) | Green phosphor terminal-style |
451
485
 
486
+ **Solid themes** (filled backgrounds with foreground colors):
487
+
488
+ | Theme | Colors | Description |
489
+ |-------|--------|-------------|
490
+ | `gruvbox` | ![#282828](https://placehold.co/12x12/282828/282828.png) ![#FABD2F](https://placehold.co/12x12/FABD2F/FABD2F.png) ![#FE8019](https://placehold.co/12x12/FE8019/FE8019.png) | Gruvbox dark palette |
491
+ | `monokai` | ![#272822](https://placehold.co/12x12/272822/272822.png) ![#F92672](https://placehold.co/12x12/F92672/F92672.png) ![#A6E22E](https://placehold.co/12x12/A6E22E/A6E22E.png) | Monokai dark with pink/green accents |
492
+ | `dracula` | ![#282A36](https://placehold.co/12x12/282A36/282A36.png) ![#BD93F9](https://placehold.co/12x12/BD93F9/BD93F9.png) ![#50FA7B](https://placehold.co/12x12/50FA7B/50FA7B.png) | Dracula purple/pink/green palette |
493
+ | `nord` | ![#2E3440](https://placehold.co/12x12/2E3440/2E3440.png) ![#88C0D0](https://placehold.co/12x12/88C0D0/88C0D0.png) ![#A3BE8C](https://placehold.co/12x12/A3BE8C/A3BE8C.png) | Nord muted blue/cyan arctic palette |
494
+ | `solarized` | ![#002B36](https://placehold.co/12x12/002B36/002B36.png) ![#268BD2](https://placehold.co/12x12/268BD2/268BD2.png) ![#B58900](https://placehold.co/12x12/B58900/B58900.png) | Solarized dark blue/yellow/cyan |
495
+
452
496
  ## Optional extras
453
497
 
454
498
  ```bash
@@ -458,9 +502,13 @@ pip install termaid[textual] # Textual TUI widget
458
502
 
459
503
  ## Limitations
460
504
 
461
- - **Layout engine is approximate.** Node positioning uses a grid-based barycenter heuristic. Graphs with many cross-layer edges may still produce crossings.
462
- - **Manhattan-only edge routing.** Edges use A* pathfinding on a grid. Very dense graphs may have overlapping edges.
463
- - **Wide LR diagrams.** Long horizontal chains can exceed terminal width. Use `--gap 1` or `--padding-x 0` for compact output, or pipe through `less -S` for horizontal scrolling.
505
+ - **Layout engine is approximate.** Node positioning uses a grid-based barycenter heuristic. Very dense graphs may still produce some edge crossings.
506
+ - **Manhattan-only edge routing.** Edges use A* pathfinding on a grid. The engine auto-expands gaps for crossing edges and biases toward flow-aligned routes.
507
+ - **Wide diagrams.** The CLI auto-compacts when the diagram exceeds terminal width. For very wide LR chains, use `--width N`, `--gap 1`, or pipe through `less -S`.
508
+
509
+ ## Gallery
510
+
511
+ See [docs/gallery.md](docs/gallery.md) for rendered examples of all 78 supported diagram fixtures.
464
512
 
465
513
  ## Acknowledgements
466
514
 
@@ -10,8 +10,9 @@
10
10
 
11
11
  ## Features
12
12
 
13
- - **9 diagram types:** flowcharts, sequence, class, ER, state, block, git graphs, pie charts, and treemaps
13
+ - **13 diagram types:** flowcharts, sequence, class, ER, state, block, git graphs, pie charts, treemaps, mindmaps, timelines, kanban boards, and quadrant charts
14
14
  - **Zero dependencies:** pure Python, nothing to install beyond the package itself
15
+ - **Terminal-aware:** auto-fits diagrams to terminal width with progressive compaction
15
16
  - **Rich and Textual integration:** colored output and TUI widgets with optional extras
16
17
  - **6 color themes:** default, terra, neon, mono, amber, phosphor
17
18
  - **ASCII fallback:** works on any terminal, even the most basic ones
@@ -374,17 +375,48 @@ treemap-beta
374
375
 
375
376
  **Features:** nested sections via indentation, `"label": value` syntax, proportional sizing, `%%` comments
376
377
 
378
+ ### Mindmaps
379
+
380
+ ```mermaid
381
+ mindmap
382
+ Project
383
+ Design
384
+ Wireframes
385
+ Mockups
386
+ Development
387
+ Frontend
388
+ Backend
389
+ Testing
390
+ ```
391
+
392
+ ```
393
+ ╭─ Design ──╭─ Wireframes
394
+ │ ╰─ Mockups
395
+ Project ──├─ Development ──╭─ Frontend
396
+ │ ╰─ Backend
397
+ ╰─ Testing
398
+ ```
399
+
400
+ **Features:** indentation-based nesting, automatic overflow to the left when many children, rounded/sharp/ASCII branch characters, Mermaid shape markers stripped (`(round)`, `[square]`, `{{hexagon}}`, `)cloud(`)
401
+
377
402
  ## CLI options
378
403
 
379
404
  | Flag | Description |
380
405
  |------|-------------|
381
- | `--tui` | Interactive TUI viewer (requires `pip install termaid[tui]`) |
382
406
  | `--ascii` | ASCII-only output (no Unicode box-drawing) |
383
- | `--theme NAME` | Color theme: `default`, `terra`, `neon`, `mono`, `amber`, `phosphor` (requires `pip install termaid[rich]`) |
407
+ | `--theme NAME` | Color theme (requires `pip install termaid[rich]`). Use `--themes` to list |
408
+ | `--themes` | List all available color themes |
409
+ | `--demo [TYPE]` | Render sample diagrams (`all`, `flowchart`, `sequence`, `mindmap`, etc.) |
384
410
  | `--padding-x N` | Horizontal padding inside boxes (default: 4) |
385
411
  | `--padding-y N` | Vertical padding inside boxes (default: 2) |
386
412
  | `--gap N` | Space between nodes (default: 4). Use `1` or `2` for compact diagrams |
413
+ | `--width N` | Max output width. Re-renders with smaller gap/padding if exceeded |
414
+ | `--no-auto-fit` | Disable automatic compaction when diagram exceeds terminal width |
387
415
  | `--sharp-edges` | Sharp corners on edge turns instead of rounded |
416
+ | `-o FILE` | Write output to file instead of stdout |
417
+ | `--show-ids` | Show node IDs alongside labels for debugging (e.g. `myId: My Label`) |
418
+ | `--json TYPE` | Pipe JSON/tabular data and render as `treemap`, `pie`, `mindmap`, or `flowchart` |
419
+ | `--tui` | Interactive TUI viewer (requires `pip install termaid[tui]`) |
388
420
 
389
421
  ## Python API
390
422
 
@@ -410,7 +442,9 @@ class MyApp(App):
410
442
 
411
443
  ## Themes
412
444
 
413
- Six built-in themes for `--theme` / `render_rich()`:
445
+ 11 built-in themes for `--theme` / `render_rich()`. Run `termaid --themes` to list them.
446
+
447
+ **Text themes** (foreground colors only):
414
448
 
415
449
  | Theme | Colors | Description |
416
450
  |-------|--------|-------------|
@@ -421,6 +455,16 @@ Six built-in themes for `--theme` / `render_rich()`:
421
455
  | `amber` | ![#FFB000](https://placehold.co/12x12/FFB000/FFB000.png) ![#FFD080](https://placehold.co/12x12/FFD080/FFD080.png) ![#FFD580](https://placehold.co/12x12/FFD580/FFD580.png) | Amber/gold CRT-style |
422
456
  | `phosphor` | ![#33FF33](https://placehold.co/12x12/33FF33/33FF33.png) ![#66FF66](https://placehold.co/12x12/66FF66/66FF66.png) ![#AAFFAA](https://placehold.co/12x12/AAFFAA/AAFFAA.png) | Green phosphor terminal-style |
423
457
 
458
+ **Solid themes** (filled backgrounds with foreground colors):
459
+
460
+ | Theme | Colors | Description |
461
+ |-------|--------|-------------|
462
+ | `gruvbox` | ![#282828](https://placehold.co/12x12/282828/282828.png) ![#FABD2F](https://placehold.co/12x12/FABD2F/FABD2F.png) ![#FE8019](https://placehold.co/12x12/FE8019/FE8019.png) | Gruvbox dark palette |
463
+ | `monokai` | ![#272822](https://placehold.co/12x12/272822/272822.png) ![#F92672](https://placehold.co/12x12/F92672/F92672.png) ![#A6E22E](https://placehold.co/12x12/A6E22E/A6E22E.png) | Monokai dark with pink/green accents |
464
+ | `dracula` | ![#282A36](https://placehold.co/12x12/282A36/282A36.png) ![#BD93F9](https://placehold.co/12x12/BD93F9/BD93F9.png) ![#50FA7B](https://placehold.co/12x12/50FA7B/50FA7B.png) | Dracula purple/pink/green palette |
465
+ | `nord` | ![#2E3440](https://placehold.co/12x12/2E3440/2E3440.png) ![#88C0D0](https://placehold.co/12x12/88C0D0/88C0D0.png) ![#A3BE8C](https://placehold.co/12x12/A3BE8C/A3BE8C.png) | Nord muted blue/cyan arctic palette |
466
+ | `solarized` | ![#002B36](https://placehold.co/12x12/002B36/002B36.png) ![#268BD2](https://placehold.co/12x12/268BD2/268BD2.png) ![#B58900](https://placehold.co/12x12/B58900/B58900.png) | Solarized dark blue/yellow/cyan |
467
+
424
468
  ## Optional extras
425
469
 
426
470
  ```bash
@@ -430,9 +474,13 @@ pip install termaid[textual] # Textual TUI widget
430
474
 
431
475
  ## Limitations
432
476
 
433
- - **Layout engine is approximate.** Node positioning uses a grid-based barycenter heuristic. Graphs with many cross-layer edges may still produce crossings.
434
- - **Manhattan-only edge routing.** Edges use A* pathfinding on a grid. Very dense graphs may have overlapping edges.
435
- - **Wide LR diagrams.** Long horizontal chains can exceed terminal width. Use `--gap 1` or `--padding-x 0` for compact output, or pipe through `less -S` for horizontal scrolling.
477
+ - **Layout engine is approximate.** Node positioning uses a grid-based barycenter heuristic. Very dense graphs may still produce some edge crossings.
478
+ - **Manhattan-only edge routing.** Edges use A* pathfinding on a grid. The engine auto-expands gaps for crossing edges and biases toward flow-aligned routes.
479
+ - **Wide diagrams.** The CLI auto-compacts when the diagram exceeds terminal width. For very wide LR chains, use `--width N`, `--gap 1`, or pipe through `less -S`.
480
+
481
+ ## Gallery
482
+
483
+ See [docs/gallery.md](docs/gallery.md) for rendered examples of all 78 supported diagram fixtures.
436
484
 
437
485
  ## Acknowledgements
438
486