maccha 0.1.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 (454) hide show
  1. maccha-0.1.0/.gitattributes +4 -0
  2. maccha-0.1.0/.gitignore +20 -0
  3. maccha-0.1.0/CHANGELOG.md +127 -0
  4. maccha-0.1.0/Cargo.lock +1444 -0
  5. maccha-0.1.0/Cargo.toml +122 -0
  6. maccha-0.1.0/LICENSE +21 -0
  7. maccha-0.1.0/PKG-INFO +88 -0
  8. maccha-0.1.0/README.md +122 -0
  9. maccha-0.1.0/assets/fonts/NotoSansKhmer/NotoSansKhmer-Bold.ttf +0 -0
  10. maccha-0.1.0/assets/fonts/NotoSansKhmer/NotoSansKhmer-Regular.ttf +0 -0
  11. maccha-0.1.0/assets/fonts/NotoSansKhmer/OFL.txt +93 -0
  12. maccha-0.1.0/assets/fonts/SOURCES.md +10 -0
  13. maccha-0.1.0/benches/baselines/m0-arm64-Darwin.json +228 -0
  14. maccha-0.1.0/benches/baselines/m0-dense-arm64-Darwin.json +17 -0
  15. maccha-0.1.0/benches/baselines/m25-split-dense-outputs-arm64-Darwin.json +105 -0
  16. maccha-0.1.0/benches/fixtures/architecture_medium.mmd +5 -0
  17. maccha-0.1.0/benches/fixtures/block_medium.mmd +3 -0
  18. maccha-0.1.0/benches/fixtures/c4_medium.mmd +13 -0
  19. maccha-0.1.0/benches/fixtures/class.mmd +13 -0
  20. maccha-0.1.0/benches/fixtures/class_medium.mmd +75 -0
  21. maccha-0.1.0/benches/fixtures/class_tiny.mmd +4 -0
  22. maccha-0.1.0/benches/fixtures/er_medium.mmd +27 -0
  23. maccha-0.1.0/benches/fixtures/expanded/architecture_sys.mmd +13 -0
  24. maccha-0.1.0/benches/fixtures/expanded/block_architecture.mmd +6 -0
  25. maccha-0.1.0/benches/fixtures/expanded/class_inheritance_mix.mmd +27 -0
  26. maccha-0.1.0/benches/fixtures/expanded/class_relations_dense.mmd +17 -0
  27. maccha-0.1.0/benches/fixtures/expanded/er_inventory_large.mmd +41 -0
  28. maccha-0.1.0/benches/fixtures/expanded/flowchart_bipartite_dense.mmd +30 -0
  29. maccha-0.1.0/benches/fixtures/expanded/flowchart_starburst.mmd +31 -0
  30. maccha-0.1.0/benches/fixtures/expanded/flowchart_subgraph_cross.mmd +24 -0
  31. maccha-0.1.0/benches/fixtures/expanded/gantt_release_plan.mmd +12 -0
  32. maccha-0.1.0/benches/fixtures/expanded/gitgraph_hotfix.mmd +13 -0
  33. maccha-0.1.0/benches/fixtures/expanded/journey_onboarding.mmd +14 -0
  34. maccha-0.1.0/benches/fixtures/expanded/kanban_wip.mmd +12 -0
  35. maccha-0.1.0/benches/fixtures/expanded/mindmap_program.mmd +15 -0
  36. maccha-0.1.0/benches/fixtures/expanded/packet_network.mmd +9 -0
  37. maccha-0.1.0/benches/fixtures/expanded/pie_many_slices.mmd +8 -0
  38. maccha-0.1.0/benches/fixtures/expanded/quadrant_strategy.mmd +12 -0
  39. maccha-0.1.0/benches/fixtures/expanded/radar_tech.mmd +4 -0
  40. maccha-0.1.0/benches/fixtures/expanded/requirement_traceability.mmd +25 -0
  41. maccha-0.1.0/benches/fixtures/expanded/sankey_energy.mmd +11 -0
  42. maccha-0.1.0/benches/fixtures/expanded/sequence_frames_notes.mmd +29 -0
  43. maccha-0.1.0/benches/fixtures/expanded/sequence_long_labels.mmd +12 -0
  44. maccha-0.1.0/benches/fixtures/expanded/state_nested_choice.mmd +18 -0
  45. maccha-0.1.0/benches/fixtures/expanded/timeline_phases.mmd +8 -0
  46. maccha-0.1.0/benches/fixtures/expanded/treemap_portfolio.mmd +11 -0
  47. maccha-0.1.0/benches/fixtures/flowchart.mmd +11 -0
  48. maccha-0.1.0/benches/fixtures/flowchart_asymmetric_components.mmd +24 -0
  49. maccha-0.1.0/benches/fixtures/flowchart_backedges_subgraphs.mmd +31 -0
  50. maccha-0.1.0/benches/fixtures/flowchart_component_packing.mmd +35 -0
  51. maccha-0.1.0/benches/fixtures/flowchart_direction_conflict.mmd +35 -0
  52. maccha-0.1.0/benches/fixtures/flowchart_fanout_returns.mmd +32 -0
  53. maccha-0.1.0/benches/fixtures/flowchart_flow_direction_backtrack.mmd +17 -0
  54. maccha-0.1.0/benches/fixtures/flowchart_grid_feedback.mmd +17 -0
  55. maccha-0.1.0/benches/fixtures/flowchart_label_collision.mmd +19 -0
  56. maccha-0.1.0/benches/fixtures/flowchart_lanes_crossfeed.mmd +35 -0
  57. maccha-0.1.0/benches/fixtures/flowchart_large.mmd +420 -0
  58. maccha-0.1.0/benches/fixtures/flowchart_long_edge_labels.mmd +33 -0
  59. maccha-0.1.0/benches/fixtures/flowchart_medium.mmd +96 -0
  60. maccha-0.1.0/benches/fixtures/flowchart_mega_braid_feedback.mmd +58 -0
  61. maccha-0.1.0/benches/fixtures/flowchart_mega_crosslane_subgraphs.mmd +83 -0
  62. maccha-0.1.0/benches/fixtures/flowchart_mega_event_mesh.mmd +82 -0
  63. maccha-0.1.0/benches/fixtures/flowchart_mega_multihub_control.mmd +82 -0
  64. maccha-0.1.0/benches/fixtures/flowchart_mega_nested_regions.mmd +73 -0
  65. maccha-0.1.0/benches/fixtures/flowchart_nested_clusters.mmd +44 -0
  66. maccha-0.1.0/benches/fixtures/flowchart_parallel_edges_bundle.mmd +28 -0
  67. maccha-0.1.0/benches/fixtures/flowchart_parallel_label_stack.mmd +22 -0
  68. maccha-0.1.0/benches/fixtures/flowchart_parallel_merges.mmd +30 -0
  69. maccha-0.1.0/benches/fixtures/flowchart_path_occlusion_maze.mmd +58 -0
  70. maccha-0.1.0/benches/fixtures/flowchart_port_alignment_matrix.mmd +58 -0
  71. maccha-0.1.0/benches/fixtures/flowchart_ports_heavy.mmd +45 -0
  72. maccha-0.1.0/benches/fixtures/flowchart_selfloop_bidi.mmd +24 -0
  73. maccha-0.1.0/benches/fixtures/flowchart_small.mmd +20 -0
  74. maccha-0.1.0/benches/fixtures/flowchart_sparse_components.mmd +29 -0
  75. maccha-0.1.0/benches/fixtures/flowchart_subgraph_boundary_intrusion.mmd +29 -0
  76. maccha-0.1.0/benches/fixtures/flowchart_tiny.mmd +2 -0
  77. maccha-0.1.0/benches/fixtures/flowchart_weave.mmd +49 -0
  78. maccha-0.1.0/benches/fixtures/gantt_medium.mmd +10 -0
  79. maccha-0.1.0/benches/fixtures/gitgraph_medium.mmd +9 -0
  80. maccha-0.1.0/benches/fixtures/journey_medium.mmd +8 -0
  81. maccha-0.1.0/benches/fixtures/kanban_medium.mmd +8 -0
  82. maccha-0.1.0/benches/fixtures/mindmap_medium.mmd +12 -0
  83. maccha-0.1.0/benches/fixtures/packet_medium.mmd +4 -0
  84. maccha-0.1.0/benches/fixtures/pie_medium.mmd +8 -0
  85. maccha-0.1.0/benches/fixtures/quadrant_medium.mmd +11 -0
  86. maccha-0.1.0/benches/fixtures/radar_medium.mmd +4 -0
  87. maccha-0.1.0/benches/fixtures/radar_overlap.mmd +5 -0
  88. maccha-0.1.0/benches/fixtures/requirement_medium.mmd +15 -0
  89. maccha-0.1.0/benches/fixtures/sankey_medium.mmd +5 -0
  90. maccha-0.1.0/benches/fixtures/sequence.mmd +12 -0
  91. maccha-0.1.0/benches/fixtures/sequence_medium.mmd +26 -0
  92. maccha-0.1.0/benches/fixtures/sequence_tiny.mmd +2 -0
  93. maccha-0.1.0/benches/fixtures/state.mmd +8 -0
  94. maccha-0.1.0/benches/fixtures/state_forkjoin.mmd +9 -0
  95. maccha-0.1.0/benches/fixtures/state_medium.mmd +13 -0
  96. maccha-0.1.0/benches/fixtures/state_tiny.mmd +2 -0
  97. maccha-0.1.0/benches/fixtures/timeline_medium.mmd +8 -0
  98. maccha-0.1.0/benches/fixtures/treemap_medium.mmd +8 -0
  99. maccha-0.1.0/benches/fixtures/xychart_medium.mmd +6 -0
  100. maccha-0.1.0/benches/fixtures/zenuml_medium.mmd +6 -0
  101. maccha-0.1.0/benches/renderer.rs +732 -0
  102. maccha-0.1.0/benches/typical/class.mmd +13 -0
  103. maccha-0.1.0/benches/typical/flowchart.mmd +11 -0
  104. maccha-0.1.0/benches/typical/sequence.mmd +12 -0
  105. maccha-0.1.0/benches/typical/state.mmd +8 -0
  106. maccha-0.1.0/clippy.toml +4 -0
  107. maccha-0.1.0/crates/maccha-py/Cargo.toml +25 -0
  108. maccha-0.1.0/crates/maccha-py/src/errors.rs +79 -0
  109. maccha-0.1.0/crates/maccha-py/src/fonts.rs +109 -0
  110. maccha-0.1.0/crates/maccha-py/src/lib.rs +108 -0
  111. maccha-0.1.0/crates/maccha-py/src/render.rs +92 -0
  112. maccha-0.1.0/docs/superpowers/m25-backlog.md +36 -0
  113. maccha-0.1.0/docs/superpowers/plans/2026-11-28-m0-safety-net.md +613 -0
  114. maccha-0.1.0/docs/superpowers/plans/2026-11-28-m1-restructure.md +434 -0
  115. maccha-0.1.0/docs/superpowers/plans/2026-11-29-m2-text.md +525 -0
  116. maccha-0.1.0/docs/superpowers/plans/2026-11-29-m25-layout-restructure.md +1188 -0
  117. maccha-0.1.0/docs/superpowers/plans/2026-11-30-m3-step0-public-api.md +220 -0
  118. maccha-0.1.0/docs/superpowers/plans/2026-11-30-m4a-python-svg-png.md +192 -0
  119. maccha-0.1.0/docs/superpowers/plans/m25-layout-map.md +710 -0
  120. maccha-0.1.0/docs/superpowers/specs/2026-11-28-i18n-scene-python-design.md +664 -0
  121. maccha-0.1.0/examples/flowchart_visual_report.rs +196 -0
  122. maccha-0.1.0/examples/port_quality.rs +667 -0
  123. maccha-0.1.0/examples/radar_legend_probe.rs +361 -0
  124. maccha-0.1.0/flake.lock +61 -0
  125. maccha-0.1.0/flake.nix +60 -0
  126. maccha-0.1.0/pyproject.toml +47 -0
  127. maccha-0.1.0/python/README.md +63 -0
  128. maccha-0.1.0/python/maccha/__init__.py +16 -0
  129. maccha-0.1.0/python/maccha/_api.py +147 -0
  130. maccha-0.1.0/python/maccha/_errors.py +53 -0
  131. maccha-0.1.0/python/maccha/_fonts.py +28 -0
  132. maccha-0.1.0/python/maccha/_maccha.pyi +34 -0
  133. maccha-0.1.0/python/maccha/py.typed +0 -0
  134. maccha-0.1.0/python/tests/conftest.py +66 -0
  135. maccha-0.1.0/python/tests/smoke_wheel.py +15 -0
  136. maccha-0.1.0/python/tests/test_errors.py +58 -0
  137. maccha-0.1.0/python/tests/test_import.py +16 -0
  138. maccha-0.1.0/python/tests/test_render.py +267 -0
  139. maccha-0.1.0/python/tests/test_threads.py +43 -0
  140. maccha-0.1.0/python/tests/typing_check.py +86 -0
  141. maccha-0.1.0/src/config/diagrams/c4.rs +363 -0
  142. maccha-0.1.0/src/config/diagrams/flowchart.rs +141 -0
  143. maccha-0.1.0/src/config/diagrams/gitgraph.rs +173 -0
  144. maccha-0.1.0/src/config/diagrams/mindmap.rs +105 -0
  145. maccha-0.1.0/src/config/diagrams/mod.rs +20 -0
  146. maccha-0.1.0/src/config/diagrams/pie.rs +69 -0
  147. maccha-0.1.0/src/config/diagrams/requirement.rs +74 -0
  148. maccha-0.1.0/src/config/diagrams/timeline.rs +15 -0
  149. maccha-0.1.0/src/config/diagrams/treemap.rs +69 -0
  150. maccha-0.1.0/src/config/file.rs +589 -0
  151. maccha-0.1.0/src/config/load/c4.rs +266 -0
  152. maccha-0.1.0/src/config/load/charts.rs +76 -0
  153. maccha-0.1.0/src/config/load/gitgraph.rs +87 -0
  154. maccha-0.1.0/src/config/load/graph.rs +241 -0
  155. maccha-0.1.0/src/config/load/mod.rs +324 -0
  156. maccha-0.1.0/src/config/load/theme.rs +228 -0
  157. maccha-0.1.0/src/config/merge/c4.rs +492 -0
  158. maccha-0.1.0/src/config/merge/gitgraph.rs +385 -0
  159. maccha-0.1.0/src/config/merge/layout.rs +79 -0
  160. maccha-0.1.0/src/config/merge/mod.rs +41 -0
  161. maccha-0.1.0/src/config/merge/theme.rs +194 -0
  162. maccha-0.1.0/src/config/mod.rs +132 -0
  163. maccha-0.1.0/src/edge_geometry.rs +97 -0
  164. maccha-0.1.0/src/error.rs +322 -0
  165. maccha-0.1.0/src/internal.rs +88 -0
  166. maccha-0.1.0/src/ir.rs +706 -0
  167. maccha-0.1.0/src/layout/architecture.rs +748 -0
  168. maccha-0.1.0/src/layout/block.rs +313 -0
  169. maccha-0.1.0/src/layout/c4/assemble.rs +178 -0
  170. maccha-0.1.0/src/layout/c4/text.rs +201 -0
  171. maccha-0.1.0/src/layout/c4.rs +826 -0
  172. maccha-0.1.0/src/layout/error.rs +80 -0
  173. maccha-0.1.0/src/layout/flowchart/analysis.rs +458 -0
  174. maccha-0.1.0/src/layout/flowchart/aspect_fold.rs +933 -0
  175. maccha-0.1.0/src/layout/flowchart/edge_pipeline/channels.rs +148 -0
  176. maccha-0.1.0/src/layout/flowchart/edge_pipeline/endpoint_repair.rs +213 -0
  177. maccha-0.1.0/src/layout/flowchart/edge_pipeline/global.rs +543 -0
  178. maccha-0.1.0/src/layout/flowchart/edge_pipeline/mod.rs +180 -0
  179. maccha-0.1.0/src/layout/flowchart/edge_pipeline/port_refine.rs +649 -0
  180. maccha-0.1.0/src/layout/flowchart/edge_pipeline/ports.rs +180 -0
  181. maccha-0.1.0/src/layout/flowchart/edge_pipeline/profile.rs +103 -0
  182. maccha-0.1.0/src/layout/flowchart/edge_pipeline/routed_edges/edge_routing.rs +495 -0
  183. maccha-0.1.0/src/layout/flowchart/edge_pipeline/routed_edges/port_assignment.rs +561 -0
  184. maccha-0.1.0/src/layout/flowchart/edge_pipeline/routed_edges/route_cleanup.rs +278 -0
  185. maccha-0.1.0/src/layout/flowchart/edge_pipeline/routed_edges.rs +146 -0
  186. maccha-0.1.0/src/layout/flowchart/edge_pipeline/side_choice.rs +406 -0
  187. maccha-0.1.0/src/layout/flowchart/edge_pipeline/tests.rs +368 -0
  188. maccha-0.1.0/src/layout/flowchart/finalize.rs +286 -0
  189. maccha-0.1.0/src/layout/flowchart/layered_engine.rs +484 -0
  190. maccha-0.1.0/src/layout/flowchart/manual_layout/centering.rs +318 -0
  191. maccha-0.1.0/src/layout/flowchart/manual_layout/cross_placement.rs +243 -0
  192. maccha-0.1.0/src/layout/flowchart/manual_layout/mod.rs +606 -0
  193. maccha-0.1.0/src/layout/flowchart/manual_layout/tests.rs +274 -0
  194. maccha-0.1.0/src/layout/flowchart/mod.rs +16 -0
  195. maccha-0.1.0/src/layout/flowchart/objectives.rs +946 -0
  196. maccha-0.1.0/src/layout/flowchart/path_cleanup/crossing_repair.rs +649 -0
  197. maccha-0.1.0/src/layout/flowchart/path_cleanup/crossing_sweep.rs +235 -0
  198. maccha-0.1.0/src/layout/flowchart/path_cleanup/deoverlap.rs +128 -0
  199. maccha-0.1.0/src/layout/flowchart/path_cleanup/endpoint_reentry.rs +296 -0
  200. maccha-0.1.0/src/layout/flowchart/path_cleanup/mod.rs +116 -0
  201. maccha-0.1.0/src/layout/flowchart/path_cleanup/node_detours.rs +340 -0
  202. maccha-0.1.0/src/layout/flowchart/path_cleanup/simplify.rs +433 -0
  203. maccha-0.1.0/src/layout/flowchart/path_cleanup/subgraph_detours.rs +159 -0
  204. maccha-0.1.0/src/layout/flowchart/path_cleanup/tests.rs +720 -0
  205. maccha-0.1.0/src/layout/flowchart/plan.rs +518 -0
  206. maccha-0.1.0/src/layout/flowchart/policy.rs +368 -0
  207. maccha-0.1.0/src/layout/flowchart/post_route.rs +288 -0
  208. maccha-0.1.0/src/layout/flowchart/roles.rs +276 -0
  209. maccha-0.1.0/src/layout/flowchart/route_labels.rs +560 -0
  210. maccha-0.1.0/src/layout/flowchart/stage_validation.rs +301 -0
  211. maccha-0.1.0/src/layout/flowchart/subgraph_spacing/alignment.rs +429 -0
  212. maccha-0.1.0/src/layout/flowchart/subgraph_spacing/gaps.rs +307 -0
  213. maccha-0.1.0/src/layout/flowchart/subgraph_spacing/mod.rs +362 -0
  214. maccha-0.1.0/src/layout/gantt.rs +652 -0
  215. maccha-0.1.0/src/layout/geometry.rs +538 -0
  216. maccha-0.1.0/src/layout/gitgraph/arrows.rs +411 -0
  217. maccha-0.1.0/src/layout/gitgraph/commits.rs +339 -0
  218. maccha-0.1.0/src/layout/gitgraph/mod.rs +514 -0
  219. maccha-0.1.0/src/layout/gitgraph/positions.rs +228 -0
  220. maccha-0.1.0/src/layout/graph_layout.rs +757 -0
  221. maccha-0.1.0/src/layout/invariants/checks.rs +278 -0
  222. maccha-0.1.0/src/layout/invariants/diagrams.rs +550 -0
  223. maccha-0.1.0/src/layout/invariants/mod.rs +147 -0
  224. maccha-0.1.0/src/layout/invariants/quality.rs +170 -0
  225. maccha-0.1.0/src/layout/journey.rs +564 -0
  226. maccha-0.1.0/src/layout/kanban.rs +211 -0
  227. maccha-0.1.0/src/layout/label_placement/anchors.rs +275 -0
  228. maccha-0.1.0/src/layout/label_placement/center/movable.rs +491 -0
  229. maccha-0.1.0/src/layout/label_placement/center.rs +404 -0
  230. maccha-0.1.0/src/layout/label_placement/center_assignment.rs +457 -0
  231. maccha-0.1.0/src/layout/label_placement/center_deoverlap/pairs.rs +274 -0
  232. maccha-0.1.0/src/layout/label_placement/center_deoverlap.rs +614 -0
  233. maccha-0.1.0/src/layout/label_placement/center_pose.rs +366 -0
  234. maccha-0.1.0/src/layout/label_placement/center_tighten.rs +696 -0
  235. maccha-0.1.0/src/layout/label_placement/endpoint.rs +318 -0
  236. maccha-0.1.0/src/layout/label_placement/geom.rs +375 -0
  237. maccha-0.1.0/src/layout/label_placement/mod.rs +384 -0
  238. maccha-0.1.0/src/layout/label_placement/penalties.rs +149 -0
  239. maccha-0.1.0/src/layout/label_placement/tests.rs +431 -0
  240. maccha-0.1.0/src/layout/mindmap/mod.rs +602 -0
  241. maccha-0.1.0/src/layout/mindmap/tidy.rs +733 -0
  242. maccha-0.1.0/src/layout/mod.rs +448 -0
  243. maccha-0.1.0/src/layout/nodes.rs +267 -0
  244. maccha-0.1.0/src/layout/pie.rs +498 -0
  245. maccha-0.1.0/src/layout/quadrant.rs +183 -0
  246. maccha-0.1.0/src/layout/radar.rs +304 -0
  247. maccha-0.1.0/src/layout/ranking/mod.rs +564 -0
  248. maccha-0.1.0/src/layout/ranking/ordering.rs +332 -0
  249. maccha-0.1.0/src/layout/ranking/tests.rs +222 -0
  250. maccha-0.1.0/src/layout/routing/avoidance.rs +772 -0
  251. maccha-0.1.0/src/layout/routing/candidates.rs +542 -0
  252. maccha-0.1.0/src/layout/routing/grid.rs +337 -0
  253. maccha-0.1.0/src/layout/routing/metrics.rs +578 -0
  254. maccha-0.1.0/src/layout/routing/mod.rs +561 -0
  255. maccha-0.1.0/src/layout/routing/sides.rs +394 -0
  256. maccha-0.1.0/src/layout/routing/tests.rs +363 -0
  257. maccha-0.1.0/src/layout/sankey.rs +746 -0
  258. maccha-0.1.0/src/layout/sequence/bounds.rs +263 -0
  259. maccha-0.1.0/src/layout/sequence/frames.rs +247 -0
  260. maccha-0.1.0/src/layout/sequence/geom.rs +186 -0
  261. maccha-0.1.0/src/layout/sequence/labels.rs +501 -0
  262. maccha-0.1.0/src/layout/sequence/mod.rs +298 -0
  263. maccha-0.1.0/src/layout/sequence/overlays.rs +243 -0
  264. maccha-0.1.0/src/layout/sequence/rows.rs +304 -0
  265. maccha-0.1.0/src/layout/sequence/tests.rs +76 -0
  266. maccha-0.1.0/src/layout/subgraphs/anchors.rs +247 -0
  267. maccha-0.1.0/src/layout/subgraphs/bands.rs +546 -0
  268. maccha-0.1.0/src/layout/subgraphs/mod.rs +257 -0
  269. maccha-0.1.0/src/layout/subgraphs/passes.rs +182 -0
  270. maccha-0.1.0/src/layout/subgraphs/sizing.rs +283 -0
  271. maccha-0.1.0/src/layout/subgraphs/state.rs +190 -0
  272. maccha-0.1.0/src/layout/subgraphs/tests.rs +369 -0
  273. maccha-0.1.0/src/layout/tests/basics.rs +372 -0
  274. maccha-0.1.0/src/layout/tests/edge_routes.rs +337 -0
  275. maccha-0.1.0/src/layout/tests/fixtures.rs +655 -0
  276. maccha-0.1.0/src/layout/tests/mod.rs +176 -0
  277. maccha-0.1.0/src/layout/tests/pair_prune_cases.rs +177 -0
  278. maccha-0.1.0/src/layout/text.rs +601 -0
  279. maccha-0.1.0/src/layout/timeline.rs +516 -0
  280. maccha-0.1.0/src/layout/transform.rs +327 -0
  281. maccha-0.1.0/src/layout/treemap.rs +248 -0
  282. maccha-0.1.0/src/layout/types.rs +666 -0
  283. maccha-0.1.0/src/layout/xychart.rs +316 -0
  284. maccha-0.1.0/src/layout_dump.rs +159 -0
  285. maccha-0.1.0/src/lib.rs +787 -0
  286. maccha-0.1.0/src/parser/architecture.rs +256 -0
  287. maccha-0.1.0/src/parser/block.rs +236 -0
  288. maccha-0.1.0/src/parser/c4.rs +575 -0
  289. maccha-0.1.0/src/parser/class.rs +525 -0
  290. maccha-0.1.0/src/parser/er.rs +290 -0
  291. maccha-0.1.0/src/parser/flowchart.rs +835 -0
  292. maccha-0.1.0/src/parser/gantt.rs +281 -0
  293. maccha-0.1.0/src/parser/gitgraph.rs +339 -0
  294. maccha-0.1.0/src/parser/graph_syntax.rs +755 -0
  295. maccha-0.1.0/src/parser/journey.rs +132 -0
  296. maccha-0.1.0/src/parser/kanban.rs +79 -0
  297. maccha-0.1.0/src/parser/mindmap.rs +230 -0
  298. maccha-0.1.0/src/parser/mod.rs +677 -0
  299. maccha-0.1.0/src/parser/packet.rs +75 -0
  300. maccha-0.1.0/src/parser/pie.rs +81 -0
  301. maccha-0.1.0/src/parser/quadrant.rs +106 -0
  302. maccha-0.1.0/src/parser/radar.rs +171 -0
  303. maccha-0.1.0/src/parser/requirement.rs +340 -0
  304. maccha-0.1.0/src/parser/sankey.rs +69 -0
  305. maccha-0.1.0/src/parser/sequence.rs +706 -0
  306. maccha-0.1.0/src/parser/state/builder.rs +437 -0
  307. maccha-0.1.0/src/parser/state.rs +569 -0
  308. maccha-0.1.0/src/parser/timeline.rs +137 -0
  309. maccha-0.1.0/src/parser/treemap.rs +115 -0
  310. maccha-0.1.0/src/parser/xychart.rs +194 -0
  311. maccha-0.1.0/src/parser/zenuml.rs +107 -0
  312. maccha-0.1.0/src/pipeline.rs +170 -0
  313. maccha-0.1.0/src/png_api.rs +92 -0
  314. maccha-0.1.0/src/render/architecture.rs +418 -0
  315. maccha-0.1.0/src/render/c4.rs +586 -0
  316. maccha-0.1.0/src/render/er.rs +630 -0
  317. maccha-0.1.0/src/render/error.rs +96 -0
  318. maccha-0.1.0/src/render/gantt.rs +302 -0
  319. maccha-0.1.0/src/render/gitgraph.rs +409 -0
  320. maccha-0.1.0/src/render/graph/clusters.rs +307 -0
  321. maccha-0.1.0/src/render/graph/edges/labels.rs +325 -0
  322. maccha-0.1.0/src/render/graph/edges.rs +535 -0
  323. maccha-0.1.0/src/render/graph/mod.rs +89 -0
  324. maccha-0.1.0/src/render/graph/nodes.rs +265 -0
  325. maccha-0.1.0/src/render/graph/overlays.rs +194 -0
  326. maccha-0.1.0/src/render/graph/setup.rs +305 -0
  327. maccha-0.1.0/src/render/journey.rs +162 -0
  328. maccha-0.1.0/src/render/mod.rs +389 -0
  329. maccha-0.1.0/src/render/paths.rs +484 -0
  330. maccha-0.1.0/src/render/pie.rs +344 -0
  331. maccha-0.1.0/src/render/png.rs +215 -0
  332. maccha-0.1.0/src/render/quadrant.rs +195 -0
  333. maccha-0.1.0/src/render/radar.rs +395 -0
  334. maccha-0.1.0/src/render/requirement.rs +262 -0
  335. maccha-0.1.0/src/render/sankey.rs +469 -0
  336. maccha-0.1.0/src/render/shapes.rs +600 -0
  337. maccha-0.1.0/src/render/text.rs +392 -0
  338. maccha-0.1.0/src/render/timeline.rs +177 -0
  339. maccha-0.1.0/src/render/util.rs +275 -0
  340. maccha-0.1.0/src/render/xychart.rs +136 -0
  341. maccha-0.1.0/src/scene/tests.rs +327 -0
  342. maccha-0.1.0/src/scene.rs +386 -0
  343. maccha-0.1.0/src/text/extent.rs +205 -0
  344. maccha-0.1.0/src/text/fonts.rs +771 -0
  345. maccha-0.1.0/src/text/measure.rs +377 -0
  346. maccha-0.1.0/src/text/metrics.rs +90 -0
  347. maccha-0.1.0/src/text/mod.rs +44 -0
  348. maccha-0.1.0/src/text/resolve.rs +663 -0
  349. maccha-0.1.0/src/text/scope.rs +200 -0
  350. maccha-0.1.0/src/text/script.rs +318 -0
  351. maccha-0.1.0/src/text/segment.rs +399 -0
  352. maccha-0.1.0/src/text/shape.rs +369 -0
  353. maccha-0.1.0/src/text/test_support.rs +48 -0
  354. maccha-0.1.0/src/text/unicode_width.rs +187 -0
  355. maccha-0.1.0/src/text/usvg_fonts.rs +404 -0
  356. maccha-0.1.0/src/text/width.rs +365 -0
  357. maccha-0.1.0/src/text/wrap.rs +558 -0
  358. maccha-0.1.0/src/theme.rs +612 -0
  359. maccha-0.1.0/src/validator.rs +852 -0
  360. maccha-0.1.0/src/warnings.rs +95 -0
  361. maccha-0.1.0/tests/aspect_fold_suite.rs +302 -0
  362. maccha-0.1.0/tests/common/mod.rs +62 -0
  363. maccha-0.1.0/tests/config_golden/corpus.rs +626 -0
  364. maccha-0.1.0/tests/config_golden/merge_corpus.rs +986 -0
  365. maccha-0.1.0/tests/config_golden.rs +215 -0
  366. maccha-0.1.0/tests/correctness_suite.rs +573 -0
  367. maccha-0.1.0/tests/determinism_suite.rs +196 -0
  368. maccha-0.1.0/tests/fixtures/architecture/basic.mmd +5 -0
  369. maccha-0.1.0/tests/fixtures/architecture/bends.mmd +7 -0
  370. maccha-0.1.0/tests/fixtures/architecture/junctions.mmd +15 -0
  371. maccha-0.1.0/tests/fixtures/architecture/ports.mmd +11 -0
  372. maccha-0.1.0/tests/fixtures/block/basic.mmd +5 -0
  373. maccha-0.1.0/tests/fixtures/block/nested_groups.mmd +13 -0
  374. maccha-0.1.0/tests/fixtures/c4/basic.mmd +7 -0
  375. maccha-0.1.0/tests/fixtures/class/basic.mmd +7 -0
  376. maccha-0.1.0/tests/fixtures/class/multiplicity.mmd +2 -0
  377. maccha-0.1.0/tests/fixtures/er/basic.mmd +10 -0
  378. maccha-0.1.0/tests/fixtures/flowchart/aspect_chain.layout.golden.txt +12 -0
  379. maccha-0.1.0/tests/fixtures/flowchart/aspect_chain.mmd +2 -0
  380. maccha-0.1.0/tests/fixtures/flowchart/basic.mmd +6 -0
  381. maccha-0.1.0/tests/fixtures/flowchart/bidirectional_labels.mmd +11 -0
  382. maccha-0.1.0/tests/fixtures/flowchart/complex.mmd +29 -0
  383. maccha-0.1.0/tests/fixtures/flowchart/cycles.mmd +15 -0
  384. maccha-0.1.0/tests/fixtures/flowchart/decision_shapes.mmd +6 -0
  385. maccha-0.1.0/tests/fixtures/flowchart/dense.mmd +27 -0
  386. maccha-0.1.0/tests/fixtures/flowchart/edges.mmd +6 -0
  387. maccha-0.1.0/tests/fixtures/flowchart/ports.mmd +21 -0
  388. maccha-0.1.0/tests/fixtures/flowchart/ports_arrow_pathing_regression.mmd +28 -0
  389. maccha-0.1.0/tests/fixtures/flowchart/styles.mmd +12 -0
  390. maccha-0.1.0/tests/fixtures/flowchart/subgraph.mmd +8 -0
  391. maccha-0.1.0/tests/fixtures/flowchart/subgraph_direction.mmd +10 -0
  392. maccha-0.1.0/tests/fixtures/flowchart/subgraph_empty.mmd +20 -0
  393. maccha-0.1.0/tests/fixtures/gantt/basic.mmd +6 -0
  394. maccha-0.1.0/tests/fixtures/gitgraph/basic.mmd +7 -0
  395. maccha-0.1.0/tests/fixtures/journey/basic.mmd +5 -0
  396. maccha-0.1.0/tests/fixtures/kanban/basic.mmd +5 -0
  397. maccha-0.1.0/tests/fixtures/layout_regressions/er_blog.mmd +38 -0
  398. maccha-0.1.0/tests/fixtures/layout_regressions/flowchart_cycles.mmd +15 -0
  399. maccha-0.1.0/tests/fixtures/layout_regressions/flowchart_dense.mmd +16 -0
  400. maccha-0.1.0/tests/fixtures/layout_regressions/flowchart_opaque.mmd +27 -0
  401. maccha-0.1.0/tests/fixtures/layout_regressions/flowchart_subgraph_dir.mmd +10 -0
  402. maccha-0.1.0/tests/fixtures/mindmap/basic.mmd +5 -0
  403. maccha-0.1.0/tests/fixtures/mindmap/lr_tree.mmd +14 -0
  404. maccha-0.1.0/tests/fixtures/mindmap/tidy_tree.mmd +17 -0
  405. maccha-0.1.0/tests/fixtures/modern-config.json +32 -0
  406. maccha-0.1.0/tests/fixtures/packet/basic.mmd +3 -0
  407. maccha-0.1.0/tests/fixtures/pie/basic.mmd +4 -0
  408. maccha-0.1.0/tests/fixtures/quadrant/basic.mmd +10 -0
  409. maccha-0.1.0/tests/fixtures/radar/basic.mmd +3 -0
  410. maccha-0.1.0/tests/fixtures/radar/long_names.mmd +5 -0
  411. maccha-0.1.0/tests/fixtures/radar/many_curves_14.mmd +16 -0
  412. maccha-0.1.0/tests/fixtures/radar/mismatch_named_only.mmd +3 -0
  413. maccha-0.1.0/tests/fixtures/radar/mismatch_named_overflow.mmd +4 -0
  414. maccha-0.1.0/tests/fixtures/radar/mismatch_named_reordered.mmd +4 -0
  415. maccha-0.1.0/tests/fixtures/radar/mismatch_named_subset.mmd +4 -0
  416. maccha-0.1.0/tests/fixtures/radar/mismatch_positional_overflow.mmd +4 -0
  417. maccha-0.1.0/tests/fixtures/radar/mismatch_short_first_curve.mmd +4 -0
  418. maccha-0.1.0/tests/fixtures/radar/negative.mmd +4 -0
  419. maccha-0.1.0/tests/fixtures/radar/nonnumeric_all.mmd +3 -0
  420. maccha-0.1.0/tests/fixtures/radar/nonnumeric_empty_token.mmd +3 -0
  421. maccha-0.1.0/tests/fixtures/radar/nonnumeric_first_curve.mmd +4 -0
  422. maccha-0.1.0/tests/fixtures/radar/nonnumeric_middle.mmd +3 -0
  423. maccha-0.1.0/tests/fixtures/radar/nonnumeric_second_curve.mmd +4 -0
  424. maccha-0.1.0/tests/fixtures/radar/overlap_12axis.mmd +8 -0
  425. maccha-0.1.0/tests/fixtures/radar/short_curve.mmd +4 -0
  426. maccha-0.1.0/tests/fixtures/requirement/basic.mmd +14 -0
  427. maccha-0.1.0/tests/fixtures/sankey/basic.mmd +4 -0
  428. maccha-0.1.0/tests/fixtures/sequence/basic.mmd +5 -0
  429. maccha-0.1.0/tests/fixtures/sequence/frames.mmd +17 -0
  430. maccha-0.1.0/tests/fixtures/sequence/nested_alt.mmd +37 -0
  431. maccha-0.1.0/tests/fixtures/sequence/par_alt.mmd +19 -0
  432. maccha-0.1.0/tests/fixtures/state/basic.mmd +5 -0
  433. maccha-0.1.0/tests/fixtures/state/note.mmd +5 -0
  434. maccha-0.1.0/tests/fixtures/state/note_block.mmd +14 -0
  435. maccha-0.1.0/tests/fixtures/timeline/basic.mmd +4 -0
  436. maccha-0.1.0/tests/fixtures/treemap/basic.mmd +3 -0
  437. maccha-0.1.0/tests/fixtures/xychart/basic.mmd +4 -0
  438. maccha-0.1.0/tests/fixtures/zenuml/basic.mmd +3 -0
  439. maccha-0.1.0/tests/hard_gate_baseline.json +4 -0
  440. maccha-0.1.0/tests/invariant_suite.rs +302 -0
  441. maccha-0.1.0/tests/layout_suite.rs +1729 -0
  442. maccha-0.1.0/tests/merge_golden.rs +213 -0
  443. maccha-0.1.0/tests/output_shape_suite.rs +98 -0
  444. maccha-0.1.0/tests/parse_errors.rs +345 -0
  445. maccha-0.1.0/tests/png_api.rs +197 -0
  446. maccha-0.1.0/tests/quality_baseline.json +31467 -0
  447. maccha-0.1.0/tests/radar_edge_suite.rs +637 -0
  448. maccha-0.1.0/tests/radar_negative_suite.rs +103 -0
  449. maccha-0.1.0/tests/render_golden.rs +557 -0
  450. maccha-0.1.0/tests/requirement_theme_fontsize_suite.rs +306 -0
  451. maccha-0.1.0/tests/robustness_suite.rs +475 -0
  452. maccha-0.1.0/tests/scene_suite.rs +163 -0
  453. maccha-0.1.0/tests/semantic_suite.rs +395 -0
  454. maccha-0.1.0/tests/visual_issue_suite.rs +726 -0
@@ -0,0 +1,4 @@
1
+ tests/snapshots/** -text
2
+ tests/fonts/** binary
3
+ assets/fonts/** binary
4
+ tests/i18n/fixtures/** text eol=lf
@@ -0,0 +1,20 @@
1
+ /target
2
+ /dist
3
+
4
+ # Python cache
5
+ __pycache__/
6
+ *.pyc
7
+
8
+ # Temp files
9
+ tmp_*.png
10
+ benchmark_table*.png
11
+
12
+ # Local comparison outputs (generated, not tracked)
13
+ /comparison/
14
+ node_modules/
15
+ tmp/
16
+
17
+ # Python package
18
+ .venv/
19
+ python/maccha/*.so
20
+ python/maccha/*.pyd
@@ -0,0 +1,127 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ### Renamed to maccha
6
+ - Renamed to maccha (from mermaidrs) before the first release; the CLI stays `mmdr`. The Rust crate is `maccha`, the Python package and import are `maccha`, the cfg flag is `maccha_api_check` and the test environment variables are `MACCHA_*`. Rendered output is unchanged.
7
+
8
+ ### PNG from the library
9
+ - New with the `png` feature: `render_png(input, RenderOptions, PngOptions) -> Result<Vec<u8>, Error>`, `PngOptions { scale, background }` (`#[non_exhaustive]`, with `Default`, `with_scale`, `with_background`) and `PngError`, returned as `Error::Png`. With `PngOptions::default()` the bytes equal the file `mmdr -e png` writes for the same theme and layout; the effective theme after a `%%{init}%%` directive supplies the font family and background. `scale` multiplies the whole-pixel size (`2.0` is exactly twice `1.0`); `background` replaces the theme background (`#rgb`, `#rrggbb` or `#rrggbbaa`). The library refuses an image of more than 2^27 pixels (512 MiB of RGBA, for example 11585 x 11585) with `Error::Png` naming the size and the limit, before allocating anything; there is no limit on a single side. `mmdr -e png` has no such limit and behaves as before.
10
+
11
+ ### Breaking: the public API is narrowed
12
+ Every root module is now private, and the crate root exports only what a renderer needs. Everything else moved behind `#[doc(hidden)] maccha::__internal`, which keeps the old module paths and the old root names. It exists for the `mmdr` CLI, tests and benches, and is not covered by semver. `scripts/public_api.txt` pins the supported surface and CI checks it.
13
+
14
+ - Public: `render`, `render_with_options`, `render_with_warnings`, `render_strict`, `measure`, `render_scene` (feature `scene`), `RenderOptions`, `RenderOutput`, `RenderWarning`, `MissingGlyphsError`, `ParseError`, `Error`, `SceneError` (feature `scene`), `SvgDimensions`, `Theme`, `LayoutConfig` and the config types its fields use (`FlowchartLayoutEngine`, `C4Config`, `GitGraphConfig`, `MindmapConfig`, `PieConfig`, `PieRenderMode`, `RequirementConfig`, `TimelineConfig`, `TreemapConfig`, `TreemapRenderMode`, `FlowchartLayoutConfig`, `FlowchartObjectiveConfig`, `FlowchartAutoSpacingConfig`, `FlowchartAutoSpacingBucket`, `FlowchartRoutingConfig`), the scene types (`Scene`, `SceneCommand`, `PathCommand`, `FillRule`, `Color`, `BlendMode`, `GradientStop`, `Paint`), `text::{FontSet, FontSetBuilder, with_font_set}` and `usvg`.
15
+ - Functions return `maccha::Error` (`Parse`, `MissingGlyphs`, and `Scene` with the `scene` feature) instead of `anyhow::Error`. `render_strict` still returns `ParseError`.
16
+ - No longer public, now `maccha::__internal::<name>`: `parse_mermaid`, `parse_mermaid_strict`, `compute_layout`, `compute_layout_with_metrics`, `render_svg`, `measure_svg_dimensions`, `write_output_svg`, `write_output_png`, `write_layered_layout_dump`, `merge_init_config`, `measure_with_dimensions`, `render_with_timing`, `render_with_detailed_timing`, `RenderResult`, `RenderDetailedResult`, `Config`, `RenderConfig`, `Graph`, `Layout`, `ParseOutput`, `NodeLayout`, `EdgeLayout`, `SubgraphLayout`, `LayoutStageMetrics`, the `Layered*Snapshot` and `LayeredLayoutMetrics` types, and the `ir` types (`DiagramKind`, `Direction`, `Edge`, `Node`, `NodeShape`, `Subgraph`, ...).
17
+ - No longer public, now `maccha::__internal::<module>::...`: the modules `config`, `error`, `ir`, `layout`, `layout_dump`, `parser`, `render`, `scene`, `theme` and `validator`, and the items of `text` other than `FontSet`, `FontSetBuilder` and `with_font_set` (`measure_line`, `wrap`, `resolve_fonts_for`, `TextRun`).
18
+
19
+ ### Japanese, Khmer and other non-Latin text
20
+ - Khmer, Thai, Japanese, Chinese and Korean labels are now measured with a font that covers them. PNG and scene output always draw with those measured fonts; SVG names them, so browsers use them when installed. Each part of a label takes the first font with all its glyphs: the theme list, then a per-script list, then any installed font. Placeholder fonts such as macOS's `.LastResort` are never chosen.
21
+ - PNG fix: no more boxes for non-Latin text, and no overlapping glyphs. Text is measured with a real shaper (`harfrust`) at its own weight, and each run is positioned by its measured width and drawn with the font that was measured.
22
+ - Long labels wrap at Unicode line break opportunities (`icu_segmenter`, dictionary mode): Khmer and Thai words, Japanese kinsoku, Chinese and Korean text. A Khmer consonant never separates from its coeng subscript. U+200B forces a break opportunity and is never drawn.
23
+ - Text that no font covers is drawn at 1 em per character and reported: `warning: missing glyphs for Khmer text "..."` on stderr, and `RenderWarning` / `render_with_warnings` in the library. `--strictFonts` (`RenderOptions::with_strict_fonts`) fails instead of rendering.
24
+ - New CLI flags: `--fontDir DIR` (repeatable) adds fonts, `--noSystemFonts` ignores installed fonts, `--strictFonts` fails on missing glyphs.
25
+ - New library API: `text::{FontSet, FontSetBuilder, with_font_set}` (and `measure_line`, `wrap`, `resolve_fonts_for`, `TextRun` under the hidden `maccha::__internal::text`), `RenderOptions::{with_fonts, with_strict_fonts}`, `render_with_warnings`, `RenderOutput`, `RenderWarning`, `MissingGlyphsError`, and `FontSet::usvg_options` for callers who rasterize the SVG themselves.
26
+ - Noto Sans Khmer Regular and Bold are bundled (cargo feature `bundled-fonts`, on by default; SIL OFL), so Khmer renders with no Khmer font installed. They are never used for ASCII or for generic font families.
27
+ - Markdown input with several diagrams is now all-or-nothing: if any diagram fails to render, no output file is written.
28
+ - Output for ASCII text is byte-identical to before.
29
+ - `usvg` and `resvg` are now 0.50 (were 0.47).
30
+ - Docs: `docs/text-pipeline.md`; `scripts/contact_sheet.py` renders the Khmer fixtures into an HTML page for review.
31
+
32
+ ## maccha v0.1.0 (unreleased)
33
+
34
+ - Forked from mermaid-rs-renderer v0.3.1 (https://github.com/1jehuang/mermaid-rs-renderer) and renamed to `maccha`. Entries below this one are the upstream project's history.
35
+ - The CLI moved to the `mmdr` crate; `maccha::run` and the `cli` feature are gone.
36
+
37
+ ## v0.3.0 (2026-07-02)
38
+
39
+ ### Render Size Metadata API
40
+ - Added `measure_svg_dimensions` / `render_svg_with_dimensions` and a `--size` CLI flag so embedders can get exact output dimensions before rasterizing.
41
+ - CLI defaults to the diagram's natural dimensions (#83).
42
+
43
+ ### Subgraph Containment Overhaul
44
+ - Sibling subgraph membership now matches mermaid-js (`flowDb.makeUniq`): a node belongs to the first subgraph that claims it, so referencing it in a later subgraph no longer forces boxes to overlap.
45
+ - New routing pass detours edges around subgraph boxes that contain neither endpoint.
46
+ - New placement pass evicts non-member nodes that visually land inside subgraph boxes.
47
+ - Hard gate is now 215 GREEN / 0 RED across the corpus (was 9 RED fixtures with 25 intruding edges).
48
+
49
+ ### Layout and Routing Fixes
50
+ - Port-driven grid placement and port-aware routing for architecture-beta (#112, #59).
51
+ - Capped crossing-avoidance detours in flowchart route selection (#79).
52
+ - Hardened routing against empty candidate lists (#37).
53
+ - Fixed flowchart edge zig-zag and orbit artifacts; kept back-edge outer lanes through port refinement.
54
+ - Routed C4 connectors around intervening shapes.
55
+ - Separated state pseudostate markers from overlapping states.
56
+ - Fixed 'unexpected token end' for sequence frames and block-beta named groups (#102).
57
+ - Fixed gantt task ids ending in a duration letter being misparsed.
58
+
59
+ ### Themes and Styling
60
+ - Added dark/forest/neutral theme presets and `--theme` CLI flag (#73).
61
+ - Fixed pie slice colors, legend overlap (#69), and CJK title clipping (#112).
62
+ - Added `mindmap.edgeColor` config (#49).
63
+
64
+ ### Quality Gates and Detection
65
+ - Hard gate gained semantic containment predicates (foreign-node containment, member escape), label-overflow, and canvas-overflow detectors.
66
+ - Layout dumps now expose edge label anchors/extents for external metric tooling.
67
+ - Added determinism, invariant, semantic, and output-shape suites plus baseline ratcheting.
68
+
69
+ ### Packaging
70
+ - Release builds use fat LTO (#13); arm64 release artifacts (#71); Nix flake (#99).
71
+
72
+ ## v0.2.2 (2026-04-23)
73
+
74
+ ### Visual and Layout Fixes
75
+ - Fixed sequence diagram `alt` frame geometry and prevented wide section labels from panicking layout.
76
+ - Fixed compact flowchart label decorations.
77
+ - Made dotted edges visually distinct from solid edges.
78
+ - Fixed class diagram stereotypes being rendered as members.
79
+ - Fixed class diagram arrowheads being hidden under node boxes.
80
+ - Fixed state diagram description lines so titles are preserved and descriptions accumulate.
81
+ - Fixed empty-subgraph layout panic by keeping graph-level and local subgraph indexes mapped correctly.
82
+
83
+ ### Rendering and Theme Fixes
84
+ - Fixed invalid non-ASCII hex color values causing panics.
85
+ - Preserved quoted font-family normalization for SVG text output.
86
+
87
+ ### Gantt
88
+ - Added compact Gantt display mode via YAML frontmatter (`displayMode: compact`).
89
+
90
+ ### Dependencies and Release
91
+ - Updated `anyhow`, `clap`, `criterion`, `regex`, and release action dependencies.
92
+ - Added release workflow automation for Homebrew and AUR package updates.
93
+
94
+ ## v0.2.0 (2026-02-07)
95
+
96
+ ### Layout Engine Overhaul
97
+ - Rewrote flowchart layout with improved routing, subgraph compaction, and tighter node spacing
98
+ - Auto-place edge labels with collision-aware search grid
99
+ - Added edge label relaxation for Flowchart, State, ER, and Requirement diagrams
100
+ - Node overlap resolver now runs for all diagram types when overlaps are detected
101
+ - Finer-grained label placement search for closer label-to-edge proximity
102
+
103
+ ### Visual Quality Improvements
104
+ - Redesigned ER diagram tables with cleaner styling
105
+ - Redesigned pie charts with improved label readability
106
+ - Redesigned journey diagram layout
107
+ - Improved state diagram composite labels and marker sizing
108
+ - Improved gantt chart rendering: section bands, color coding, in-bar labels
109
+ - Improved mindmap, class, and flowchart rendering polish
110
+ - Compact subgraph sizing across diagram types
111
+
112
+ ### Parser Fixes
113
+ - Parse `-- "text" -->` quoted edge label syntax (fixes #27)
114
+
115
+ ### Performance
116
+ - Added font cache for text metrics — avoids redundant font lookups
117
+ - Added `--fastText` option for approximate text width metrics
118
+
119
+ ### Benchmarking & Quality
120
+ - Layout quality scoring vs mermaid-cli
121
+ - 16 new stress fixtures for benchmarks
122
+ - Expanded comparison examples across all diagram types
123
+ - Sankey link path detection in quality checks
124
+
125
+ ## v0.1.3 (2026-02-02)
126
+
127
+ Initial public release with 13 diagram types and 100-1400x performance vs mermaid-cli.