Class
HtmlGraphExplorerRenderer
ChartForgeX.Interactivity.Html
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
- The graph scene to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null
- 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
- The graph scene to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null
- 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
- stage ChartForgeX.Interactivity.GraphSceneStage? = null
- configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null
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
- stage ChartForgeX.Interactivity.GraphSceneStage? = null
- configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null
Returns
string