@pbroom/color-kit/driverMulti color
MultiColorState
Materialized multi-color state: every entry expanded to a full ColorState that shares one display context (activeGamut/activeView).
import type { MultiColorState } from '@pbroom/color-kit/driver';multi-color-state.ts:35interface MultiColorState {
colors: Record<string, ColorState>;
order: string[];
selectedId: string | null;
activeGamut: GamutTarget;
activeView: ViewModel;
}Properties
- colors
Record<string, ColorState> - Full color state of each entry, 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.
Also exported from
@pbroom/color-kit/reactthe same declaration, re-exported