UNPKG

588 BTypeScriptView Raw
1import { Primitive, TransformComponent as TC } from '../runtime';
2import { JitterTransform } from '../spec';
3export type JitterOptions = Omit<JitterTransform, 'type'>;
4export declare function rangeOf(value: Primitive[], scaleOptions: Record<string, any>, padding: number): [number, number];
5export declare function interpolate(t: number, a: number, b: number): number;
6/**
7 * The jitter transform produce dx and dy channels for marks (especially for point)
8 * with ordinal x and y dimension, say to make them jitter in their own space.
9 */
10export declare const Jitter: TC<JitterOptions>;