g3-toolkit API Reference
    Preparing search index...

    Function severityOverlays

    • Derive up to three severity-tier overlays from a report, over the FOCUS NODES (and, where a result path names a direct property, the focus node's edges of that type, supplied via pathEdgeResolver). Each tier is independently toggleable through the overlay store; deactivating all restores exactly. Empty tiers are omitted.

      pathEdgeResolver maps (focusNode, path) -> edge ids to emphasize; callers wire it to their UGM (edges from the focus node whose predicate matches the path). Omitted means node-only emphasis.

      Parameters

      • report: ShaclReportDocument
      • OptionalpathEdgeResolver: (focusNode: string, path: string) => string[]

      Returns StructuralOverlay[]