FenjuFu opened a new pull request, #861:
URL: https://github.com/apache/burr/pull/861

   ## What changed
   
   - add a dependency-free Mermaid flowchart renderer to `Graph.visualize()`
   - expose the same `engine="mermaid"` option through `Application.visualize()`
   - preserve Graphviz as the default engine and reject Graphviz-only options 
on Mermaid
   - support configurable Mermaid direction, condition labels, action state 
signatures, and external inputs
   - escape user-controlled labels and use generated node IDs so arbitrary 
action names remain safe
   - support writing Mermaid source directly to a UTF-8 file
   - document the new API and add focused tests
   
   ## Why
   
   Graphviz image rendering requires both the Python package and a system `dot` 
executable. Mermaid source is useful in GitHub Markdown and other Mermaid-aware 
renderers without those dependencies.
   
   This implements the text-generation portion of #414 without introducing 
Node, browser tooling, or a remote rendering service. Image rendering can 
remain a separate concern.
   
   ## Validation
   
   - `17 passed, 4 deselected` across Graph, Mermaid, and visualization tests
   - the four deselected tests are unchanged Graphviz image tests that require 
the unavailable local `dot` executable
   - Black 23.11.0 (`--line-length 100`)
   - isort 5.12.0
   - Flake8 6.1.0
   - ASF header check
   - `git diff --check`
   
   Closes #414
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to