fix: d3 scale types (#246)

This commit is contained in:
Krist Wongsuphasawat 2019-11-12 15:33:07 -08:00 committed by Yongjie Zhao
parent 20452b1cfc
commit f8bd7c6065
4 changed files with 4 additions and 1860 deletions

View File

@ -29,6 +29,7 @@
"dependencies": {
"@types/d3-array": "^2.0.0",
"@types/d3-interpolate": "^1.3.1",
"@types/d3-scale": "^2.1.1",
"@types/d3-time": "^1.0.10",
"d3-array": "^2.3.1",
"d3-interpolate": "^1.3.2",

View File

@ -1,3 +1,5 @@
export { default as Encoder } from './encoders/Encoder';
export { default as ChannelEncoder } from './encoders/ChannelEncoder';
export { default as createEncoderFactory } from './encoders/createEncoderFactory';
export { default as completeChannelDef } from './fillers/completeChannelDef';
export { default as createScaleFromScaleConfig } from './parsers/scale/createScaleFromScaleConfig';

View File

@ -191,7 +191,7 @@ export interface WithScale<Output extends Value = Value> {
/** Each ScaleCategory contains one or more ScaleType */
export type ScaleCategory = 'continuous' | 'discrete' | 'discretizing';
export type CategoricalScaleInput = HasToString | null | undefined;
export type CategoricalScaleInput = HasToString;
export interface ScaleTypeToD3ScaleType<Output extends Value = Value> {
[ScaleType.LINEAR]: ScaleLinear<Output, Output>;