VisualArtifact
ChartForgeX.VisualArtifacts
Describes one product-neutral visual artifact that can be rendered, inspected, exported, or handed to a host adapter.
Inheritance
- object
- VisualArtifact
Usage
Explore 122 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 91
- Extension method VisualCanvas.ToVisualArtifact
- Extension method Chart.ToVisualArtifact
- Extension method ChartGrid.ToVisualArtifact
- Property VisualMarkupParseResult.Artifacts
- Extension method MermaidAgentflowDocument.ToVisualArtifact
- Method MermaidAgentflowRendering.ToVisualArtifact
- Extension method MermaidArchitectureDocument.ToVisualArtifact
- Method MermaidArchitectureRendering.ToVisualArtifact
- Extension method MermaidBlockDocument.ToVisualArtifact
- Method MermaidBlockRendering.ToVisualArtifact
- Extension method MermaidC4Document.ToVisualArtifact
- Method MermaidC4Rendering.ToVisualArtifact
- Extension method MermaidClassDocument.ToVisualArtifact
- Extension method MermaidCynefinDocument.ToVisualArtifact
- Method MermaidCynefinRendering.ToVisualArtifact
- Extension method MermaidDocument.ToVisualArtifact
- Extension method MermaidEntityRelationshipDocument.ToVisualArtifact
- Extension method MermaidEventModelingDocument.ToVisualArtifact
- Method MermaidEventModelingRendering.ToVisualArtifact
- Extension method MermaidFlowchartDocument.ToVisualArtifact
- Method MermaidFlowchartRendering.ToVisualArtifact
- Extension method MermaidGanttDocument.ToVisualArtifact
- Method MermaidGanttRendering.ToVisualArtifact
- Extension method MermaidGitGraphDocument.ToVisualArtifact
- Method MermaidGitGraphRendering.ToVisualArtifact
- Extension method MermaidIshikawaDocument.ToVisualArtifact
- Method MermaidIshikawaRendering.ToVisualArtifact
- Extension method MermaidJourneyDocument.ToVisualArtifact
- Method MermaidJourneyRendering.ToVisualArtifact
- Extension method MermaidKanbanDocument.ToVisualArtifact
- Extension method MermaidMindMapDocument.ToVisualArtifact
- Extension method MermaidPacketDocument.ToVisualArtifact
- Method MermaidPacketRendering.ToVisualArtifact
- Extension method MermaidPieDocument.ToVisualArtifact
- Method MermaidPieRendering.ToVisualArtifact
- Extension method MermaidQuadrantDocument.ToVisualArtifact
- Method MermaidQuadrantRendering.ToVisualArtifact
- Extension method MermaidRadarDocument.ToVisualArtifact
- Method MermaidRadarRendering.ToVisualArtifact
- Extension method MermaidRailroadDocument.ToVisualArtifact
- Method MermaidRailroadRendering.ToVisualArtifact
- Method MermaidRenderer.ToVisualArtifact
- Property MermaidRenderResult.Artifact
- Extension method MermaidRequirementDocument.ToVisualArtifact
- Method MermaidRequirementRendering.ToVisualArtifact
- Extension method MermaidSankeyDocument.ToVisualArtifact
- Method MermaidSankeyRendering.ToVisualArtifact
- Extension method MermaidSequenceDocument.ToVisualArtifact
- Method MermaidSequenceRendering.ToVisualArtifact
- Extension method MermaidStateDocument.ToVisualArtifact
- Extension method MermaidTimelineDocument.ToVisualArtifact
- Method MermaidTimelineRendering.ToVisualArtifact
- Method MermaidTopologyRendering.ToVisualArtifact
- Extension method MermaidTreemapDocument.ToVisualArtifact
- Method MermaidTreemapRendering.ToVisualArtifact
- Extension method MermaidTreeViewDocument.ToVisualArtifact
- Method MermaidTreeViewRendering.ToVisualArtifact
- Extension method MermaidVennDocument.ToVisualArtifact
- Method MermaidVennRendering.ToVisualArtifact
- Extension method MermaidWardleyDocument.ToVisualArtifact
- Method MermaidWardleyRendering.ToVisualArtifact
- Extension method MermaidXYChartDocument.ToVisualArtifact
- Method MermaidXYChartRendering.ToVisualArtifact
- Extension method MermaidZenUmlDocument.ToVisualArtifact
- Method MermaidZenUmlRendering.ToVisualArtifact
- Extension method CapturedVisualLayer.ToArtifact
- Extension method PreparedVisual.ToArtifact
- Method StoryArtifactExtensions.ToVisualArtifact
- Extension method VisualStory.ToVisualArtifact
- Extension method TerminalStory.ToVisualArtifact
- Extension method TopologyChart.ToVisualArtifact
- Method ChartArtifactRendering.ToVisualArtifact
- Method CompositeArtifactRendering.ToVisualArtifact
- Extension method FlowArtifact.ToVisualArtifact
- Method FlowArtifactRendering.ToVisualArtifact
- Extension method SequenceArtifact.ToVisualArtifact
- Method SequenceArtifactRendering.ToVisualArtifact
- Extension method TableArtifact.ToVisualArtifact
- Method TableArtifactRendering.ToVisualArtifact
- Method TopologyArtifactRendering.ToVisualArtifact
- Extension method VisualArtifact.AddWatermarks
- Extension method VisualArtifact.ToWatermarkedArtifact
- Method VisualArtifact.Clone
- Method VisualArtifact.Create
- Method VisualArtifactRendering.ToArtifact
- Method VisualCanvasArtifactRendering.ToVisualArtifact
- Method VisualGridArtifactRendering.ToVisualArtifact
- Method VisualWatermarkDecoration.AddWatermarks
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Extension method IVisualBlock.ToVisualArtifact
- Extension method VisualGrid.ToVisualArtifact
Accepted by parameters 31
- Method IVisualArtifactExportPolicy.BeforeExport
- Extension method VisualArtifact.AddWatermarks
- Extension method VisualArtifact.MeasureRasterSize
- Extension method VisualArtifact.SaveHtml
- Extension method VisualArtifact.SavePng
- Extension method VisualArtifact.SaveSvg
- Extension method VisualArtifact.ToHtmlPage
- Extension method VisualArtifact.ToInterchangeEnvelope
- Extension method VisualArtifact.ToInterchangeJson
- Extension method VisualArtifact.ToInterchangeUtf8Json
- Extension method VisualArtifact.ToPng
- Extension method VisualArtifact.ToRgbaImage
- Extension method VisualArtifact.ToSvg
- Extension method VisualArtifact.ToWatermarkedArtifact
- Extension method VisualArtifact.ToWatermarkedHtmlPage
- Extension method VisualArtifact.ToWatermarkedSvg
- Method VisualArtifactInterchangeMapping.ToInterchangeEnvelope
- Method VisualArtifactInterchangeMapping.ToInterchangeJson
- Method VisualArtifactInterchangeMapping.ToInterchangeUtf8Json
- Method VisualArtifactRendering.MeasureRasterSize
- Method VisualArtifactRendering.SaveHtml
- Method VisualArtifactRendering.SavePng
- Method VisualArtifactRendering.SaveSvg
- Method VisualArtifactRendering.ToHtmlPage
- Method VisualArtifactRendering.ToPng
- Method VisualArtifactRendering.ToRgbaImage
- Method VisualArtifactRendering.ToSvg
- Method VisualWatermarkDecoration.AddWatermarks
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Method VisualWatermarkDecoration.ToWatermarkedHtmlPage
- Method VisualWatermarkDecoration.ToWatermarkedSvg
Constructors
public VisualArtifact() #Methods
public VisualArtifact Clone() #Copies the artifact's host envelope independently of its semantic model and static presentation.
Returns
VisualArtifact A new artifact with independent metadata, accessibility, regions, and legend items.public static VisualArtifact Create(string id, VisualArtifactKind kind, object model) #Creates a visual artifact envelope for a model.
Parameters
- id string
- kind ChartForgeX.VisualArtifacts.VisualArtifactKind
- model object
Returns
VisualArtifactpublic bool SupportsExport(VisualArtifactExportFormat format) #Returns true when the requested formats are declared and an explicitly queried prepared JSON handoff fits its portable contract.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
Returns
boolInherited Methods
Properties
public IVisualArtifactExportPolicy? ExportPolicy { get; set; } #Gets or sets an optional producer/host policy for SVG, native pixels, PNG and standalone HTML exports.
public VisualArtifactHtmlSizing HtmlSizing { get; set; } #Gets or sets the producer's default standalone HTML sizing. Explicit export options override it.
public string Id { get; set; } #Gets or sets a stable artifact identifier.
public VisualArtifactKind Kind { get; set; } #Gets or sets the artifact kind.
public VisualArtifactSourceLanguage SourceLanguage { get; set; } #Gets or sets the source language used to author the artifact.
public string Subtitle { get; set; } #Gets or sets the artifact subtitle.
public object? Model { get; set; } #Gets or sets the renderer-independent artifact model.
public IStaticVisualSource? RenderSource { get; set; } #Gets or sets a producer-owned static presentation, independently of the semantic model.
public VisualArtifactExportFormat ExportFormats { get; set; } #Gets or sets the static export formats supported by this artifact.
public VisualSize? NaturalSize { get; set; } #Gets or sets the artifact's natural size in pixels when known.
public bool PreserveNaturalSize { get; set; } #Gets or sets a value indicating whether exporters must preserve VisualArtifact.NaturalSize when a renderer prepares content on a larger internal canvas.
public Dictionary<string, string> Metadata { get; } #Gets artifact metadata for host adapters and exporters.
public VisualAccessibility Accessibility { get; } #Gets renderer-independent accessibility metadata for host adapters and capable exporters.
public List<VisualArtifactRegion> Regions { get; } #Gets host-inspectable visual regions.
public List<VisualArtifactLegendItem> Legend { get; } #Gets legend items associated with the artifact.
Extension Methods
public static VisualArtifact AddWatermarks(VisualArtifact artifact, params VisualWatermark[] watermarks) #Appends a snapshot of the supplied watermarks in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic static VisualArtifact AddWatermarks(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #Appends watermark presentation over a static source resolved with the supplied core options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic static VisualSize MeasureRasterSize(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #Measures the exact destination pixel dimensions of a core native artifact without allocating its raster canvas.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
Returns
VisualSizepublic static void SaveHtml(VisualArtifact artifact, string path) #Saves a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- The target HTML path.
public static void SaveHtml(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #Saves a supported visual artifact model to standalone HTML with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static void SavePng(VisualArtifact artifact, string path) #Saves a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- The target PNG path.
public static void SavePng(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #Saves a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static void SaveSvg(VisualArtifact artifact, string path) #Saves a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- The target SVG path.
public static void SaveSvg(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #Saves a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static string ToHtmlPage(VisualArtifact artifact) #Renders a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
string HTML markup.public static string ToHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? options) #Renders a supported visual artifact model to a standalone HTML page with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
Returns
stringpublic 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 byte[] ToPng(VisualArtifact artifact) #Renders a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
byte[] PNG bytes.public static byte[] ToPng(VisualArtifact artifact, VisualArtifactRenderOptions? options) #Renders a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
Returns
byte[]public static RgbaImage ToRgbaImage(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #Renders an artifact directly to native pixels, before format encoding.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The source semantics and optional static presentation.
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional core rendering options. Raster encoding options apply when encoding the result.
public static string ToSvg(VisualArtifact artifact) #Renders a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
string SVG markup.public static string ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options) #Renders a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
Returns
stringpublic static string ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options, string idScope) #Renders SVG with a caller-owned namespace for embedding several artifacts in one document.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- idScope string
Returns
stringpublic static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, params VisualWatermark[] watermarks) #Creates a detached artifact envelope with watermark presentation in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #Creates a detached watermarked artifact with static presentation resolved using the supplied core options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic static string ToWatermarkedHtmlPage(VisualArtifact artifact, string renderedSvg, params VisualWatermark[] watermarks) #Wraps trusted, already-rendered SVG with watermarks in a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The unchanged host envelope supplying the title, language, and natural-size fallback.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
string A standalone page containing the decorated SVG and the artifact's host title and language.public static string ToWatermarkedHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, string renderedSvg, params VisualWatermark[] watermarks) #Wraps trusted, already-rendered SVG with watermarks and explicit HTML host sizing.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The unchanged host envelope supplying the title, language, and natural-size fallback.
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- HTML sizing options; other rendering options do not alter the supplied SVG.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
string A standalone page containing the decorated SVG with the selected host sizing.public static string ToWatermarkedSvg(VisualArtifact artifact, string renderedSvg, params VisualWatermark[] watermarks) #Appends watermark layers to trusted, already-rendered SVG without resolving the artifact's model.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The unchanged host envelope; its natural size is a fallback when SVG dimensions are absent.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
string The supplied markup with watermark layers inserted before its closing SVG element.