Skip to content

Commit

Permalink
feat: export more types and tickMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Jun 16, 2021
1 parent f8001ed commit 87700d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions __tests__/unit/scales/continuous.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { identity } from '@antv/util';
import { Continuous } from '../../../src/scales/continuous';
import { ContinuousOptions } from '../../../src/types';
import { createInterpolate } from '../../../src/utils';
import { Interpolate } from '../../../src';
import { Interpolate, ContinuousOptions, Continuous } from '../../../src';

describe('Continuous', () => {
type ScaleOptions = ContinuousOptions;
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/tick-methods/d3-log.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { d3Log } from '../../../src/tick-methods/d3-log';
import { d3Log } from '../../../src';

function round(x: number) {
return Math.round(x * 1e12) / 1e12;
Expand Down
3 changes: 1 addition & 2 deletions __tests__/unit/tick-methods/d3-time.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { d3Time } from '../../../src/tick-methods/d3-time';
import { DURATION_SECOND } from '../../../src';
import { DURATION_SECOND, d3Time } from '../../../src';

function UTC(
year: number,
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ export { Quantize } from './scales/quantize';
export { Quantile } from './scales/quantile';
export { Time } from './scales/time';
export { Base } from './scales/base';
export { Continuous } from './scales/continuous';

// tick-methods
export { d3Ticks } from './tick-methods/d3-ticks';
export { rPretty } from './tick-methods/r-pretty';
export { wilkinsonExtended } from './tick-methods/wilkinson-extended';
export { d3Log } from './tick-methods/d3-log';
export { d3Time } from './tick-methods/d3-time';

// scales types
export type {
BaseOptions,
BandOptions,
OrdinalOptions,
ContinuousOptions,
ConstantOptions,
IdentityOptions,
LinearOptions,
Expand Down

0 comments on commit 87700d8

Please sign in to comment.