Fixed color map for session node kinds, so timeline bars are colored the
same wherever they are drawn. The fill is identical for like kinds, making
same-color overlap read as a parallel process (only grid cells run
concurrently; containers and sequential steps never share a fill and a
time span). Kinds outside the fixed map fall back to rtemis_colors,
recycled as needed.
Usage
session_kind_colors(kinds)
Arguments
- kinds
Character vector: Node kinds to color, in display order, e.g.
unique(session_timeline(session)[["kind"]]).
Value
Named character vector of hex colors, one per element of kinds.
Details
Exported so rtemis.server can attach the map to its job.result session
slice, which is what lets the rtemislive web UI fill its bars without a
hard-coded palette of its own. Not user-facing API: @keywords internal
marks it exported for mechanism rather than for use.