Skip to content
ChartForgeX
Class

InteractiveDiagramExtensions

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
static

Provides adapter-owned interactive HTML for flow and sequence diagrams.

Inheritance

  • object
  • InteractiveDiagramExtensions

Remarks

The page embeds the same script-free SVG as the static export and adds hover and keyboard exploration, a readout of the focused step or message and, for sequences, message playback. Static output is unchanged.

Methods

ToInteractiveHtmlFragment 2 overloads
public static string ToInteractiveHtmlFragment(FlowArtifact flow, VisualRenderContext? context = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Renders a self-contained interactive flow fragment with its style and runtime inlined.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the flow's own export request.
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
Optional control-message configuration; authored text remains unchanged.

Returns

string
public static string ToInteractiveHtmlFragment(SequenceArtifact sequence, VisualRenderContext? context = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Renders a self-contained interactive sequence fragment with its style and runtime inlined.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The sequence to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the sequence's natural size and theme.
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
Optional control-message configuration; authored text remains unchanged.

Returns

string
ToInteractiveHtmlPage 2 overloads
public static string ToInteractiveHtmlPage(FlowArtifact flow, VisualRenderContext? context = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Renders a complete self-contained interactive flow page.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the flow's own export request.
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
Optional control-message configuration; authored text remains unchanged.

Returns

string
public static string ToInteractiveHtmlPage(SequenceArtifact sequence, VisualRenderContext? context = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Renders a complete self-contained interactive sequence page with message playback.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The sequence to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the sequence's natural size and theme.
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
Optional control-message configuration; authored text remains unchanged.

Returns

string