PlaneDefinition
Input shape accepted by definePlane().
import type { PlaneDefinition } from '@pbroom/color-kit/plane';types.ts:125interface PlaneDefinition<Model extends PlaneModel = PlaneModel> {
model?: Model;
x?: PlaneAxis<Model>;
y?: PlaneAxis<Model>;
fixed?: PlaneFixedInput<Model>;
color?: Color;
}Properties
- model?
Model Plane model.
Defaults to
'oklch'when omitted.- x?
PlaneAxis<Model> Horizontal axis.
Defaults to the model's
PLANE_MODEL_DEFAULT_AXES[model].x(lfor OKLCH) with its default range.- y?
PlaneAxis<Model> Vertical axis.
Defaults to the model's
PLANE_MODEL_DEFAULT_AXES[model].y(cfor OKLCH) with its default range.- fixed?
PlaneFixedInput<Model> Optional fixed channels for non-axis dimensions.
Channels are interpreted relative to
model, unsupported names throw, and defaults are model-specific.
Also exported from
@pbroom/color-kitthe same declaration, re-exported