@pbroom/color-kit/driverColor state
ColorUpdateEvent
Change notification a single-color picker emits with its next state.
import type { ColorUpdateEvent } from '@pbroom/color-kit/driver';color-state.ts:78interface ColorUpdateEvent {
next: ColorState;
changedChannel?: ColorChannel;
interaction: ColorInteraction;
}Properties
- next
ColorState - State after the update.
- changedChannel?
ColorChannel - OKLCH channel the update edited, when it edited exactly one (see
getColorInputChangedChannel). - interaction
ColorInteraction - Input mechanism that caused the update.
Also exported from
@pbroom/color-kit/reactthe same declaration, re-exported