UNPKG

vega-lite

Version:

Vega-Lite is a concise high-level language for interactive visualization.

24 lines 1.26 kB
import { SignalRef } from 'vega'; import { ScaleChannel } from '../../channel.js'; import { Config } from '../../config.js'; import { Domain, Scale } from '../../scale.js'; import { VgRange } from '../../vega.schema.js'; import { Explicit } from '../split.js'; import { UnitModel } from '../unit.js'; export declare const RANGE_PROPERTIES: (keyof Scale)[]; export declare function parseUnitScaleRange(model: UnitModel): void; /** * Return mixins that includes one of the Vega range types (explicit range, range.step, range.scheme). */ export declare function parseRangeForChannel(channel: ScaleChannel, model: UnitModel): Explicit<VgRange>; export declare function defaultContinuousToDiscreteCount(scaleType: 'quantile' | 'quantize' | 'threshold', config: Config, domain: Domain, channel: ScaleChannel): number; /** * Returns the linear interpolation of the range according to the cardinality * * @param rangeMin start of the range * @param rangeMax end of the range * @param cardinality number of values in the output range */ export declare function interpolateRange(rangeMin: number | SignalRef, rangeMax: number | SignalRef, cardinality: number): SignalRef; export declare const MAX_SIZE_RANGE_STEP_RATIO = 0.95; //# sourceMappingURL=range.d.ts.map