# HtmlInteractiveAssetFiles

Provides the interactive runtimes as shared asset files for bundles that reference them through HtmlAssetReferences instead of inlining one copy per page.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlInteractiveAssetFiles.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L49)

**Modifiers**

static

Provides the interactive runtimes as shared asset files for bundles that reference them through [HtmlAssetReferences](/api/chartforgex-interactivity-html-htmlassetreferences/) instead of inlining one copy per page.

## Inheritance

- object
- HtmlInteractiveAssetFiles

 Filter members   

    Show inherited   

 

## Methods

 Charts 5 overloads 

 `public static IReadOnlyList<HtmlAssetFile> Charts()` [#](#method-charts) 

[HtmlInteractiveAssetFiles.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L100)

Returns the files referenced by interactive chart and dashboard pages.

Returns

 `IReadOnlyList<HtmlAssetFile>` 

 `public static IReadOnlyList<HtmlAssetFile> Charts(HtmlChartInteractionOptions options)` [#](#method-charts-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[HtmlInteractiveAssetFiles.cs:107](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L107)

Returns the shared files for an interactive chart page, including the reader selected by its X navigator.

Parameters

**options ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions required**

The same options used to render the page.

Returns

 `IReadOnlyList<HtmlAssetFile>` The stylesheet, matching runtime and feature bundles to write to the shared asset directory. 

 `public static IReadOnlyList<HtmlAssetFile> Charts(HtmlChartRuntime runtime, ChartInteractionFeatures features, bool adaptive = false)` [#](#method-charts-chartforgex-interactivity-html-htmlchartruntime-chartforgex-interactivity-chartinteractionfeatures-boolean) 

[HtmlInteractiveAssetFiles.cs:124](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L124)

Returns the shared files matching a page's declared runtime and chart features.

Parameters

**runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime required**

The same runtime contract used to render the page.

**features ChartForgeX.Interactivity.ChartInteractionFeatures required**

The union of interaction features declared by its charts.

**adaptive bool = false optional**

Whether any chart uses separately prepared adaptive drawings.

Returns

 `IReadOnlyList<HtmlAssetFile>` The stylesheet, matching runtime and any feature bundles to write to the shared asset directory. 

 `public static IReadOnlyList<HtmlAssetFile> Charts(HtmlChartRuntime runtime, ChartInteractionFeatures features, bool adaptive, bool drilldown)` [#](#method-charts-chartforgex-interactivity-html-htmlchartruntime-chartforgex-interactivity-chartinteractionfeatures-boolean-boolean) 

[HtmlInteractiveAssetFiles.cs:134](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L134)

Returns shared assets for pages that may open child charts.

Parameters

**runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime required**

The same runtime contract used to render the page.

**features ChartForgeX.Interactivity.ChartInteractionFeatures required**

The union of interaction features declared by its charts.

**adaptive bool required**

Whether the parent chart uses separately prepared adaptive drawings.

**drilldown bool required**

Whether the page has category drill-down targets.

Returns

 `IReadOnlyList<HtmlAssetFile>` The stylesheet, matching runtimes and feature bundles to write to the shared asset directory. 

 `public static IReadOnlyList<HtmlAssetFile> Charts(Chart chart, HtmlChartInteractionOptions options)` [#](#method-charts-chartforgex-core-chart-chartforgex-interactivity-html-htmlchartinteractionoptions) 

[HtmlInteractiveAssetFiles.cs:158](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L158)

Returns the shared assets for a chart and its full HTML options, including opt-in schedule editing.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart rendered by the page.

**options ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions required**

The options used to render the page.

Returns

 `IReadOnlyList<HtmlAssetFile>` The stylesheet, effective runtime and feature bundles. 

 `public static HtmlAssetFile ChartScriptFor(HtmlChartRuntime runtime, ChartInteractionFeatures features, bool adaptive = false)` [#](#method-chartscriptfor-chartforgex-interactivity-html-htmlchartruntime-chartforgex-interactivity-chartinteractionfeatures-boolean) 

[HtmlInteractiveAssetFiles.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L49)

Gets the runtime matching an offline reader's declared features or the full host API contract.

Parameters

**runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime required**

The runtime contract required by the page.

**features ChartForgeX.Interactivity.ChartInteractionFeatures required**

The union of interaction features declared by its charts.

**adaptive bool = false optional**

Whether any chart uses separately prepared adaptive drawings.

Returns

 `HtmlAssetFile` A content-addressed script file suitable for shared assets. 

 `public static IReadOnlyList<HtmlAssetFile> GraphExplorer()` [#](#method-graphexplorer) 

[HtmlInteractiveAssetFiles.cs:166](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L166)

Returns the files referenced by graph explorer pages.

Returns

 `IReadOnlyList<HtmlAssetFile>` 

 `public static HtmlAssetFile TopologyScript(TopologyRenderOptions? options = null)` [#](#method-topologyscript-chartforgex-topology-topologyrenderoptions) 

[HtmlInteractiveAssetFiles.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L91)

Gets the topology interaction runtime for the given render options. The runtime is specialised to the CSS class prefix, so each prefix produces its own file name.

Parameters

**options ChartForgeX.Topology.TopologyRenderOptions? = null optional**

The topology render options used for the pages; null uses the defaults.

Returns

 `HtmlAssetFile` The topology runtime file. 

 `public static IReadOnlyList<string> WriteTo(string directory, IEnumerable<HtmlAssetFile> files)` [#](#method-writeto-string-collections-generic-ienumerable-chartforgex-interactivity-html-htmlassetfile) 

[HtmlInteractiveAssetFiles.cs:178](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L178)

Writes asset files into directory (created when missing). Files that already exist with the same content are left untouched, so repeated report runs keep one copy per bundle. New content is written to a temporary file and moved into place, so readers never see a partially written runtime and concurrent runs that write the same content succeed.

Parameters

**directory string required**

The bundle's asset folder, matching [HtmlAssetReferences.BasePath](/api/chartforgex-interactivity-html-htmlassetreferences/).

**files System.Collections.Generic.IEnumerable<ChartForgeX.Interactivity.Html.HtmlAssetFile> required**

The files to write.

Returns

 `IReadOnlyList<string>` The full paths of the asset files, including the default fonts when publishing the OfficeIMO adapter. 

## 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 static HtmlAssetFile ChartStyle { get; }` [#](#property-chartstyle) 

[HtmlInteractiveAssetFiles.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L34)

Gets the stylesheet used by interactive chart and dashboard pages.

 `public static HtmlAssetFile ChartFrameAlignmentStyle { get; }` [#](#property-chartframealignmentstyle) 

[HtmlInteractiveAssetFiles.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L38)

Gets the stylesheet for hosts that render asset-free chart sections with frame alignment.

 `public static HtmlAssetFile ChartScript { get; }` [#](#property-chartscript) 

[HtmlInteractiveAssetFiles.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L41)

Gets the runtime used by interactive chart and dashboard pages.

 `public static IReadOnlyList<HtmlAssetFile> ChartFeatureScripts { get; }` [#](#property-chartfeaturescripts) 

[HtmlInteractiveAssetFiles.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L70)

Gets the optional chart feature bundles. Pages fetch the bundles they declare on first use or while the browser is idle; hosts that register [HtmlInteractiveAssetFiles.ChartScript](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/) themselves can add these files beside it.

 `public static HtmlAssetFile NativeTextScript { get; }` [#](#property-nativetextscript) 

[HtmlInteractiveAssetFiles.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L73)

Gets the shared binary font registration and captured-text export adapter without loading a chart runtime.

 `public static HtmlAssetFile GraphExplorerStyle { get; }` [#](#property-graphexplorerstyle) 

[HtmlInteractiveAssetFiles.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L76)

Gets the stylesheet used by graph explorer pages.

 `public static HtmlAssetFile GraphExplorerScript { get; }` [#](#property-graphexplorerscript) 

[HtmlInteractiveAssetFiles.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L79)

Gets the runtime used by graph explorer pages.

 `public static HtmlAssetFile GraphExplorerPhysicsWorker { get; }` [#](#property-graphexplorerphysicsworker) 

[HtmlInteractiveAssetFiles.cs:82](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlInteractiveAssetFiles.cs#L82)

Gets the graph explorer's same-origin physics worker file for policies with worker-src 'self'.

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