VisualArtifactInterchangeEnvelope
ChartForgeX.VisualArtifacts
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.
Returned or exposed by 6
- Method PreparedTopology.ToInterchangeEnvelope
- Extension method VisualArtifact.ToInterchangeEnvelope
- Method VisualArtifactInterchangeEnvelope.FromJson
- Method VisualArtifactInterchangeEnvelope.FromUtf8Json
- Method VisualArtifactInterchangeMapping.ToInterchangeEnvelope
- Property VisualArtifactInterchangeTopologyHierarchy.Source
Accepted by parameters 26
- Extension method PreparedVisual.ToArtifact
- Extension method VisualArtifactInterchangeEnvelope.ApplyCapturedEffects
- Extension method VisualArtifactInterchangeEnvelope.ApplyCapturedLayer
- Extension method VisualArtifactInterchangeEnvelope.PrepareTurbulenceSource
- Extension method VisualArtifactInterchangeEnvelope.ToFlowArtifact
- Extension method VisualArtifactInterchangeEnvelope.ToJourneyDiagramBlock
- Extension method VisualArtifactInterchangeEnvelope.ToRailroadDiagramBlock
- Extension method VisualArtifactInterchangeEnvelope.ToSequenceArtifact
- Extension method VisualArtifactInterchangeEnvelope.ToTimelineDiagramBlock
- Extension method VisualArtifactInterchangeEnvelope.ToTopologyChart
- Extension method VisualArtifactInterchangeEnvelope.ToTopologyHierarchySource
- Extension method VisualArtifactInterchangeEnvelope.ToTreeViewBlock
- Extension method VisualArtifactInterchangeEnvelope.ToWaterfallChart
- Method VisualArtifactInterchangeMapping.ApplyCapturedEffects
- Method VisualArtifactInterchangeMapping.ApplyCapturedLayer
- Method VisualArtifactInterchangeMapping.PrepareTurbulenceSource
- Method VisualArtifactInterchangeMapping.ToFlowArtifact
- Method VisualArtifactInterchangeMapping.ToJourneyDiagramBlock
- Method VisualArtifactInterchangeMapping.ToRailroadDiagramBlock
- Method VisualArtifactInterchangeMapping.ToSequenceArtifact
- Method VisualArtifactInterchangeMapping.ToTimelineDiagramBlock
- Method VisualArtifactInterchangeMapping.ToTopologyChart
- Method VisualArtifactInterchangeMapping.ToTopologyHierarchySource
- Method VisualArtifactInterchangeMapping.ToTreeViewBlock
- Method VisualArtifactInterchangeMapping.ToWaterfallChart
- Method VisualArtifactRendering.ToArtifact
Constructors
public VisualArtifactInterchangeEnvelope() #Methods
public static VisualArtifactInterchangeEnvelope FromJson(string json) #Parses and validates an interchange envelope from JSON text.
Parameters
- json string
public static VisualArtifactInterchangeEnvelope FromUtf8Json(byte[] json) #Parses and validates an interchange envelope from UTF-8 JSON bytes.
Parameters
- json byte[]
public void Validate() #Validates this typed snapshot without serializing it.
Inherited Methods
Properties
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.
chartforgex.visual-artifactpublic const int CurrentVersion #The highest schema version accepted by this ChartForgeX version.
2public const int MaximumJsonUtf8Bytes #Maximum accepted UTF-8 payload size for one interchange envelope.
8388608public const int MaximumJsonCharacters #Maximum accepted JSON text length for one interchange envelope.
8388608public const int MaximumJsonValues #Maximum accepted materialized JSON values for one interchange envelope.
600000public const int MaximumArtworkImageDataUriCharacters #Maximum characters in one recognized native raster Base64 artwork URI, within the whole-envelope budget.
2097152Extension 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 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.