Interface IDiagramRenderer<TModel>
- Namespace
- ProjGraph.Lib.Core.Abstractions
- Assembly
- ProjGraph.Lib.Core.dll
Defines a contract for rendering models into a diagram string.
public interface IDiagramRenderer<in TModel>
Type Parameters
TModelThe type of model to render.
Properties
Format
Gets the format name this renderer produces (e.g., "mermaid", "tree", "flat").
string Format { get; }
Property Value
Methods
Render(TModel, DiagramOptions?)
Renders the specified model into a string representation.
string Render(TModel model, DiagramOptions? options = null)
Parameters
modelTModelThe model to render.
optionsDiagramOptionsThe options for rendering the diagram.
Returns
- string
A string representation of the diagram.