@pbroom/color-kit/driverMulti color

MultiColorModel

Normalized multi-color model: requested colors plus one shared display context. This is the canonical state machine shape; use materializeMultiColorState to derive per-entry ColorStates at the consumer boundary.

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

Properties

entriesRecord<string, MultiColorEntryModel>
Entry data 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.