Class
InteractiveDiagramExtensions
ChartForgeX.Interactivity.Html
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
- The flow to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the flow's own export request.
- configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null
- Optional control-message configuration; authored text remains unchanged.
Returns
stringpublic 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
- The sequence to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the sequence's natural size and theme.
- configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null
- Optional control-message configuration; authored text remains unchanged.
Returns
stringToInteractiveHtmlPage 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
- The flow to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the flow's own export request.
- configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null
- Optional control-message configuration; authored text remains unchanged.
Returns
stringpublic 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
- The sequence to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the sequence's natural size and theme.
- configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null
- Optional control-message configuration; authored text remains unchanged.
Returns
string