Table of Contents

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

TModel

The type of model to render.

Properties

Format

Gets the format name this renderer produces (e.g., "mermaid", "tree", "flat").

string Format { get; }

Property Value

string

Methods

Render(TModel, DiagramOptions?)

Renders the specified model into a string representation.

string Render(TModel model, DiagramOptions? options = null)

Parameters

model TModel

The model to render.

options DiagramOptions

The options for rendering the diagram.

Returns

string

A string representation of the diagram.