Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix: d3 scale types (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Nov 12, 2019
1 parent 341d946 commit 1bb49a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1,860 deletions.
1 change: 1 addition & 0 deletions packages/superset-ui-encodable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/superset-ui-encodable/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
2 changes: 1 addition & 1 deletion packages/superset-ui-encodable/src/types/Scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
Loading

0 comments on commit 1bb49a8

Please sign in to comment.