UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

12 lines (8 loc) 357 B
import { Quantize as QuantizeScale } from '@antv/scale'; import { ScaleComponent as SC } from '../runtime'; import { QuantizeScale as QuantizeScaleSpec } from '../spec'; export type QuantizeOptions = Omit<QuantizeScaleSpec, 'type'>; export const Quantize: SC<QuantizeOptions> = (options) => { return new QuantizeScale(options); }; Quantize.props = {};