Skip to content
ChartForgeX
Class

PreparedTopology

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
sealed

A detached layout snapshot shared by SVG, PNG, diagnostics, and native-document interchange. Changes to the source chart, options, artwork or font resources do not change the compiled scene.

Inheritance

  • object
  • PreparedTopology

Usage

Explore 17 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 10

Methods

public TopologyLayoutDiagnosticReport Analyze() #

Measures the prepared geometry in output coordinates without running layout again. The returned report is detached.

public TopologyReadabilityReport AssessReadability(double targetWidth, double targetHeight, double minimumScale = 0.65) #

Evaluates collisions, viewport expansion, and readability at a target display size.

Parameters

targetWidth double required
targetHeight double required
minimumScale double = 0.65 optional
public VisualArtifactInterchangeEnvelope ToInterchangeEnvelope() #

Returns a detached semantic envelope with the positions used by the renderers.

public byte[] ToPng() #

Renders the same prepared geometry through the dependency-free raster renderer.

Returns

byte[]
public string ToSvg() #

Renders the prepared geometry without running layout again.

Returns

string

Properties

public double Width { get; } #

Gets the prepared geometry width in pixels, before optional output fitting.

public double Height { get; } #

Gets the prepared geometry height in pixels, before optional output fitting.

public int NodeCount { get; } #

Gets the number of nodes retained by the selected view.

public TopologyHierarchyView? HierarchyView { get; } #

Gets the immutable organization request, or null for ordinary preparation.

public int SourceNodeCount { get; } #

Gets the complete captured source count for an organization view, otherwise the retained node count.

public int EdgeCount { get; } #

Gets the number of retained relationships.

public string? Title { get; } #

Gets the source title without requiring interchange serialization.

public string? Language { get; } #

Gets the source language for accessible labels and surrounding document content.

Extension Methods

WithMotion 2 overloads
public static TopologyMotionPresentation WithMotion(PreparedTopology prepared, TopologyMotionOptions motion) #

Adds motion to an already prepared topology without repeating layout.

Parameters

prepared ChartForgeX.Topology.PreparedTopology required
motion ChartForgeX.Topology.TopologyMotionOptions required
public static TopologyMotionPresentation WithMotion(PreparedTopology prepared, TopologyMotionOptions motion, string? preferredScenarioId) #

Adds motion to prepared geometry with an independent route scenario preference.

Parameters

prepared ChartForgeX.Topology.PreparedTopology required
motion ChartForgeX.Topology.TopologyMotionOptions required
preferredScenarioId string? required