Skip to content
ChartForgeX
Class

HtmlOfficeImoAssets

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
static

OfficeIMO.JavaScript's document writers and ChartForgeX adapter, shipped with this package so hosts can offer the chart menu's Excel and PDF downloads. To enable them, publish HtmlOfficeImoAssets.Files with HtmlInteractiveAssetFiles.WriteTo and reference the scripts in that order. Publishing the adapter also writes the default Archivo PDF fonts and their license beside it.

Inheritance

  • object
  • HtmlOfficeImoAssets

Remarks

The files are unmodified OfficeIMO bundles under the MIT license (see HtmlOfficeImoAssets.License). Their names carry a content hash, and HtmlAssetFile.Integrity gives the sha384 value for an integrity attribute or a hash-based policy. Neither file evaluates strings as code or writes inline styles, so pages served with script-src 'self'; style-src 'self' can load them.

Methods

public static IReadOnlyList<HtmlAssetFile> Files() #

Returns both scripts in load order. HtmlInteractiveAssetFiles.WriteTo also publishes the adapter's default font files and their license.

public static IReadOnlyList<HtmlBinaryAssetFile> PdfFonts() #

Returns the default PDF fonts for hosts that serve the adapter with their own asset publisher.

Returns

IReadOnlyList<HtmlBinaryAssetFile> HtmlOfficeImoAssets.PdfFontRegular followed by HtmlOfficeImoAssets.PdfFontBold. Serve both beside the adapter script.

Properties

public static HtmlAssetFile Core { get; } #

Gets OfficeIMO's document writers (officeimo.min.js). Load it before HtmlOfficeImoAssets.ChartForgeXAdapter.

public static HtmlAssetFile ChartForgeXAdapter { get; } #

Gets the ChartForgeX adapter (officeimo-chartforgex-adapter.min.js), which adds OfficeIMO.exportChartForgeX. Load HtmlOfficeImoAssets.Core first to provide the compatible modules it needs.

public static string License { get; } #

Gets OfficeIMO's MIT license notice, to keep beside the files wherever they are published.

public static HtmlBinaryAssetFile PdfFontRegular { get; } #

Gets the default static Archivo Regular face. The chart fetches it beside the adapter on the first PDF download and OfficeIMO embeds the glyphs it uses. Set HtmlChartInteractionOptions.PdfFontUrl to replace it.

public static HtmlBinaryAssetFile PdfFontBold { get; } #

Gets the default static Archivo Bold face for bold PDF text, such as titles. A replacement family uses its own HtmlChartInteractionOptions.PdfBoldFontUrl or its regular face.

public static string PdfFontLicense { get; } #

Gets the SIL Open Font License notice for the PDF fonts, to keep beside them wherever they are published.