@pbroom/color-kit/reactPlane geometry

ColorPlaneQueryOptions

Interaction options shared by the geometry hooks (useGamutBoundary, useChromaBand, useContrastRegion).

interfaceimport type { ColorPlaneQueryOptions } from '@pbroom/color-kit/react';plane-spec.ts:41
interface ColorPlaneQueryOptions {
  quality?: ColorPlaneQualityLevel;
  isDragging?: boolean;
  performanceProfile?: ColorPlanePerformanceProfile;
}

Properties

quality?ColorPlaneQualityLeveldefault 'high'
Sampling detail. Pass useAdaptiveQuality's quality to coarsen sampling while frames are slow.
isDragging?booleandefault false
Whether the plane is being dragged. While true, queries run in a shared Web Worker (when available) and the last result stays in place until a fresh one arrives; at rest they run synchronously.
performanceProfile?ColorPlanePerformanceProfiledefault 'auto'
Profile forwarded to the worker's compute scheduler.