# PreparedTopology

A detached layout snapshot shared by SVG, PNG, diagnostics, and native-document interchange.

 Class  

`ChartForgeX.Topology`

**Namespace**

`ChartForgeX.Topology`

**Assembly**

`ChartForgeX`

**Source**

[PreparedTopology.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L94)

**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.

### Returned or exposed by 7

- Extension method [TopologyChart.Prepare](/api/chartforgex-topology-topologychart/#extension-prepare-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions)
- Extension method [TopologyChart.PrepareScenarioStep](/api/chartforgex-topology-topologychart/#extension-preparescenariostep-chartforgex-topology-topologychart-string-int32-chartforgex-topology-topologyrenderoptions)
- Method [TopologyChartExtensions.Prepare](/api/chartforgex-topology-topologychartextensions/#method-prepare-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions)
- Method [TopologyChartExtensions.PrepareScenarioStep](/api/chartforgex-topology-topologychartextensions/#method-preparescenariostep-chartforgex-topology-topologychart-string-int32-chartforgex-topology-topologyrenderoptions)
- Property [TopologyReport.Overview](/api/chartforgex-topology-topologyreport/#property-overview)
- Property [TopologyReport.Pages](/api/chartforgex-topology-topologyreport/#property-pages)
- Property [TopologyReport.Source](/api/chartforgex-topology-topologyreport/#property-source)

### Accepted by parameters 10

- Method [HtmlInteractiveTopologyRenderer.RenderPresentationFragment](/api/chartforgex-interactivity-html-htmlinteractivetopologyrenderer/#method-renderpresentationfragment-chartforgex-topology-topologychart-func-chartforgex-topology-preparedtopology-system-string-chartforgex-topology-topologyrenderoptions) parameter `renderSvg`
- Method [HtmlInteractiveTopologyRenderer.RenderPresentationFragmentWithoutAssets](/api/chartforgex-interactivity-html-htmlinteractivetopologyrenderer/#method-renderpresentationfragmentwithoutassets-chartforgex-topology-topologychart-func-chartforgex-topology-preparedtopology-system-string-chartforgex-topology-topologyrenderoptions) parameter `renderSvg`
- Method [HtmlInteractiveTopologyRenderer.RenderPresentationPage](/api/chartforgex-interactivity-html-htmlinteractivetopologyrenderer/#method-renderpresentationpage-chartforgex-topology-topologychart-func-chartforgex-topology-preparedtopology-system-string-chartforgex-topology-topologyrenderoptions-chartforgex-interactivity-html-htmlassetreferences) parameter `renderSvg`
- Method [InteractiveTopologyExtensions.SaveInteractiveHtml](/api/chartforgex-interactivity-html-interactivetopologyextensions/#method-saveinteractivehtml-chartforgex-topology-topologychart-string-chartforgex-topology-topologyrenderoptions-func-chartforgex-topology-preparedtopology-system-string) parameter `svgPresentation`
- Method [InteractiveTopologyExtensions.ToInteractiveHtmlPage](/api/chartforgex-interactivity-html-interactivetopologyextensions/#method-tointeractivehtmlpage-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions-func-chartforgex-topology-preparedtopology-system-string) parameter `svgPresentation`
- Extension method [PreparedTopology.WithMotion](/api/chartforgex-topology-preparedtopology/#extension-withmotion-chartforgex-topology-preparedtopology-chartforgex-topology-topologymotionoptions) parameter `prepared`
- Method [TopologyCellLayout.Create](/api/chartforgex-topology-topologycelllayout/#method-create-chartforgex-topology-preparedtopology-chartforgex-topology-topologycelllayoutoptions) parameter `prepared`
- Extension method [TopologyChart.SaveInteractiveHtml](/api/chartforgex-topology-topologychart/#extension-saveinteractivehtml-chartforgex-topology-topologychart-string-chartforgex-topology-topologyrenderoptions-func-chartforgex-topology-preparedtopology-system-string) parameter `svgPresentation`
- Extension method [TopologyChart.ToInteractiveHtmlPage](/api/chartforgex-topology-topologychart/#extension-tointeractivehtmlpage-chartforgex-topology-topologychart-chartforgex-topology-topologyrenderoptions-func-chartforgex-topology-preparedtopology-system-string) parameter `svgPresentation`
- Method [TopologyMotionExtensions.WithMotion](/api/chartforgex-topology-topologymotionextensions/#method-withmotion-chartforgex-topology-preparedtopology-chartforgex-topology-topologymotionoptions) parameter `prepared`

 Filter members   

    Show inherited   

 

## Methods

 `public TopologyLayoutDiagnosticReport Analyze()` [#](#method-analyze) 

[PreparedTopology.cs:108](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L108)

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

Returns

 `TopologyLayoutDiagnosticReport` 

 `public TopologyReadabilityReport AssessReadability(double targetWidth, double targetHeight, double minimumScale = 0.65)` [#](#method-assessreadability-double-double-double) 

[PreparedTopology.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L112)

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

Parameters

**targetWidth double required**

**targetHeight double required**

**minimumScale double = 0.65 optional**

Returns

 `TopologyReadabilityReport` 

 `public VisualArtifactInterchangeEnvelope ToInterchangeEnvelope()` [#](#method-tointerchangeenvelope) 

[PreparedTopology.cs:105](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L105)

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

Returns

 `VisualArtifactInterchangeEnvelope` 

 `public byte[] ToPng()` [#](#method-topng) 

[PreparedTopology.cs:99](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L99)

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

Returns

 `byte[]` 

 `public string ToSvg()` [#](#method-tosvg) 

[PreparedTopology.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L94)

Renders the prepared geometry without running layout again.

Returns

 `string` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public double Width { get; }` [#](#property-width) 

[PreparedTopology.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L55)

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

 `public double Height { get; }` [#](#property-height) 

[PreparedTopology.cs:57](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L57)

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

 `public int NodeCount { get; }` [#](#property-nodecount) 

[PreparedTopology.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L59)

Gets the number of nodes retained by the selected view.

 `public TopologyHierarchyView? HierarchyView { get; }` [#](#property-hierarchyview) 

[PreparedTopology.cs:61](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L61)

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

 `public int SourceNodeCount { get; }` [#](#property-sourcenodecount) 

[PreparedTopology.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L63)

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

 `public int EdgeCount { get; }` [#](#property-edgecount) 

[PreparedTopology.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L65)

Gets the number of retained relationships.

 `public string? Title { get; }` [#](#property-title) 

[PreparedTopology.cs:67](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L67)

Gets the source title without requiring interchange serialization.

 `public string? Language { get; }` [#](#property-language) 

[PreparedTopology.cs:69](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/PreparedTopology.cs#L69)

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

## Extension Methods

 WithMotion 2 overloads 

 `public static TopologyMotionPresentation WithMotion(PreparedTopology prepared, TopologyMotionOptions motion)` [#](#extension-withmotion-chartforgex-topology-preparedtopology-chartforgex-topology-topologymotionoptions) 

[TopologyMotionExtensions.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionExtensions.cs#L24)

Adds motion to an already prepared topology without repeating layout.

Parameters

**prepared ChartForgeX.Topology.PreparedTopology required**

**motion ChartForgeX.Topology.TopologyMotionOptions required**

Returns

 `TopologyMotionPresentation` 

 `public static TopologyMotionPresentation WithMotion(PreparedTopology prepared, TopologyMotionOptions motion, string? preferredScenarioId)` [#](#extension-withmotion-chartforgex-topology-preparedtopology-chartforgex-topology-topologymotionoptions-string) 

[TopologyMotionExtensions.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionExtensions.cs#L28)

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**

Returns

 `TopologyMotionPresentation` 

<!-- PowerForge markdown artifact sha256:D8D9FFB206FCF83C00575A8117144181ACD6AA410D8F7AD8BFE7F0C7B291D56F -->
