From 0992bb9884038c6f51896dd6e8e6bc6ebddec72a Mon Sep 17 00:00:00 2001 From: Ben Shope Date: Wed, 19 Sep 2018 12:27:10 -0700 Subject: [PATCH] Fix problematic export change --- showcase/showcase-index.js | 42 +++++-------- src/index.js | 122 ++++++++++++++++--------------------- 2 files changed, 67 insertions(+), 97 deletions(-) diff --git a/showcase/showcase-index.js b/showcase/showcase-index.js index 95e2f84b1..7a8459d1a 100644 --- a/showcase/showcase-index.js +++ b/showcase/showcase-index.js @@ -1,28 +1,16 @@ -export {default as AxesShowcase} from './showcase-sections/axes-showcase'; -export {default as PlotsShowcase} from './showcase-sections/plots-showcase'; -export { - default as SunburstSection -} from './showcase-sections/sunburst-showcase'; -export {default as RadialShowcase} from './showcase-sections/radial-showcase'; -export {default as RadarShowcase} from './showcase-sections/radar-showcase'; -export {default as LegendsShowcase} from './showcase-sections/legends-showcase'; -export {default as SankeysShowcase} from './showcase-sections/sankeys-showcase'; -export {default as TreemapShowcase} from './showcase-sections/treemap-showcase'; -export { - default as ParallelCoordinatesShowcase -} from './showcase-sections/parallel-coordinates-showcase'; -export {default as MiscShowcase} from './showcase-sections/misc-showcase'; +export AxesShowcase from './showcase-sections/axes-showcase'; +export PlotsShowcase from './showcase-sections/plots-showcase'; +export SunburstSection from './showcase-sections/sunburst-showcase'; +export RadialShowcase from './showcase-sections/radial-showcase'; +export RadarShowcase from './showcase-sections/radar-showcase'; +export LegendsShowcase from './showcase-sections/legends-showcase'; +export SankeysShowcase from './showcase-sections/sankeys-showcase'; +export TreemapShowcase from './showcase-sections/treemap-showcase'; +export ParallelCoordinatesShowcase from './showcase-sections/parallel-coordinates-showcase'; +export MiscShowcase from './showcase-sections/misc-showcase'; -export { - default as Candlestick -} from './examples/candlestick/candlestick-example'; -export { - default as ForceDirectedGraph -} from './examples/force-directed-graph/force-directed-example'; -export { - default as ResponsiveVis -} from './examples/responsive-vis/responsive-vis-example'; -export { - default as StreamgraphExample -} from './examples/streamgraph/streamgraph-example'; -export {default as HistoryExample} from './examples/history/history-example'; +export Candlestick from './examples/candlestick/candlestick-example'; +export ForceDirectedGraph from './examples/force-directed-graph/force-directed-example'; +export ResponsiveVis from './examples/responsive-vis/responsive-vis-example'; +export StreamgraphExample from './examples/streamgraph/streamgraph-example'; +export HistoryExample from './examples/history/history-example'; diff --git a/src/index.js b/src/index.js index 99ff27fdb..242a35ada 100644 --- a/src/index.js +++ b/src/index.js @@ -18,76 +18,58 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -export {default as AbstractSeries} from 'plot/series/abstract-series'; -export {default as LineSeries} from 'plot/series/line-series'; -export {default as LineSeriesCanvas} from 'plot/series/line-series-canvas'; -export { - default as HorizontalBarSeries -} from 'plot/series/horizontal-bar-series'; -export { - default as HorizontalBarSeriesCanvas -} from 'plot/series/horizontal-bar-series-canvas'; -export {default as VerticalBarSeries} from 'plot/series/vertical-bar-series'; -export { - default as VerticalBarSeriesCanvas -} from 'plot/series/vertical-bar-series-canvas'; -export {default as VerticalRectSeries} from 'plot/series/vertical-rect-series'; -export { - default as VerticalRectSeriesCanvas -} from 'plot/series/vertical-rect-series-canvas'; -export { - default as HorizontalRectSeries -} from 'plot/series/horizontal-rect-series'; -export { - default as HorizontalRectSeriesCanvas -} from 'plot/series/horizontal-rect-series-canvas'; -export {default as LabelSeries} from 'plot/series/label-series'; -export {default as PolygonSeries} from 'plot/series/polygon-series'; -export {default as RectSeries} from 'plot/series/rect-series'; -export {default as RectSeriesCanvas} from 'plot/series/rect-series-canvas'; -export {default as MarkSeries} from 'plot/series/mark-series'; -export {default as MarkSeriesCanvas} from 'plot/series/mark-series-canvas'; -export {default as WhiskerSeries} from 'plot/series/whisker-series'; -export {default as HeatmapSeries} from 'plot/series/heatmap-series'; -export {default as HexbinSeries} from 'plot/series/hexbin-series'; -export {default as ContourSeries} from 'plot/series/contour-series'; -export {default as CustomSVGSeries} from 'plot/series/custom-svg-series'; -export {default as AreaSeries} from 'plot/series/area-series'; -export {default as ArcSeries} from 'plot/series/arc-series'; -export {default as LineMarkSeries} from 'plot/series/line-mark-series'; -export { - default as LineMarkSeriesCanvas -} from 'plot/series/line-mark-series-canvas'; -export {default as Hint} from 'plot/hint'; -export {default as Borders} from 'plot/borders'; -export {default as Crosshair} from 'plot/crosshair'; -export {default as XYPlot} from 'plot/xy-plot'; -export {default as DecorativeAxis} from 'plot/axis/decorative-axis'; -export {default as XAxis} from 'plot/axis/x-axis'; -export {default as YAxis} from 'plot/axis/y-axis'; -export {default as CircularGridLines} from 'plot/circular-grid-lines'; -export {default as GridLines} from 'plot/grid-lines'; -export {default as GradientDefs} from 'plot/gradient-defs'; -export {default as VerticalGridLines} from 'plot/vertical-grid-lines'; -export {default as HorizontalGridLines} from 'plot/horizontal-grid-lines'; -export {default as Voronoi} from 'plot/voronoi'; -export {default as Highlight} from 'plot/highlight'; +export AbstractSeries from 'plot/series/abstract-series'; +export LineSeries from 'plot/series/line-series'; +export LineSeriesCanvas from 'plot/series/line-series-canvas'; +export HorizontalBarSeries from 'plot/series/horizontal-bar-series'; +export HorizontalBarSeriesCanvas from 'plot/series/horizontal-bar-series-canvas'; +export VerticalBarSeries from 'plot/series/vertical-bar-series'; +export VerticalBarSeriesCanvas from 'plot/series/vertical-bar-series-canvas'; +export VerticalRectSeries from 'plot/series/vertical-rect-series'; +export VerticalRectSeriesCanvas from 'plot/series/vertical-rect-series-canvas'; +export HorizontalRectSeries from 'plot/series/horizontal-rect-series'; +export HorizontalRectSeriesCanvas from 'plot/series/horizontal-rect-series-canvas'; +export LabelSeries from 'plot/series/label-series'; +export PolygonSeries from 'plot/series/polygon-series'; +export RectSeries from 'plot/series/rect-series'; +export RectSeriesCanvas from 'plot/series/rect-series-canvas'; +export MarkSeries from 'plot/series/mark-series'; +export MarkSeriesCanvas from 'plot/series/mark-series-canvas'; +export WhiskerSeries from 'plot/series/whisker-series'; +export HeatmapSeries from 'plot/series/heatmap-series'; +export HexbinSeries from 'plot/series/hexbin-series'; +export ContourSeries from 'plot/series/contour-series'; +export CustomSVGSeries from 'plot/series/custom-svg-series'; +export AreaSeries from 'plot/series/area-series'; +export ArcSeries from 'plot/series/arc-series'; +export LineMarkSeries from 'plot/series/line-mark-series'; +export LineMarkSeriesCanvas from 'plot/series/line-mark-series-canvas'; +export Hint from 'plot/hint'; +export Borders from 'plot/borders'; +export Crosshair from 'plot/crosshair'; +export XYPlot from 'plot/xy-plot'; +export DecorativeAxis from 'plot/axis/decorative-axis'; +export XAxis from 'plot/axis/x-axis'; +export YAxis from 'plot/axis/y-axis'; +export CircularGridLines from 'plot/circular-grid-lines'; +export GridLines from 'plot/grid-lines'; +export GradientDefs from 'plot/gradient-defs'; +export VerticalGridLines from 'plot/vertical-grid-lines'; +export HorizontalGridLines from 'plot/horizontal-grid-lines'; +export Voronoi from 'plot/voronoi'; +export Highlight from 'plot/highlight'; -export {default as DiscreteColorLegend} from 'legends/discrete-color-legend'; -export { - default as SearchableDiscreteColorLegend -} from 'legends/searchable-discrete-color-legend'; -export { - default as ContinuousColorLegend -} from 'legends/continuous-color-legend'; -export {default as ContinuousSizeLegend} from 'legends/continuous-size-legend'; +export DiscreteColorLegend from 'legends/discrete-color-legend'; +export SearchableDiscreteColorLegend from 'legends/searchable-discrete-color-legend'; +export ContinuousColorLegend from 'legends/continuous-color-legend'; +export ContinuousSizeLegend from 'legends/continuous-size-legend'; -export {default as Treemap} from 'treemap'; -export {default as RadialChart} from 'radial-chart'; -export {default as RadarChart} from 'radar-chart'; -export {default as ParallelCoordinates} from 'parallel-coordinates'; -export {default as Sankey} from 'sankey'; -export {default as Sunburst} from 'sunburst'; +export Treemap from 'treemap'; +export RadialChart from 'radial-chart'; +export RadarChart from 'radar-chart'; +export ParallelCoordinates from 'parallel-coordinates'; +export Sankey from 'sankey'; +export Sunburst from 'sunburst'; export { makeHeightFlexible, @@ -98,5 +80,5 @@ export { FlexibleHeightXYPlot } from './make-vis-flexible'; -export {default as AxisUtils} from 'utils/axis-utils'; -export {default as ScaleUtils} from 'utils/scales-utils'; +export AxisUtils from 'utils/axis-utils'; +export ScaleUtils from 'utils/scales-utils';