asEsm

fun asEsm(): String

Emits the full palette as an ES-module source string. Used by the Gradle stigGenerateAsilPaletteJs task to produce stig-asil-palette.generated.js under js-vendor/src/, which the cytoscape JS scripts then import — keeping the hex values in a single source of truth.

Output shape: export const cascadingFaultHex = "#…"; export const vivid = { UNKNOWN: {…}, QM: {…}, … }; export const soft = { UNKNOWN: {…}, QM: {…}, … };

Generated with STIG