react-vis
Advanced tools
Comparing version 1.11.6 to 1.11.7
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.ScaleUtils = exports.AxisUtils = exports.FlexibleHeightXYPlot = exports.FlexibleWidthXYPlot = exports.FlexibleXYPlot = exports.makeWidthFlexible = exports.makeVisFlexible = exports.makeHeightFlexible = exports.Sunburst = exports.Sankey = exports.ParallelCoordinates = exports.RadarChart = exports.RadialChart = exports.Treemap = exports.ContinuousSizeLegend = exports.ContinuousColorLegend = exports.SearchableDiscreteColorLegend = exports.DiscreteColorLegend = exports.Highlight = exports.Voronoi = exports.HorizontalGridLines = exports.VerticalGridLines = exports.GradientDefs = exports.GridLines = exports.ChartLabel = exports.CircularGridLines = exports.YAxis = exports.XAxis = exports.DecorativeAxis = exports.XYPlot = exports.Crosshair = exports.Borders = exports.Hint = exports.LineMarkSeriesCanvas = exports.LineMarkSeries = exports.ArcSeries = exports.AreaSeries = exports.CustomSVGSeries = exports.ContourSeries = exports.HexbinSeries = exports.HeatmapSeries = exports.WhiskerSeries = exports.MarkSeriesCanvas = exports.MarkSeries = exports.RectSeriesCanvas = exports.RectSeries = exports.PolygonSeries = exports.LabelSeries = exports.HorizontalRectSeriesCanvas = exports.HorizontalRectSeries = exports.VerticalRectSeriesCanvas = exports.VerticalRectSeries = exports.VerticalBarSeriesCanvas = exports.VerticalBarSeries = exports.HorizontalBarSeriesCanvas = exports.HorizontalBarSeries = exports.LineSeriesCanvas = exports.LineSeries = exports.AbstractSeries = undefined; | ||
exports.ScaleUtils = exports.AxisUtils = exports.FlexibleHeightXYPlot = exports.FlexibleWidthXYPlot = exports.FlexibleXYPlot = exports.makeWidthFlexible = exports.makeVisFlexible = exports.makeHeightFlexible = exports.Treemap = exports.Sunburst = exports.Sankey = exports.RadialChart = exports.RadarChart = exports.ParallelCoordinates = exports.SearchableDiscreteColorLegend = exports.DiscreteColorLegend = exports.ContinuousSizeLegend = exports.ContinuousColorLegend = exports.YAxis = exports.XAxis = exports.XYPlot = exports.WhiskerSeries = exports.RectSeriesCanvas = exports.RectSeries = exports.Voronoi = exports.VerticalRectSeriesCanvas = exports.VerticalRectSeries = exports.VerticalGridLines = exports.VerticalBarSeriesCanvas = exports.VerticalBarSeries = exports.PolygonSeries = exports.MarkSeriesCanvas = exports.MarkSeries = exports.LineSeriesCanvas = exports.LineSeries = exports.LineMarkSeriesCanvas = exports.LineMarkSeries = exports.LabelSeries = exports.HorizontalRectSeriesCanvas = exports.HorizontalRectSeries = exports.HorizontalGridLines = exports.HorizontalBarSeriesCanvas = exports.HorizontalBarSeries = exports.Hint = exports.Highlight = exports.HexbinSeries = exports.HeatmapSeries = exports.GridLines = exports.GradientDefs = exports.DecorativeAxis = exports.CustomSVGSeries = exports.Crosshair = exports.ContourSeries = exports.CircularGridLines = exports.ChartLabel = exports.Borders = exports.AreaSeries = exports.ArcSeries = exports.AbstractSeries = undefined; | ||
@@ -52,94 +52,86 @@ var _makeVisFlexible = require('./make-vis-flexible'); | ||
var _lineSeries = require('./plot/series/line-series'); | ||
var _arcSeries = require('./plot/series/arc-series'); | ||
var _lineSeries2 = _interopRequireDefault(_lineSeries); | ||
var _arcSeries2 = _interopRequireDefault(_arcSeries); | ||
var _lineSeriesCanvas = require('./plot/series/line-series-canvas'); | ||
var _areaSeries = require('./plot/series/area-series'); | ||
var _lineSeriesCanvas2 = _interopRequireDefault(_lineSeriesCanvas); | ||
var _areaSeries2 = _interopRequireDefault(_areaSeries); | ||
var _horizontalBarSeries = require('./plot/series/horizontal-bar-series'); | ||
var _borders = require('./plot/borders'); | ||
var _horizontalBarSeries2 = _interopRequireDefault(_horizontalBarSeries); | ||
var _borders2 = _interopRequireDefault(_borders); | ||
var _horizontalBarSeriesCanvas = require('./plot/series/horizontal-bar-series-canvas'); | ||
var _chartLabel = require('./plot/chart-label'); | ||
var _horizontalBarSeriesCanvas2 = _interopRequireDefault(_horizontalBarSeriesCanvas); | ||
var _chartLabel2 = _interopRequireDefault(_chartLabel); | ||
var _verticalBarSeries = require('./plot/series/vertical-bar-series'); | ||
var _circularGridLines = require('./plot/circular-grid-lines'); | ||
var _verticalBarSeries2 = _interopRequireDefault(_verticalBarSeries); | ||
var _circularGridLines2 = _interopRequireDefault(_circularGridLines); | ||
var _verticalBarSeriesCanvas = require('./plot/series/vertical-bar-series-canvas'); | ||
var _contourSeries = require('./plot/series/contour-series'); | ||
var _verticalBarSeriesCanvas2 = _interopRequireDefault(_verticalBarSeriesCanvas); | ||
var _contourSeries2 = _interopRequireDefault(_contourSeries); | ||
var _verticalRectSeries = require('./plot/series/vertical-rect-series'); | ||
var _crosshair = require('./plot/crosshair'); | ||
var _verticalRectSeries2 = _interopRequireDefault(_verticalRectSeries); | ||
var _crosshair2 = _interopRequireDefault(_crosshair); | ||
var _verticalRectSeriesCanvas = require('./plot/series/vertical-rect-series-canvas'); | ||
var _customSvgSeries = require('./plot/series/custom-svg-series'); | ||
var _verticalRectSeriesCanvas2 = _interopRequireDefault(_verticalRectSeriesCanvas); | ||
var _customSvgSeries2 = _interopRequireDefault(_customSvgSeries); | ||
var _horizontalRectSeries = require('./plot/series/horizontal-rect-series'); | ||
var _decorativeAxis = require('./plot/axis/decorative-axis'); | ||
var _horizontalRectSeries2 = _interopRequireDefault(_horizontalRectSeries); | ||
var _decorativeAxis2 = _interopRequireDefault(_decorativeAxis); | ||
var _horizontalRectSeriesCanvas = require('./plot/series/horizontal-rect-series-canvas'); | ||
var _gradientDefs = require('./plot/gradient-defs'); | ||
var _horizontalRectSeriesCanvas2 = _interopRequireDefault(_horizontalRectSeriesCanvas); | ||
var _gradientDefs2 = _interopRequireDefault(_gradientDefs); | ||
var _labelSeries = require('./plot/series/label-series'); | ||
var _gridLines = require('./plot/grid-lines'); | ||
var _labelSeries2 = _interopRequireDefault(_labelSeries); | ||
var _gridLines2 = _interopRequireDefault(_gridLines); | ||
var _polygonSeries = require('./plot/series/polygon-series'); | ||
var _heatmapSeries = require('./plot/series/heatmap-series'); | ||
var _polygonSeries2 = _interopRequireDefault(_polygonSeries); | ||
var _heatmapSeries2 = _interopRequireDefault(_heatmapSeries); | ||
var _rectSeries = require('./plot/series/rect-series'); | ||
var _hexbinSeries = require('./plot/series/hexbin-series'); | ||
var _rectSeries2 = _interopRequireDefault(_rectSeries); | ||
var _hexbinSeries2 = _interopRequireDefault(_hexbinSeries); | ||
var _rectSeriesCanvas = require('./plot/series/rect-series-canvas'); | ||
var _highlight = require('./plot/highlight'); | ||
var _rectSeriesCanvas2 = _interopRequireDefault(_rectSeriesCanvas); | ||
var _highlight2 = _interopRequireDefault(_highlight); | ||
var _markSeries = require('./plot/series/mark-series'); | ||
var _hint = require('./plot/hint'); | ||
var _markSeries2 = _interopRequireDefault(_markSeries); | ||
var _hint2 = _interopRequireDefault(_hint); | ||
var _markSeriesCanvas = require('./plot/series/mark-series-canvas'); | ||
var _horizontalBarSeries = require('./plot/series/horizontal-bar-series'); | ||
var _markSeriesCanvas2 = _interopRequireDefault(_markSeriesCanvas); | ||
var _horizontalBarSeries2 = _interopRequireDefault(_horizontalBarSeries); | ||
var _whiskerSeries = require('./plot/series/whisker-series'); | ||
var _horizontalBarSeriesCanvas = require('./plot/series/horizontal-bar-series-canvas'); | ||
var _whiskerSeries2 = _interopRequireDefault(_whiskerSeries); | ||
var _horizontalBarSeriesCanvas2 = _interopRequireDefault(_horizontalBarSeriesCanvas); | ||
var _heatmapSeries = require('./plot/series/heatmap-series'); | ||
var _horizontalGridLines = require('./plot/horizontal-grid-lines'); | ||
var _heatmapSeries2 = _interopRequireDefault(_heatmapSeries); | ||
var _horizontalGridLines2 = _interopRequireDefault(_horizontalGridLines); | ||
var _hexbinSeries = require('./plot/series/hexbin-series'); | ||
var _horizontalRectSeries = require('./plot/series/horizontal-rect-series'); | ||
var _hexbinSeries2 = _interopRequireDefault(_hexbinSeries); | ||
var _horizontalRectSeries2 = _interopRequireDefault(_horizontalRectSeries); | ||
var _contourSeries = require('./plot/series/contour-series'); | ||
var _horizontalRectSeriesCanvas = require('./plot/series/horizontal-rect-series-canvas'); | ||
var _contourSeries2 = _interopRequireDefault(_contourSeries); | ||
var _horizontalRectSeriesCanvas2 = _interopRequireDefault(_horizontalRectSeriesCanvas); | ||
var _customSvgSeries = require('./plot/series/custom-svg-series'); | ||
var _labelSeries = require('./plot/series/label-series'); | ||
var _customSvgSeries2 = _interopRequireDefault(_customSvgSeries); | ||
var _labelSeries2 = _interopRequireDefault(_labelSeries); | ||
var _areaSeries = require('./plot/series/area-series'); | ||
var _areaSeries2 = _interopRequireDefault(_areaSeries); | ||
var _arcSeries = require('./plot/series/arc-series'); | ||
var _arcSeries2 = _interopRequireDefault(_arcSeries); | ||
var _lineMarkSeries = require('./plot/series/line-mark-series'); | ||
@@ -153,69 +145,69 @@ | ||
var _hint = require('./plot/hint'); | ||
var _lineSeries = require('./plot/series/line-series'); | ||
var _hint2 = _interopRequireDefault(_hint); | ||
var _lineSeries2 = _interopRequireDefault(_lineSeries); | ||
var _borders = require('./plot/borders'); | ||
var _lineSeriesCanvas = require('./plot/series/line-series-canvas'); | ||
var _borders2 = _interopRequireDefault(_borders); | ||
var _lineSeriesCanvas2 = _interopRequireDefault(_lineSeriesCanvas); | ||
var _crosshair = require('./plot/crosshair'); | ||
var _markSeries = require('./plot/series/mark-series'); | ||
var _crosshair2 = _interopRequireDefault(_crosshair); | ||
var _markSeries2 = _interopRequireDefault(_markSeries); | ||
var _xyPlot = require('./plot/xy-plot'); | ||
var _markSeriesCanvas = require('./plot/series/mark-series-canvas'); | ||
var _xyPlot2 = _interopRequireDefault(_xyPlot); | ||
var _markSeriesCanvas2 = _interopRequireDefault(_markSeriesCanvas); | ||
var _decorativeAxis = require('./plot/axis/decorative-axis'); | ||
var _polygonSeries = require('./plot/series/polygon-series'); | ||
var _decorativeAxis2 = _interopRequireDefault(_decorativeAxis); | ||
var _polygonSeries2 = _interopRequireDefault(_polygonSeries); | ||
var _xAxis = require('./plot/axis/x-axis'); | ||
var _verticalBarSeries = require('./plot/series/vertical-bar-series'); | ||
var _xAxis2 = _interopRequireDefault(_xAxis); | ||
var _verticalBarSeries2 = _interopRequireDefault(_verticalBarSeries); | ||
var _yAxis = require('./plot/axis/y-axis'); | ||
var _verticalBarSeriesCanvas = require('./plot/series/vertical-bar-series-canvas'); | ||
var _yAxis2 = _interopRequireDefault(_yAxis); | ||
var _verticalBarSeriesCanvas2 = _interopRequireDefault(_verticalBarSeriesCanvas); | ||
var _circularGridLines = require('./plot/circular-grid-lines'); | ||
var _verticalGridLines = require('./plot/vertical-grid-lines'); | ||
var _circularGridLines2 = _interopRequireDefault(_circularGridLines); | ||
var _verticalGridLines2 = _interopRequireDefault(_verticalGridLines); | ||
var _chartLabel = require('./plot/chart-label'); | ||
var _verticalRectSeries = require('./plot/series/vertical-rect-series'); | ||
var _chartLabel2 = _interopRequireDefault(_chartLabel); | ||
var _verticalRectSeries2 = _interopRequireDefault(_verticalRectSeries); | ||
var _gridLines = require('./plot/grid-lines'); | ||
var _verticalRectSeriesCanvas = require('./plot/series/vertical-rect-series-canvas'); | ||
var _gridLines2 = _interopRequireDefault(_gridLines); | ||
var _verticalRectSeriesCanvas2 = _interopRequireDefault(_verticalRectSeriesCanvas); | ||
var _gradientDefs = require('./plot/gradient-defs'); | ||
var _voronoi = require('./plot/voronoi'); | ||
var _gradientDefs2 = _interopRequireDefault(_gradientDefs); | ||
var _voronoi2 = _interopRequireDefault(_voronoi); | ||
var _verticalGridLines = require('./plot/vertical-grid-lines'); | ||
var _rectSeries = require('./plot/series/rect-series'); | ||
var _verticalGridLines2 = _interopRequireDefault(_verticalGridLines); | ||
var _rectSeries2 = _interopRequireDefault(_rectSeries); | ||
var _horizontalGridLines = require('./plot/horizontal-grid-lines'); | ||
var _rectSeriesCanvas = require('./plot/series/rect-series-canvas'); | ||
var _horizontalGridLines2 = _interopRequireDefault(_horizontalGridLines); | ||
var _rectSeriesCanvas2 = _interopRequireDefault(_rectSeriesCanvas); | ||
var _voronoi = require('./plot/voronoi'); | ||
var _whiskerSeries = require('./plot/series/whisker-series'); | ||
var _voronoi2 = _interopRequireDefault(_voronoi); | ||
var _whiskerSeries2 = _interopRequireDefault(_whiskerSeries); | ||
var _highlight = require('./plot/highlight'); | ||
var _xyPlot = require('./plot/xy-plot'); | ||
var _highlight2 = _interopRequireDefault(_highlight); | ||
var _xyPlot2 = _interopRequireDefault(_xyPlot); | ||
var _discreteColorLegend = require('./legends/discrete-color-legend'); | ||
var _xAxis = require('./plot/axis/x-axis'); | ||
var _discreteColorLegend2 = _interopRequireDefault(_discreteColorLegend); | ||
var _xAxis2 = _interopRequireDefault(_xAxis); | ||
var _searchableDiscreteColorLegend = require('./legends/searchable-discrete-color-legend'); | ||
var _yAxis = require('./plot/axis/y-axis'); | ||
var _searchableDiscreteColorLegend2 = _interopRequireDefault(_searchableDiscreteColorLegend); | ||
var _yAxis2 = _interopRequireDefault(_yAxis); | ||
@@ -230,10 +222,14 @@ var _continuousColorLegend = require('./legends/continuous-color-legend'); | ||
var _treemap = require('./treemap'); | ||
var _discreteColorLegend = require('./legends/discrete-color-legend'); | ||
var _treemap2 = _interopRequireDefault(_treemap); | ||
var _discreteColorLegend2 = _interopRequireDefault(_discreteColorLegend); | ||
var _radialChart = require('./radial-chart'); | ||
var _searchableDiscreteColorLegend = require('./legends/searchable-discrete-color-legend'); | ||
var _radialChart2 = _interopRequireDefault(_radialChart); | ||
var _searchableDiscreteColorLegend2 = _interopRequireDefault(_searchableDiscreteColorLegend); | ||
var _parallelCoordinates = require('./parallel-coordinates'); | ||
var _parallelCoordinates2 = _interopRequireDefault(_parallelCoordinates); | ||
var _radarChart = require('./radar-chart'); | ||
@@ -243,5 +239,5 @@ | ||
var _parallelCoordinates = require('./parallel-coordinates'); | ||
var _radialChart = require('./radial-chart'); | ||
var _parallelCoordinates2 = _interopRequireDefault(_parallelCoordinates); | ||
var _radialChart2 = _interopRequireDefault(_radialChart); | ||
@@ -256,2 +252,6 @@ var _sankey = require('./sankey'); | ||
var _treemap = require('./treemap'); | ||
var _treemap2 = _interopRequireDefault(_treemap); | ||
var _axisUtils = require('./utils/axis-utils'); | ||
@@ -287,61 +287,53 @@ | ||
// TODO alphabetize | ||
exports.ArcSeries = _arcSeries2.default; | ||
exports.AreaSeries = _areaSeries2.default; | ||
exports.Borders = _borders2.default; | ||
exports.ChartLabel = _chartLabel2.default; | ||
exports.CircularGridLines = _circularGridLines2.default; | ||
exports.ContourSeries = _contourSeries2.default; | ||
exports.Crosshair = _crosshair2.default; | ||
exports.CustomSVGSeries = _customSvgSeries2.default; | ||
exports.DecorativeAxis = _decorativeAxis2.default; | ||
exports.GradientDefs = _gradientDefs2.default; | ||
exports.GridLines = _gridLines2.default; | ||
exports.HeatmapSeries = _heatmapSeries2.default; | ||
exports.HexbinSeries = _hexbinSeries2.default; | ||
exports.Highlight = _highlight2.default; | ||
exports.Hint = _hint2.default; | ||
exports.HorizontalBarSeries = _horizontalBarSeries2.default; | ||
exports.HorizontalBarSeriesCanvas = _horizontalBarSeriesCanvas2.default; | ||
exports.HorizontalGridLines = _horizontalGridLines2.default; | ||
exports.HorizontalRectSeries = _horizontalRectSeries2.default; | ||
exports.HorizontalRectSeriesCanvas = _horizontalRectSeriesCanvas2.default; | ||
exports.LabelSeries = _labelSeries2.default; | ||
exports.LineMarkSeries = _lineMarkSeries2.default; | ||
exports.LineMarkSeriesCanvas = _lineMarkSeriesCanvas2.default; | ||
exports.LineSeries = _lineSeries2.default; | ||
exports.LineSeriesCanvas = _lineSeriesCanvas2.default; | ||
exports.HorizontalBarSeries = _horizontalBarSeries2.default; | ||
exports.HorizontalBarSeriesCanvas = _horizontalBarSeriesCanvas2.default; | ||
exports.MarkSeries = _markSeries2.default; | ||
exports.MarkSeriesCanvas = _markSeriesCanvas2.default; | ||
exports.PolygonSeries = _polygonSeries2.default; | ||
exports.VerticalBarSeries = _verticalBarSeries2.default; | ||
exports.VerticalBarSeriesCanvas = _verticalBarSeriesCanvas2.default; | ||
exports.VerticalGridLines = _verticalGridLines2.default; | ||
exports.VerticalRectSeries = _verticalRectSeries2.default; | ||
exports.VerticalRectSeriesCanvas = _verticalRectSeriesCanvas2.default; | ||
exports.HorizontalRectSeries = _horizontalRectSeries2.default; | ||
exports.HorizontalRectSeriesCanvas = _horizontalRectSeriesCanvas2.default; | ||
exports.LabelSeries = _labelSeries2.default; | ||
exports.PolygonSeries = _polygonSeries2.default; | ||
exports.Voronoi = _voronoi2.default; | ||
exports.RectSeries = _rectSeries2.default; | ||
exports.RectSeriesCanvas = _rectSeriesCanvas2.default; | ||
exports.MarkSeries = _markSeries2.default; | ||
exports.MarkSeriesCanvas = _markSeriesCanvas2.default; | ||
exports.WhiskerSeries = _whiskerSeries2.default; | ||
exports.HeatmapSeries = _heatmapSeries2.default; | ||
exports.HexbinSeries = _hexbinSeries2.default; | ||
exports.ContourSeries = _contourSeries2.default; | ||
exports.CustomSVGSeries = _customSvgSeries2.default; | ||
exports.AreaSeries = _areaSeries2.default; | ||
exports.ArcSeries = _arcSeries2.default; | ||
exports.LineMarkSeries = _lineMarkSeries2.default; | ||
exports.LineMarkSeriesCanvas = _lineMarkSeriesCanvas2.default; | ||
exports.Hint = _hint2.default; | ||
exports.Borders = _borders2.default; | ||
exports.Crosshair = _crosshair2.default; | ||
exports.XYPlot = _xyPlot2.default; | ||
exports.DecorativeAxis = _decorativeAxis2.default; | ||
exports.XAxis = _xAxis2.default; | ||
exports.YAxis = _yAxis2.default; | ||
exports.CircularGridLines = _circularGridLines2.default; | ||
exports.ChartLabel = _chartLabel2.default; | ||
exports.GridLines = _gridLines2.default; | ||
exports.GradientDefs = _gradientDefs2.default; | ||
exports.VerticalGridLines = _verticalGridLines2.default; | ||
exports.HorizontalGridLines = _horizontalGridLines2.default; | ||
exports.Voronoi = _voronoi2.default; | ||
exports.Highlight = _highlight2.default; | ||
// TODO alphabetize | ||
exports.ContinuousColorLegend = _continuousColorLegend2.default; | ||
exports.ContinuousSizeLegend = _continuousSizeLegend2.default; | ||
exports.DiscreteColorLegend = _discreteColorLegend2.default; | ||
exports.SearchableDiscreteColorLegend = _searchableDiscreteColorLegend2.default; | ||
exports.ContinuousColorLegend = _continuousColorLegend2.default; | ||
exports.ContinuousSizeLegend = _continuousSizeLegend2.default; | ||
// TODO alphabetize | ||
exports.Treemap = _treemap2.default; | ||
exports.ParallelCoordinates = _parallelCoordinates2.default; | ||
exports.RadarChart = _radarChart2.default; | ||
exports.RadialChart = _radialChart2.default; | ||
exports.RadarChart = _radarChart2.default; | ||
exports.ParallelCoordinates = _parallelCoordinates2.default; | ||
exports.Sankey = _sankey2.default; | ||
exports.Sunburst = _sunburst2.default; | ||
exports.Treemap = _treemap2.default; | ||
exports.AxisUtils = _axisUtils2.default; | ||
exports.ScaleUtils = _scalesUtils2.default; |
@@ -89,3 +89,3 @@ 'use strict'; | ||
items: _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.shape({ | ||
title: _propTypes2.default.string.isRequired, | ||
title: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]).isRequired, | ||
color: _propTypes2.default.string, | ||
@@ -92,0 +92,0 @@ disabled: _propTypes2.default.bool |
@@ -119,3 +119,5 @@ 'use strict'; | ||
value: function render() { | ||
var animation = this.props.animation; | ||
var _props2 = this.props, | ||
animation = _props2.animation, | ||
className = _props2.className; | ||
@@ -154,3 +156,3 @@ if (animation) { | ||
transform: 'translate(' + left + ',' + top + ')', | ||
className: 'rv-xy-plot__grid-lines' | ||
className: 'rv-xy-plot__grid-lines ' + className | ||
}, | ||
@@ -157,0 +159,0 @@ values.map(function (v, i) { |
@@ -274,3 +274,3 @@ 'use strict'; | ||
* Get the position for the hint and the appropriate class name. | ||
* @returns {{style: Object, className: string}} Style and className for the | ||
* @returns {{style: Object, positionClassName: string}} Style and className for the | ||
* hint. | ||
@@ -295,3 +295,3 @@ * @private | ||
position: getAlignStyle ? getAlignStyle(align, x, y) : this._getAlignStyle(align, x, y), | ||
className: this._getAlignClassNames(align) | ||
positionClassName: this._getAlignClassNames(align) | ||
}; | ||
@@ -380,7 +380,8 @@ } | ||
children = _props5.children, | ||
style = _props5.style; | ||
style = _props5.style, | ||
className = _props5.className; | ||
var _getPositionInfo2 = this._getPositionInfo(), | ||
position = _getPositionInfo2.position, | ||
className = _getPositionInfo2.className; | ||
positionClassName = _getPositionInfo2.positionClassName; | ||
@@ -390,3 +391,3 @@ return _react2.default.createElement( | ||
{ | ||
className: 'rv-hint ' + className, | ||
className: 'rv-hint ' + positionClassName + ' ' + className, | ||
style: _extends({}, style, position, { | ||
@@ -443,2 +444,3 @@ position: 'absolute' | ||
style: _propTypes2.default.object, | ||
className: _propTypes2.default.string, | ||
align: _propTypes2.default.shape({ | ||
@@ -445,0 +447,0 @@ horizontal: _propTypes2.default.oneOf([ALIGN.AUTO, ALIGN.LEFT, ALIGN.RIGHT, ALIGN.LEFT_EDGE, ALIGN.RIGHT_EDGE]), |
@@ -154,2 +154,3 @@ 'use strict'; | ||
} | ||
var seriesType = series.type.displayName; | ||
@@ -178,4 +179,7 @@ var _series$props = series.props, | ||
} | ||
if (!latestAttrPositions[cluster][seriesType]) { | ||
latestAttrPositions[cluster][seriesType] = {}; | ||
} | ||
var prevD = latestAttrPositions[cluster][d[baseAttr]]; | ||
var prevD = latestAttrPositions[cluster][seriesType][d[baseAttr]]; | ||
// It is the first segment of a bar. | ||
@@ -185,3 +189,3 @@ if (!prevD) { | ||
latestAttrPositions[cluster][d[baseAttr]] = (_latestAttrPositions$ = {}, _defineProperty(_latestAttrPositions$, attr0, d[attr0]), _defineProperty(_latestAttrPositions$, attr, d[attr]), _latestAttrPositions$); | ||
latestAttrPositions[cluster][seriesType][d[baseAttr]] = (_latestAttrPositions$ = {}, _defineProperty(_latestAttrPositions$, attr0, d[attr0]), _defineProperty(_latestAttrPositions$, attr, d[attr]), _latestAttrPositions$); | ||
@@ -194,3 +198,3 @@ return _extends({}, d); | ||
latestAttrPositions[cluster][d[baseAttr]] = (_latestAttrPositions$2 = {}, _defineProperty(_latestAttrPositions$2, attr0, nextD[attr0]), _defineProperty(_latestAttrPositions$2, attr, nextD[attr]), _latestAttrPositions$2); | ||
latestAttrPositions[cluster][seriesType][d[baseAttr]] = (_latestAttrPositions$2 = {}, _defineProperty(_latestAttrPositions$2, attr0, nextD[attr0]), _defineProperty(_latestAttrPositions$2, attr, nextD[attr]), _latestAttrPositions$2); | ||
@@ -197,0 +201,0 @@ return nextD; |
139
es/index.js
@@ -21,5 +21,50 @@ // Copyright (c) 2016 - 2017 Uber Technologies, Inc. | ||
// TODO alphabetize | ||
import _AbstractSeries from './plot/series/abstract-series'; | ||
export { _AbstractSeries as AbstractSeries }; | ||
import _ArcSeries from './plot/series/arc-series'; | ||
export { _ArcSeries as ArcSeries }; | ||
import _AreaSeries from './plot/series/area-series'; | ||
export { _AreaSeries as AreaSeries }; | ||
import _Borders from './plot/borders'; | ||
export { _Borders as Borders }; | ||
import _ChartLabel from './plot/chart-label'; | ||
export { _ChartLabel as ChartLabel }; | ||
import _CircularGridLines from './plot/circular-grid-lines'; | ||
export { _CircularGridLines as CircularGridLines }; | ||
import _ContourSeries from './plot/series/contour-series'; | ||
export { _ContourSeries as ContourSeries }; | ||
import _Crosshair from './plot/crosshair'; | ||
export { _Crosshair as Crosshair }; | ||
import _CustomSVGSeries from './plot/series/custom-svg-series'; | ||
export { _CustomSVGSeries as CustomSVGSeries }; | ||
import _DecorativeAxis from './plot/axis/decorative-axis'; | ||
export { _DecorativeAxis as DecorativeAxis }; | ||
import _GradientDefs from './plot/gradient-defs'; | ||
export { _GradientDefs as GradientDefs }; | ||
import _GridLines from './plot/grid-lines'; | ||
export { _GridLines as GridLines }; | ||
import _HeatmapSeries from './plot/series/heatmap-series'; | ||
export { _HeatmapSeries as HeatmapSeries }; | ||
import _HexbinSeries from './plot/series/hexbin-series'; | ||
export { _HexbinSeries as HexbinSeries }; | ||
import _Highlight from './plot/highlight'; | ||
export { _Highlight as Highlight }; | ||
import _Hint from './plot/hint'; | ||
export { _Hint as Hint }; | ||
import _HorizontalBarSeries from './plot/series/horizontal-bar-series'; | ||
export { _HorizontalBarSeries as HorizontalBarSeries }; | ||
import _HorizontalBarSeriesCanvas from './plot/series/horizontal-bar-series-canvas'; | ||
export { _HorizontalBarSeriesCanvas as HorizontalBarSeriesCanvas }; | ||
import _HorizontalGridLines from './plot/horizontal-grid-lines'; | ||
export { _HorizontalGridLines as HorizontalGridLines }; | ||
import _HorizontalRectSeries from './plot/series/horizontal-rect-series'; | ||
export { _HorizontalRectSeries as HorizontalRectSeries }; | ||
import _HorizontalRectSeriesCanvas from './plot/series/horizontal-rect-series-canvas'; | ||
export { _HorizontalRectSeriesCanvas as HorizontalRectSeriesCanvas }; | ||
import _LabelSeries from './plot/series/label-series'; | ||
export { _LabelSeries as LabelSeries }; | ||
import _LineMarkSeries from './plot/series/line-mark-series'; | ||
export { _LineMarkSeries as LineMarkSeries }; | ||
import _LineMarkSeriesCanvas from './plot/series/line-mark-series-canvas'; | ||
export { _LineMarkSeriesCanvas as LineMarkSeriesCanvas }; | ||
import _LineSeries from './plot/series/line-series'; | ||
@@ -29,6 +74,8 @@ export { _LineSeries as LineSeries }; | ||
export { _LineSeriesCanvas as LineSeriesCanvas }; | ||
import _HorizontalBarSeries from './plot/series/horizontal-bar-series'; | ||
export { _HorizontalBarSeries as HorizontalBarSeries }; | ||
import _HorizontalBarSeriesCanvas from './plot/series/horizontal-bar-series-canvas'; | ||
export { _HorizontalBarSeriesCanvas as HorizontalBarSeriesCanvas }; | ||
import _MarkSeries from './plot/series/mark-series'; | ||
export { _MarkSeries as MarkSeries }; | ||
import _MarkSeriesCanvas from './plot/series/mark-series-canvas'; | ||
export { _MarkSeriesCanvas as MarkSeriesCanvas }; | ||
import _PolygonSeries from './plot/series/polygon-series'; | ||
export { _PolygonSeries as PolygonSeries }; | ||
import _VerticalBarSeries from './plot/series/vertical-bar-series'; | ||
@@ -38,2 +85,4 @@ export { _VerticalBarSeries as VerticalBarSeries }; | ||
export { _VerticalBarSeriesCanvas as VerticalBarSeriesCanvas }; | ||
import _VerticalGridLines from './plot/vertical-grid-lines'; | ||
export { _VerticalGridLines as VerticalGridLines }; | ||
import _VerticalRectSeries from './plot/series/vertical-rect-series'; | ||
@@ -43,10 +92,4 @@ export { _VerticalRectSeries as VerticalRectSeries }; | ||
export { _VerticalRectSeriesCanvas as VerticalRectSeriesCanvas }; | ||
import _HorizontalRectSeries from './plot/series/horizontal-rect-series'; | ||
export { _HorizontalRectSeries as HorizontalRectSeries }; | ||
import _HorizontalRectSeriesCanvas from './plot/series/horizontal-rect-series-canvas'; | ||
export { _HorizontalRectSeriesCanvas as HorizontalRectSeriesCanvas }; | ||
import _LabelSeries from './plot/series/label-series'; | ||
export { _LabelSeries as LabelSeries }; | ||
import _PolygonSeries from './plot/series/polygon-series'; | ||
export { _PolygonSeries as PolygonSeries }; | ||
import _Voronoi from './plot/voronoi'; | ||
export { _Voronoi as Voronoi }; | ||
import _RectSeries from './plot/series/rect-series'; | ||
@@ -56,34 +99,6 @@ export { _RectSeries as RectSeries }; | ||
export { _RectSeriesCanvas as RectSeriesCanvas }; | ||
import _MarkSeries from './plot/series/mark-series'; | ||
export { _MarkSeries as MarkSeries }; | ||
import _MarkSeriesCanvas from './plot/series/mark-series-canvas'; | ||
export { _MarkSeriesCanvas as MarkSeriesCanvas }; | ||
import _WhiskerSeries from './plot/series/whisker-series'; | ||
export { _WhiskerSeries as WhiskerSeries }; | ||
import _HeatmapSeries from './plot/series/heatmap-series'; | ||
export { _HeatmapSeries as HeatmapSeries }; | ||
import _HexbinSeries from './plot/series/hexbin-series'; | ||
export { _HexbinSeries as HexbinSeries }; | ||
import _ContourSeries from './plot/series/contour-series'; | ||
export { _ContourSeries as ContourSeries }; | ||
import _CustomSVGSeries from './plot/series/custom-svg-series'; | ||
export { _CustomSVGSeries as CustomSVGSeries }; | ||
import _AreaSeries from './plot/series/area-series'; | ||
export { _AreaSeries as AreaSeries }; | ||
import _ArcSeries from './plot/series/arc-series'; | ||
export { _ArcSeries as ArcSeries }; | ||
import _LineMarkSeries from './plot/series/line-mark-series'; | ||
export { _LineMarkSeries as LineMarkSeries }; | ||
import _LineMarkSeriesCanvas from './plot/series/line-mark-series-canvas'; | ||
export { _LineMarkSeriesCanvas as LineMarkSeriesCanvas }; | ||
import _Hint from './plot/hint'; | ||
export { _Hint as Hint }; | ||
import _Borders from './plot/borders'; | ||
export { _Borders as Borders }; | ||
import _Crosshair from './plot/crosshair'; | ||
export { _Crosshair as Crosshair }; | ||
import _XYPlot from './plot/xy-plot'; | ||
export { _XYPlot as XYPlot }; | ||
import _DecorativeAxis from './plot/axis/decorative-axis'; | ||
export { _DecorativeAxis as DecorativeAxis }; | ||
import _XAxis from './plot/axis/x-axis'; | ||
@@ -93,21 +108,6 @@ export { _XAxis as XAxis }; | ||
export { _YAxis as YAxis }; | ||
import _CircularGridLines from './plot/circular-grid-lines'; | ||
export { _CircularGridLines as CircularGridLines }; | ||
import _ChartLabel from './plot/chart-label'; | ||
export { _ChartLabel as ChartLabel }; | ||
import _GridLines from './plot/grid-lines'; | ||
export { _GridLines as GridLines }; | ||
import _GradientDefs from './plot/gradient-defs'; | ||
export { _GradientDefs as GradientDefs }; | ||
import _VerticalGridLines from './plot/vertical-grid-lines'; | ||
export { _VerticalGridLines as VerticalGridLines }; | ||
import _HorizontalGridLines from './plot/horizontal-grid-lines'; | ||
export { _HorizontalGridLines as HorizontalGridLines }; | ||
import _Voronoi from './plot/voronoi'; | ||
export { _Voronoi as Voronoi }; | ||
import _Highlight from './plot/highlight'; | ||
export { _Highlight as Highlight }; | ||
// TODO alphabetize | ||
import _ContinuousColorLegend from './legends/continuous-color-legend'; | ||
export { _ContinuousColorLegend as ContinuousColorLegend }; | ||
import _ContinuousSizeLegend from './legends/continuous-size-legend'; | ||
export { _ContinuousSizeLegend as ContinuousSizeLegend }; | ||
import _DiscreteColorLegend from './legends/discrete-color-legend'; | ||
@@ -117,17 +117,8 @@ export { _DiscreteColorLegend as DiscreteColorLegend }; | ||
export { _SearchableDiscreteColorLegend as SearchableDiscreteColorLegend }; | ||
import _ContinuousColorLegend from './legends/continuous-color-legend'; | ||
export { _ContinuousColorLegend as ContinuousColorLegend }; | ||
import _ContinuousSizeLegend from './legends/continuous-size-legend'; | ||
export { _ContinuousSizeLegend as ContinuousSizeLegend }; | ||
// TODO alphabetize | ||
import _Treemap from './treemap'; | ||
export { _Treemap as Treemap }; | ||
import _ParallelCoordinates from './parallel-coordinates'; | ||
export { _ParallelCoordinates as ParallelCoordinates }; | ||
import _RadarChart from './radar-chart'; | ||
export { _RadarChart as RadarChart }; | ||
import _RadialChart from './radial-chart'; | ||
export { _RadialChart as RadialChart }; | ||
import _RadarChart from './radar-chart'; | ||
export { _RadarChart as RadarChart }; | ||
import _ParallelCoordinates from './parallel-coordinates'; | ||
export { _ParallelCoordinates as ParallelCoordinates }; | ||
import _Sankey from './sankey'; | ||
@@ -137,2 +128,4 @@ export { _Sankey as Sankey }; | ||
export { _Sunburst as Sunburst }; | ||
import _Treemap from './treemap'; | ||
export { _Treemap as Treemap }; | ||
@@ -139,0 +132,0 @@ |
@@ -76,3 +76,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({ | ||
title: PropTypes.string.isRequired, | ||
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired, | ||
color: PropTypes.string, | ||
@@ -79,0 +79,0 @@ disabled: PropTypes.bool |
@@ -106,3 +106,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
value: function render() { | ||
var animation = this.props.animation; | ||
var _props2 = this.props, | ||
animation = _props2.animation, | ||
className = _props2.className; | ||
@@ -141,3 +143,3 @@ if (animation) { | ||
transform: 'translate(' + left + ',' + top + ')', | ||
className: 'rv-xy-plot__grid-lines' | ||
className: 'rv-xy-plot__grid-lines ' + className | ||
}, | ||
@@ -144,0 +146,0 @@ values.map(function (v, i) { |
@@ -264,3 +264,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
* Get the position for the hint and the appropriate class name. | ||
* @returns {{style: Object, className: string}} Style and className for the | ||
* @returns {{style: Object, positionClassName: string}} Style and className for the | ||
* hint. | ||
@@ -285,3 +285,3 @@ * @private | ||
position: getAlignStyle ? getAlignStyle(align, x, y) : this._getAlignStyle(align, x, y), | ||
className: this._getAlignClassNames(align) | ||
positionClassName: this._getAlignClassNames(align) | ||
}; | ||
@@ -370,7 +370,8 @@ } | ||
children = _props5.children, | ||
style = _props5.style; | ||
style = _props5.style, | ||
className = _props5.className; | ||
var _getPositionInfo2 = this._getPositionInfo(), | ||
position = _getPositionInfo2.position, | ||
className = _getPositionInfo2.className; | ||
positionClassName = _getPositionInfo2.positionClassName; | ||
@@ -380,3 +381,3 @@ return React.createElement( | ||
{ | ||
className: 'rv-hint ' + className, | ||
className: 'rv-hint ' + positionClassName + ' ' + className, | ||
style: _extends({}, style, position, { | ||
@@ -433,2 +434,3 @@ position: 'absolute' | ||
style: PropTypes.object, | ||
className: PropTypes.string, | ||
align: PropTypes.shape({ | ||
@@ -435,0 +437,0 @@ horizontal: PropTypes.oneOf([ALIGN.AUTO, ALIGN.LEFT, ALIGN.RIGHT, ALIGN.LEFT_EDGE, ALIGN.RIGHT_EDGE]), |
@@ -135,2 +135,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
} | ||
var seriesType = series.type.displayName; | ||
@@ -159,4 +160,7 @@ var _series$props = series.props, | ||
} | ||
if (!latestAttrPositions[cluster][seriesType]) { | ||
latestAttrPositions[cluster][seriesType] = {}; | ||
} | ||
var prevD = latestAttrPositions[cluster][d[baseAttr]]; | ||
var prevD = latestAttrPositions[cluster][seriesType][d[baseAttr]]; | ||
// It is the first segment of a bar. | ||
@@ -166,3 +170,3 @@ if (!prevD) { | ||
latestAttrPositions[cluster][d[baseAttr]] = (_latestAttrPositions$ = {}, _defineProperty(_latestAttrPositions$, attr0, d[attr0]), _defineProperty(_latestAttrPositions$, attr, d[attr]), _latestAttrPositions$); | ||
latestAttrPositions[cluster][seriesType][d[baseAttr]] = (_latestAttrPositions$ = {}, _defineProperty(_latestAttrPositions$, attr0, d[attr0]), _defineProperty(_latestAttrPositions$, attr, d[attr]), _latestAttrPositions$); | ||
@@ -175,3 +179,3 @@ return _extends({}, d); | ||
latestAttrPositions[cluster][d[baseAttr]] = (_latestAttrPositions$2 = {}, _defineProperty(_latestAttrPositions$2, attr0, nextD[attr0]), _defineProperty(_latestAttrPositions$2, attr, nextD[attr]), _latestAttrPositions$2); | ||
latestAttrPositions[cluster][seriesType][d[baseAttr]] = (_latestAttrPositions$2 = {}, _defineProperty(_latestAttrPositions$2, attr0, nextD[attr0]), _defineProperty(_latestAttrPositions$2, attr, nextD[attr]), _latestAttrPositions$2); | ||
@@ -178,0 +182,0 @@ return nextD; |
{ | ||
"name": "react-vis", | ||
"version": "1.11.6", | ||
"version": "1.11.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Visualization Team <visualization@uber.com>", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1811058
25322
83