Skip to content
ChartForgeX
Class

HtmlGraphExplorerRenderer

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
sealed

Renders GraphScene instances as self-contained dependency-free HTML graph explorers.

Inheritance

  • object
  • HtmlGraphExplorerRenderer

Constructors

public HtmlGraphExplorerRenderer() #

Methods

public string RenderFragment(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #

Renders an embeddable graph explorer fragment containing scoped inline assets.

Parameters

scene ChartForgeX.Interactivity.GraphScene required
The graph scene to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional
Optional adapter configuration callback.

Returns

string A self-contained HTML fragment.
public string RenderPage(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #

Renders a complete HTML page containing the graph explorer and its inline assets.

Parameters

scene ChartForgeX.Interactivity.GraphScene required
The graph scene to render.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional
Optional adapter configuration callback.

Returns

string A complete self-contained HTML document.
public byte[] RenderStaticPng(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #

Renders a complete graph or planned hierarchy stage as deterministic PNG bytes.

Parameters

scene ChartForgeX.Interactivity.GraphScene required
stage ChartForgeX.Interactivity.GraphSceneStage? = null optional
configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optional

Returns

byte[]
public string RenderStaticSvg(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #

Renders a complete graph or planned hierarchy stage as deterministic, script-free SVG.

Parameters

scene ChartForgeX.Interactivity.GraphScene required
stage ChartForgeX.Interactivity.GraphSceneStage? = null optional
configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null optional

Returns

string

Properties

public static string StyleSheet { get; } #

Gets the scoped graph explorer CSS that hosts can register once.

public static string Script { get; } #

Gets the raw dependency-free graph explorer browser runtime.