UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

12 lines (8 loc) 317 B
import { Time as TimeScale } from '@antv/scale'; import { TimeScale as TimeScaleSpec } from '../spec'; import { ScaleComponent as SC } from '../runtime'; export type TimeOptions = Omit<TimeScaleSpec, 'type'>; export const Time: SC<TimeOptions> = (options) => { return new TimeScale(options); }; Time.props = {};