VisualArtifactInterchangeMapping
ChartForgeX.VisualArtifacts
Creates portable semantic interchange envelopes from ChartForgeX visual artifacts.
Inheritance
- object
- VisualArtifactInterchangeMapping
Methods
public static PreparedVisual ApplyCapturedEffects(VisualArtifactInterchangeEnvelope envelope, PreparedVisual source, CancellationToken cancellationToken = default) #Replays a bounded ordered root presentation on caller-prepared source in the captured source viewport.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- Validated typed effect inputs, independently retained from editable source facts.
- source ChartForgeX.Rendering.PreparedVisual
- Fresh unwrapped source prepared through its existing typed family owner.
- cancellationToken System.Threading.CancellationToken = default
- Cancels before snapshots and publication; no token is retained.
Returns
PreparedVisual The same source for empty policy, otherwise its detached retained presentation.public static CapturedVisualLayer ApplyCapturedLayer(VisualArtifactInterchangeEnvelope envelope, PreparedVisual source, CancellationToken cancellationToken = default) #Replays root effects, one explicit capture and any following captured-layer masks.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- Validated ordered presentation with exactly one terminal frame.
- source ChartForgeX.Rendering.PreparedVisual
- Fresh caller-prepared source; its own facts become the returned layer's source.
- cancellationToken System.Threading.CancellationToken = default
- Cancels native capture, effect rows and publication without retaining a token.
public static PreparedVisual PrepareTurbulenceSource(VisualArtifactInterchangeEnvelope envelope, VisualRenderContext context) #Restores one typed procedural source through its native owner and an explicit fresh caller context.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- Validated pure Unknown/None source facts, without a carried captured-effect chain.
- context ChartForgeX.Rendering.VisualRenderContext
- Explicit same-size viewport, insets, theme, fonts and frame for fresh native preparation.
Returns
PreparedVisual A detached preparation retaining source identity, extensions and accessibility with actual fresh frame facts.public static FlowArtifact ToFlowArtifact(VisualArtifactInterchangeEnvelope envelope) #Restores a detached editable flow through its existing ordered lane, step and connector compiler.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
Returns
FlowArtifactExceptions
NotSupportedExceptionโ A carried fact has no editable Flow representation.
public static VisualArtifactInterchangeEnvelope ToInterchangeEnvelope(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Creates a versioned semantic interchange envelope for an artifact.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact to project.
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional topology preparation options used to capture deterministic coordinates.
Returns
VisualArtifactInterchangeEnvelope A portable semantic envelope. Unsupported visual kinds retain common metadata and use their separately rendered SVG fallback.public static string ToInterchangeJson(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Serializes an artifact's semantic interchange envelope to deterministic JSON.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
Returns
stringpublic static byte[] ToInterchangeUtf8Json(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Serializes an artifact's semantic interchange envelope to deterministic UTF-8 JSON bytes.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
Returns
byte[]public static JourneyDiagramBlock ToJourneyDiagramBlock(VisualArtifactInterchangeEnvelope envelope) #Rebuilds a new editable native journey from validated semantics and presentation.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
Returns
JourneyDiagramBlockpublic static RailroadDiagramBlock ToRailroadDiagramBlock(VisualArtifactInterchangeEnvelope envelope) #Rebuilds an editable native railroad block from validated portable rules and presentation.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- A railroad-family interchange envelope. Metadata and source-language identity remain on this envelope.
Returns
RailroadDiagramBlock A new native block and rule collection; immutable expressions and theme values may be shared safely.public static SequenceArtifact ToSequenceArtifact(VisualArtifactInterchangeEnvelope envelope) #Restores detached editable sequence facts from a validated typed portable envelope without consulting SVG.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- A Sequence-family envelope with authoritative participant IDs, message order and typed annotations.
Returns
SequenceArtifact A new native sequence with detached mutable records, metadata, presentation and source-ordered instantaneous notations.Exceptions
NotSupportedExceptionโ A carried field has no faithful editable sequence representation.
public static TimelineDiagramBlock ToTimelineDiagramBlock(VisualArtifactInterchangeEnvelope envelope) #Rebuilds a new editable native timeline from validated semantics and presentation.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
Returns
TimelineDiagramBlockpublic static TopologyChart ToTopologyChart(VisualArtifactInterchangeEnvelope envelope) #Restores an editable Manual topology from validated portable graph data and prepared bounds.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- A typed Topology-family envelope. Common metadata and source-language facts remain on this envelope.
Returns
TopologyChart A new graph with detached mutable entities, metadata, detail styles, artwork, legend and scenarios.Exceptions
NotSupportedExceptionโ The family or a carried field has no faithful native topology representation.
public static TopologyChart ToTopologyHierarchySource(VisualArtifactInterchangeEnvelope envelope) #Restores the complete raw organization graph retained by a hierarchy projection.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
Returns
TopologyChartpublic static TreeViewBlock ToTreeViewBlock(VisualArtifactInterchangeEnvelope envelope) #Rebuilds editable native directory rows from validated portable semantics and presentation.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
Returns
TreeViewBlockpublic static Chart ToWaterfallChart(VisualArtifactInterchangeEnvelope envelope) #Rebuilds one editable exclusive waterfall from validated authored data, identities and native presentation.
Parameters
- envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope
- A Waterfall-family envelope. Artifact metadata and source-language facts remain on this envelope.
Returns
Chart A new chart and series. Imported collections and mutable presentation are detached from the envelope.