HtmlInteractiveAssetFiles
ChartForgeX.Interactivity.Html
Provides the interactive runtimes as shared asset files for bundles that reference them through HtmlAssetReferences instead of inlining one copy per page.
Inheritance
- object
- HtmlInteractiveAssetFiles
Methods
public static IReadOnlyList<HtmlAssetFile> Charts() #Returns the files referenced by interactive chart and dashboard pages.
Returns
IReadOnlyList<HtmlAssetFile>public static IReadOnlyList<HtmlAssetFile> Charts(HtmlChartInteractionOptions options) #Returns the shared files for an interactive chart page, including the reader selected by its X navigator.
Parameters
- options ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions
- 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) #Returns the shared files matching a page's declared runtime and chart features.
Parameters
- runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime
- The same runtime contract used to render the page.
- features ChartForgeX.Interactivity.ChartInteractionFeatures
- The union of interaction features declared by its charts.
- adaptive bool = false
- 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) #Returns shared assets for pages that may open child charts.
Parameters
- runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime
- The same runtime contract used to render the page.
- features ChartForgeX.Interactivity.ChartInteractionFeatures
- The union of interaction features declared by its charts.
- adaptive bool
- Whether the parent chart uses separately prepared adaptive drawings.
- drilldown bool
- 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) #Returns the shared assets for a chart and its full HTML options, including opt-in schedule editing.
Parameters
- chart ChartForgeX.Core.Chart
- The chart rendered by the page.
- options ChartForgeX.Interactivity.Html.HtmlChartInteractionOptions
- The options used to render the page.
public static HtmlAssetFile ChartScriptFor(HtmlChartRuntime runtime, ChartInteractionFeatures features, bool adaptive = false) #Gets the runtime matching an offline reader's declared features or the full host API contract.
Parameters
- runtime ChartForgeX.Interactivity.Html.HtmlChartRuntime
- The runtime contract required by the page.
- features ChartForgeX.Interactivity.ChartInteractionFeatures
- The union of interaction features declared by its charts.
- adaptive bool = false
- Whether any chart uses separately prepared adaptive drawings.
public static IReadOnlyList<HtmlAssetFile> GraphExplorer() #Returns the files referenced by graph explorer pages.
Returns
IReadOnlyList<HtmlAssetFile>public static HtmlAssetFile TopologyScript(TopologyRenderOptions? options = null) #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
- The topology render options used for the pages; null uses the defaults.
public static IReadOnlyList<string> WriteTo(string directory, IEnumerable<HtmlAssetFile> files) #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
- The bundle's asset folder, matching HtmlAssetReferences.BasePath.
- files System.Collections.Generic.IEnumerable<ChartForgeX.Interactivity.Html.HtmlAssetFile>
- 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
Properties
public static HtmlAssetFile ChartStyle { get; } #Gets the stylesheet used by interactive chart and dashboard pages.
public static HtmlAssetFile ChartFrameAlignmentStyle { get; } #Gets the stylesheet for hosts that render asset-free chart sections with frame alignment.
public static HtmlAssetFile ChartScript { get; } #Gets the runtime used by interactive chart and dashboard pages.
public static IReadOnlyList<HtmlAssetFile> ChartFeatureScripts { get; } #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 themselves can add these files beside it.
public static HtmlAssetFile NativeTextScript { get; } #Gets the shared binary font registration and captured-text export adapter without loading a chart runtime.
public static HtmlAssetFile GraphExplorerStyle { get; } #Gets the stylesheet used by graph explorer pages.
public static HtmlAssetFile GraphExplorerScript { get; } #Gets the runtime used by graph explorer pages.
public static HtmlAssetFile GraphExplorerPhysicsWorker { get; } #Gets the graph explorer's same-origin physics worker file for policies with worker-src 'self'.