@pbroom/color-kit/driverMulti color

MultiColorState

Materialized multi-color state: every entry expanded to a full ColorState that shares one display context (activeGamut/activeView).

interfaceimport type { MultiColorState } from '@pbroom/color-kit/driver';multi-color-state.ts:35
interface MultiColorState {
  colors: Record<string, ColorState>;
  order: string[];
  selectedId: string | null;
  activeGamut: GamutTarget;
  activeView: ViewModel;
}

Properties

colorsRecord<string, ColorState>
Full color state of each entry, keyed by id.
orderstring[]
Entry ids in display order.
selectedIdstring | null
Id of the selected entry, or null when there are no entries.
activeGamutGamutTarget
Gamut every entry renders in.
activeViewViewModel
Model every entry is shown in.

Also exported from