Skip to content
ChartForgeX
Class

HtmlInteractiveTopologyRenderer

ChartForgeX.Interactivity.Html

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

Renders topology charts with the adapter-owned browser interaction runtime.

Inheritance

  • object
  • HtmlInteractiveTopologyRenderer

Constructors

public HtmlInteractiveTopologyRenderer() #

Methods

public HtmlChartSection PrepareHierarchySection(TopologyChart chart, TopologyHierarchyView? view = null, Action<HtmlChartInteractionOptions>? configure = null) #

Prepares genuine native organization hierarchy markup, exports and optional adaptive drawing.

Parameters

chart ChartForgeX.Topology.TopologyChart required
An unchanged layered topology created from explicit hierarchy/team inputs.
view ChartForgeX.Topology.TopologyHierarchyView? = null optional
Copied collapsed node IDs, sibling tie order and native direction, or null for the full source.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions>? = null optional
Optional HTML configuration. Numeric brush, chart comparison, scenarios, progress editing and axis navigators are unavailable.

Returns

HtmlChartSection A section using the common native acceptance, selection, keyboard, export and bookmark owner.
public string RenderFragment(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders a self-contained interactive topology HTML fragment.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
public string RenderFragmentWithoutAssets(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders interactive topology markup without CSS or JavaScript assets.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
RenderPage 2 overloads
public string RenderPage(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders a complete self-contained interactive topology HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
public string RenderPage(TopologyChart chart, TopologyRenderOptions? options, HtmlAssetReferences? externalAssets) #

Renders a complete interactive topology HTML page. When externalAssets is set, the interaction runtime is linked from its base path instead of inlined; write it once per bundle with HtmlInteractiveAssetFiles.TopologyScript using the same options. Page styles stay inline because they depend on the render options.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology to render.
options ChartForgeX.Topology.TopologyRenderOptions? required
Optional render options.
externalAssets ChartForgeX.Interactivity.Html.HtmlAssetReferences? required
Optional shared asset references; null inlines the runtime.

Returns

string A complete HTML document.
public string RenderPresentationFragment(TopologyChart chart, Func<PreparedTopology, string> renderSvg, TopologyRenderOptions? options = null) #

Renders a self-contained interactive fragment with producer-owned SVG over the adapter's prepared topology.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, string> required
Exports trusted SVG from the supplied detached topology. Preserve its geometry, topology metadata and identity scope; the callback runs once after interactive scenario and graph-control policies are applied.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional topology and HTML render options; caller-owned options are not modified.

Returns

string Interactive markup with inline CSS and JavaScript assets.
public string RenderPresentationFragmentWithoutAssets(TopologyChart chart, Func<PreparedTopology, string> renderSvg, TopologyRenderOptions? options = null) #

Renders producer-owned topology SVG and interactive controls without CSS or JavaScript assets.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, string> required
Exports trusted SVG from the supplied detached topology. Preserve its geometry, topology metadata and identity scope; the callback runs once after interactive scenario and graph-control policies are applied.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional topology and HTML render options; caller-owned options are not modified.

Returns

string Interactive markup that expects the embedding host to register topology HTML assets.
public string RenderPresentationPage(TopologyChart chart, Func<PreparedTopology, string> renderSvg, TopologyRenderOptions? options = null, HtmlAssetReferences? externalAssets = null) #

Renders a complete interactive page with producer-owned SVG over the adapter's prepared topology.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology whose metadata, scenarios and HTML controls are rendered.
renderSvg System.Func<ChartForgeX.Topology.PreparedTopology, string> required
Exports trusted SVG from the supplied detached topology, for example a script-free motion presentation. The callback runs once after interactive scenario and graph-control policies are applied. Retain the supplied geometry, topology metadata and SVG identity scope so browser controls target the same entities.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional topology and HTML render options; caller-owned options are not modified.
externalAssets ChartForgeX.Interactivity.Html.HtmlAssetReferences? = null optional
Optional shared interaction runtime references; null inlines the runtime.

Returns

string A complete HTML document whose viewport uses the prepared presentation's logical width.
public static string Script(TopologyRenderOptions? options = null) #

Builds the raw JavaScript runtime for host-level asset registration.

Parameters

options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string

Properties

public HtmlChartLocalization Localization { get; } #

Localizes adapter controls independently from native topology facts and descriptions.