Source: factory.core/extend.visual/ObjVisual.py
Unified rendering utility for diagrams and charts.
All methods are static - no database connection or
instance state required. Each method returns the
path to the rendered PNG file, or an empty string
...
| Method | Signature | Description |
|---|---|---|
| lighten | lighten(hex_colour: str, factor: float = 0.8) -> str |
Mix a hex colour toward white. |
| render_mermaid | render_mermaid(mermaid_text: str, output_path: str = '', accent: str = '#4a2767', accent2: str = '#7b5ea7', width: int = 1200) -> str |
Render Mermaid diagram text to a PNG file. |
| render_piper | render_piper(flow_text: str, output_path: str) -> str |
Render a ProcessPiper diagram to PNG. |
| render_plotly_sankey | render_plotly_sankey(labels: list[str], sources: list[int], targets: list[int], values: list[int], node_colours: list[str], output_path: str, title: str = '', width: int = 1200, height: int = 600) -> str |
Render a Plotly Sankey diagram to PNG. |
| render_plotly_bar | render_plotly_bar(labels: list[str], values: list[float], output_path: str, accent: str = '', title: str = '', width: int = 800, height: int = 400) -> str |
Render a horizontal bar chart to PNG. |