# VisualArtifactInterchangeMapping

Creates portable semantic interchange envelopes from ChartForgeX visual artifacts.

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

[VisualArtifactInterchangeMapping.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.cs#L23)

**Modifiers**

static

Creates portable semantic interchange envelopes from ChartForgeX visual artifacts.

## Inheritance

- object
- VisualArtifactInterchangeMapping

 Filter members   

    Show inherited   

 

## Methods

 `public static PreparedVisual ApplyCapturedEffects(VisualArtifactInterchangeEnvelope envelope, PreparedVisual source, CancellationToken cancellationToken = default)` [#](#method-applycapturedeffects-chartforgex-visualartifacts-visualartifactinterchangeenvelope-chartforgex-rendering-preparedvisual-threading-cancellationtoken) 

[VisualArtifactInterchangeMapping.CapturedEffects.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.CapturedEffects.cs#L16)

Replays a bounded ordered root presentation on caller-prepared source in the captured source viewport.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Validated typed effect inputs, independently retained from editable source facts.

**source ChartForgeX.Rendering.PreparedVisual required**

Fresh unwrapped source prepared through its existing typed family owner.

**cancellationToken System.Threading.CancellationToken = default optional**

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)` [#](#method-applycapturedlayer-chartforgex-visualartifacts-visualartifactinterchangeenvelope-chartforgex-rendering-preparedvisual-threading-cancellationtoken) 

[VisualArtifactInterchangeMapping.CapturedEffects.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.CapturedEffects.cs#L40)

Replays root effects, one explicit capture and any following captured-layer masks.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Validated ordered presentation with exactly one terminal frame.

**source ChartForgeX.Rendering.PreparedVisual required**

Fresh caller-prepared source; its own facts become the returned layer's source.

**cancellationToken System.Threading.CancellationToken = default optional**

Cancels native capture, effect rows and publication without retaining a token.

Returns

 `CapturedVisualLayer` An actual captured layer whose source and output frames remain distinct. 

 `public static PreparedVisual PrepareTurbulenceSource(VisualArtifactInterchangeEnvelope envelope, VisualRenderContext context)` [#](#method-prepareturbulencesource-chartforgex-visualartifacts-visualartifactinterchangeenvelope-chartforgex-rendering-visualrendercontext) 

[VisualArtifactInterchangeMapping.Turbulence.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Turbulence.cs#L19)

Restores one typed procedural source through its native owner and an explicit fresh caller context.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Validated pure Unknown/None source facts, without a carried captured-effect chain.

**context ChartForgeX.Rendering.VisualRenderContext required**

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)` [#](#method-toflowartifact-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Flow.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Flow.cs#L19)

Restores a detached editable flow through its existing ordered lane, step and connector compiler.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Returns

 `FlowArtifact` 

Exceptions

- `NotSupportedException` – A carried fact has no editable Flow representation.

 `public static VisualArtifactInterchangeEnvelope ToInterchangeEnvelope(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null)` [#](#method-tointerchangeenvelope-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions) 

[VisualArtifactInterchangeMapping.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.cs#L23)

Creates a versioned semantic interchange envelope for an artifact.

Parameters

**artifact ChartForgeX.VisualArtifacts.VisualArtifact required**

The artifact to project.

**renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null optional**

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)` [#](#method-tointerchangejson-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions) 

[VisualArtifactInterchangeMapping.cs:66](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.cs#L66)

Serializes an artifact's semantic interchange envelope to deterministic JSON.

Parameters

**artifact ChartForgeX.VisualArtifacts.VisualArtifact required**

**renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null optional**

Returns

 `string` 

 `public static byte[] ToInterchangeUtf8Json(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null)` [#](#method-tointerchangeutf8json-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions) 

[VisualArtifactInterchangeMapping.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.cs#L70)

Serializes an artifact's semantic interchange envelope to deterministic UTF-8 JSON bytes.

Parameters

**artifact ChartForgeX.VisualArtifacts.VisualArtifact required**

**renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static JourneyDiagramBlock ToJourneyDiagramBlock(VisualArtifactInterchangeEnvelope envelope)` [#](#method-tojourneydiagramblock-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Journey.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Journey.cs#L13)

Rebuilds a new editable native journey from validated semantics and presentation.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Returns

 `JourneyDiagramBlock` 

 `public static RailroadDiagramBlock ToRailroadDiagramBlock(VisualArtifactInterchangeEnvelope envelope)` [#](#method-torailroaddiagramblock-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Railroad.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Railroad.cs#L14)

Rebuilds an editable native railroad block from validated portable rules and presentation.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

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)` [#](#method-tosequenceartifact-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.SequenceRestoration.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.SequenceRestoration.cs#L21)

Restores detached editable sequence facts from a validated typed portable envelope without consulting SVG.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

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)` [#](#method-totimelinediagramblock-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Timeline.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Timeline.cs#L13)

Rebuilds a new editable native timeline from validated semantics and presentation.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Returns

 `TimelineDiagramBlock` 

 `public static TopologyChart ToTopologyChart(VisualArtifactInterchangeEnvelope envelope)` [#](#method-totopologychart-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Topology.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Topology.cs#L25)

Restores an editable Manual topology from validated portable graph data and prepared bounds.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

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)` [#](#method-totopologyhierarchysource-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.TopologyHierarchy.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.TopologyHierarchy.cs#L60)

Restores the complete raw organization graph retained by a hierarchy projection.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Returns

 `TopologyChart` 

 `public static TreeViewBlock ToTreeViewBlock(VisualArtifactInterchangeEnvelope envelope)` [#](#method-totreeviewblock-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.TreeView.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.TreeView.cs#L13)

Rebuilds editable native directory rows from validated portable semantics and presentation.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

Returns

 `TreeViewBlock` 

 `public static Chart ToWaterfallChart(VisualArtifactInterchangeEnvelope envelope)` [#](#method-towaterfallchart-chartforgex-visualartifacts-visualartifactinterchangeenvelope) 

[VisualArtifactInterchangeMapping.Waterfall.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/VisualArtifactInterchangeMapping.Waterfall.cs#L17)

Rebuilds one editable exclusive waterfall from validated authored data, identities and native presentation.

Parameters

**envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required**

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. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:7FE2EFFBDEC9C47A043C2CD3DBF0AAE63C73C30EEB49D652695D340BE156EA87 -->
