File tree 38 files changed +56
-47
lines changed
38 files changed +56
-47
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- presets : [ '@opd/babel-preset-component' ] ,
2
+ presets : [
3
+ '@opd/babel-preset-component' ,
4
+ require . resolve ( '@babel/preset-typescript' ) ,
5
+ [
6
+ require . resolve ( '@babel/preset-react' ) ,
7
+ {
8
+ runtime : 'automatic' ,
9
+ } ,
10
+ ] ,
11
+ ] ,
3
12
ignore : [ 'src/.umi/**/*.ts' ] ,
4
13
}
Original file line number Diff line number Diff line change 1
- import React , {
2
- HTMLAttributes ,
1
+ import { Plot as BasePlot } from '@antv/g2plot'
2
+ import cloneDeep from 'lodash/cloneDeep'
3
+ import isEmpty from 'lodash/isEmpty'
4
+ import isEqual from 'lodash/isEqual'
5
+ import {
3
6
forwardRef ,
4
- useRef ,
5
- useEffect ,
6
- Ref ,
7
+ HTMLAttributes ,
7
8
MutableRefObject ,
8
9
ReactElement ,
10
+ Ref ,
9
11
RefAttributes ,
10
- useImperativeHandle ,
11
12
RefCallback ,
13
+ useEffect ,
14
+ useImperativeHandle ,
15
+ useRef ,
12
16
} from 'react'
13
- import isEqual from 'lodash/isEqual'
14
- import isEmpty from 'lodash/isEmpty'
15
- import cloneDeep from 'lodash/cloneDeep'
16
- import { Plot as BasePlot } from '@antv/g2plot'
17
17
18
18
interface Options {
19
19
[ x : string ] : any
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Area , AreaOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type AreaChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Bar , BarOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type BarChartProps = Omit < BaseChartProps < BarOptions > , 'chart' | 'data' > &
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { BidirectionalBar , BidirectionalBarOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type BidirectionalBarChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Box , BoxOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type BoxChartProps = Omit < BaseChartProps < BoxOptions > , 'chart' | 'data' > &
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Bullet , BulletOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type BulletChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Chord , ChordOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type ChordChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { CirclePacking , CirclePackingOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type CirclePackingChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Column , ColumnOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type ColumnChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { DualAxes , DualAxesOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type DualAxesChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Facet , FacetOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type FacetChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Funnel , FunnelOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type FunnelChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Gauge , GaugeOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type GaugeChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Heatmap , HeatmapOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type HeatmapChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Histogram , HistogramOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type HistogramChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Line , LineOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type LineChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Liquid , LiquidOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type LiquidChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Mix , MixOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type MixChartProps = Omit < BaseChartProps < MixOptions > , 'chart' | 'data' > &
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Mix , MixOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type MultiViewChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Pie , PieOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type PieChartProps = Omit < BaseChartProps < PieOptions > , 'chart' | 'data' > &
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Progress , ProgressOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type ProgressChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Radar , RadarOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type RadarChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { RadialBar , RadialBarOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type RadialBarChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { RingProgress , RingProgressOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type RingProgressChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Rose , RoseOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type RoseChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Sankey , SankeyOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type SankeyChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Scatter , ScatterOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type ScatterChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Stock , StockOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type StockChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Sunburst , SunburstOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type SunburstChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { TinyArea , TinyAreaOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type TinyAreaChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { TinyColumn , TinyColumnOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type TinyColumnChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { TinyLine , TinyLineOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type TinyLineChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Treemap , TreemapOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type TreemapChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Venn , VennOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type VennChartProps = Omit < BaseChartProps < VennOptions > , 'chart' > &
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Violin , ViolinOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type ViolinChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { Waterfall , WaterfallOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type WaterfallChartProps = Omit <
Original file line number Diff line number Diff line change 1
- import React , { forwardRef } from 'react'
2
1
import { WordCloud , WordCloudOptions } from '@antv/g2plot'
2
+ import { forwardRef } from 'react'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
5
5
export type WordCloudChartProps = Omit <
You can’t perform that action at this time.
0 commit comments