Skip to content
ChartForgeX
Class

FlowArtifactRendering

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
static

Provides static preview rendering helpers for flow artifacts.

Inheritance

  • object
  • FlowArtifactRendering

Methods

public static string ToHtmlPage(FlowArtifact flow) #

Renders a flow artifact static preview to a standalone HTML page.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

string HTML markup.
public static byte[] ToPng(FlowArtifact flow) #

Renders a flow artifact static preview to PNG.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

byte[] PNG bytes.
public static string ToSvg(FlowArtifact flow) #

Renders a flow artifact static preview to SVG.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

string SVG markup.
public static TopologyChart ToTopologyChart(FlowArtifact flow) #

Converts a flow artifact into a topology chart for deterministic static previews.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

TopologyChart A topology chart preview model.
public static VisualArtifact ToVisualArtifact(FlowArtifact flow, VisualArtifactSourceLanguage sourceLanguage = Native) #

Wraps a flow artifact in a product-neutral visual artifact envelope.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.
sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional
The source language that produced the flow.

Returns

VisualArtifact A visual artifact envelope.