Skip to content

Commit

Permalink
feat(scales): fix old imports from axes package
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Sep 11, 2021
1 parent 26b3161 commit 81c72cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/line/index.d.ts
Expand Up @@ -19,8 +19,8 @@ import {
} from '@nivo/core'
import { OrdinalColorScaleConfig } from '@nivo/colors'
import { LegendProps } from '@nivo/legends'
import { ScaleSpec, Scale } from '@nivo/scales'
import { AxisProps, TicksSpec } from '@nivo/axes'
import { ScaleSpec, Scale, TicksSpec } from '@nivo/scales'
import { AxisProps } from '@nivo/axes'
import { CrosshairType } from '@nivo/tooltip'
import { Line as D3Line } from 'd3-shape'

Expand Down
3 changes: 2 additions & 1 deletion packages/swarmplot/src/SwarmPlot.tsx
@@ -1,7 +1,8 @@
import { ReactNode, Fragment, createElement } from 'react'
import { Container, SvgWrapper, useDimensions } from '@nivo/core'
import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'
import { AnyScale, Axes, Grid } from '@nivo/axes'
import { AnyScale } from '@nivo/scales'
import { Axes, Grid } from '@nivo/axes'
import { Mesh } from '@nivo/voronoi'
import { ComputedDatum, SwarmPlotLayerId, SwarmPlotSvgProps } from './types'
import { defaultProps } from './props'
Expand Down
3 changes: 2 additions & 1 deletion packages/swarmplot/src/SwarmPlotCanvas.tsx
Expand Up @@ -3,7 +3,8 @@ import * as React from 'react'
import isNumber from 'lodash/isNumber'
import { Container, getRelativeCursor, isCursorInRect, useDimensions, useTheme } from '@nivo/core'
import { InheritedColorConfig, OrdinalColorScaleConfig, useInheritedColor } from '@nivo/colors'
import { AnyScale, renderAxesToCanvas, renderGridLinesToCanvas } from '@nivo/axes'
import { AnyScale } from '@nivo/scales'
import { renderAxesToCanvas, renderGridLinesToCanvas } from '@nivo/axes'
import { useTooltip } from '@nivo/tooltip'
import { useVoronoiMesh, renderVoronoiToCanvas, renderVoronoiCellToCanvas } from '@nivo/voronoi'
import { ComputedDatum, SwarmPlotCanvasProps } from './types'
Expand Down
4 changes: 2 additions & 2 deletions packages/swarmplot/src/types.ts
Expand Up @@ -3,8 +3,8 @@ import { Interpolation, SpringValue } from '@react-spring/web'
import { ForceX, ForceY, ForceCollide } from 'd3-force'
import { PropertyAccessor, ValueFormat, Theme, ModernMotionProps, Box, Margin } from '@nivo/core'
import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'
import { AxisProps, CanvasAxisProp, TicksSpec } from '@nivo/axes'
import { ScaleLinear, ScaleLinearSpec, ScaleTime, ScaleTimeSpec } from '@nivo/scales'
import { AxisProps, CanvasAxisProp } from '@nivo/axes'
import { ScaleLinear, ScaleLinearSpec, ScaleTime, ScaleTimeSpec, TicksSpec } from '@nivo/scales'
import { AnnotationMatcher } from '@nivo/annotations'
import { ScaleOrdinal } from 'd3-scale'

Expand Down

0 comments on commit 81c72cc

Please sign in to comment.