API Reference
Class
VisualArtifactInterchangeMapping
Creates portable semantic interchange envelopes from ChartForgeX visual artifacts.
Inheritance
- Object
- VisualArtifactInterchangeMapping
Methods
public static VisualArtifactInterchangeEnvelope ToInterchangeEnvelope(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Returns:
VisualArtifactInterchangeEnvelopeCreates 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
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) #Returns:
StringSerializes an artifact's semantic interchange envelope to deterministic JSON.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
public static Byte[] ToInterchangeUtf8Json(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Returns:
Byte[]Serializes an artifact's semantic interchange envelope to deterministic UTF-8 JSON bytes.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?