Skip to content
ChartForgeX
Class

VisualArtifactInterchangeEnvelope

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
sealed

Represents the versioned, renderer-independent semantic form of a visual artifact.

Inheritance

  • object
  • VisualArtifactInterchangeEnvelope

Remarks

The interchange envelope is intended for package, process, and PowerShell assembly-load-context boundaries. It carries diagram semantics while rendered SVG remains an independent fallback.

Usage

Explore 32 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 26

Constructors

public VisualArtifactInterchangeEnvelope() #

Methods

public static VisualArtifactInterchangeEnvelope FromJson(string json) #

Parses and validates an interchange envelope from JSON text.

Parameters

json string required
public static VisualArtifactInterchangeEnvelope FromUtf8Json(byte[] json) #

Parses and validates an interchange envelope from UTF-8 JSON bytes.

Parameters

json byte[] required
public string ToJson() #

Serializes the envelope to deterministic UTF-8 JSON text.

Returns

string
public byte[] ToUtf8Json() #

Serializes the envelope to deterministic UTF-8 JSON bytes.

Returns

byte[]
public void Validate() #

Validates this typed snapshot without serializing it.

Properties

public string Schema { get; } #

Gets the schema identifier.

public int Version { get; } #

Gets the minimum schema version required by the captured typed data. Ordinary envelopes remain version 1.

public VisualArtifactKind Kind { get; set; } #

Gets or sets the visual artifact kind.

public VisualArtifactInterchangeFamily Family { get; set; } #

Gets or sets the structured semantic family, independently from the authoring kind.

public VisualArtifactSourceLanguage SourceLanguage { get; set; } #

Gets or sets the source language used to author the artifact.

public string Id { get; set; } #

Gets or sets the stable artifact identifier.

public string Title { get; set; } #

Gets or sets the artifact title.

public string Subtitle { get; set; } #

Gets or sets the artifact subtitle.

public VisualArtifactInterchangeTopologyArtifact? Topology { get; set; } #

Gets or sets topology-wide semantics for a topology envelope.

public VisualArtifactInterchangeFlowArtifact? Flow { get; set; } #

Gets or sets flow-wide semantics for a flow envelope.

public VisualArtifactInterchangeSequenceArtifact? Sequence { get; set; } #

Gets or sets sequence-wide semantics for a sequence envelope.

public VisualArtifactInterchangeRailroadArtifact? Railroad { get; set; } #

Gets or sets typed native railroad rules and presentation. Older version-1 readers without this family reject it.

public VisualArtifactInterchangeTreeViewArtifact? TreeView { get; set; } #

Gets or sets typed native directory rows and presentation. Older version-1 readers without this family reject it.

public VisualArtifactInterchangeWaterfallArtifact? Waterfall { get; set; } #

Gets or sets editable exclusive waterfall authoring and native presentation. Older version-1 readers reject this family.

public VisualArtifactInterchangeJourneyArtifact? Journey { get; set; } #

Gets or sets editable native journey tasks and presentation; requires version 2.

public VisualArtifactInterchangeTimelineArtifact? Timeline { get; set; } #

Gets or sets editable native categorical timeline periods and presentation; requires version 2.

public double? Width { get; set; } #

Gets or sets the natural width in pixels when known.

public double? Height { get; set; } #

Gets or sets the natural height in pixels when known.

public string? AccessibleName { get; set; } #

Gets or sets the accessible name.

public string? AccessibleDescription { get; set; } #

Gets or sets the accessible description.

public string? Language { get; set; } #

Gets or sets the BCP 47 language tag.

public bool IsDecorative { get; set; } #

Gets or sets whether the artifact is decorative.

public VisualArtifactInterchangePresentation? Presentation { get; set; } #

Gets or sets typed artifact presentation semantics.

public Dictionary<string, string> Extensions { get; } #

Gets opaque caller-defined extension data.

public List<VisualArtifactInterchangeGroup> Groups { get; } #

Gets logical groups, lanes, or containers.

public List<VisualArtifactInterchangeNode> Nodes { get; } #

Gets semantic nodes or participants.

public List<VisualArtifactInterchangeEdge> Edges { get; } #

Gets semantic edges or messages.

public List<VisualArtifactInterchangeScenario> Scenarios { get; } #

Gets reusable ordered scenarios or guided paths.

public List<VisualArtifactInterchangeAnnotation> Annotations { get; } #

Gets notes, blocks, and other diagram annotations.

Fields

public const string SchemaId #

The schema identifier emitted by this ChartForgeX version.

Value: chartforgex.visual-artifact
public const int CurrentVersion #

The highest schema version accepted by this ChartForgeX version.

Value: 2
public const int MaximumJsonUtf8Bytes #

Maximum accepted UTF-8 payload size for one interchange envelope.

Value: 8388608
public const int MaximumJsonCharacters #

Maximum accepted JSON text length for one interchange envelope.

Value: 8388608
public const int MaximumJsonValues #

Maximum accepted materialized JSON values for one interchange envelope.

Value: 600000
public const int MaximumArtworkImageDataUriCharacters #

Maximum characters in one recognized native raster Base64 artwork URI, within the whole-envelope budget.

Value: 2097152

Extension 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 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) #

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) #

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) #

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

Parameters

envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required

Exceptions

  • NotSupportedException โ€“ A carried fact has no editable Flow representation.
public static JourneyDiagramBlock ToJourneyDiagramBlock(VisualArtifactInterchangeEnvelope envelope) #

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

Parameters

envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required
public static RailroadDiagramBlock ToRailroadDiagramBlock(VisualArtifactInterchangeEnvelope envelope) #

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) #

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) #

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

Parameters

envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required
public static TopologyChart ToTopologyChart(VisualArtifactInterchangeEnvelope envelope) #

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) #

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

Parameters

envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required
public static TreeViewBlock ToTreeViewBlock(VisualArtifactInterchangeEnvelope envelope) #

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

Parameters

envelope ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope required
public static Chart ToWaterfallChart(VisualArtifactInterchangeEnvelope envelope) #

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.