@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.
import type { MultiColorModel } from '@pbroom/color-kit/driver';multi-color-state.ts:79interface MultiColorModel {
entries: Record<string, MultiColorEntryModel>;
order: string[];
selectedId: string | null;
activeGamut: GamutTarget;
activeView: ViewModel;
}Properties
- entries
Record<string, MultiColorEntryModel> - Entry data keyed by id.
- order
string[] - Entry ids in display order.
- selectedId
string | null - Id of the selected entry, or
nullwhen there are no entries. - activeGamut
GamutTarget - Gamut every entry renders in.
- activeView
ViewModel - Model every entry is shown in.